From 75e585b91d957561af4947e018edf4d1f228477e Mon Sep 17 00:00:00 2001 From: DebXWoody Date: Wed, 23 Jun 2021 20:12:33 +0200 Subject: [PATCH] Composing messages with vim ( setup ) --- snippets/composing.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 snippets/composing.md diff --git a/snippets/composing.md b/snippets/composing.md new file mode 100644 index 0000000..6d4d6da --- /dev/null +++ b/snippets/composing.md @@ -0,0 +1,30 @@ +# Composing setup + +## Composing messages with vim + +### neomutt configuration + +``` +set edit_headers = yes +set editor="vim -c 'startinsert' '+/^$'" +``` + +The first line will allow you to edit the headers in during composing +of messages in vim. +The second line will call vim in insert mode and skip the header to +start just after the header part. + +### vim configuration (.vimrc) + +``` +syntax on +set complete+=kspell +autocmd FileType mail set colorcolumn=76 +autocmd FileType mail set tw=75 +autocmd FileType mail set spell spelllang=de,en +``` + +The `kspell` value will support completion for spelling check. The +`tw` and `colorcolumn` will set the text width to 75 and highlight the +end of the text area. +