Created
January 12, 2021 22:32
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Simply add the following to your init.vim: | |
set autoread | |
au CursorHold * checktime | call feedkeys("lh") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit go to others for the tips and clues found the net, I tweaked it for my vim config and works great.