Skip to content

tatsuya4559/vim-vsnip-toml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

vim-vsnip-toml

Write vsnip snippets in toml.

Motivation

vsnip is awesome, but it's hard for human to write snippets in json format...

Installation

call minpac#add('tatsuya4559/vim-vsnip-toml')

Usage

Specify toml snippet directory in your .vimrc.

let g:vsnip_snippet_src_dir = '~/.vim/vsnip/toml'

Open some file and invoke :VsnipEditTOML command. Then you can write snippets in toml format.

[[snippet]]
prefix = 'fn'
description = 'vimscript function'
body = '''
function! $1($2) abort
	$3
endfunction
'''

When you save the file, vsnip style json will be created under g:vsnip_snippet_dir directory.

About

Yet another snippet format for vim-vsnip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published