lalitmetkar / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by dominiqu...@gmail.com on 20 May 2012 at 8:51

GoogleCodeExporter commented 9 years ago
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.

Original comment by chrisbr...@googlemail.com on 25 Jun 2012 at 6:19

Attachments:

GoogleCodeExporter commented 9 years ago
Patch included as 7.3.574.

Original comment by brammool...@gmail.com on 29 Jun 2012 at 11:39