Skip to content

Instantly share code, notes, and snippets.

@johnwylie70
Created January 12, 2021 22:32
Show Gist options
  • Save johnwylie70/4dc84a2d5300dcff1e92e7e94a76b707 to your computer and use it in GitHub Desktop.
Save johnwylie70/4dc84a2d5300dcff1e92e7e94a76b707 to your computer and use it in GitHub Desktop.
How to get Vim or NeoVim to automatically reload files that have changes externally
Simply add the following to your init.vim:
set autoread
au CursorHold * checktime | call feedkeys("lh")
@johnwylie70
Copy link
Author

Credit go to others for the tips and clues found the net, I tweaked it for my vim config and works great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment