summaryrefslogtreecommitdiff
path: root/.config/nvim/general
diff options
context:
space:
mode:
authoraktersnurra <grydholm@kth.se>2021-02-23 21:11:49 +0100
committeraktersnurra <grydholm@kth.se>2021-02-23 21:11:49 +0100
commit1aca2302cbd0015496f5a272f49bc45f56ebb54d (patch)
tree6b1cbb997130c99412a5e71fa242b7ae7628a1ff /.config/nvim/general
parent5b883c75e9d5bb93e635d798fd1aeb9ab8c8300a (diff)
autoload files if changed when in buffer
Diffstat (limited to '.config/nvim/general')
-rw-r--r--.config/nvim/general/settings.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/nvim/general/settings.vim b/.config/nvim/general/settings.vim
index 1f9ae7f..47066ef 100644
--- a/.config/nvim/general/settings.vim
+++ b/.config/nvim/general/settings.vim
@@ -39,5 +39,9 @@ au! BufWritePost $MYVIMRC source % " auto source when writing to init.vm al
set laststatus=2 " To get galaxyline to display
+" Autoload file if changed.
+set autoread
+au CursorHold * checktime
+
" You can't stop me
cmap w!! w !sudo tee %