On 30, Oct, 2001 at 01:20:42AM -0500, Matej Cepl wrote:
> Hi,
> 
> trying to set textwidth in my $EDITOR (i.e., vim 6.0) to 65, but
> even though I have following in my ~/.vimrc, it is always
> initially set to 78, when starting vim as a message editor (well,
> when started as ANY editor for that matter).

In VIM 6.0 use $VIM/ftplugin/mail.vim to make these settings, and use
"setlocal" instead of "set", e.g. (a mix of my own stuff and your
settings):


setlocal tabstop=3
setlocal shiftwidth=3
setlocal noexpandtab
setlocal textwidth=65

" spellcheck "american"
:nmap <F8> :w<CR>:!aspell --language-tag=american --mode=email -c %<CR>:e<CR>
" spellcheck "danish"
:nmap <F7> :w<CR>:!aspell --language-tag=da --mode=email -c %<CR>:e<CR>

" help not using acronyms and such
imap <buffer> HAND Have a nice day
imap <buffer> HTH Hope this helps
imap <buffer> IIRC if I remember correctly
imap <buffer> BTW By the way


You should consider using expandtab in mail, as you can not know what the
recipient has set the TAB character to be displayed as (most likely as 8
SPACEs).

Hope this helps
                                 Morten

-- 
Morten Liebach <[EMAIL PROTECTED]>
PGP-key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD796A4EB
https://pc89225.stofanet.dk/ || http://pc89225.stofanet.dk/

Reply via email to