Skip to content

Conversation

@koturn
Copy link

@koturn koturn commented Oct 4, 2025

NeovimはデフォルトでLuaをサポートしているようなので,Neovim対応してみました.
rogue.vimで使用されているLuaからのVimインタフェース関数のうち,Neovimのものと差異があったのは下記のとおりです.

項目 Vim Neovim
Vim scriptとして式評価 vim.eval() vim.api.nvim_eval()
コマンド実行 vim.command() vim.api.nvim_command()
ビープ音 vim.beep() 対応関数なし
vim.api.nvim_command('silent normal! <C-g>') で代替

また, :sh コマンドはneovimでは削除されているため,'!' キー押下時は :sh コマンドがサポートされていない旨のメッセージを表示するようにしました.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant