aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/.vimrc8
1 files 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 <leader>s :let @/=""<CR>
-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