Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Category : Home > Operating Systems > Unix > Editors > vi, view, vedit     

vi commands


Here are some vi commands.

:1,$s/old/new/g		find old, replace with new
:set all		show all settings
:set list		display invisible characters
:set showmode		display the mode
:3,8d			delete lines 3-8
D			delete to end of lines
J4			join 4 lines to current
:4,9m 12		move lines 4-9 to 12
:2,5t 13		copy lines 2-5 to 13
:5,9w file		write lines 5-9 to file
ZZ			write buffer and quit
%			goto matching brace/paren
3G			goto line 3
3w			go forward 3 words
3b			go back 3 words
n			repeat privious search
N			reverse privious search
:r			read  into current text
:r !			read output from command  into current text
:nr			read in at line number
:sh			goto shell


  Options
 
   del.icio.us  |  newsvine  |  digg  |  furl  |  google  |  yahoo  |  Ma.gnolia  |  vigillar  |  reddit  |  technorati  |  icerocket  |  pubsub

       Rate this tip:    

Start discussion or add comment to this tip

  Details
Tip reference : #50
views : 591
Added on : 11/09/05
Submited by : h8dk97
 
Send a message Send a message Printer friendly output Printer friendly output
Display this member's tips Display this member's tips (172)
 
 
<< Previous
 Most viewed tips 
  Databases > Oracle > Security : How to unlock Oracle user account  
  Operating Systems > Unix : How to kill Unix user session  
  Databases > Oracle > Performance Tuning : How to enable trace in Oracle  
  Databases > Oracle : Kill user session  
   
  All categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com