About Me

My photo
Working as Technical Lead in CollabNET software private limited.

Wednesday 8 October, 2008

Visual block in VI

Do you need to perform multiple line edits at a single stretch.

I came across VISUAL BLOCK in vi editor.


   CTRL + v makes you to enter the visual mode for your file.
   select multiple lines
   SHIFT + i gives you the insert mode
   Enter the text at beginning of the block
   Press ESC twice to apply changes to all lines.



Blogged with the Flock Browser