加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

VIM:let g:,let b:等之间有什么区别?

发布时间:2020-12-15 09:22:34 所属栏目:安全 来源:网络整理
导读:我经常看到在vim插件类似这样: let g:variablelet b:variablelet l:variable 我对vim文档和互联网上的这些字母’g’,’b’,’l’进行了长时间的研究,但我发现注意到。 那么这些字母对应是什么呢?什么是完整的字母表? 请参阅:help internal-variables
我经常看到在vim插件类似这样:
let g:variable
let b:variable
let l:variable

我对vim文档和互联网上的这些字母’g’,’b’,’l’进行了长时间的研究,但我发现注意到。

那么这些字母对应是什么呢?什么是完整的字母表?

请参阅:help internal-variables

它列出以下类型:

                (nothing) In a function: local to a function; otherwise: global 
buffer-variable    b:     Local to the current buffer.                          
window-variable    w:     Local to the current window.                          
tabpage-variable   t:     Local to the current tab page.                        
global-variable    g:     Global.                                               
local-variable     l:     Local to a function.                                  
script-variable    s:     Local to a :source'ed Vim script.                     
function-argument  a:     Function argument (only inside a function).           
vim-variable       v:     Global,predefined by Vim.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读