mirror of
https://github.com/amix/vimrc
synced 2025-06-16 09:35:01 +08:00
Updated plugins
This commit is contained in:
@ -46,6 +46,10 @@ looking at the [vim-snippets][vim-snippets] repository.
|
||||
" Optional:
|
||||
Plugin 'honza/vim-snippets'
|
||||
|
||||
## Using SnipMate ##
|
||||
Press <tab> and try :SnipMateOpenSnippetFiles for starting.
|
||||
Also see doc/SnipMate.txt to learn all SnipMate
|
||||
|
||||
## FAQ ##
|
||||
|
||||
> SnipMate doesn't work / My snippets aren't triggering
|
||||
|
@ -504,7 +504,7 @@ fun! s:ChooseSnippet(snippets) abort
|
||||
let snippet += [i.'. '.snip]
|
||||
let i += 1
|
||||
endfor
|
||||
if len(snippet) == 1
|
||||
if len(snippet) == 1 || get(g:snipMate, 'always_choose_first', 0) == 1
|
||||
" there's only a single snippet, choose it
|
||||
let idx = 0
|
||||
else
|
||||
|
@ -161,6 +161,13 @@ g:snipMate.override
|
||||
maps and other settings work. Note: Load order
|
||||
is determined by 'runtimepath'.
|
||||
|
||||
Duplicates are only dropped after reading one
|
||||
snippet file. If multiple files contain a
|
||||
snippet see always_choose_first
|
||||
g:snipMate.always_choose_first
|
||||
Always choose first snippet if there are
|
||||
multiple left
|
||||
|
||||
g:snipMate.description_in_completion
|
||||
If set to 1 (default is 0), snippet
|
||||
descriptions will be included in the popup
|
||||
|
Reference in New Issue
Block a user