Update syntax highlighting in diff

Remove syntax off as it turned syntax off for the whole session,
replace with diff highlighting and keeping syntax on during diff
This commit is contained in:
Edward Litherland-Smith 2021-02-25 11:48:38 +00:00
parent 9522f1a352
commit 744ad0749d

4
vimrc
View file

@ -31,9 +31,11 @@ set softtabstop=2
au BufRead,BufNewFile *.ipynb setlocal filetype=json au BufRead,BufNewFile *.ipynb setlocal filetype=json
au BufRead,BufNewFile *.md setlocal spell au BufRead,BufNewFile *.md setlocal spell
syntax on syntax on
if &diff if &diff
syntax off highlight! link DiffText MatchParen
endif endif
au OptionSet diff highlight! link DiffText MatchParen
set expandtab set expandtab
set autoindent set autoindent