Neovim中NERDTree等多处cursorline不高亮

标题表达的不是很清楚,看下图把

解决方法

添加下面内容到init.vim

" 针对NERDTree
" https://github.com/scrooloose/nerdtree/issues/953#issuecomment-465148857
autocmd ColorScheme * highlight NERDTreeFile ctermfg=251

" 针对普通窗口
" https://github.com/neovim/neovim/issues/9019#issuecomment-446514216
autocmd ColorScheme * highlight Normal ctermbg=NONE

根本原因

这是Neovim的一个Bug被发现于2018年9月,由于优先级很低,至今未修复。
(假如您看到这篇文章时该问题已被修复,请及时联系我,帮助我标记文章状态为过期)

posted @ 2019-03-24 12:41  zhuxiaoxi  阅读(581)  评论(0编辑  收藏  举报