2013-03-28 9 views
48

私は、多くの場合、これらのようなものをプラグインvimの中で参照してください。VIM:LET gの間の違いは何ですか:、Bましょう:など

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

私はvimのマニュアルの約インターネット上の長い研究を行いましたこれらの文字は 'g'、 'b'、 'l'ですが、私は気付きました。

だから、これらの文字は何に対応していますか?そして、手紙の完全なリストは何ですか?

答えて

75

それが一覧表示されます: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. 
+1

ありがとうございます。その文書は見つけにくかった。 – arthropode

9

B:

リットルカレントバッファにローカルな:グローバル

グラム関数に対してローカルに役立つ内部変数

関連する問題