$vim file1
:vsp file2(or do tab) vertical split
:sp file2(or do tab) horizontal split
use Ctr+w to switch between windows2. go the end of line and beginning of line
VI go to the end of line
$
VI go the beginning of the line
0
go to a specific line when your file is very large
$ vim filename 99999
3. another website taks about VIM tip
http://edwinux.blogspot.com/search/label/vim
4.To re-format a paragraph in VIM, type
gqap
in command mode5. How to search
/search-keyword
n: forward
shift+n: back
No comments:
Post a Comment