slightly improved autosave

This commit is contained in:
Talia 2018-01-15 19:43:18 +01:00
parent 21a466fbd4
commit c169c1e2fd

3
vimrc
View file

@ -417,10 +417,11 @@ function! TryAutosave()
if &autowriteall==1
silent w
redraw
echo "Autosaving buffers..."
endif
endfunction
au FocusLost * call TryAutosave()
au WinLeave * call TryAutosave()
" au WinLeave * call TryAutosave()
vnoremap <leader>g :<C-u>call <SID>GrepOperator(visualmode())<CR>
nnoremap <leader>g :set operatorfunc=<SID>GrepOperator<CR>g@