|
VI 101 > Basic VI command line text editor commands |
|
|
|
|
Written by laughzilla
|
|
Saturday, 21 June 2008 17:49 |
|
VI is the default text editor on most Linux and BSD computers. And it is in the opinion of many very smart computer geeks, a wonderful piece of software. However, for the rest of us, it can seem quite arcane and confusing.
This brief guide hopes to explain the most critical commands for using VI, without ripping your hair out.
############### # VI COMMANDS #
to enter vi, go to your command line and type: vi once inside, these are useful commands: /<blah> = search for <blah> x = delete i = insert dd = delete current line :w = write/save the current vi file :w whatever.txt = saves a new file called whatever.txt :q! = quit the current vi file and return to the directory and command line :wq! = write (save) the current file and exit, returning to the directory and command line. :!w = shows a master WHO, IDLE, etc. info EXAMPLE: 2:18pm up 9:00, 2 users, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT quinta pts/0 walla.co.il 2:15pm 0.00s 0.17s 0.02s vi config quinta pts/2 sv.meiway.com 7:33am 17:15 0.29s ? - ###############
more digital solutions found at: xdose.com ContentAndAds.com linuxonthe.net FreeBSDRocks.net GoodCleanEmail.com TheSwamp.info FileCorner.com
|
|
Last Updated ( Saturday, 21 June 2008 17:53 )
|