============================= Vi (Linux) keyboard shortcuts ============================= First published at 5/21/2019 on https://defkey.com/vi-linux-shortcuts Vi is a text editor originally developed for Unix operating system. The name "vi" is derived from the abbreviation for the ex command "visual". A 2009 survey of Linux Journal readers found that Vi was the most widely used text editor among respondents. Vi (Linux) has 23 shortcuts and we have listed all of them below. Navgation --------- J Next line K Previous line H Left L Right Shift + G Bottom of the document G then G Top of the document Command mode ------------ : Enter command mode :w Write :q Quit :q! Quit without saving :wq Write and quit ZZ Write and quit :e Open From Normal to Edit mode ------------------------ I Insert at current position Shift + I Insert at start of line A Append to end of line O Insert line below Shift + O Insert line above S Delete character at current position and insert Shift + S Delete the current line and insert Fast search ----------- / Search term N Next Shift + N Previous Clipboard --------- D then W Delete word D then D Delete line P Put after cursor Shift + P Put before cursor Y then W Copy word Y then Y Copy line Last modified on (UTC): Monday, November 11, 2019 Defkey © All rights reserved.