Tuesday, July 24, 2012

Re: insert mode map multiple spaces

On Wed, July 25, 2012 08:12, sinbad wrote:
> On Jul 21, 1:21 am, sinbad <sinbad.sin...@gmail.com> wrote:
>> can we perform some action inside the map function.
>> i have this "  normal /;<CR>" inside the Map(), it doesn't
>> seem to be working, it just prints '0', can't map functions do that ?
>
> is it possible to to do this in the mapping, i always get '0' echoed
> to the screen.

Depends on what you want to do. First, normal doesn't understand <CR>,
you need to use :exe for that. See :h :norm

Also when using expression mappings, always consider what is blocked
:h :expression-mapping

Third, it is probably easier, if you just use the search() function.

regards,
Christian

--
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

No comments: