Monday, April 2, 2007

Using abbrevation in VIM

Here is a vim tip:

use abbreviate to something you type very frequently

:abb perl #!/usr/local/bin/perl

Now in insert mode as soon as you press space after typing perl, the #!/usr/local/bin/perl will be typed automatically for you.

if you don't want it to type, type something like "perls ", and then go back and remove the "s"!

Put this in your .exrc file for convenience

No comments: