Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I made some helpful comments in a discussion thread here a couple years ago: http://news.ycombinator.com/item?id=233873 (see also http://news.ycombinator.com/item?id=235177 a little farther down that page)

That might help you get started with some of the more interesting capabilities of vim. Some additions I would make now are some of the control shortcuts in insert mode:

  C-n (word complete forward)
  C-p (word complete backward)
  C-x f (complete filename)
  C-x l (complete line)
The mark command is also useful. Need to check something elsewhere in the file while coding? Hit mm (the first m says to set a mark, and the second m stores that mark in the 'm' register). Now check out whatever you need to, and then use `m (backtick, then m) to return to your previous location.

Also, remap Caps Lock to be Escape, or start using Control-[. Escape is pretty far away on most keyboards; using a closer alternative will help you more than you would expect.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: