1 Mar 2011 14:59
Re: Vimpulse and vim-mode
Vegard Øye <vegard_oye <at> hotmail.com>
2011-03-01 13:59:11 GMT
2011-03-01 13:59:11 GMT
On 2011-02-28 21:57 +0100, Frank Fischer wrote:
> On 2011-02-28 21:45 +0100, Frank Fischer wrote:
>
>> On Mon, Feb 28, 2011 at 04:23:21PM +0100, Vegard Øye wrote:
>>
>>> If it is possible to reliably distinguish linear changes from
>>> non-linear ones in `after-change-functions', we can choose the
>>> appropriate representation accordingly. Any invocation of, e.g.,
>>> `self-insert-command' will be represented as a linear change,
>>> while anything that doesn't fit the linear mold is represented
>>> as keystrokes.
>>
>> Well, but must "linear changes" are very easily covered by the
>> keystrokes version (e.g., insertion of "abc" is just "abc").
>> Others are problematic (note that vim-mode's repeat system is
>> keystroke based and linear changes have never been problems).
I am replying to both of your last two posts.
My point is that auto-completion /is/ a linear change. In fact,
disregard the word "linear" (probably the most abused word in the
mathematical dictionary), and try to think of a series of completion
commands as a kind of "bumbling typist":
"Now, what is that word I want to type, 'abacus'? So, a-b-a-c-u-s
[6 letters]. No, that's not right, although the word does start
with 'ab': Backspace, Backspace, Backspace, Backspace [4 times].
How about, hm, 'abbreviation'? b-r-e-v-i-a-t-i-o-n. No, that's
not exactly right either ..."
(Continue reading)
RSS Feed