I would like to debug my insert mode abbreviations beond :verbose iabbrev
because if I start neovim
vim.cmd([[inoreabbrev idate <c-r>=strftime("%d %b %Y - %H:%M:%S")]])
After a while I have discovered that I have to type idate
followed by Ctrl-o
. Another thing that happens is that after expanding the abbreviation I end up in normal mode.
Any idea why is this happening? Would it be due nvim-cmp plugging or any
Here are some of my insert mode abbreviations:
vim.cmd([[inoreabbrev Fname <c-r>=expand("%:p")<cr>]])
vim.cmd([[inoreabbrev Iname <c-r>=expand("%:p")<cr>]])
vim.cmd([[inoreabbrev fname <c-r>=expand("%:t")<cr>]])
vim.cmd([[inoreabbrev iname <c-r>=expand("%:t")<cr>]])
vim.cmd[[inoreabbrev idate <c-r>=strftime("%b %d %Y %H:%M")<cr>]]