vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.3k stars 1.14k forks source link

Displayed scrapped after warning message with Gruvbox #2344

Closed GCorbel closed 3 years ago

GCorbel commented 4 years ago

I use the scheme Gruvbox. When I have the message "WARNING: The file has been changed since reading it!!!" when I tried to write a file modified elsewhere, the display is scrapped. This is fixed when I go to the bottom of the file and go back.

Peek 26-11-2020 11-27

Here is my .vimrc

filetype off
set rtp+=~/.config/nvim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

Plugin 'scrooloose/syntastic'
Plugin 'morhetz/gruvbox'

call vundle#end()            " required
filetype plugin indent on    " required

syntax on
set background=dark
let g:gruvbox_contrast_light='hard'
let g:gruvbox_contrast_dark='hard'
colorscheme gruvbox
lcd047 commented 4 years ago

So why do you suspect this has anything to do with syntastic?

GCorbel commented 4 years ago

I don't have the problem when I remove syntastic in the config file. Honestly, I don't know if it comes from Synstastic or Gruvbox. It's a conflict between the two plugins.

lcd047 commented 3 years ago

So when syntastic is disabled you can open the file, modify it from another terminal under Vim's feet, then try to write it and Vim doesn't complain? I can't reproduce that here. :smile:

GCorbel commented 3 years ago

I always have the warning message when I try to write a file modified from outside, and it's normal, but I don't have the display issue.

lcd047 commented 3 years ago

Syntastic has no control over low-level redraws, Vim does. There is an ongoing struggle to fix redraws in all scenarios, it might help to report the problem to vim_dev. See also #822.