Send A Modifier Via vimapinvim_feedkeys in Neovim

July - 2021

Code snippet to remind myself how to do it

local delete_key = vim.api.nvim_replace_termcodes('<BS>', true, false, true)
vim.api.nvim_feedkeys(delete_key, "i", true)
local enter_key = vim.api.nvim_replace_termcodes('<CR>', true, false, true)
vim.api.nvim_feedkeys(enter_key, "i", true)