using paragraph seperator in vi – the easy way

2010-04-07 1 min read Vim Tips

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.

comments powered by Disqus