Composing messages with vim ( setup )

This commit is contained in:
DebXWoody 2021-06-23 20:12:33 +02:00
parent bb7544a269
commit 75e585b91d

30
snippets/composing.md Normal file
View File

@ -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.