VIM 自动保存的最佳方案?

我喜欢那种每过几秒就自动保存一次的,就像 webstorm 和 Pycharm 那样。
VIM 我用 :help 'autosave'发现如下帮助:

'autosave' 'as' number  (default 0)                                         
           ¦Automatically write the current buffer to file N seconds after the last change has been made and when 'modified' is still set.         
           ¦Default: 0 = do not autosave the buffer.                            
    Alternative: have 'autosave' use 'updatetime' and 'updatecount' but make    
    them save the file itself besides the swapfile. 

然后我就在.vimrc里添加:set autosave as 5 ,意思应该是修改过了5秒就自动保存吧,但是它提示:Unknown option: autosave 什么情况?

阅读 14.4k
1 个回答

let autosave=5,那个asautosave的缩写,不是个单词 23333333333333333

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进