Arnaud Bourree schrieb:
Arnaud Bourree wrote on 20/03/2007 10:22:
Tim Chase wrote on 19/03/2007 23:01:
Or, if all your columns align, you can use visual-block mode with
control+V to create a block across the characters in question, and then
just hit "d" to delete.
-tim
Sorry, I'm begginer with VIM (Windows XP).
When I want to select a block with my mouse, I can't select column block.
How can I switch to line mode to column mode?
I reply myself with help file content:
Since CTRL-V is used to paste, you can't use it to start a blockwise Visual
selection. You can use CTRL-Q instead. You can also use CTRL-Q in Insert
mode and Command-line mode to get the old meaning of CTRL-V. But CTRL-Q
doesn't work for terminals when it's used for control flow.
If you're happy with the current setting of Ctrl-V, try the following:
First select text characterwise with your mouse, then open
context menu -> Select Blockwise
or
Press the Alt key while making your selection
(e.g. place cursor, press and hold down Alt, click end of selection)
or
use a map like the following in your vimrc to make "v" toggle visual mode
between characterwise and blockwise:
:vno <silent> v :<c-u>exe"norm!"visualmode()==#"v"?"gv\<lt>c-v>":"gvv"<cr>
Andy
--
EOM
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de