Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33296

FakeVim's "normal" Ex command doesn't work well with patterns

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 17.0.0
    • FakeVim
    • None

      The normal Ex command on vim doesn't operate on all lines specified by a pattern. It just does it on the current line.

      Given this example text
      ```
      Line 1
      Line 2
      Line 3
      ```
      And this command
      ```
      :0,$ normal A;
      ```
      There should be this resulting text, as tested in vim

      ```
      Line 1;
      Line 2;
      Line 3;
      ```

      But fakevim just does the "A;" operation on the current line

      ```
      Line 1;
      Line 2
      Line 3
      ```

      I've also checked that the command ":0,$ delete" works but ":0,$ normal dd" deletes just the current line.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hjk hjk
            pmsoft a d
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes