I am using a VTE based terminal. By manually sending the following command in a bash session, I see the scrollback buffer moving up by one line, so I am pretty confident the escape sequence is right:
I then added it to my
.inputrc but it does not work. I tried various combination of keys and escape sequences without success: whenever I press CTRLk it just exits from vi insertion mode and nothing more.
Here is my full
set editing-mode vi # Line cursor in editing mode, block cursor in command mode set vi-ins-mode-string \1\e[5 q\2 set vi-cmd-mode-string \1\e[2 q\2 set show-mode-in-prompt on set keymap vi-insert Control-l: clear-screen Control-k: "\e[2T" Control-j: "\e[S" set keymap vi-command Control-k: "\e[2T" Control-j: "\e[S"