1
0
mirror of https://github.com/amix/vimrc synced 2025-07-10 03:25:00 +08:00
This commit is contained in:
geezus
2021-06-30 12:00:07 -05:00
parent 43c7efba8d
commit 3afe70fe5a
1529 changed files with 3053 additions and 3018 deletions

17
sources_non_forked/vim-snipmate/autoload/snipMate.vim Normal file → Executable file
View File

@ -583,7 +583,22 @@ function! snipMate#TriggerSnippet(...) abort
call feedkeys(SuperTabKey) | return ''
endif
call feedkeys("\<esc>a", 'n') " Close completion menu
call feedkeys("\<tab>") | return ''
" Once we've dismissed the completion menu, we have to cause this
" function to be executed over again, so that we actually get the
" snippet triggered. (Simply continuing to execute fails because
" we have to finish this function before the results of feedkeys take
" effect and dismiss the completion menu. Recursing also fails for
" similar reasons.)
if a:0 == 0
" Would be nice to have a more robust solution than manually
" branching on the arguments. I tried to do something like:
" call call(function('snipMate#TriggerSnippet'), a:000)
" But I couldn't quite get it working. Maybe somebody else with
" better vimscript skills can find a way to make it work, though?
call feedkeys("\<Plug>snipMateNextOrTrigger") | return ''
else
call feedkeys("\<Plug>snipMateTrigger") | return ''
endif
endif
if exists('b:snip_state') && a:0 == 0 " Jump only if no arguments

View File

View File

View File

View File

View File