slightly improved autosave
This commit is contained in:
parent
21a466fbd4
commit
c169c1e2fd
1 changed files with 2 additions and 1 deletions
3
vimrc
3
vimrc
|
@ -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@
|
||||
|
|
Loading…
Reference in a new issue