skip to content
Keshav Mohta

Vi Tips in Ubuntu

/ 1 min read

VI Editor

this is most used and common editor and we frequently write vi file-name

here are few keyboard shortcut for myself in Command Mode ( i.e. after pressing Esc)

Below action works on selected line ( i..e. we move the cursor and on specific line and then do can do below action)

Keyboard ShortcutAction
uUndo
Ctrl +rRedo
YCopy Line
ddDelete Line
pPaste
Shift + PPaste Above
:m+1Move Selected Line Up