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:
parent
9522f1a352
commit
744ad0749d
4
vimrc
4
vimrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue