[Vim-latex-devel] FreezeImap
Brought to you by:
srinathava,
tmaas
From: Mikolaj M. <mi...@wp...> - 2003-12-09 16:10:26
|
Hello, Some time ago Srinath added very nice feature for temporarily switching off IMAP things - g:Imap_FreezeImap. Whent set to 1 it turns off IMAP shortcuts. When non-existant or set to 0, IMAP shortcuts are on. Here is function for easy toggling of value, place it somewhere in ftplugin/tex directory: " Choose shortcut of your choice " :help <Leader> imap <Leader>i <C-O>:call Toggle_FreezeImap()<cr> function! Toggle_FreezeImap() if exists("g:Imap_FreezeImap") && g:Imap_FreezeImap == 0 let g:Imap_FreezeImap = 1 elseif !exists("g:Imap_FreezeImap") let g:Imap_FreezeImap = 1 else let g:Imap_FreezeImap = 0 endif return '' endfunction Note: I am against adding this to the core vim-latexsuite. Posted it to place this in archives of the list. m. -- LaTeX + Vim = http://vim-latex.sourceforge.net/ |