On Mon, May 02, 2011 at 10:38:03AM +0200, LEVAI Daniel wrote: > Hi! > > I've finally got around a problem when using UTF-8 encoding and mutt + > vim. Here is the solution; if you think it's worth including, then > please do it.
Things work perfectly for me without any of these settings in .vimrc. How are you setting your locale and what terminal/fonts are you using? Do you have any encoding/charset/editor related settings in .muttrc? I've attached my .vimrc for reference. Does it work for you? > Index: snapshot/pkg/MESSAGE > =================================================================== > RCS file: snapshot/pkg/MESSAGE > diff -N snapshot/pkg/MESSAGE > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ snapshot/pkg/MESSAGE 2 May 2011 08:32:18 -0000 > @@ -0,0 +1,8 @@ > +If you are experiencing character display issues while replying to a > +message when using Vim as editor, try including the following in your > +~/.vimrc: > + > +set encoding& " terminal charset: follows current locale > +set termencoding= > +set fileencodings= " charset auto-sensing: disabled > +set fileencoding& " auto-sensed charset of current buffer > Index: stable/pkg/MESSAGE > =================================================================== > RCS file: stable/pkg/MESSAGE > diff -N stable/pkg/MESSAGE > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ stable/pkg/MESSAGE 2 May 2011 08:32:18 -0000 > @@ -0,0 +1,8 @@ > +If you are experiencing character display issues while replying to a > +message when using Vim as editor, try including the following in your > +~/.vimrc: > + > +set encoding& " terminal charset: follows current locale > +set termencoding= > +set fileencodings= " charset auto-sensing: disabled > +set fileencoding& " auto-sensed charset of current buffer > > > Daniel > > -- > LÉVAI Dániel > PGP key ID = 0x83B63A8F > Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
set nocompatible set backspace=2 set autoindent set shiftwidth=8 if has("mouse") set mouse=a endif set showcmd set ruler set hlsearch set noincsearch set nobackup set modeline set noexpandtab set wildmode=longest:list filetype plugin on source $VIMRUNTIME/ftplugin/man.vim au BufNewFile,BufRead svn-commit.* setf svn "subversion code layout if (getcwd() =~ 'svn/svn-') set tabstop=2 shiftwidth=2 expandtab endif if has("syntax") syntax on endif hi Comment ctermfg=darkgreen hi Statement ctermfg=red hi PreProc ctermfg=darkcyan hi Constant ctermfg=darkcyan hi Identifier ctermfg=blue hi SpecialKey ctermfg=lightgreen hi Directory ctermfg=lightgreen hi htmlLink ctermfg=lightblue hi Search ctermfg=black ctermbg=yellow hi IncSearch ctermfg=black ctermbg=yellow hi Pmenu ctermbg=yellow guibg=yellow ctermfg=black guifg=black hi PmenuSel ctermbg=yellow guibg=yellow ctermfg=darkred guifg=red hi PmenuSbar ctermbg=yellow guibg=yellow ctermfg=blue guifg=blue hi IncSearch term=standout cterm=bold ctermfg=7 ctermbg=1 guifg=White guibg=Red if has("gui_running") set guifont=Monospace\ 10 "set guioptions+=f set lines=24 columns=80 colorscheme desert "colorscheme morning endif