blob: 410a55bf82f2e8d7fed828fef530d3ad22b25e95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
if exists('g:loaded_diff_corrections') || !has('lambda')
finish
endif
let g:loaded_diff_corrections = 1
augroup diff_corrections
autocmd!
" https://vi.stackexchange.com/questions/12847/automatically-disable-cursorline-when-in-diff-mode/12852#12852
if has('patch-8.0.0736')
autocmd OptionSet diff call diff_corrections#Run()
" OptionSet only catches cases where we explicitly enter diff mode.
" This covers cases where the buffer is already in diff mode, as from
" vimdiff.
autocmd BufEnter * call diff_corrections#Run()
else
autocmd BufEnter,FilterWritePost * call diff_corrections#Run()
endif
augroup END
set tabpagemax=200
|