yi-editor / yi

The Haskell-Scriptable Editor
GNU General Public License v2.0
1.5k stars 200 forks source link

Vim: Missing insert map bindings #644

Open ghost opened 9 years ago

ghost commented 9 years ago

Vim insert mode keybindings are missing a bunch of keybindings, such as C-a. These should be easy to add.

For a full list of keybindings that are available in vim, see: http://vimdoc.sourceforge.net/htmldoc/insert.html

Fuuzetsu commented 9 years ago

We're not looking for perfect emulation, the policy is ‘implement it if someone asks for it’. If you have specific bindings that you want, please request them. ‘all of insert map’ is not a good request

mgajda commented 9 years ago

Did you mean repeating whole last change until the interaction point? Or only last insertion, whether that was before many more interaction or not? Or last insertion by yank/paste commands?

I wonder if this is a new functionality, or is just a keymap issue, since the functionality is available in NormalMap yet?

ghost commented 9 years ago

By C-a in insert mode, I meant repeating the last insertion by pasting it.

So, for example, using iSOMETEXT<Esc>o<C-a> would paste SOMETEXT (the previous insertion) while in insert map.