aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/mail.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-04 13:13:57 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-04 13:13:57 +1200
commit9553b7910a348f9d3c774a37552dda8caf88b97f (patch)
treee427398fb60843949e3b37230f407792ad1e6640 /vim/after/ftplugin/mail.vim
parentMerge branch 'release/v1.42.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-9553b7910a348f9d3c774a37552dda8caf88b97f.tar.gz
dotfiles-9553b7910a348f9d3c774a37552dda8caf88b97f.zip
Merge branch 'release/v1.43.0'v1.43.0
* release/v1.43.0: Bump VERSION Make Perl boilerplate mapping silent Add Perl boilerplate generation mapping Correct a comment Tidy mapping definition for \< Add mapping to flag mail messages as unimportant
Diffstat (limited to 'vim/after/ftplugin/mail.vim')
-rw-r--r--vim/after/ftplugin/mail.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/vim/after/ftplugin/mail.vim b/vim/after/ftplugin/mail.vim
index 74261d8c..34c524e1 100644
--- a/vim/after/ftplugin/mail.vim
+++ b/vim/after/ftplugin/mail.vim
@@ -33,3 +33,16 @@ let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>q'
\ . '|nunmap <buffer> <LocalLeader>Q'
\ . '|nunmap <buffer> <LocalLeader>QQ'
\ . '|xunmap <buffer> <LocalLeader>Q'
+
+" Flag a message as unimportant
+function! s:FlagUnimportant()
+ call cursor(1, 1)
+ call search('^$')
+ -
+ call append(line('.'), 'X-Priority: 5')
+ call append(line('.'), 'Importance: Low')
+endfunction
+nnoremap <buffer>
+ \ <LocalLeader>l
+ \ <C-U>:call <SID>FlagUnimportant()<CR>
+let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>l'