| Age | Commit message (Collapse) | Author |
|
Make a plugin out of a Stack Overflow post for a better autoread
augroup.
The `autoread` setting in vim will automatically reload a file if it's
been changed outside of vim (if you've made unsaved changes vim will
prompt before loading the file). By default, however, vim doesn't
automatically detect when a file has changed. It only happens when you
do certain things. This sets up an autocmd to force a check a bit more
often by tying into the CursorHold events. A bit hackish it seems but it
works like a charm.
This has been sorely needed especially since yesterday when I was
switching git branches in a project several times and editing various
files only to be alerted upon saving that the file on disk has changed.
Previously I would say it was a minor annoyance to have to type :e! in
those situations. Yesterday it was a freaking pain in the glaiven since
it happened unexpectedly so many times and after I was ready to
commit/save edits.
|
|
Copy of Tim Pope's paste helper. I didn't want the full unimpaired.vim
but this functionality is really useful, so including it here in a
separate plugin.
|
|
Copied from
https://github.com/godlygeek/vim-files/blob/master/plugin/vsearch.vim
which resembles https://github.com/bronson/vim-visual-star-search but
uses the # and * keys directly instead of <leader>*. Allows text in the
current visual selection to be searched for as you would a word with #
and *.
|