spyder-ide / spyder-vim

A plugin for Spyder to enable Vim keybindings
https://www.spyder-ide.org
MIT License
126 stars 26 forks source link

Request for Additional Keybindings #85

Open renormalization2 opened 1 year ago

renormalization2 commented 1 year ago

Hi. I'm currently using Spyder with spyder-vim, and pleased to have such an excellent plugin. Many thanks for releasing this plugin and helping all vim and spyder users around the world. I found it is somewhat incomplete, however, as it lacks some essential keys.

For example, many vim users type 'ctrl-[' instead of the real escape key, which is way more convenient to type on modern qwerty keyboards. Without this keybinding, it is not that comfortable to actively switch between normal and insert modes and make the most of the advantages of vim. I think adding this is the top priority of the others.

Second, currently supported keymaps are not sufficient to scroll the page effectively. I personally use ctrl-e and ctrl-y a lot to adjust the window, and when I want to scroll the screen just one line down, I'm forced to do something like \<s-l>j\<s-m>kkk or \<s-m>jzz4k (kkk to go back to where the cursor was). It's a pain, and I'd rather get my hand off the keyboard to touch the mouse than hit all those more than five awkward keystrokes.

Third, though someone may not think this is essential, I find the } and { keys are helpful when navigating a paragraph since we normally separate code blocks with cr. The ctrl-o and ctrl-i keys are also nice ones, which allow us to get back to the previous cursor position in case we temporarily moved far from the main section.

I'd be more than content if only the spyder-vim supported the first one(ctrl-[). Thanks again for your effort in maintaining this wonderful plugin.

ccordoba12 commented 1 year ago

Hey @renormalization2, thanks for reporting. You said:

Hi. I'm currently using Spyder with spyder-vim, and pleased to have such an excellent plugin. Many thanks for releasing this plugin and helping all vim and spyder users around the world.

Thanks for your kind words! We're really glad to know you find this plugin useful for your work.

For example, many vim users type 'ctrl-[' instead of the real escape key, which is way more convenient to type on modern qwerty keyboards. Without this keybinding, it is not that comfortable to actively switch between normal and insert modes and make the most of the advantages of vim. I think adding this is the top priority of the others.

Ok, good to know. I'll try to implement this keybinding for our next release (0.2.0). I can't commit to add the others because I have very little time available, but this one seems simple enough for me to do it.