Skip to content

请问如何了解.vim 中的set对应.lua中的.opt还是.g #54

Answered by allworldg
allworldg asked this question in Q&A
Discussion options

You must be logged in to vote

我觉得算是总结得还不错的说法
: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 because vim.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/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nshen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants