Christian suggested:
BTW: You can do it manually:
function! Abbreviate(lhs, rhs)
if getcmdtype() =~ '[/?]'
return a:rhs
else
return a:lhs
endif
endfu
cnorea foo <C-\>eAbbreviate('foo', 'foobar')<cr>
You can read about it at :h c_CTRL-\_e
And I don't think this is ugly. It is just the only way to make your
request work.
Not ugly at all. I suppose I could use this function to replace the built in
vim abbreviate command, for most of my abbreviations. That would exempt the
: command line from those abbreviations.
--
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