32 lines
		
	
	
		
			473 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			473 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| snippet command "VIM command"
 | |
| command! $1${2:cmd} ${3:rep}$0
 | |
| endsnippet
 | |
| 
 | |
| snippet function "VIM function"
 | |
| function! ${1:name}($2) ${3:abort}
 | |
| 	$0
 | |
| endfunction
 | |
| endsnippet
 | |
| 
 | |
| snippet if "VIM if statement"
 | |
| if ${1:condition}
 | |
| 	$0
 | |
| endif
 | |
| endsnippet
 | |
| 
 | |
| snippet py "Python block" b
 | |
| python << endpython
 | |
| $0
 | |
| endpython
 | |
| endsnippet
 | |
| 
 | |
| snippet get "VIM get function"
 | |
| get(${1:g:}, "${2:name}", ${3:default})$0
 | |
| endsnippet
 | |
| 
 | |
| snippet augroup "autocmd group"
 | |
| augroup ${1:name}
 | |
| 	$0
 | |
| augroup END
 | |
| endsnippet
 |