Tuesday, April 15, 2014

Re: my invisible characters are not displayed properly

On Tuesday, April 15, 2014 9:56:06 AM UTC-4, FlashBurn wrote:
> On Tuesday, April 15, 2014 9:26:27 AM UTC-4, Jürgen Krämer wrote:
>
> > Hi,
>
> >
>
> >
>
> >
>
> > FlashBurn wrote:
>
> >
>
> > > For some reason my invisible characters are not displayed properly. I
>
> >
>
> > > have to source my vimrc a second time for the 'list' setting to work.
>
> >
>
> > >
>
> >
>
> > > Here is my setting for 'listchars'
>
> >
>
> > > set listchars=tab:►\ ,eol:¬,trail:●
>
> >
>
> > >
>
> >
>
> > > The results of the invisibles not being displayed is in the attached
>
> >
>
> > > file called invisibles_wrong.jpg.
>
> >
>
> > >
>
> >
>
> > > If I source my vimrc again, everything is working. You can see the
>
> >
>
> > > result in the attached imaged called invisibles_right.jpg
>
> >
>
> > >
>
> >
>
> > > Can anyone explain why this is happening?
>
> >
>
> >
>
> >
>
> > in your .vimrc encoding is probably set to utf-8 only after listchars
>
> >
>
> > is set. Move the line with
>
> >
>
> >
>
> >
>
> > set encoding=utf-8
>
> >
>
> >
>
> >
>
> > before the one with
>
> >
>
> >
>
> >
>
> > set listchars=tab:►\ ,eol:¬,trail:●
>
> >
>
> >
>
> >
>
> > and it should work correctly.
>
> >
>
> >
>
> >
>
> > Regards,
>
> >
>
> > Jürgen
>
> >
>
> >
>
> >
>
> > --
>
> >
>
> > Sometimes I think the surest sign that intelligent life exists elsewhere
>
> >
>
> > in the universe is that none of it has tried to contact us. (Calvin)
>
>
>
> I was so happy to see the answer, but the happiness didn't last long. My encoding is set before the listchars. Here is a snapshot of my vimrc
>
>
>
> " Necessary to show the Unicode glyphs, needed for the vim-powerline plugin.
>
> set encoding=utf-8
>
>
>
> " Set the font
>
> if has('win32')
>
> set guifont=Consolas:h9:b:cANSI
>
> endif
>
>
>
> " Remove Menu from GUI
>
> set guioptions-=m
>
> " Remove Toolbar from GUI
>
> set guioptions-=T
>
>
>
> " ===== <Tab> completion =====
>
> " list:longest - List all matches and complete the longest match
>
> " full - complete the next full match.
>
> set wildmode=list:longest,full
>
> " Do not use the menu one can go through by using <Tab>. Simply list all the
>
> " files.
>
> set nowildmenu
>
>
>
> " Turn on line numbering.
>
> set number
>
>
>
> " Enable syntax highlighting
>
> syntax on
>
>
>
> " Remeber 300 last ex-commands
>
> set history=300
>
>
>
> " Make a buffer hidden when it is abandoned.
>
> set hidden
>
>
>
> " Set the colorscheme
>
> " Note: Keep the colorscheme settings after the syntax on command.
>
> " As it turns out syntax on reloads colorshcheme again.
>
> colorscheme xoria256
>
>
>
> " Turn on the highlight of the line with the cursor.
>
> set cursorline
>
> " Set up how to show tabs, end of line, and trailing spaces.
>
> set listchars=tab:►\ ,eol:¬,trail:●
I'm running a GUI version of Vim, but I have no settings in gvimrc.
I ran :verbose set encoding? listchars? guifont? Here is the result
encoding=utf-8
Last set from ~\vimfiles\vimrc
listchars=tab:<bf> ,eol:<ac>,trail:<bf>
Last set from ~\vimfiles\vimrc
guifont=Consolas:h9:b:cANSI
Last set from ~\vimfiles\vimrc

Any suggestions?

--
--
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: