On Saturday, April 5, 2014 8:05:58 PM UTC+13, aRkadeFR wrote:
> Why Ctrl^w doesn't remove only the previous word?
It's from the ancient teletype line handling. If I run
$ stty -a | grep werase
I see
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
So,
$ stty werase ^@
$ bind c-w: backward-kill-word
is a lot closer to vim, but not the same, in that in your example one "/" char are included in each word.
You could put the "stty werase ^@" in your .bashrc. (That worked for me.)
Note that the usual place for bash key bindings is ~/.inputrc, and if you want an insert mode binding it's tricky (maybe because bash isn't in insert mode yet when .inputrc is processed). My .inputrc now looks like:
set keymap vi-command
"]": vi-yank-arg
set keymap vi-insert
"\C-l": clear-screen
"\C-w": backward-kill-word
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.
No comments:
Post a Comment