User:Bjordan/vim: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
Daniel's color scheme:
Daniel's color scheme:
colorscheme torte
colorscheme torte

Moving around the screen:
^ d, f (down, forward)
^ u, b (up, backward)

0 (start of line)
$ (end of line (money!))

:0 start of file
:n = line number in file
:$ end of file

Revision as of 20:12, 24 June 2008

Learning VI commands

4 space tabs:

# in vimrc:
set et ts=4 sw=4 smarttab

Daniel's color scheme:

colorscheme torte

Moving around the screen:

^ d, f (down, forward)
^ u, b (up, backward)
0 (start of line)
$ (end of line (money!)) 
:0 start of file
:n = line number in file
:$ end of file