let foo = 'bar'let foo = 1echo foo
option
set textwidth=80" 使用前缀 & 表明引用的是 option ,而不是 variable 。echo &textwidth" 使用定义变量的方式来改变 option 的值。let &textwidth = 80" 80set textwidth?
local option
let &l:number = 1
register
let @a = 'Hello!'
scope
" 定义一个 buffer 范围内的变量 hellolet b:hello = 'world'echo b:hello
