-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
map "jk" to go to normal mode in vi-mode #31
Comments
Hi! Thank you very much for your feedback! You can add the following line in ble-bind -m vi_imap -f 'j k' 'vi_imap/normal-mode' If you want timeout after the key input |
hey @akinomyoga, thx for your fast reply! this is exactly what i was looking for. about the delay. i prefer to press both keys at the same time, because i have to do it the whole day and its faster. in vim i am using https://github.com/kana/vim-arpeggio to be able to use simultaneous keypresses. that really boosted some of my workflows. so if you start doing something about that it would be nice, if i would be able to press both keys at the same time ;-) thx again, great project. finally a reason i can completely switch to bash :-) the abbreviation feature and shell completion were the major reasons for me to stay with fish. |
a thing i'd like to ask too is a mapping in normal and a mapping in insert mode to open the current command in vim. it would be nice to be able to open that command with i think there is a standard mapping for that but i never found the name for that feature. i had that running in fish and zsh too. |
i added
now i can press both keys simultaneously :-) |
Do you mean VISUAL='vim -X'
ble-bind -m vi_imap -f '...' 'edit-and-execute-command'
ble-bind -m vi_nmap -f '...' 'vi-command/edit-and-execute-command' |
@divramod Hi! I implemented a timeout for key bindings. Could you try the latest commit 272344e to see if it works? By the following example, you can trigger ble-bind -m vi_imap -f 'j k' 'vi_imap/normal-mode'
ble-bind -m vi_imap -f 'k j' 'vi_imap/normal-mode'
ble-bind -m vi_imap -T j 40
ble-bind -m vi_imap -T k 40 I also added an extension library # blerc
function blerc/vim-arpeggio-hook {
source "$_ble_base/lib/vim-arpeggio.sh"
bleopt vim_arpeggio_timeoutlen=40
ble/lib/vim-arpeggio.sh/bind -f jk 'vi_imap/normal-mode'
# Here, you can add further simultaneous-key bindings...
# usage: ble/lib/vim-arpeggio.sh/bind [-m keymap] -[fxc@s] kspecs command
}
blehook/eval-after-load keymap_vi blerc/vim-arpeggio-hook |
@divramod I close this issue. If you have any other questions, please feel free to open an issue anytime. |
Hey, thx for the awesome project!!!!
I like to use "jk" in vi-insert-mode to switch to normal mode.
Can you please help me to find the right mapping configuration?
thx in advance!!!
The text was updated successfully, but these errors were encountered: