On Sun, Aug 28, 2022 at 11:45:53AM -0700, Zach wrote:
On 2022-08-28 7:15pm, void wrote:
What I want is, if i'm typing in a line and it goes over 72 chars, to
newline at that point intelligently.
It could be that in vimrc you have
filetype on
filetype plugin on
Which will make vim recognize that the mutt temp file you are editing is of the
'mail' filetype, and it will in turn apply particular settings to edit that
file.
Vim looks in its $VIMRUNTIME path for a filetype plugin called 'mail.vim'. In
that file are settings to be used when editing mutt email, to include line wrap
settings, quote characters, cursor placement (iirc), etc.
:set runtimepath?
…will lead you to the filetype-associated paths. If this isn't the issue, you
can at least check it off the list of things to examine.
Hi Zach,
runtimepath=~/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim90,/usr/local/share/vim/vimfiles/after,~/.vim/after
mail.vim is in /usr/local/share/vim/vim90
.vimrc contains (i simplified the file to the last five lines before looking at
this)
filetype on
filetype plugin on
set mouse=
set paste
set laststatus=2
set nocompatible
syntax on
.muttrc contains
set editor="vim"
This results in txt wrapped to 72 chars or thereabouts for original text but quoted text
isn't wrapped (it appears over several lines with a "+" on the following
line(s).
Still, the result is in the right direction :D thank you. I'm getting the
impression this is much more a vim setting than a mutt setting.
--