User:Bjordan/vim: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: 4 space tabs: # in vimrc: set et ts=4 sw=4 smarttab Daniel's color scheme: colorscheme torte)
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[http://www.cs.colostate.edu/helpdocs/vi.html Learning VI commands]

4 space tabs:
4 space tabs:
# in vimrc:
# in vimrc:
Line 5: Line 7:
Daniel's color scheme:
Daniel's color scheme:
colorscheme torte
colorscheme torte

Editing:
i - edit mode!
:w - write to file
:q - quit
:q - quit w/o save

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

Latest revision as of 20:13, 24 June 2008

Learning VI commands

4 space tabs:

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

Daniel's color scheme:

colorscheme torte

Editing:

i - edit mode!
:w - write to file
:q - quit
:q - quit w/o save

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