Unix Vi editor command keys:
ZZ Q <ESC> :<cmd> :!<cmd> ^g ^f ^b ^d ^u <x>G /<x> ?<x> n N ]] [[ % ^l ^r z<CR> z- ^e ^y “ H L M + hjkl 0 $ f<x> F<x> | Exit, saving changes Enter ex mode End of insert Execute ex command Shell command Show filename/size Forward one screen Back one screen Forward half screen Backward half screen Go to line <x> Search forward for <x> Search backward for <x> Repeat last search Reverse last search Next section/function Previous section/function Find matching () { or } Redraw screen Refresh screen Current line at top Current line at bottom Scroll down one line Scroll up one line revious context Home window line Last window line Middle window line Next line Cursor movement: left/down/up/right Beginning of line End of line Find <x> forward Find <x> backward |
t<x> T<x> <x>| w,W b,B e,E ^h ^w ^? ~ a i,I A o O r R d dd c y C D s S J x X Y p P << >> u U | Up to <x> forward Back up to <x> Go to column <x> Forward one word Back one word End of word Erase last character Erase last word Interrupt Toggle character case Append after Insert before Append at end of line Open line below Open line above Replace character Replace characters Delete Delete line Change Yank lines to buffer Change rest of line Delete rest of line Substitute character Substitute lines Join lines Delete after Delete before Yank current line Put back lines Put before Shift line left Shift line right Undo last change Restore current line |
File Options:
sh Invoke shell
vi Vi mode
wq Write and quit
w <f> Write file <f>
w! <f> Overwrite file <f>
Ex mode commands: | |
q q! r <f> set <x> set no<v> set all | Quit Quit, discard changes Read in file <f> Enable option Disable option Show all options |
+91 7028476376