call UltiSnips#variables#WasRun() function! UltiSnips#map_keys#MapKeys() " Map the keys correctly if g:UltiSnipsExpandTrigger == g:UltiSnipsJumpForwardTrigger exec "inoremap " . g:UltiSnipsExpandTrigger . " =UltiSnips#ExpandSnippetOrJump()" exec "snoremap " . g:UltiSnipsExpandTrigger . " :call UltiSnips#ExpandSnippetOrJump()" else exec "inoremap " . g:UltiSnipsExpandTrigger . " =UltiSnips#ExpandSnippet()" exec "snoremap " . g:UltiSnipsExpandTrigger . " :call UltiSnips#ExpandSnippet()" endif exec 'xnoremap ' . g:UltiSnipsExpandTrigger. ' :call UltiSnips#SaveLastVisualSelection()gvs' exec "inoremap " . g:UltiSnipsListSnippets . " =UltiSnips#ListSnippets()" exec "snoremap " . g:UltiSnipsListSnippets . " :call UltiSnips#ListSnippets()" snoremap c snoremap c snoremap c endf function! UltiSnips#map_keys#MapInnerKeys() if g:UltiSnipsExpandTrigger != g:UltiSnipsJumpForwardTrigger exec "inoremap " . g:UltiSnipsJumpForwardTrigger . " =UltiSnips#JumpForwards()" exec "snoremap " . g:UltiSnipsJumpForwardTrigger . " :call UltiSnips#JumpForwards()" endif exec "inoremap " . g:UltiSnipsJumpBackwardTrigger . " =UltiSnips#JumpBackwards()" exec "snoremap " . g:UltiSnipsJumpBackwardTrigger . " :call UltiSnips#JumpBackwards()" endf function! UltiSnips#map_keys#RestoreInnerKeys() if g:UltiSnipsExpandTrigger != g:UltiSnipsJumpForwardTrigger exec "iunmap " . g:UltiSnipsJumpForwardTrigger exec "sunmap " . g:UltiSnipsJumpForwardTrigger endif exec "iunmap " . g:UltiSnipsJumpBackwardTrigger exec "sunmap " . g:UltiSnipsJumpBackwardTrigger endf