fs and
frQ: What are vim.g, vim.o, etc? When should
I use which? A: vim is a bridge to Vimscript vars,
functions, etc. vim.g is a part of vim's global
dictionaries, of which there are five:
g - global varsw - window-scopedb - buffer-scopedt - tabpage-scopedv - v: variablesScoped dictionaries can be scoped with integers, which represent the
target of the scope, e. g. buffer id. vim.o accesses vim
options, set via the :set command. Similarly to the
dictionaries, there are vim.go, vim.bo and
vim.wo for setting global and scoped options.