mirror of
https://github.com/neomutt/samples.git
synced 2024-11-24 17:35:00 +01:00
Composing messages with vim ( setup )
This commit is contained in:
parent
bb7544a269
commit
75e585b91d
30
snippets/composing.md
Normal file
30
snippets/composing.md
Normal 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.
|
||||
|
Loading…
Reference in New Issue
Block a user