More Vim goodness

Another Vim tips piece is up on Linux.com today, this time I covered mappings and abbreviations.

I make heavy use of mappings and abbreviations for several things, correcting common typos (like thier instead of their, or teh instead of the), long names or names with foreign characters when I'm writing a news story with several last names that are easy to misspell, and inserting snippets of text -- like HTML tags -- that are a PITA to type over and over and over again.

For example, if you were writing a piece where you interviewed Bob Wexleblat-Platypus, you probably wouldn't want to type "Wexleblat-Platypus" twenty times -- especially since you might not spell it correctly each time.

Instead, set a temporary abbreviation. Run :ab wx Wexleblat-Platypus, and then each time you're writing "Wexleblat-Platypus says..." you'd just type "wx says" and Vim would do the rest.

Of course, that's just a silly name, but some folks in the open source community do have tricky names... I know a lot of folks seem to have trouble getting Brockmeier right, too.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
This entry was posted in Open Source, Vim, Writing. Bookmark the permalink. Trackbacks are closed, but you can post a comment.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled
  • Categories

  • Archives