User:Bjordan/vim

From OLPC

< User:Bjordan
Revision as of 20:13, 24 June 2008 by Bjordan (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
Personal tools
  • Log in
  • Login with OpenID
About OLPC
About the laptop
About the tablet
Projects
OLPC wiki
Toolbox
In other languages