Version: 3.4.2 (using 4.4.2 (KDE 4.4.2), Arch Linux) Compiler: gcc OS: Linux (x86_64) release 2.6.33-ARCH Ranges don't work correctly for at least the substitute command: An example: "try also" (Couldn't think of anything better) The command -> ":/r/,/o/s/^/ha/" Expected result: "hatry ha haalso" But kate says the command does not exist. Range commands using . (implemented for a previous bug) don't work correctly either: Example: "much much much" The command -> "3:s/much/try/" or ".,.+2s/much/try/" Expected result: "try try try" Result: "much much try" The range seems not to be fully followed. I have had cases where I requested five lines, but kate ended up doing replacements on over 50 lines.
I can confirm this and would really like to see this fixed. I often do visual selections and replace something in them, this doesn't work: - Do a visual selection - Start typing a command - At the moment the : is entered, the visual selection is gone
Simon: Is this still an issue with all your changes?
Dominik: There's a bit of a mix of bugs here: a) The range is not entirely respected e.g. the 3:s/much/try/" & ".,.+2s/much/try/" examples; b) The "r" command is not implemented; & c) Pressing ":" in Visual Mode immediately dismisses the selection. a) Seems to be fixed; b) is not, and should be a separate bug report; as for c) - well, the selection is still technically immediately dismissed, but the fact that this is an operation to be carried out over the selected range is stored. I can't immediately come up with a scenario where this would give a different result to Vim, so I'd class it as "fixed for all practical purposes".
Matthijs, Elias: Can you test again by following http://kate-editor.org/get-it/ ?
Git commit 0ea97afbeddb19f598bab98e01f31869852bdf62 by Boris Egorov. Committed on 12/02/2016 at 02:12. Pushed by egorov into branch 'master'. Add tests for #235862, just to make sure it is fixed REVIEW: 127045 M +4 -0 autotests/src/vimode/modes.cpp http://commits.kde.org/ktexteditor/0ea97afbeddb19f598bab98e01f31869852bdf62