Add changed vi keybindings
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fb01e684a8
commit
5da339191d
|
@ -54,6 +54,23 @@ in {
|
||||||
bleopt history_share=1
|
bleopt history_share=1
|
||||||
bleopt filename_ls_colors="$LS_COLORS"
|
bleopt filename_ls_colors="$LS_COLORS"
|
||||||
|
|
||||||
|
# Bash vim mode keybindings
|
||||||
|
if [[ $- == *i* ]]; then # in interactive session
|
||||||
|
set -o vi
|
||||||
|
|
||||||
|
ble-bind -m vi_imap -f 'ENTER' 'vi_imap/complete'
|
||||||
|
ble-bind -m vi_imap -f 'TAB' 'vi_imap/complete'
|
||||||
|
|
||||||
|
ble-bind -m vi_imap -f 'j j' 'vi_imap/normal-mode'
|
||||||
|
ble-bind -m vi_imap -f 'ESC' 'vi_imap/normal-mode'
|
||||||
|
|
||||||
|
ble-bind -m vi_nmap -f 'h' 'vi_nmap/insert-mode'
|
||||||
|
ble-bind -m vi_nmap -f 'i' 'vi-command/backward-line'
|
||||||
|
ble-bind -m vi_nmap -f 'j' 'vi-command/backward-char'
|
||||||
|
ble-bind -m vi_nmap -f 'k' 'vi-command/forward-line'
|
||||||
|
ble-bind -m vi_nmap -f 'l' 'vi-command/forward-char'
|
||||||
|
fi
|
||||||
|
|
||||||
# end of .bashrc
|
# end of .bashrc
|
||||||
[[ ''${BLE_VERSION-} ]] && ble-attach
|
[[ ''${BLE_VERSION-} ]] && ble-attach
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue