El sábado, 15 de marzo de 2014 04:20:13 UTC, John Little escribió: > 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
^L works after pressing <Esc>. I don't know how I missed that. I did try it a few times before posting the question and it didn't work then. My sincere apologies for posting the question, and thank you to those who replied. Srikanth -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
