mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
Add vim.cmd as an alias for nvim_command (#11446)
This commit is contained in:
@@ -277,6 +277,10 @@ setmetatable(vim, {
|
||||
__index = __index
|
||||
})
|
||||
|
||||
-- An easier alias for commands.
|
||||
vim.cmd = vim.api.nvim_command
|
||||
|
||||
-- These are the vim.env/v/g/o/bo/wo variable magic accessors.
|
||||
do
|
||||
local a = vim.api
|
||||
local validate = vim.validate
|
||||
|
Reference in New Issue
Block a user