- Added vim snippets.
This commit is contained in:
parent
27274a32a4
commit
d8605ea946
@ -111,8 +111,49 @@ abbr NeoBundleLazy ''
|
|||||||
snippet autoload
|
snippet autoload
|
||||||
abbr autoload func endfunc
|
abbr autoload func endfunc
|
||||||
alias afunction afunc
|
alias afunction afunc
|
||||||
prev_word '^'
|
options head
|
||||||
function! `substitute(matchstr(neosnippet#util#expand('%:p:r'), '/autoload/\zs.*$'), '/', '#', 'g')`#${1:#:func_name}(${2:#:args})
|
function! `substitute(matchstr(neosnippet#util#expand('%:p:r'), '/autoload/\zs.*$'), '/', '#', 'g')`#${1:#:func_name}(${2:#:args})
|
||||||
${0}
|
${0}
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
snippet save_cpoptions
|
||||||
|
abbr let s:save_cpo = &cpo | set cpo&vim
|
||||||
|
alias s:save_cpo cpoptions
|
||||||
|
options head
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
${0}
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
snippet g:loaded
|
||||||
|
abbr if exists('g:loaded_{plugin-name}')
|
||||||
|
alias loaded
|
||||||
|
options head
|
||||||
|
if exists('g:loaded_${1}')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
${0}
|
||||||
|
|
||||||
|
let g:loaded_$1 = 1
|
||||||
|
|
||||||
|
snippet modeline
|
||||||
|
abbr " vim: {modeline}
|
||||||
|
" vim: ${0:foldmethod=marker}
|
||||||
|
|
||||||
|
snippet undo_ftplugin
|
||||||
|
abbr if !exists('b:undo_ftplugin')
|
||||||
|
alias b:undo_ftplugin
|
||||||
|
if !exists('b:undo_ftplugin')
|
||||||
|
let b:undo_ftplugin = ''
|
||||||
|
endif
|
||||||
|
|
||||||
|
${1}
|
||||||
|
|
||||||
|
let b:undo_ftplugin .= '
|
||||||
|
\ | setlocal ${2:#:option_name1< option_name2<...}
|
||||||
|
\'
|
||||||
|
|
||||||
|
@ -718,6 +718,9 @@ A: Please try below settings. It defines snipMate function.
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
CHANGELOG *neosnippet-changelog*
|
CHANGELOG *neosnippet-changelog*
|
||||||
|
|
||||||
|
2013-02-01
|
||||||
|
- Added vim snippets.
|
||||||
|
|
||||||
2013-01-30
|
2013-01-30
|
||||||
- Added autoload snippet in Vim snip.
|
- Added autoload snippet in Vim snip.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user