Hello. My name's Kate. I love Linux, WordPress - own a WordPress dedicated design studio, a beginner entrepreneur who co-founded Asia software company. This is where i blog about Linux, WordPress, daily life and other interesting stuff
Status: available

You are on the Nineteen Labs » VI command (essential) article.

VI command (essential)

I think this commands essential, because with this (only eight) commands you can create and edit various files with VI

i Insert new text, before the cursor.
escape/ESC
Once you’ve entered input mode using the one of the a, i, O or o commands, use escape or ESC to quit entering text and return to command mode.
yy Copy the line the cursor is on
dd Delete the line the cursor is on.:w
Write the file back to the file with the name that you originally used as an argument on the vi command line.
:w or :w!
Write the file back to the file with the name that you originally used as an argument on the vi command line.
:w file_name
Write the file back to the file with the name “file_name”.
:q!
Quit, discarding any modifications that you may have made.
:wq!
Write the file back to the file with the name that you originally used as an argument on the vi command line and Quit

Share : These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • SphereIt
  • BlinkList
  • Reddit
  • StumbleUpon

Add a Comment

XHTML You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This site powered : WordPress. Made with PC (sorry, MAC), Coffee and Tofu