Friday, March 14, 2014

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

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

> alias ^L='clear'
>
> in my .bashrc but that didn't work. Can someone suggest what else I
> can do?

The alias doesn't work for reasons I'd expect for multiple reasons.

-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