Vi Commands
Vi Commands
Moving in vi h L or <space> K J or <enter> b w ( ) { } nG G Ctrl+w Ctrl+u Ctrl+d Ctrl+b Ctrl+F start at line 1 of file start at line n of file edit save save Save Save quit save Quit file as file as an existing file & quit vi the file if any changes & quit vi vi without saving
left one character right one character up one line Down one line left one word right one word start of sentence end of sentence start of paragraph end of paragraph to reach line n end of file first character of insertion Up half Screen Down half screen Up one Screen Down one Screen
character under cursor character to the left of cursor word to the beginning of line current line end of line beginning of the paragraph end of the paragraph
after the cursor after last character on the line before first character on the line Open line below current line Open line above current line
replacing text r R
current character only[one char] in replacement mode till you press ESC/INSERT