On Saturday, March 15, 2014 6:02:11 AM UTC+13, Srikanth Cherla wrote:
>
> I recently switched to using Vi keybindings in bash shell ... ^L (Ctrl + l) does not clear screen any more.
With bash vi mode there are two keymaps, corresponding to vim's normal mode and insert modes, called vi-command and vi-insert. ctrl-L works by default in vi-command mode, so typing <esc><ctrl-l> will do it, but needs another keystroke "a" to get back to insert mode.
For ctrl-L to work in insert mode, you need a ~/.inputrc file, that specifies the keymap:
set keymap vi-insert
"\C-L": clear-screen
> alias ^L='clear'
You have to press enter to invoke an alias, and it has to be the first word on the line, not at all like the ctrl-L you're used to.
Regards, John Little
--
--
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.
Friday, March 14, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment