vim
vim copied to clipboard
Visual mode is blocking out the highlighted text
Hey, I'm using nord theme for xfce terminal as well as for vim, when I'm using visual mode, the highlighted text are blocked out.
I was wondering if you have any ideas on how to fix this? Thank you!
This is my entire .vimrc if it helps:
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'itchyny/lightline.vim'
Plug 'arcticicestudio/nord-vim'
Plug 'tpope/vim-fugitive'
Plug 'tmux-plugins/vim-tmux'
call plug#end()
"+--- itchyny/lightline.vim ---+
let g:lightline = {
\ 'colorscheme': 'nord',
\ 'active': {
\ 'left': [
\ [ 'mode', 'paste' ],
\ [ 'fugitive', 'filename' ]
\ ]
\ },
\ 'component_function': {
\ 'fugitive': 'LightlineFugitive',
\ 'readonly': 'LightlineReadonly',
\ 'modified': 'LightlineModified',
\ 'filename': 'LightlineFilename'
\ },
\ 'separator': {
\ 'left': '',
\ 'right': ''
\ },
\ 'subseparator': {
\ 'left': '',
\ 'right': ''
\ }
\ }
function! LightlineModified()
if &filetype == "help"
return ""
elseif &modified
return "+"
elseif &modifiable
return ""
else
return ""
endif
endfunction
function! LightlineReadonly()
if &filetype == "help"
return ""
elseif &readonly
return ""
else
return ""
endif
endfunction
function! LightlineFugitive()
if exists("*FugitiveHead")
let branch = FugitiveHead()
return branch !=# '' ? ' '.branch : ''
endif
return ''
endfunction
function! LightlineFilename()
return ('' != LightlineReadonly() ? LightlineReadonly() . ' ' : '') .
\ ('' != expand('%:t') ? expand('%:t') : '[No Name]') .
\ ('' != LightlineModified() ? ' ' . LightlineModified() : '')
endfunction
set number relativenumber
set laststatus=2
let g:lightline.tabline = {
\ 'colorscheme': 'nord',
\ 'left': [ [ 'tabs' ] ],
\ 'right': [ [ 'close'] ] }
colorscheme nord
Fixed with this PR: https://github.com/nordtheme/vim/pull/350
I also ran into the same issue. Until the PR gets merged, I was able to fix it with a workaround, by setting the Visual mode's foreground color manually after loading the theme (the fix does the same through the nord plugin).
# .vimrc
colorscheme nord
highlight Visual ctermfg=NONE