最新消息:

vim-plugin: 907th/vim-auto-save(自动保存)

vim niuge678 559浏览 0评论

说明

let g:auto_save = 1  " enable AutoSave on Vim startup

可以看官网有解释:https://github.com/907th/vim-auto-save

let g:auto_save_events = ["InsertLeave"]

The events on which AutoSave will perform a save can be adjusted using the g:auto_save_events option. 

let g:

I often see in vim plugin something like these :

let g:variable
let b:variable
let l:variable

global-variable g: Global.
buffer-variable b: Local to the current buffer.
local-variable l: Local to a function.

就是给全局变量赋值。

转载请注明:牛哥678 » vim-plugin: 907th/vim-auto-save(自动保存)

与本文相关的文章

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址