* Wilkinson, Alex <[email protected]> [2011-06-10 14:47:45 +0800]:
> Something else that is brilliant is binding a key as such: > > Add this to your $HOME/.vimrc > > " " -------------------------- > " " fix formatting > " " -------------------------- > " * <F1> to re-format the current paragraph correctly > " * <F2> to format a line which is too long, and go to the next line > " * <F3> to merge the previous line with the current one, with a correct > > nmap <F1> gqap > nmap <F2> gqqj > nmap <F3> kgqj > map! <F1> <ESC>gqapi > map! <F2> <ESC>gqqji > map! <F3> <ESC>kgqji > Neat, added it to my $HOME/.vimrc, we'll see how it goes. -- > A: Yes. > >Q: Are you sure? > >>A: Because it reverses the logical flow of conversation. > >>>Q: Why is top posting frowned upon? > http://xkcd.com/84/ > GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8 9E4A EECD 9A84 D5B2 0C0C)
