Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 193 by [email protected]: Insert in Visual mode gives wrong
result
http://code.google.com/p/vim/issues/detail?id=193
Inserting in Visual mode (see :help v_I) gives incorrect results.
What steps will reproduce the problem?
1. Create a 1-line ~/.vimrc containing:
inoremap <bs> <c-g>u<bs>
2. Create a sample 3-line file containing:
#include "foo.h"
#include "bar.h"
#include "foobar.h"
3. Run the following command:
$ vim --noplugin test.c \
-c 'call feedkeys("ff\<C-V>jjIxxxx\<BS>\<BS>yy/\<Esc>")'
What is the expected output? What do you see instead?
Observe that the Vim buffer contains:
#include "xxxxyy/foo.h"
#include "bar.yy/foo.h"
#include "foobyy/foo.ar.h"
This looks quite messed up. I would expect instead to obtain this:
#include "xxyy/foo.h"
#include "xxyy/bar.h"
#include "xxyy/foobar.h"
It looks like a bug to me or am I missing something?
The bug is triggered by the mapping in the ~/.vimrc.
If I comment out the mapping in the ~/.vimrc, then
I obtain the above expected result.
What version of the product are you using? On what operating system?
Vim-7.4.155 (huge) on Linux x86_64 (xubuntu-13.10).
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.