You are not logged in.

#1 2019-05-14 13:51:56

posop
Member
Registered: 2019-05-14
Posts: 13

neovim producing garbage characters in urxvt

NeoVim in in URXVT is not displaying characters correctly, and sometimes will not refresh the screen until I go to that line at which point the line will refresh.  The problem is intermittent, but always presents itself durring folding in NeoVim. 

when I opend my ~/.config/nvim/init.vim it looked like this:

  1 " reload ~/.config/nvim/init.vim with:   :source $MYVIMRC
  2                                                                                            
 52 
 17 
···································
 51 

as you can see the line numbering is off.  when I scroll down ("j") the numbers update to correct values.

Unfolded ~/.vimrc file,  The ~/.config/nvim/init.vim is a different file, but has identical text at the moment.

  3 " vim UI {{{
  4     set showmode   " display the current mode
  5     set showcmd   " show command in bottom bar
  6     set cursorline   " highlight current line
  7     set number   " turn on line numbers
  8     "   set listchars=tab:â~V¸Â·,eol:$   " make invisible charachters better
  9     set wildmenu   " visual autocomplete for command menu
 10     set showmatch   " highllight matching [{()}]
 11     set incsearch   " search as characters are entered
 12     set hlsearch   " highlight matches
 13 " }}}
 14 
 15 " Folding {{{
 16     set foldenable   " enable folding
 17     set foldlevelstart=99   " opens all folds on buffer open
 18     set foldnestmax=10   " 10 nested folds are maximum
 19     set foldmethod=indent   " fold based on indent level
 20     autocmd FileType vim :setlocal foldmethod=marker
 21     autocmd FileType vim :setlocal foldlevel=0
 22     autocmd FileType sh :setlocal foldmethod=marker
 23     autocmd FileType sh :setlocal foldlevel=0
 24 " }}}

and here it is folded in Vim:

  3 " vim UI {{{
  4 +--  9 lines: set showmode   " display the current mode------------------------------------
 13 " }}}
 14     
 15 " Folding {{{
 16 +--  8 lines: set foldenable   " enable folding--------------------------------------------
 24 " }}}

here it is folded in NeoVim:

  3 +-- 14 lines: vim UI ······································································
 14 
 15 +-- 10 lines: Folding ·····································································

and if the problem is in urxvt here is my ~/.Xresources:

 31 URxvt.background:   [90]#000000
 32 URxvt.foreground:   white
 33 
 34 URxvt.intensityStyles:  false
 35 URxvt.font:     xft:Ubuntu Mono:size=14
 36 URxvt.scrollBar:    false
 37 URxvt.cursorColor:  magenta
 38 URxvt.perl-ext-common: font-size
 39 
 40 URxvt.transparent:  true
 41 URxvt.shading:      20
 42 
 43 !! Extensions:
 44 URxvt.perl-ext-common:  default,matcher,resize-font
 45 URxvt.colorUL:      #4682b4
 46 !! font-size
 47 URxvt.keysym.C-k:   font-size:increase
 48 URxvt.keysym.C-j:   font-size:decrease
 49 URxvt.keysym.C-l:   font-size:reset

My configuration:
OS - Arch Linux 4.19.38-1-lts
editor - vim 8.1.1186
editor - nvim v0.3.5
terminal - rxvt-unicode (urxvt) v9.22

Also note the status bar in NeoVim is wonkey as well. I would love to use neovim but I need this to work. Can you help me get my settings right?

Thank you in advance for any help you can provide.

Last edited by posop (2019-05-14 14:02:26)

Offline

#2 2019-05-14 14:31:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,509

Re: neovim producing garbage characters in urxvt

······································································

is ISO-8859-1 rendering of "·"
Outputs of

localectl
locale
locale -a

Offline

#3 2019-05-14 18:00:16

posop
Member
Registered: 2019-05-14
Posts: 13

Re: neovim producing garbage characters in urxvt

Here is the output:

[phil@archlinux ~]$ localectl
   System Locale: LANG=C
       VC Keymap: n/a
      X11 Layout: n/a
[phil@archlinux ~]$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
[phil@archlinux ~]$ locale -a
C
POSIX
en_US.utf8

Offline

#4 2019-05-14 18:08:05

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

Re: neovim producing garbage characters in urxvt


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB