Friday, March 14, 2014

Re: Clearing screen when using Vi keybindings on Bash command-line

On 2014-03-15 00:36, Marcin Szamotulski wrote:
> On 18:19 Fri 14 Mar, Tim Chase wrote:
>> On 2014-03-14 10:02, Srikanth Cherla wrote:
>> > http://vim.wikia.com/wiki/Use_vi_shortcuts_in_terminal. It's
>> > great, except that ^L (Ctrl + l) does not clear screen any
>> > more. I tried the two options mentioned in the link but neither
>> > of them works. I also tried adding the line
>>
>> Control+L works in Emacs editing mode (which I tend to prefer for
>> general command-line operations), but seems to have strange
>> behavior in vi mode. In some contexts, it seems to correctly
>> clear the screen; but in other contexts (which I haven't
>> completely sussed out), it seems to ignore the control+L. You
>> could try explicitly adding
>>
>> "\C-l": clear-screen
>>
>> in your ~/.inputrc
>
> Just press <Esc> and then CTRL-L, at least it works for me in bash
> in an xterm. It does not work in in the insert mode.

Yeah, I just couldn't figure out how to get .inputrc to perform a
"clear-screen" on control+L in vi-insert mode in addition to
vi-command mode. And there were some edge cases where control+L
*did* work without hitting <esc> first (perhaps before entering a
command?).

-tim


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment