On 1/28/13 6:07 PM, Egmont Koblinger wrote:
Do you guys like this feature, do you think it could make it into official
bash?
If so, let me come up with a proper patch (it's going to be much more
complicated in order to support double wide characters. The current one is
just a quick demo
the command
and then run it. With vim, you can press gj and gk for your purpose here.
(Actually I always nnoremap j to gj and k to gk in my vimrc. :)
I've quickly prototyped such a feature. Please apply the attached patch,
put this in your .inputrc:
\e[1;5A: backward-line
\e[1;5B: forward-line