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

Re: Issue 118 in vim: `cib` doesn't work at the start of a line, while `ci'` does

Expand Messages
  • vim@...
    Comment #1 on issue 118 by fritzoph...@gmail.com: `cib` doesn t work at the start of a line, while `ci ` does http://code.google.com/p/vim/issues/detail?id=118
    Message 1 of 4 , Mar 8, 2013
      Comment #1 on issue 118 by fritzoph...@...: `cib` doesn't work at the
      start of a line, while `ci'` does
      http://code.google.com/p/vim/issues/detail?id=118

      This is intentional. It's no just about multiple lines, it's about nesting.
      Consider

      1. if (
      2. a &&
      3. (b || c) &&
      4. d)

      If you place the cursor at the beginning of line 3, vab will select text on
      all four lines, because the cursor is immediately inside the parenthesis
      block starting at line 1 and ending at line 4. If your suggestion is
      implemented, only "(b || c)" on line 3 would be selected. This would break
      things in annoying and unexpected ways for things like =ab in C code.

      --
      You received this message because this project is configured to send all
      issue notifications to this address.
      You may adjust your notification preferences at:
      https://code.google.com/hosting/settings

      --
      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      ---
      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • vim@...
      Comment #2 on issue 118 by randomen...@gmail.com: `cib` doesn t work at the start of a line, while `ci ` does http://code.google.com/p/vim/issues/detail?id=118
      Message 2 of 4 , Mar 8, 2013
        Comment #2 on issue 118 by randomen...@...: `cib` doesn't work at the
        start of a line, while `ci'` does
        http://code.google.com/p/vim/issues/detail?id=118

        Gotcha. I guess I'm not acquainted with the internals of how textobjects
        work, so I didn't think about how it might break other features. Thanks
        for the info, feel free to close :)

        --
        You received this message because this project is configured to send all
        issue notifications to this address.
        You may adjust your notification preferences at:
        https://code.google.com/hosting/settings

        --
        --
        You received this message from the "vim_dev" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php

        ---
        You received this message because you are subscribed to the Google Groups "vim_dev" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      • vim@...
        Updates: Status: WontFix Comment #3 on issue 118 by lech.lor...@gmail.com: `cib` doesn t work at the start of a line, while `ci ` does
        Message 3 of 4 , Mar 8, 2013
          Updates:
          Status: WontFix

          Comment #3 on issue 118 by lech.lor...@...: `cib` doesn't work at the
          start of a line, while `ci'` does
          http://code.google.com/p/vim/issues/detail?id=118

          (No comment was entered for this change.)

          --
          You received this message because this project is configured to send all
          issue notifications to this address.
          You may adjust your notification preferences at:
          https://code.google.com/hosting/settings

          --
          --
          You received this message from the "vim_dev" maillist.
          Do not top-post! Type your reply below the text you are replying to.
          For more information, visit http://www.vim.org/maillist.php

          ---
          You received this message because you are subscribed to the Google Groups "vim_dev" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
          For more options, visit https://groups.google.com/groups/opt_out.
        Your message has been successfully submitted and would be delivered to recipients shortly.