bash: want CTRL+c to cancel and discard current

line when in ble.sh vim insert mode
This commit is contained in:
teutat3s 2023-04-15 12:44:45 +02:00
parent cf59251f06
commit 6547aa92cf
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -74,6 +74,8 @@ in {
ble-bind -m vi_nmap -f 'j' 'vi-command/backward-char' 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 'k' 'vi-command/forward-line'
ble-bind -m vi_nmap -f 'l' 'vi-command/forward-char' ble-bind -m vi_nmap -f 'l' 'vi-command/forward-char'
ble-bind -m vi_imap -f 'C-c' discard-line
fi fi
# end of .bashrc # end of .bashrc