Monday, May 16, 2011

visual mode in vi

These commands can be used only after you enable visual mode in vim editor

Shift+V - to enable the visual mode in vim

Then select the lines in the vi

Alt+> - Shift right the selected lines

Alt+< - Shift left the selected lines

c - change the selected lines

y - copy or yank the selected lines to the clipboard.

p - paste the copied lines from the clipboard to the Editor.

No comments:

Post a Comment