summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index ea1c98e..3b9970d 100644
--- a/vimrc
+++ b/vimrc
@@ -59,6 +59,8 @@ inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
+let g:mma_candy = 2
+
vmap <leader>p <Plug>(coc-format-selected)
nmap <leader>p <Plug>(coc-format-selected)
nmap <leader>P <Plug>(coc-format)
@@ -94,3 +96,9 @@ Plug 'voldikss/vim-mma'
call plug#end()
+" Add format option 'w' to add trailing white space, indicating that paragraph
+" continues on next line. This is to be used with mutt's 'text_flowed' option.
+augroup mail_trailing_whitespace " {
+ autocmd!
+ autocmd FileType mail setlocal formatoptions+=w
+augroup END " }