I would like to temporarily disable abbreviations so they work in insert and search mode, but not in command line mode. Unfortunately if you define an abbreviation in ex mode with cab you also enable it in search mode.

Something like this works, for starters:

nnoremap : :set paste<CR>:


That disables them in command mode. But now I have to enable them back again, somehow when I leave command mode and return to normal mode. I could use an autocmmand to set and then unset paste, when entering and leaving a cmd window, but there are no autocommands for entering and leaving command mode.

Any ideas?


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to