- Changed :NeoSnippetEdit behavior.
This commit is contained in:
parent
82dce7fb66
commit
6eef3d5462
@ -241,8 +241,17 @@ function! neosnippet#edit_snippets(args)"{{{
|
||||
endif
|
||||
|
||||
" Edit snippet file.
|
||||
let filename = (options.runtime ? s:runtime_dir[0] : s:snippets_dir[-1])
|
||||
\ .'/'.filetype.'.snip'
|
||||
let snippet_dir = (options.runtime ? s:runtime_dir[0] : s:snippets_dir[-1])
|
||||
let filename = snippet_dir .'/'.filetype
|
||||
|
||||
if isdirectory(filename)
|
||||
" Edit in snippet directory.
|
||||
let filename .= '/'.filetype
|
||||
endif
|
||||
|
||||
if filename !~ '\.snip*$'
|
||||
let filename .= '.snip'
|
||||
endif
|
||||
|
||||
if options.split
|
||||
" Split window.
|
||||
|
@ -70,6 +70,9 @@ COMMANDS *neosnippet-commands*
|
||||
*:NeoSnippetEdit*
|
||||
Opens [filetype] snippets to edit. It automatically selects
|
||||
current buffer's filetype unless you specify [filetype].
|
||||
|
||||
If [filetype] snippets has a directory, it automatically edit
|
||||
"[filetype].snip" in [filetype] subdirectory.
|
||||
|
||||
If [filetype] snippet file doesn't exist, it creates one
|
||||
automatically.
|
||||
@ -391,6 +394,7 @@ CHANGELOG *neosnippet-changelog*
|
||||
|
||||
2012-10-04
|
||||
- Refactored snippets filter.
|
||||
- Changed :NeoSnippetEdit behavior.
|
||||
|
||||
2012-10-01
|
||||
- Deleted neosnippet#force_expandable().
|
||||
|
Loading…
Reference in New Issue
Block a user