Jens-Wolfhard Schicke wrote:

> Given a file thus:
> 
> foo {
>      bar}{quux}
> 
> and the cursor on the "bar". Pressing ci{<Esc> gives this:
> 
> foo {
> }{quux}
> 
> Now, change the file somewhat:
> 
> foo {bar
>      bar}{quux}
> 
> and the cusor on the second "bar". Pressing ci{<Esc> gives this:
> 
> foo {}{quux}
> 
> I would expect the same behaviour in the first case.

This is a compromise between having "ci" work on characters and on
lines.  consider this:

        int foo() {
           // do something
        }

If you do "ci{" do you really expect to end up with:

        int foo() {}

I expect the more useful:
        int foo() {
           <- cursor here in empty line
        }

I hope this is worth being a bit inconsistent.

-- 
hundred-and-one symptoms of being an internet addict:
255. You work for a newspaper and your editor asks you to write an
     article about Internet addiction...in the "first person."

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

  • Bug with ci{ Jens-Wolfhard Schicke
    • Re: Bug with ci{ Bram Moolenaar

Raspunde prin e-mail lui