Autoread and autowrite in Vim
Don’t save or reload your buffers. Vim can do that for you.
From my .vimrc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<D-s> take too much time. We should not be worried of data
loss, because we have Git and
Additionaly how many times it’s happened to waste time in Chrome, reloading the page n-times, because we had forgot to save in Vim?
update we are sure that everything
You don’t need the scratch plugin
You would like to try a VimL snippet, create a
scratch.vim somewhere. Use
a global mark
mS (S is scratch).
'S you are in your scratch buffer.
Use vim-eval to evaluate (
<C-c) the file, the region or the line.
Other global marks that I use
'0last file edited
But the undo is not user-friendly
Yes, you’re right, try Losh’s gundo
The command is