Vi

From PTAGISWiki

Jump to: navigation, search

Tips for using the vi editor 11/13/01

Paren matching: put the cursor on a parenthesis, brace, or bracket, press %

To make global changes in the file:

%s/old/new/

This is handy for changing line endings:

%s/ctrl-v ctrl-m/\n/
Personal tools