Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR1737: Five Steps to Vim

Hosted by Frank Bell on 2015-03-31 00:00:00
Download or Listen

The vim editor is based on the venerable vi editor, which dates from the very early days of Unix. Many persons find it intimidating for the absence of a menu bar, a terse command set that is very much its own, and its "modal" design.

Nevertheless, under its plain surface is a powerful and versatile tool. Frank Bell describes his five steps to learning to use and love vim.

  1. Use a .vimrc file.
  2. Train yourself to change modes.
  3. Learn and use a few basic commands. These should be enough to get you going: x, dd, dw (to delete text); cw (change a work); yy ("yank" or copy a line); p and P (to paste text); u (undo); w ("write") or save text; q (quit vim).
  4. Don't force yourself to move the cursor with the h-j-k-l keys if that doesn't feel natural. Use the arrow keys.
  5. Use vim to write stuff.

Links:

Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.