Add something new to Virb:

Virb

Are you sure you want to delete that?

or Cancel

 

Posted on Dec 31, 2008

VI Tips of the Day #1

Inserting Text


After opening a VI session, often you'll want to start editing or adding text.



  • a - Append after cursor

  • A - Append after end of current line

  • i - Insert before cursor

  • I - Insert before beginning of current line

  • o - Open new line below current line and insert

  • O - Open new line above current line and insert

  • :r file - Read file specified by file,and insert contents after current line

  • :nr file - Read file specified by file, and insert contents after line n


Placed here for easy reference.

Loading comments...

Likes

Details

Viewed 1 time

© 2008 jleveille

virb.com/t/1007392
tweet!

Flag this text post!

Flag this text post as:

or Cancel

 

Advertisement

Flag this profile!

Flag this profile as:

or Cancel