Unlike the other questions I found so far, I am aware of the role of the placeholders and actively using the features of vim-latex. However I'm finding it hard to find help customizing them. One feature that gets in my way very often is the automated replacement of {} to {}<++> (and similarly for () etc.) with the cursor placed between the brackets. I often need to type an empty bracket pair for a macro and it is very distracting to remember to use Ctrl+J every time instead of writing in a linear fashion. I am sure I will never want to type {} to fill in the contents and jump out later, it's always a deliberate empty pair that's meant to stay empty.
How can I selectively disable this mapping? I have tried
call IMAP('{}', '{}', "tex")
but this, albeit solving the problem as stated, creates a new one by inducing an unwanted delay at typing the opening bracket, which is even worse.
iunmap <buffer> {}to yourafter/ftplugin/tex.vim? – marsupilam Jun 06 '17 at 14:21IMAPfunction defined by the plugin (I don't know the first thing about vim-latex). Looking at the plugin's code invim-latex/plugin/imaps.vim, I see there also is anIUNMAPfunction :" IUNMAP: Removes a "fake" insert mode mapping. function! IUNMAP(lhs, ft)Conclusion I would trycall IUNMAP('{}',"tex")in the sameafterfile. – marsupilam Jun 06 '17 at 14:32