I like some of the features provided by the Vim-LaTeX suite, but not all of them.
In particular, I dislike all of the mappings like [[ = \left[ \right] and the automatic placeholder stuff with <++>. I am a very fast typist but with that comes more typing mistakes, which I correct almost instantly by pressing backspace. Unfortunately, if something has automatically added a bunch of place-holders or expanded some expression, I then have to move around the document and remove more characters than necessary. For example, if I accidentally press [ twice, instead of only having to delete one character, I have to delete 10.
Having already looked through the documentation, and some of the source, I have managed to disable some of these "features", but not all of them:
In particular:
let g:Tex_SmartKeyBS = 0
let g:Tex_SmartKeyQuote = 0
let g:Tex_SmartKeyDot = 0
(Turn off maps for backspace, double quote and triple dot.)
let g:Imap_UsePlaceHolders = 0
(Turn off <++> placeholder insertion.)
But I can't seem to find a way of turning off the other stuff. Anyone have any suggestions?
Edit: I was able to "disable" some more things by setting:
let g:Tex_Leader = '`tex'
let g:Tex_Leader2 = ',tex'
(Which stops some expansions but still not all. It's not really disabling it but just making it less likely that you're going to type in `texa as opposed to the potentially more common `a, for example.)
PS: Personally, I think it is very poor practice to make an optional package that, when installed, greatly changes the default handling of your system. I don't mind some intelligent source highlighting etc, or some new commands (that don't clobber any old ones), but it seems unhelpful to enable this drastic kind of key remapping by default.
ftplugin/latex-box/indent.vim, change line 11 to this for much more sensible settings:setlocal indentkeys=0=\\end,0=\\end{enumerate},0=\\end{itemize},0=\\item,0),0],0},o,O,0\\– codebeard Jul 07 '12 at 16:31:set paste, then all special mappings are disabled, and also the automatic indentation, etc. It is intended for use when you are pasting properly formatted code from elsewhere, but it can be also handy in other cases. – JLDiaz Jul 07 '12 at 19:42:set pastefor pasting code. I like automatic indenting, but yeah it's good to know that I can turn on paste if I'm entering text with strange side-effects (for example, after changing catcodes). – codebeard Jul 07 '12 at 23:54<Ctrl>-jclears the<++>placeholder and goes into insert mode at that location, which allows you to just keep on typing. It's actually quite a useful feature. If I didn't know about this keybinding I also would have found it very annoying. – Mike Sep 03 '21 at 18:31