Closed BigfootN closed 7 years ago
Do you use any other fonts? Eg, vim dev icons? Maybe post your .vimrc, too. So far I could not reproduce your problem, though I am on vim and not neovim.
Thank you for your answer.
Here is my vimrc:
"
" /$$ /$$ /$$ /$$$$$$ /$$$$$$ /$$
" | $$ | $$|__/ /$$__ $$ /$$__ $$|__/
" | $$ | $$ /$$ /$$$$$$/$$$$ | $$ \__/ /$$$$$$ /$$$$$$$ | $$ \__/ /$$ /$$$$$$
" | $$ / $$/| $$| $$_ $$_ $$ | $$ /$$__ $$| $$__ $$| $$$$ | $$ /$$__ $$
" \ $$ $$/ | $$| $$ \ $$ \ $$ | $$ | $$ \ $$| $$ \ $$| $$_/ | $$| $$ \ $$
" \ $$$/ | $$| $$ | $$ | $$ | $$ $$| $$ | $$| $$ | $$| $$ | $$| $$ | $$
" \ $/ | $$| $$ | $$ | $$ | $$$$$$/| $$$$$$/| $$ | $$| $$ | $$| $$$$$$$
" \_/ |__/|__/ |__/ |__/ \______/ \______/ |__/ |__/|__/ |__/ \____ $$
" /$$ \ $$
" | $$$$$$/
" \______/
" ************* plugins *************
call plug#begin('~/.vim/plugged')
" -- syntax theme
Plug 'chriskempson/base16-vim'
Plug 'morhetz/gruvbox'
" -- dev icons
Plug 'ryanoasis/vim-devicons'
" -- vim airline
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" -- improve syntax color
Plug 'sheerun/vim-polyglot'
" -- snippets
Plug 'sirver/ultisnips'
Plug 'honza/vim-snippets'
" -- start page
Plug 'mhinz/vim-startify'
" -- code check
Plug 'scrooloose/syntastic'
" -- format
Plug 'Chiel92/vim-autoformat'
" -- code completion
Plug 'Valloric/YouCompleteMe'
Plug 'artur-shaik/vim-javacomplete2'
Plug 'airblade/vim-rooter'
Plug 'tomlion/vim-solidity'
" -- complete brackets, parentheses, ...
Plug 'jiangmiao/auto-pairs'
" -- nerdtree
Plug 'scrooloose/nerdtree'
Plug 'jistr/vim-nerdtree-tabs'
call plug#end()
" ************* editor configuration *************
filetype plugin on
filetype indent on
syntax on
set tabstop=4
set shiftwidth=4
set smarttab
set splitright
set nohlsearch
set autoread
set t_Co=16
set scrolloff=8
" ************* eye-candy configuration *************
" show line numbers
set nu
highlight LineNr ctermfg=26
highlight LineNr ctermbg=25
" colorscheme
set background=dark
colorscheme gruvbox
let g:gruvbox_contrast_dark="hard"
"if filereadable(expand("~/.vimrc_background"))
" let base16colorspace=256
" source ~/.vimrc_background
"endif
"colorscheme base16-default-dark
" ************* Keymaps *************
let mapleader = ","
nnoremap <leader>f :NERDTreeFocus<CR>
nnoremap <leader>t :tabnew<CR>
nnoremap <leader>p :tabprevious<CR>
nnoremap <leader>n :tabnext<CR>
" ************* JavaComplete configuration *************
autocmd FileType java setlocal omnifunc=javacomplete#Complete
" ************* Autoformat configuration *************
autocmd FileType vim,tex,xml let b:autoformat_autoindent=0
let blacklist = ['xml', 'conf']
autocmd BufWritePre * if index(blacklist, &ft) < 0 | :Autoformat
" c, c++
let g:formatdef_my_custom_clang = '"clang-format"'
let g:formatters_c = ['my_custom_clang']
let g:formatters_cpp = ['my_custom_clang']
" ************* Airline configuration *************
let g:airline_powerline_fonts = 1
let g:airline_theme = 'base16'
" symbols
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" extensions
let g:airline_extensions = ['tabline']
let g:airline#extensions#default#section_truncate_width = {}
let g:airline#extensions#syntastic#enabled = 1
let g:airline#extensions#tabline#enabled = 1
" left sections
let g:airline_section_a = airline#section#create(['mode'])
let g:airline_section_b = airline#section#create(['%t'])
let g:airline_section_c = airline#section#create([])
" center
let g:airline_section_getter = ''
" right sections
let g:airline_section_x = ''
let g:airline_section_y = airline#section#create(['filetype'])
let g:airline_section_z = airline#section#create(['%3.3l'])
let g:airline_section_error = airline#section#create(['syntastic'])
let g:airline_section_warning = airline#section#create([''])
" tabline seperations
let g:airline#extensions#tabline#left_sep = 'î‚°'
let g:airline#extensions#tabline#left_alt_sep = 'î‚°'
let g:airline#extensions#tabline#right_sep = ''
let g:airline#extensions#tabline#right_alt_sep = ''
" tabline options
let g:airline#extensions#tabline#show_close_button = 0
let g:airline#extensions#tabline#buffer_nr_show = 0
let g:airline#extensions#tabline#show_buffers = 0
let g:airline#extensions#tabline#show_splits = 0
let g:airline#extensions#tabline#show_tab_type = 0
let g:airline#extensions#tabline#show_tab_nr = 0
" ************* YouCompleteMe configuration *************
let g:ycm_add_preview_to_completeopt = 1
let g:ycm_show_diagnostics_ui = 0
let g:ycm_autoclose_preview_window_after_completion = 1
let g:ycm_confirm_extra_conf = 0
" ************* Startify configuration *************
let g:startify_custom_header = [
\" _ _ _ ",
\" | \\ | | (_) ",
\" | \\| | ___ _____ ___ _ __ ___ ",
\" | . ` |/ _ \\/ _ \\ \\ / / | '_ ` _ \\ ",
\" | |\\ | __/ (_) \\ V /| | | | | | | ",
\" \\_| \\_/\\___|\\___/ \\_/ |_|_| |_| |_| ",
\]
let g:startify_list_order = [
\ [' --------- FICHIERS ---------'],
\ 'files',
\ [' --------- SESSIONS ---------'],
\ 'sessions',
\ [' --------- PROJETS ---------'],
\ 'bookmarks',
\ ]
let g:startify_enable_special = 0
let g:startify_files_number = 5
" projets
let g:startify_bookmarks = [
\ '~/Documents/Prog/mdata/'
\ ]
" ************* Syntastic configuration *************
" basic settings
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" disabled checkers
let g:syntastic_enable_latex_checker = 0
let g:syntastic_enable_tex_checker = 0
let g:syntastic_tex_checkers = []
let g:syntastic_enable_xml_checker = 0
" checker ---- C
let g:syntastic_c_checkers = ["clang_tidy"]
" checker ---- C++
let g:syntastic_cpp_checkers = ["clang_check"]
" ************* NERDTree configuration *************
autocmd VimEnter *
\ if !argc()
\ | Startify
\ | execute 'NERDTreeTabsOpen'
\ | wincmd w
\ | endif
let g:nerdtree_tabs_open_on_console_startup = 1
let g:nerdtree_tabs_synchronize_view = 0
As you can see, I am also using vim dev icons
.
I also tried with a normal font (not patched) and no problem.
Thank you again for all your answer and help
Hm..yes. My bad - still used xterm. It seems to be a font thing. URxvt*font: xft:DejaVu Sans Mono for Powerline:size=11
works for me. Your font does not show me the file symbols, just empty boxes.
Btw: Vim dev icons plugin should be the last plugin loaded :)
Thank you for your answer, so I loaded the vim vim dev icons
in last and it seems to work for now. I'm closing the issue. If I have any more problems related to this issue I'll reopen it.
Thank you again very much.
Hello again, I'm really sorry, but I'm still having problems. I took another shot:
As you can see on the left, there are still those little vertical dots.
Thank you again
No need to be sorry. Have you tried another font like the one I suggested?
Also I would suggest to try vim 8 and post your results here.
Thank you for your help again.
So I took a shot with vim 8 and the dejavu font
:
It's quite different because the vertical dots now seem to stand near the arrows.
Thank you very much again for all your help
@BigfootN Thanks for your screenshots. Honestly I am not sure what's going on there. I can try to take a look in some time but not sure when that'll be.
Hm...interesting. FuraCode Nerd Font works in xterm, but not in rxvt - I do not see any symbols. In Xterm I have with any font I tried to problem that NERDTree cuts symbols in half. I actually went away from NERDTree, because it is so damn heavy ....
Could you try this out? https://github.com/powerline/fonts
And then put URxvt*font: xft:DejaVu Sans Mono for Powerline:size=11
in your .Xresources file.
This works totally fine for me in rxvt. Even to cut symbols are not present.
Sorry for the late response. So I tried your font and disabled the vim-devicons plugin. Unfortunately, I still have problems :
As you can see on the left there are still vertical bars. Thank you again for all your patience and help :) and sorry for the late response :(
@BigfootN Sure no problem. which font is being used currently?
Thank you for your quick response. I'm using the exact same font as @Jeansen suggested me: URxvt*font: xft:DejaVu Sans Mono for Powerline:size=11
.
I am happy I could be of some help :)
Thanks all. :smile: So is this resolved?
Sorry for the late response.
Unfortunately, no, it doesn't seem so :(
Thank you all for your amazing help and patience :)
@BigfootN Sure no problem. Wish I could do more.
Am I to understand this may be more of an issue related to urxvt
? It is not related specifically to the Nerd Font version of the font?
We can leave this issue open for now...
It might be with urxvt. BigfootN, whicht distro are you using?
As I look at your .Xresource config, I can see this line
URxvt*letterSpace: -1
...which is usefull for a narrow fontspace, but maybe it doesn't fit with every font or some icons. Do you have this problem also, when you comment this line out?
urxvt historically has had problems with scalable fonts. I complained about it in 2008: http://lists.schmorp.de/pipermail/rxvt-unicode/2008q3/000659.html
The images aren't available at those links any more, but I still have them so I'll paste them here:
rxvt-monospace-9.png
xterm-monospace-9.png
At the time, the maintainer argued that urvxt was doing it right, even though everybody could see the behavior is different from the other terminal emulators. So urxvt added the letterSpace
resource for users to tune individually. However as you can see, that can cause other problems.
IMHO there is no way to solve this in Nerd Fonts, rather there are three options:
letterSpace
resource, ORmaybe it is also worth a try installing rxvt-unicode-256color since this compilation includes some tweaks for termcap/terminfo?
Sorry for the late response, I really was busy these last few days. So first of all I would like to thank you all for all your help and patience. I think I got it figured out. So I tried to disable the letterSpace
and it seems to come from there. Once disabled, there doesn't seem to be any glitches anymore. So I think I now know where it comes from.
Thank you again for all your precious help.
@BigfootN Sure no problem. Glad you were able to figure things out :smile:
Feel free to add any helpful info, examples, or links to: https://github.com/ryanoasis/nerd-fonts/wiki/Terminal-Emulators
Can we close this issue?
Tank you very much again for all your help and patience :)
Necroing this issue as I think I found a more comprehensive "fix" for it. I have been using urxvt
together with Hack/DejaVu, and had to use letterSpace=-1
to make it render properly (it'd be too wide for my tastes otherwise) - but apparently some fonts don't work well with the size
property, and "glitch" leaving pixels behind as shown in the OP.
This can be fixed by avoiding size
and using pixelsize
instead (even if the two are not equivalent and some tweaking might be required, my size=10
is now pixelsize=12
) - see this reddit comment.
@mftrhu No worries, especially since you added useful information others may find helpful! Appreciate that :smile:
Additionally I have tried to add at least some basic info that might make it easier to find help on these kind of things:
Maybe this one helps: https://github.com/powerline/fonts/issues/176#issuecomment-399626283
At least for me it worked, when I switched from DejaVu Sans Mono to Inconsolata. With DejaVu Sans Mono I had not problems. Only thing was that I set letterSpace=-1
.
So to sum things up, here is what I had before:
URxvt*font: xft:DejaVuSansMonoForPowerline Nerd Font:size=14
URxvt*letterSpace: -1
And now it is only:
URxvt*font: xft:Inconsolata Nerd Font Mono:size=15, xft:DejaVu Sans:size=12
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference.
Hello,
I am having problems when using one of your font in urxvt. It sometimes leaves pixels behind. Here is an example:
You can see on the left that there are some kind of pixels. I tried with gnome-terminal and no problem.
Here is my Xresoures:
I am under archlinux and I installed the fonts from the AUR (nerd-fonts-complete).
Thank you very much in advance