Monday, November 30, 2009

Re: Prevent from entering to insert mode before finishing mapping

Sorry for typo. Use the following instead:

onoremap w :<C-U>exe DoCommand() <Bar> call DoSomethingElse()<CR>


On Dec 1, 4:19 pm, anna klein <annaklein...@gmail.com> wrote:
> This gives me error E488: Trailing characters.

It's necessary to escape "|" as <Bar> in {rhs} of :map commands.

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: