diff options
-rw-r--r-- | vim/.vimrc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |