I am writing a comment plugin that supports commenting in visual line mode. I tried using vim.cmd "stopinsert"
for returning back to normal mode, but it doesn't work. How can I return back to normal mode?
1 Answer
I find out that I can do that with vim.api.nvim_input("<esc>")
, but I am not sure if there is a better alternative