Nicolás Brailovsky


A modern blog

Vim tip: Remapping

author Posted by: nico on date Mar 31st, 2010 | filed Filed under: Vim Tips
We all know is the funnier editor in the world. You can even use it to rot13 all your code and have lots of laughs when committing. But what if you want to automagicaly change a random word into another word? Well then inoremap comes handy, just adding this to your ~/.vimrc:
  1. inoremap hola mundo

and suddenly whenever typing “hola” you’ll see “mundo” instead. LOL. I guess it’s useful to fix typos, or to autocomplete code. Or to change “Hello” into “Fuck you” in you friend’s vimrc, whichever you think it’s appropriate..

     Add A Comment

trackback Trackback URI | rsscomment Comments RSS