aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorTeddy Wing2016-05-08 03:40:32 -0400
committerTeddy Wing2016-05-08 03:44:43 -0400
commitfde3e26faf3f09cf6fa9bc35f9453480218daa92 (patch)
treee358d4bc80a2e83b965ce061868b4b7a289c9497 /ftplugin
parent35d8a8758070cb9c44c0d83ae03dab9b8aa348b8 (diff)
downloaddotvim-fde3e26faf3f09cf6fa9bc35f9453480218daa92.tar.bz2
ftplugin/mail.vim: Add a mapping to remove the last two lines
I have two empty lines below my signature to add some space between my top-posted message and the quoted message of a reply below. When I start a new mail message, though, nothing is below my message, resulting in two empty lines at the bottom of my emails. Add a mapping to quickly remove these lines to save me from having to do it manually. Should save some time.
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/mail.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftplugin/mail.vim b/ftplugin/mail.vim
index fcff8b8..3e64f4a 100644
--- a/ftplugin/mail.vim
+++ b/ftplugin/mail.vim
@@ -7,3 +7,7 @@ setlocal formatoptions+=aw
setlocal nojoinspaces
setlocal spell
+
+
+" Remove last two empty lines below signature
+nnoremap <buffer> <leader>e m`Gdk``