Posts Tagged ‘ vim ’

Get numlock working with PuTTY and vim

By default, your keyboard's numlock enabled number pad doesn't work well with console applications running on a PuTTY SSH connection. The numpad's numbers seem to get mapped to inserting the characters "q" thru "y". This is especially annoying when using vim.

To get numlock working, open PuTTY's configuration window, goto Terminal > Features. Enable the "Disable application keypad mode" checkbox.

If you ...

Skip .svn directories when using grep

What You'll Need:
grep 2.5.3+

I can't count how many times a day I use grep. It is an indispensable tool for searching the contents of configuration files, data files, and source code.

One of the annoying side effects of grep is when searching a Subversion working copy recursively, all the hidden .svn directories ...

Quickly indent multiple lines in vi/vim

Indenting lines of programming code is essential for readability. Indenting multiple lines at once is a feature that any useful code editing software should have.

As a programmer, I went far too long not knowing how to do this with vim (one of my favorite editors). It's so easy, even Mike Tyson could do it. And he never learned to read.

  1. Enter VISUAL LINE mode by holding and hitting the "v" ...