Monday, November 30, 2009

Re: Prevent from entering to insert mode before finishing mapping

This gives me error E488: Trailing characters.
I don't know why I always get trailing characters error if I use "|". That's why I avoid using "|".
Any more advice?

Anna

On Tue, Dec 1, 2009 at 2:52 PM, Kana Natsuno <kana@whileimautomaton.net> wrote:
> onoremap w :<C-U><CR>:exe DoCommand()<CR>:call DoSomethingElse()<CR>

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

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

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

No comments:

Post a Comment