Prihlásiť

Vi Cheat Sheet


3. 3. 2010

My commonly used vi commands.

Moje často používané príkazy.

ddDelete current line
v mark lines dDelete marked text - v start visual mode, mark lines with shift+arrow keys, then do command d
/stringSearch forward for string
?stringSearch back for string
nSearch for next instance of string
NSearch for previous instance of string
:s/pattern/string/flagsReplace pattern with string according to flags. g flag replace all occurences of pattern, c confirm replaces, & repeat last :s command.
:$Move to last line
:30Move to line 30
:wqSave and Quit
:q!Quits without saving
:e fileEdit file
:nGo to next file
:pGo to previos file

Full VI Cheat Sheets - References

http://www.lagmonster.org/docs/vi2.html
http://www.worldtimzone.com/res/vi.html

Komentáre

Szabi Garai15. marca 2010 19:56:19
Možno aj toto pomôže:
http://ubuntulife.files.wordpress.com/2008/03/vi-vim_cheat_sheet.gifOdpovedať


* Pri odpovedi vám príde notifikácia na e-mail
*



* Pri odpovedi vám príde notifikácia na e-mail
*