Loading ...
Sorry, an error occurred while loading the content.

Re: insert mode map multiple spaces

Expand Messages
  • Christian Brabandt
    ... Depends on what you want to do. First, normal doesn t understand , you need to use :exe for that. See :h :norm Also when using expression mappings,
    Message 1 of 8 , Jul 24 11:27 PM
    • 0 Attachment
      On Wed, July 25, 2012 08:12, sinbad wrote:
      > On Jul 21, 1:21 am, sinbad <sinbad.sin...@...> 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
    Your message has been successfully submitted and would be delivered to recipients shortly.