Loading ...
Sorry, an error occurred while loading the content.

visual-I / virtualedit, tabs & co.

Expand Messages
  • Johannes Zellner
    Hello, note: you better do `set list to view the following mail. having ve=block and the following text: 0 0 0 1 (64.2067,86.4781) -3 -3 1 1.0161
    Message 1 of 3 , Nov 1, 2000
    • 0 Attachment
      Hello,

      note: you better do `set list' to view the following mail.

      having ve=block and the following text:

      0 0 0 1 (64.2067,86.4781)
      -3 -3 1 1.0161 (63.3891,84.8001)
      -3 1 -3 1.0161 (63.3891,84.8001)
      -3 -1 1 1.02655 (62.8271,83.0187)
      -3 1 -1 1.02655 (62.8271,83.0187)
      -1 -1 -1 1.13489 (69.7585,89.1794)

      now using c-v starting with the cursor on the top-left corner
      to select blockwise the first column including the tabs:

      §§§§§§§§§§§§§§§§1 (64.2067,86.4781)
      §§§§§§§§§§§§§§§§1.0161 (63.3891,84.8001)
      §§§§§§§§§§§§§§§§1.0161 (63.3891,84.8001)
      §§§§§§§§§§§§§§§§1.02655 (62.8271,83.0187)
      §§§§§§§§§§§§§§§§1.02655 (62.8271,83.0187)
      §§§§§§§§§§§§§§§§1.13489 (69.7585,89.1794)

      hitting x results in

      (64.2067,86.4781)
      (63.3891,84.8001)
      (63.3891,84.8001)
      (62.8271,83.0187)
      (62.8271,83.0187)
      (69.7585,89.1794)

      note, that the second column disappeared!

      [-------------------------]

      further: either ve=block or ve= , makes no difference.
      restarting with the first block above and visually selecting
      the tabs between the second and third column by starting
      at the *bottom* with the cursor on the tab and just moving
      the cursor up (using k) results in the following §'s beeing
      visually marked:

      0 0 0 1§§§§§§§(64.2067,86.4781)
      -3 -3 1 1§§§§§§§(63.3891,84.8001)
      -3 1 -3 1§§§§§§§(63.3891,84.8001)
      -3 -1 1 1§§§§§§§(62.8271,83.0187)
      -3 1 -1 1§§§§§§§(62.8271,83.0187)
      -1 -1 -1 1§§§§§§§(69.7585,89.1794)

      weird. using l to move one column right highlights:

      0 0 0 1 §64.2067,86.4781)
      -3 -3 1 1.0161 §63.3891,84.8001)
      -3 1 -3 1.0161 §63.3891,84.8001)
      -3 -1 1 1.02655§§62.8271,83.0187)
      -3 1 -1 1.02655§§62.8271,83.0187)
      -1 -1 -1 1.13489§§69.7585,89.1794)

      note, that it highlights two §'s at the bottom three lines,
      but only one at the top three lines. Hitting sfred yields:

      0 0 0 1fred 64.2067,86.4781)
      -3 -3 1 1.0161 63.3891,84.8001)
      -3 1 -3 1.0161 63.3891,84.8001)
      -3 -1 1 1.02655 62.8271,83.0187)
      -3 1 -1 1.02655 62.8271,83.0187)
      -1 -1 -1 1.13489 69.7585,89.1794)

      the tabs disappeared and only the first line got a `fred' inserted,
      the other lines got 4 spaces instead. (still ve=)


      something is really broken here.

      --
      Johannes
    • AllanKelly@IF.COM
      Hi Johannes. You are right: the block commands were never fixed right when a TAB is split. I wrote the v_b_ , v_b_r, v_b_C, v_b_c, v_b_A, v_b_I
      Message 2 of 3 , Nov 2, 2000
      • 0 Attachment
        Hi Johannes.

        You are right: the block commands were never fixed right when a TAB is
        split.
        I wrote the v_b_<, v_b_>, v_b_r, v_b_C, v_b_c, v_b_A, v_b_I
        'blockwise-operators',
        I guess it was a few years ago. I acknowledged in the help text that known
        TAB-split issues were outstanding, and I should have fixed that. I didn't.

        Looks like I might have returned to the vim-dev fold in the nick of time ;)

        I'll take this on.

        al.

        > ----------
        > From: Johannes Zellner[SMTP:johannes@...]
        > Reply To: vim-dev
        > Sent: 01 November 2000 23:13
        > To: vim-dev
        > Subject: visual-I / virtualedit, tabs & co.
        >
        > Hello,
        >
        > note: you better do `set list' to view the following mail.
        >
        > having ve=block and the following text:
        >
        > 0 0 0 1 (64.2067,86.4781)
        > -3 -3 1 1.0161 (63.3891,84.8001)
        > -3 1 -3 1.0161 (63.3891,84.8001)
        > -3 -1 1 1.02655 (62.8271,83.0187)
        > -3 1 -1 1.02655 (62.8271,83.0187)
        > -1 -1 -1 1.13489 (69.7585,89.1794)
        >
        > now using c-v starting with the cursor on the top-left corner
        > to select blockwise the first column including the tabs:
        >
        > §§§§§§§§§§§§§§§§1 (64.2067,86.4781)
        > §§§§§§§§§§§§§§§§1.0161 (63.3891,84.8001)
        > §§§§§§§§§§§§§§§§1.0161 (63.3891,84.8001)
        > §§§§§§§§§§§§§§§§1.02655 (62.8271,83.0187)
        > §§§§§§§§§§§§§§§§1.02655 (62.8271,83.0187)
        > §§§§§§§§§§§§§§§§1.13489 (69.7585,89.1794)
        >
        > hitting x results in
        >
        > (64.2067,86.4781)
        > (63.3891,84.8001)
        > (63.3891,84.8001)
        > (62.8271,83.0187)
        > (62.8271,83.0187)
        > (69.7585,89.1794)
        >
        > note, that the second column disappeared!
        >
        > [-------------------------]
        >
        > further: either ve=block or ve= , makes no difference.
        > restarting with the first block above and visually selecting
        > the tabs between the second and third column by starting
        > at the *bottom* with the cursor on the tab and just moving
        > the cursor up (using k) results in the following §'s beeing
        > visually marked:
        >
        > 0 0 0 1§§§§§§§(64.2067,86.4781)
        > -3 -3 1 1§§§§§§§(63.3891,84.8001)
        > -3 1 -3 1§§§§§§§(63.3891,84.8001)
        > -3 -1 1 1§§§§§§§(62.8271,83.0187)
        > -3 1 -1 1§§§§§§§(62.8271,83.0187)
        > -1 -1 -1 1§§§§§§§(69.7585,89.1794)
        >
        > weird. using l to move one column right highlights:
        >
        > 0 0 0 1 §64.2067,86.4781)
        > -3 -3 1 1.0161 §63.3891,84.8001)
        > -3 1 -3 1.0161 §63.3891,84.8001)
        > -3 -1 1 1.02655§§62.8271,83.0187)
        > -3 1 -1 1.02655§§62.8271,83.0187)
        > -1 -1 -1 1.13489§§69.7585,89.1794)
        >
        > note, that it highlights two §'s at the bottom three lines,
        > but only one at the top three lines. Hitting sfred yields:
        >
        > 0 0 0 1fred 64.2067,86.4781)
        > -3 -3 1 1.0161 63.3891,84.8001)
        > -3 1 -3 1.0161 63.3891,84.8001)
        > -3 -1 1 1.02655 62.8271,83.0187)
        > -3 1 -1 1.02655 62.8271,83.0187)
        > -1 -1 -1 1.13489 69.7585,89.1794)
        >
        > the tabs disappeared and only the first line got a `fred' inserted,
        > the other lines got 4 spaces instead. (still ve=)
        >
        >
        > something is really broken here.
        >
        > --
        > Johannes
        >
        >
        >
        --

        Allan Kelly
        0403 534 092
        allankelly@...




        Part of the Halifax Group, Intelligent Finance is a division of Halifax plc, Registered in England No. 2367076, Registered Office: Trinity Road, Halifax, West Yorkshire HX1 2RG.
      • Bram Moolenaar
        ... [...] ... [...] ... This is a known problem. The virtualedit feature still has quite a few problems, this is one of them. It s in the todo list. ...
        Message 3 of 3 , Nov 2, 2000
        • 0 Attachment
          Johannes Zellner wrote:

          > having ve=block and the following text:
          [...]
          > now using c-v starting with the cursor on the top-left corner
          > to select blockwise the first column including the tabs:
          [...]
          > hitting x results in
          >
          > (64.2067,86.4781)
          > (63.3891,84.8001)
          > (63.3891,84.8001)
          > (62.8271,83.0187)
          > (62.8271,83.0187)
          > (69.7585,89.1794)
          >
          > note, that the second column disappeared!

          This is a known problem. The virtualedit feature still has quite a few
          problems, this is one of them. It's in the todo list.

          > further: either ve=block or ve= , makes no difference.
          > restarting with the first block above and visually selecting
          > the tabs between the second and third column by starting
          > at the *bottom* with the cursor on the tab and just moving
          > the cursor up (using k) results in the following �'s beeing
          > visually marked:
          >
          > 0 0 0 1�������(64.2067,86.4781)
          > -3 -3 1 1�������(63.3891,84.8001)
          > -3 1 -3 1�������(63.3891,84.8001)
          > -3 -1 1 1�������(62.8271,83.0187)
          > -3 1 -1 1�������(62.8271,83.0187)
          > -1 -1 -1 1�������(69.7585,89.1794)
          >
          > weird.

          That's the normal way, since the end (under the cursor) is a tab and it's
          included completely. However, when 'virtualedit' is used, it should only
          include one character. And that works correctly.

          > using l to move one column right highlights:
          >
          > 0 0 0 1 �64.2067,86.4781)
          > -3 -3 1 1.0161 �63.3891,84.8001)
          > -3 1 -3 1.0161 �63.3891,84.8001)
          > -3 -1 1 1.02655��62.8271,83.0187)
          > -3 1 -1 1.02655��62.8271,83.0187)
          > -1 -1 -1 1.13489��69.7585,89.1794)
          >
          > note, that it highlights two �'s at the bottom three lines,
          > but only one at the top three lines.

          I don't see this. For me it correctly highlights two columns.

          > Hitting sfred yields:
          >
          > 0 0 0 1fred 64.2067,86.4781)
          > -3 -3 1 1.0161 63.3891,84.8001)
          > -3 1 -3 1.0161 63.3891,84.8001)
          > -3 -1 1 1.02655 62.8271,83.0187)
          > -3 1 -1 1.02655 62.8271,83.0187)
          > -1 -1 -1 1.13489 69.7585,89.1794)
          >
          > the tabs disappeared and only the first line got a `fred' inserted,
          > the other lines got 4 spaces instead. (still ve=)
          >
          > something is really broken here.

          Yep, there is something wrong here. Another item for the todo list...

          --
          A)bort, R)etry, P)lease don't bother me again

          /// Bram Moolenaar Bram@... http://www.moolenaar.net \\\
          \\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org ///
        Your message has been successfully submitted and would be delivered to recipients shortly.