bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] Word definition in vi mode


From: Carlos Pita
Subject: [Bug-readline] Word definition in vi mode
Date: Thu, 25 Feb 2016 14:26:56 -0300

Hi Chet,

what do you think about changing the definition of word (as in
backward-kill-word) in vi mode to better fit the vi definition (this
is taken from vim docs, I'm not sure about POSIX vi):

> A word consists of a sequence of letters, digits and underscores, or a
> sequence of other non-blank characters, separated with white space (spaces,
> tabs, <EOL>).

The main difference is that a vi user would expect "xxx,yyy" to be
split into words as:

'xxx'  ','  'yyy'

and not:

'xxx,' 'yyy'

which I think is emacs take on the matter.

I know I can bind <C-w> to something like '<Esc>bdwa', but this
definition is far from perfect.

Cheers
--
Carlos



reply via email to

[Prev in Thread] Current Thread [Next in Thread]