From 5ed49c533a43cc2ebf46070b2c873987415706b3 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 6 Feb 2016 20:50:30 +0100 Subject: Fix _vim_ refresh problem --- vim/.vimrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index e34fb73..7aaaac7 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -42,11 +42,13 @@ set smartcase map s :let @/="" -autocmd InsertEnter * :setlocal nohlsearch -autocmd InsertLeave * :setlocal hlsearch +autocmd InsertEnter * :setlocal nohlsearch +autocmd InsertLeave * :setlocal hlsearch + +" redraw wiki instance when managed via e.g. _i3wm scratch buffer_ +autocmd FocusGained *.wiki :redraw! autocmd FileType scheme setlocal shiftwidth=2 tabstop=2 expandtab -autocmd FileType java setlocal shiftwidth=4 tabstop=4 expandtab autocmd FileType vimwiki setlocal noswapfile vnoremap cc "+y -- cgit v1.2.3