On 2019-01-12, Peng Yu wrote:
> On Sat, Jan 12, 2019 at 10:04 AM Peng Yu wrote:
> >
> > On Sat, Jan 12, 2019 at 7:57 AM Bram Moolenaar wrote:
> > >
> > > > I got the following error when I run vim on an ubunut docker image.
> > > > Does anybody know know what is wrong with the vim installation?
> > > > Thanks.
> > > >
> > > > $ vi
> > > > Error detected while processing /root/.vimrc:
> > > > line 401:
> > > > E474: Invalid argument: listchars=tab:?~V?\ ,eol:¬
> > > > Press ENTER or type command to continue
> > >
> > > Looks like the two characters after tab: were corrupted.
> > > Perhaps caused by conversion between encodings.
> >
> > The files are exactly the same on both systems. So the difference
> > should be in vim. What vim compile options affect the encodings?
> >
> > ttys009@10:00:55@~$ grep listchars ~/.vimrc |xxd
> > 00000000: 7365 7420 6c69 7374 6368 6172 733d 7461 set listchars=ta
> > 00000010: 623a e296 b85c 202c 656f 6c3a c2ac 0a b:...\ ,eol:...
> > ttys009@10:01:06@~$ uname
> > Darwin
> >
> > 19a9967ba259:pts@16:01:37@~$ grep listchars ~/.vimrc |xxd
> > 00000000: 7365 7420 6c69 7374 6368 6172 733d 7461 set listchars=ta
> > 00000010: 623a e296 b85c 202c 656f 6c3a c2ac 0a b:...\ ,eol:...
> > 19a9967ba259:pts@16:01:43@~$ uname
> > Linux
>
> It seems that the vim on ubuntu does not recognize the following
> triangle character. Any reason why it is so?
>
> - ▸
I don't know why it isn't working for you. My vim 8.1.685 running
on Ubuntu 16.04.5 LTS and displaying to GNOME Terminal 2.32.0 over
an ssh connection works just fine. I set 'listchars' like this in
my vimrc:
:set listchars+=tab:▸-
where I copied and pasted that triangle from your email.
I also diffed your Ubuntu vim version info against mine and I didn't
see anything obvious to me that would cause such a problem.
(To diff the two "vim --version" outputs, I put them into two
side-by-side buffers (vertically split). Then in each buffer,
I visually-selected the block of features and executed on them:
:s/\_s\+/\r/g
:sort /^./
Finally, I executed:
:windo diffthis
That makes the differences pretty easy to see.)
Could this be a locale issue? Mine is this:
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Regards,
Gary
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment