aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/ftplugin/mail.vim
blob: 309f8e05efb663af129021ddfc6163b97b1825cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set formatoptions=taw

" * <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
"        formatting (sometimes useful associated with <F2>)
"
" These keys might be used both in command mode and edit mode.
"
" <F1> might be smarter to use with the Mail_Del_Empty_Quoted() function
" defined below

nmap	<F1>	gqap
nmap	<F2>	gqqj
nmap	<F3>	kgqj
map!	<F1>	<ESC>gqapi
map!	<F2>	<ESC>gqqji
map!	<F3>	<ESC>kgqji