using paragraph seperator in vi – the easy way
2010-04-07
63 words
1 min read
imap aa
80i- i o
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.
Related Articles:
- 2010/03/29 vim scripts and tips
- 2010/03/25 vim search multiple files
- 2010/03/08 eclim for Fedora – Leonidas – installation.
- 2010/02/03 Built-in lists in vim
- 2009/12/20 Know when you will type :q in your term instead of vi(m), the alias will chewed you out.
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.