You are not logged in.

#1 2015-09-07 17:57:10

smnpl
Member
From: Germany
Registered: 2015-01-07
Posts: 54

[solved] xfce terminal Vim display bugs

Hi,

in my terminal I've got certain displaying bugs using Vim. Please see attached screenshots:
kj7yFf0.png
Ezi0bSAt.png

You can see for example:
- the one single quote actually is a double quote
- left bracket is cut in a half
- some letters as well
- some spacer pipes to the right panel are completely invisible, some not

Is there way to fix this? Seems like it is not related to a specific font, as I tried multiple. As well I played with anti aliasing and hinting settings in xfce, with no permanent success so far...

Best regards
Simon

EDIT: Solved - Seems like it was related to the font.

Last edited by smnpl (2015-09-08 19:11:45)


The road to wisdom? - Well, it's plain and simple to express: Err and err and err again but less and less and less. - Piet Hein -

Offline

#2 2015-09-07 18:58:07

JatinKaushal
Member
Registered: 2015-07-10
Posts: 25

Re: [solved] xfce terminal Vim display bugs

I don't know much about this, but which graphics card do you have?

Just a shot in the dark

Offline

#3 2015-09-07 18:59:36

smnpl
Member
From: Germany
Registered: 2015-01-07
Posts: 54

Re: [solved] xfce terminal Vim display bugs

Nvidia with nvidia driver package


The road to wisdom? - Well, it's plain and simple to express: Err and err and err again but less and less and less. - Piet Hein -

Offline

#4 2015-09-07 19:11:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] xfce terminal Vim display bugs

Please paste your .vimrc and the output of `echo $TERM` in your terminal and in vim.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-09-07 19:16:20

smnpl
Member
From: Germany
Registered: 2015-01-07
Posts: 54

Re: [solved] xfce terminal Vim display bugs

echo $TERM
xterm

.vimrc

" syntax higlighting always on
syntax on
set t_Co=256
set background=dark
colorscheme pride

set number
set encoding=utf-8

" brackets
inoremap {      {}<Left>
inoremap {<CR>  {<CR>}<Esc>O
inoremap {{     {
inoremap {}     {}
inoremap (      ()<Left>
inoremap (<CR>  (<CR>)<Esc>O
inoremap ((     (
inoremap ()     ()

" tabs
filetype plugin indent on
set tabstop=4
set shiftwidth=4
" next command replaces tabstop with approriate number of spaces
" set expandtab

" show tabs with special character
"set list
"set listchars=tab:>-,trail:~,extends:>,precedes:<

set autoindent

" highlight selection
set hlsearch

" pathogen plugin manager
execute pathogen#infect()

" activate airline status bar plugin
set laststatus=2

" neocomplete plugin
let g:neocomplete#enable_at_startup = 1

" nerd tree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree ~/| endif
map <F4> :NERDTreeToggle<CR>

" tagbar plugin
nmap <F8> :TagbarToggle<CR>

" vim-go settings
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1

" vim startup size
if has("gui_running")
  " GUI is running or is about to start.
  " Maximize gvim window (for an alternative on Windows, see simalt below).
  " set lines=999 columns=999
else
  " This is console Vim.
  if exists("+lines")
    " set lines=60
  endif
  if exists("+columns")
    " set columns=180
  endif
endif

" set font
if has("gui_running")
  if has("gui_gtk2")
    set guifont=Source\ Code\ Pro\ Light\ 12
  elseif has("gui_win32")
    set guifont=Consolas:h11:cANSI
  endif
endif

The road to wisdom? - Well, it's plain and simple to express: Err and err and err again but less and less and less. - Piet Hein -

Offline

#6 2015-09-07 20:42:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] xfce terminal Vim display bugs

And does the problem persist if you use a vanilla rc? Or disable the plugins?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-09-08 18:40:49

smnpl
Member
From: Germany
Registered: 2015-01-07
Posts: 54

Re: [solved] xfce terminal Vim display bugs

Hi, just tested deactivating all the Plugins / Settings one by one. No Improvement so far.
I've got the same symptom on my Laptop with Intel graphics as well. So its not related to the video adapter either.


The road to wisdom? - Well, it's plain and simple to express: Err and err and err again but less and less and less. - Piet Hein -

Offline

#8 2015-09-08 19:07:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] xfce terminal Vim display bugs

Does disabling all settings/plugins include the colorscheme?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2015-09-08 19:10:52

smnpl
Member
From: Germany
Registered: 2015-01-07
Posts: 54

Re: [solved] xfce terminal Vim display bugs

Yep, colorscheme as well.
But... though I did test different fonts, I just switched to Source Code Pro which seems to be fine so far. No issues for now... Seems like it's related to the font after all.
Thanks for your help and thoughts, I'll mark as solved for now.

Edit:
Some more feedback on that topic. Actually it seems that its related the a specific Font. The fairly popular "Hack", which seems to have a little bug in the OTF builds. TTF are working well so far. See that github issue for updates and further information: https://github.com/chrissimpkins/Hack/issues/74

Last edited by smnpl (2015-09-10 18:17:31)


The road to wisdom? - Well, it's plain and simple to express: Err and err and err again but less and less and less. - Piet Hein -

Offline

Board footer

Powered by FluxBB