replit / codemirror-vim

Vim keybindings for CM6
https://www.npmjs.com/package/@replit/codemirror-vim
MIT License
268 stars 27 forks source link

Insert mode maps don't support character insertion #149

Closed tenmajkl closed 7 months ago

tenmajkl commented 7 months ago

When I have mapping vim.map("aa", "á", "insert"); and write aa it doesn't paste á as expected. It only erases aa but doesn't write anything.

nightwing commented 7 months ago

Which version are you using, support for this was added in v6.0.14 and it works on https://raw.githack.com/replit/codemirror-vim/master/dev/web-demo.html now

tenmajkl commented 7 months ago

This problem happens in overleaf and its the only place I've tested it, my bad. So its probably not updated there.

nightwing commented 7 months ago

Indeed, they have an old version that doesn't support :normal command too. Hopefully they will update it soon.