using paragraph seperator in vi – the easy way

2010-04-07 63 words 1 min read

imap aa 80i-io

Just put this in the vimrc or in a vi session with a : in normal mode.

Explanation:

This will map the key ”aa” to the sequence which will add ”-” 80 times in the current line and then go to new line in insert mode. This is quite simple so any changes required should be simple enough to make.


Tags: vi

author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it