using paragraph seperator in vi – the easy way

imap aa <Esc>80i-<Esc>i<Esc>o

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


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.

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