diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-01-14 16:46:21 +0000 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2016-01-14 16:46:21 +0000 |
commit | 7666a9cc93c079cd3a61ea8a7d4cf3103a74c56e (patch) | |
tree | e1e1b32e1666bead6a6ac7327bd2e253e989e80e /nvim/ftplugin | |
parent | cee153e1d03f215139ba6d74a8cd8fe039213992 (diff) | |
parent | 81873932548d4dda5345c19c3a635d53e25da061 (diff) | |
download | dotfiles-7666a9cc93c079cd3a61ea8a7d4cf3103a74c56e.tar.xz |
Merge remote-tracking branch 'k-kyrias/master' into theos
Diffstat (limited to 'nvim/ftplugin')
-rw-r--r-- | nvim/ftplugin/mail.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nvim/ftplugin/mail.vim b/nvim/ftplugin/mail.vim new file mode 100644 index 0000000..309f8e0 --- /dev/null +++ b/nvim/ftplugin/mail.vim @@ -0,0 +1,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 |