Vi

From MyWiki
Jump to: navigation, search

Delete all white space till end of line  :%s/ *$//g

[Control][b] - Move back one full screen
[Control][f] - Move forward one full screen
[Control][d] - Move forward 1/2 screen
[Control][u] - Move back (up) 1/2 screen
Delete blank lines : :v/./d

:v/./d
or
:g/^$/d
or
:%!cat -s

Vim Setting colours example - :highlight Normal ctermfg=grey ctermbg=darkblue


Try adding  ?????????
set background=dark
to your .gvimrc too. This work well for me.

Delete blank lines

g/^$/d