Move python online commands into vim functions for better profiling
This commit is contained in:
parent
cebf11eda0
commit
3237960a75
@ -170,6 +170,16 @@ function! UltiSnips_MapKeys()
|
|||||||
" Do not remap this.
|
" Do not remap this.
|
||||||
snoremap <silent> <BS> <Esc>:py UltiSnips_Manager.backspace_while_selected()<cr>
|
snoremap <silent> <BS> <Esc>:py UltiSnips_Manager.backspace_while_selected()<cr>
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
function! UltiSnips_CursorMoved()
|
||||||
|
py UltiSnips_Manager.cursor_moved()
|
||||||
|
endf
|
||||||
|
function! UltiSnips_EnteredInsertMode()
|
||||||
|
py UltiSnips_Manager.entered_insert_mode()
|
||||||
|
endf
|
||||||
|
function! UltiSnips_LeavingWindow()
|
||||||
|
py UltiSnips_Manager.leaving_window()
|
||||||
|
endf
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
"" STARTUP CODE {{{
|
"" STARTUP CODE {{{
|
||||||
@ -187,9 +197,9 @@ UltiSnips_Manager.forward_trigger = vim.eval("g:UltiSnipsJumpForwardTrigger")
|
|||||||
UltiSnips_Manager.backward_trigger = vim.eval("g:UltiSnipsJumpBackwardTrigger")
|
UltiSnips_Manager.backward_trigger = vim.eval("g:UltiSnipsJumpBackwardTrigger")
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
au CursorMovedI * py UltiSnips_Manager.cursor_moved()
|
au CursorMovedI * call UltiSnips_CursorMoved()
|
||||||
au InsertEnter * py UltiSnips_Manager.entered_insert_mode()
|
au InsertEnter * call UltiSnips_EnteredInsertMode()
|
||||||
au WinLeave * py UltiSnips_Manager.leaving_window()
|
au WinLeave * call UltiSnips_LeavingWindow()
|
||||||
|
|
||||||
call UltiSnips_MapKeys()
|
call UltiSnips_MapKeys()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user