新手问题 怎么让 vim 编辑器隔一段时间自动保存正在编辑的文档啊。。。

superbatironmans5 · July 13, 2012 · Last by roclv replied at July 16, 2015 · 9603 hits

RT

help 'autosave'

我也一直希望 vim 可以自动保存,就像 gnome 下的 http://scribes.sourceforge.net/ 那样,一有修改就会自动保存

那如何设置 Sublime Text 2 自动保存

#4 楼 @w7938940 sublime text 2 本身就可以自动保存:永远不会丢失刚刚修改的数据

有个选项可以在切换文件时自动保存

// Set to true to automatically save files when switching to a different file or application "save_on_focus_lost": false,

:wq 是习惯

#6 楼 @jinleileiking 为什么我总是习惯用两个大写 Z?

#在~/.vimrc中添加
let autosave=60 #数字单位为秒
You need to Sign in before reply, if you don't have an account, please Sign up first.