-
我看了 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
我只知道文档里有 vim.g 应该很少见,可能是可以自己定义全局变量到里边,我也不太清楚,我觉得各种前缀挺混乱的,不知道有没有人可以解释解释。 |
Beta Was this translation helpful? Give feedback.
-
我觉得算是总结得还不错的说法 In lua 95% of the time you'll want to use Mapleader and plugin variables are under Buffer local variables are under And env variables are in vim.env. |
Beta Was this translation helpful? Give feedback.
我觉得算是总结得还不错的说法
:help
option-list will take you to a list of options with a short description.:help
E355 is where you can find the list with the full description of every option.In lua 95% of the time you'll want to use
:help
vim.opt for setting config values. Do read the help page becausevim.opt
it is pure magic.Mapleader and plugin variables are under
vim.g.
Buffer local variables are under
vim.bo
.And env variables are in vim.env.
https://www.reddit.com/r/neovim/comments/r6ar6y/looking_for_list_of_all_vim_api_options/