我经常看到在vim插件类似这样:
let g:variable let b:variable let l:variable
我对vim文档和互联网上的这些字母’g’,’b’,’l’进行了长时间的研究,但我发现注意到。
那么这些字母对应是什么呢?什么是完整的字母表?
请参阅:help internal-variables
原文链接:https://www.f2er.com/bash/390004.html它列出以下类型:
(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.