vim mappings – easy way to do things.

You can use vim mappings to make some of your editor tasks very simple. Here I am giving you just a example, but you could always let your imagination run wild.

:nmap ,b Oj0c$**hP

And what do we do here.

O – Add a new line

– Go to normal mode

j – go to newly added line

0 – Go to begining of line

c$ – Change till end of line

****<Esc> – Enter  four stars

h – go back one character.

P –  Paste the last deleted line, which is what we deleted with c$.

This is just to show you how powerful, mappings can be. So, GO WILD with imagination.

 

Enhanced by Zemanta

This site uses Akismet to reduce spam. Learn how your comment data is processed.