[Qt-creator] my cheers, and two cents
Mark Long
mlong at weatherdata.com
Tue Nov 4 15:42:16 CET 2008
Is anyone else thinking about implementing these vi commands once the
source code is available? I've already got that planned as a todo item
once the Trolls open the flood gates. If anyone else is thinking the
same thing, let me know offline. Perhaps we can work together on it.
-Mark
Nathan Carter wrote:
>>> 10. I disagree that supporting vi keyboard commands must be all-or-
>>> nothing. I would love to navigate without even having to hit Ctrl,
>>> Alt, Meta, or whatever. I would love to set and jump to marks, and
>>> repeat commands with ., and undo accidental navigation with ``.
>>>
>> Getting a list of commands you'd consider "sufficient" would be nice.
>>
>
> Okay, here's my best attempt. I reiterate the words of the earlier
> poster who did this for emacs and said they really weren't sure if
> they'd managed to be exhaustive. But this would be a great start.
>
> Navigation
> h j k l (plus arrow keys of course)
> H M L
> z<Enter> z- z.
> <Enter>
> 0 % { } w e b
> almost all of these preceded by numbers as well, as in 100j
> (in general most vi commands can be preceded by a repetition number)
> Searching
> /<Pattern>
> ?<Pattern>
> N n
> # *
> and with these the option to highlight all matches ("hlsearch" in vi)
> Jumping
> m<Char>
> `<Char>
> ``
> G g <Number>G
> Insertion
> I i A a O o
> R r C c
> and of course <Esc> to end insertion mode
> Cut/Copy/Paste
> dw d$ dl dt<Char> df<Char> dd
> d<Navigation> as in dG dg d/<Pattern> d?<Pattern> etc.
> and all of those with numbers in them, as in d3w or 5dd
> and all of these with y instead of d, for copy instead of cut
> and all of these with c instead of d, for change instead of cut
> P p
> X x
> Undo/Redo
> u (means undo last action, even if it was an undo)
> . (means redo last action, even if it was an undo)
> Thus uu results in no change, but u... results in four undos.
> Other
> J
>
> Phew! The good news here is that most of these map directly to
> something the editor already does, but they just let us do it in a way
> that's hand-efficient, and that we're used to, and that can be
> manipulated with repetition numbers and the dot. Some of them are
> new, such as J, and the repetition numbers just mentioned, as well as
> the dot, but most are not. If you want to really make vi users happy,
> support q and @ too!
>
> Nathan
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20081104/fbda47fa/attachment.html
More information about the Qt-creator-old
mailing list