Vim Tips Wiki

Editing

Replace a visual-block of text with another such block

1
  • The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit. If you are undoing an edit that is …
Latest revision Your text
Line 29: Line 29:
 
To make second block exactly same size as first instead of <Ctrl-v> move hit 1<Ctrv-V>
 
To make second block exactly same size as first instead of <Ctrl-v> move hit 1<Ctrv-V>
   
This will make a rectangular selection of exactly same size as previous one using current cursor position as top left corner. Unfortunately it does not (always? yet?) work with multibyte encodings, so be careful if you use them.
+
This will make a rectangular selection of exactly same size as previous one using current cursor position as top left corner. Unfortunately it does not (always? yet?) work with multibyte encodings, sobe carefulif you use them.
   
 
----
 
----
  Loading editor
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template