Visual mode in gVim on Windows doesn't work the way as it works in Unix
I'm using gVim version 7.3 on my Windows. When using gVim in my Unix, to insert a common text at the beginning of each line in a file, I do the following steps:
- Enter visual mode (CTRL+V).
- Select the lines for which the text has to be inserted at the beginning using arrow keys or hjkl keys.
- After selection press Shift+I.
- The cursor goes to the begin of the line where I started. I enter some text and press ESC key.
- Now the entire block of lines has the text inserted at the beginning.
So here's my question. How do I do the same thing in my gVim on Windows? It's not working if I follow th开发者_如何学Ce above as on Unix. Could someone please help me out with this?
If you have behave mswin
in your vimrc then some of the Vim mappings are modified to be more "Windows-like". In particular you will need to use <CTRL-Q>
to enter block-visual mode.
I have behave xterm
in my Windows vimrc which eliminates these issues.
精彩评论