Don't create file in editting snippet file
This commit is contained in:
parent
4e8f2ab813
commit
23dd5a099e
@ -262,13 +262,7 @@ function! neosnippet#edit_snippets(args)"{{{
|
|||||||
\ (options.vertical ? 'vnew' : 'new')
|
\ (options.vertical ? 'vnew' : 'new')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if filereadable(filename)
|
|
||||||
edit `=filename`
|
edit `=filename`
|
||||||
else
|
|
||||||
enew
|
|
||||||
silent! setfiletype snippet
|
|
||||||
saveas `=filename`
|
|
||||||
endif
|
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
function! s:initialize_options(options)"{{{
|
function! s:initialize_options(options)"{{{
|
||||||
|
Loading…
Reference in New Issue
Block a user