User Tools

Site Tools


simple_vi_handling

This is an old revision of the document!


Simple vi handling

Line numbers

Show line numbers:

:set nu

“Unshow” line numbers:

:set nonu

Search and replace

Current line = .

Insert comment character on current and next 5 lines:

:.,+5s/^/#/g

Change all appearances of from to morf from line 1 to current line:

:1,.s/from/morf/g 
simple_vi_handling.1306933116.txt.gz · Last modified: 2011/10/15 08:07 (external edit)