Skip to main content
improved answer with .vimrc solution as well
Source Link
wisbucky
  • 1k
  • 9
  • 6

One quick fix is to disable syntax highlighting. Sometimes the code syntax highlighting will cause the foreground text to be the same color as the vimdiff background color, making the text "invisible".

:syntax off

If you want to automatically do this for vimdiff, then add this to the end of your ~/.vimrc:

if &diff
    syntax off
endif

One quick fix is to disable syntax highlighting. Sometimes the code syntax highlighting will cause the foreground text to be the same color as the vimdiff background color, making the text "invisible".

:syntax off

One quick fix is to disable syntax highlighting. Sometimes the code syntax highlighting will cause the foreground text to be the same color as the vimdiff background color, making the text "invisible".

:syntax off

If you want to automatically do this for vimdiff, then add this to the end of your ~/.vimrc:

if &diff
    syntax off
endif
Source Link
wisbucky
  • 1k
  • 9
  • 6

One quick fix is to disable syntax highlighting. Sometimes the code syntax highlighting will cause the foreground text to be the same color as the vimdiff background color, making the text "invisible".

:syntax off