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

Re: visual-I / virtualedit, tabs & co.

Expand Messages
  • 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 1 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.