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

Issue 64 in vim: Can't paste the <0c> character on Ex or / command line when using 'incsearch'

Expand Messages
  • vim@googlecode.com
    Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 64 by dominiqu...@gmail.com: Can t paste the character on Ex or / command line when
    Message 1 of 3 , May 20, 2012
    • 0 Attachment
      Status: New
      Owner: ----
      Labels: Type-Defect Priority-Medium

      New issue 64 by dominiqu...@...: Can't paste the <0c> character on Ex
      or / command line when using 'incsearch'
      http://code.google.com/p/vim/issues/detail?id=64

      Description:

      Vim can't paste the <0c> character (form feed) on Ex or / command line
      when 'incsearch' variable is set.

      What steps will reproduce the problem?

      1. start Vim with: vim -u NONE
      2. :set nocp display=uhex incsearch
      3. :call feedkeys("i\<C-V>x0c\<C-V>x0c\<Esc>Y/\<C-R>\"")

      The last line inserts 2 <0c> (form feed characters), yanks the line and
      appends the line in the search / line.

      What is the expected output? What do you see instead?

      I would expect to see at the bottom of the screen:

      /<0c><0c><0d>

      Instead, I only see:

      /<0d>

      Now if you do the same with 'noincsearch', it works as expected:

      1. start Vim with: vim -u NONE
      2. :set nocp display=uhex noincsearch
      3. :call feedkeys("i\<C-V>x0c\<C-V>x0c\<Esc>Y/\<C-R>\"")

      And then I see the expected:

      /<0c><0c><0d>

      What version of the product are you using? On what operating system?

      Vim 7.3.524 (huge), xubuntu-12.04, x86.


      --
      You received this message from the "vim_dev" 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
    • vim@googlecode.com
      Comment #1 on issue 64 by chrisbr...@gmail.com: Can t paste the character on Ex or / command line when using incsearch
      Message 2 of 3 , Jun 24, 2012
      • 0 Attachment
        Comment #1 on issue 64 by chrisbr...@...: Can't paste the <0c>
        character on Ex or / command line when using 'incsearch'
        http://code.google.com/p/vim/issues/detail?id=64

        The problem is, <ctrl-L> triggers completion when 'incsearch' is set.
        Therefore one needs to escape the ctrl-L when pasting it into the
        commandline.
        Attached Patch fixes it.

        Attachments:
        issue_64.diff 355 bytes

        --
        You received this message from the "vim_dev" 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
      • vim@googlecode.com
        Updates: Status: Fixed Comment #2 on issue 64 by brammool...@gmail.com: Can t paste the character on Ex or / command line when using incsearch
        Message 3 of 3 , Jun 29, 2012
        • 0 Attachment
          Updates:
          Status: Fixed

          Comment #2 on issue 64 by brammool...@...: Can't paste the <0c>
          character on Ex or / command line when using 'incsearch'
          http://code.google.com/p/vim/issues/detail?id=64

          Patch included as 7.3.574.

          --
          You received this message from the "vim_dev" 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.