How does Vim's autoread work?

后端 未结 7 1660
[愿得一人]
[愿得一人] 2021-01-30 10:13

:h autoread says:

When a file has been detected to have been changed outside of Vim and it has not been changed inside of Vim, automatically

7条回答
  •  醉话见心
    2021-01-30 10:59

    As per my posting on superuser.com

    Autoread just doesn't work. Use the following.

    http://vim.wikia.com/wiki/Have_Vim_check_automatically_if_the_file_has_changed_externally

    I got the best results by calling the setup function directly, like so.

    let autoreadargs={'autoread':1} 
    execute WatchForChanges("*",autoreadargs) 
    

    The reason for this, is that I want to run a ipython/screen/vim setup.

提交回复
热议问题