Copy and paste command in vi editor
yy - It will copy the entire line
p - It will paste the copied line after current line
P - It will paste the copied line before current line
Create new blank line in vi editor
o - It will open new line after the current line
O - It will open new line before the current line
Showing posts with label vi editor. Show all posts
Showing posts with label vi editor. Show all posts
Friday, September 9, 2016
Wednesday, August 17, 2016
vi Editor Save / Quit command
Following commands to Save or Quit from vi editor
ZZ or :wq - Save and exit from vi editor (Shift + ZZ)
:w - Save and continue to edit
:q! - Quit without saving changes
ZZ or :wq - Save and exit from vi editor (Shift + ZZ)
:w - Save and continue to edit
:q! - Quit without saving changes
Subscribe to:
Posts (Atom)