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
|
if &autowriteall==1
|
||||||
silent w
|
silent w
|
||||||
redraw
|
redraw
|
||||||
|
echo "Autosaving buffers..."
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
au FocusLost * call TryAutosave()
|
au FocusLost * call TryAutosave()
|
||||||
au WinLeave * call TryAutosave()
|
" au WinLeave * call TryAutosave()
|
||||||
|
|
||||||
vnoremap <leader>g :<C-u>call <SID>GrepOperator(visualmode())<CR>
|
vnoremap <leader>g :<C-u>call <SID>GrepOperator(visualmode())<CR>
|
||||||
nnoremap <leader>g :set operatorfunc=<SID>GrepOperator<CR>g@
|
nnoremap <leader>g :set operatorfunc=<SID>GrepOperator<CR>g@
|
||||||
|
|
Loading…
Reference in a new issue