On Sunday 18 April 2010 09:50:42 ext Andre Poenitz wrote: > On Sun, Apr 18, 2010 at 10:58:34AM +1000, Brad Hubbard wrote: > > Not sure how comprehensive fakevim emulation is supposed to be but > > when attempting yank inner word "yiw" the fakevim plugin interprets > > the i as the input mode command. this also effects commands like "viw" > > and "viwp" which can be handy for replacing a word with yanked text. > > If this support is not planned how are others replacing a word with > > yanked text? I can of course use a register and "cw" but that's a bit > > long winded as is "s/word/newword/". I suppose I could get motivated > > and try to implement this myself but maybe this is on someone's to do > > list? > > There is no plan. Features are added as soon as someone needs them and > finds the time to implement it. > > There is already support for 'diw', making 'yiw' work might be a matter > of copying/tweaking five or six lines. And, of course, a contribution > would be highly welcome ;-)
I just took the liberty to add the half line needed to make yiw work: static bool subModeCanUseTextObjects(int submode) { - return submode == DeleteSubMode; + return submode == DeleteSubMode || submode == YankSubMode; } But it looks like the text object area still needs quite a bit of work. Andre' _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator