Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am random-integer on github.
  • I am arstoien (https://keybase.io/arstoien) on keybase.
  • I have a public key ASAj4fhKUAMmHrF__hUwbn0X_tXnpibjdSecqIXX16wEwQo

To claim this, I am signing this object:

@random-integer
random-integer / _vimrc
Created October 14, 2018 04:08
My _vimrc
source $VIMRUNTIME/vimrc_example.vim
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg1 = substitute(arg1, '!', '\!', 'g')