Vimcraft Docs / vim.opt - Editor Options

vim.opt - Editor Options

The vim.opt interface provides an ergonomic way to set editor options.

Available Options

// Line numbers
vim.opt.number = true;           // Show line numbers

// Cursor highlighting
vim.opt.cursorLine = true;       // Highlight current line

See Also