From 8fc2da1cc93eaae4ed94f1d35762190aa595bc62 Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Tue, 16 Sep 2014 00:01:38 +0200 Subject: [PATCH] Added better digraphs --- vimrc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/vimrc b/vimrc index 54e19fd..4824406 100644 --- a/vimrc +++ b/vimrc @@ -196,3 +196,25 @@ function! HLNext(blinktime) exec 'sleep ' . float2nr(a:blinktime / (2*blinks) * 1000) . 'm' endfor endfunction + +" VimScript Highlighting is so fucking distracting +augroup VimNoHighlight + autocmd! + autocmd BufEnter .vimrc syntax off +augroup END + +augroup NoEdits + autocmd! + autocmd SwapExists * let v:swapchoice = 'o' + autocmd SwapExists * echomsg ErrorMsg + autocmd SwapExists * echo 'Duplicate edit session (you are now editing readonly)' + autocmd SwapExists * echohl None +augroup END + +inoremap ShowDigraphs + +function! ShowDigraphs() + digraphs + call getchar() + return "\" +endfunction