blob: 393d0f4819623a7f1984e6dd4c4af9422cb97e7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  | 
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()
	else
		autocmd BufEnter,FilterWritePost * call diff_corrections#Run()
	endif
augroup END
set tabpagemax=200
  |