Vladimir A. Pavlov wrote:

> A few days ago I wrote the following to [EMAIL PROTECTED]:
> 
> > I'd like to switch to vim but there is an annoying issue with
> > it that I couldn't solve.
> > 
> > When the cursor is at a tab character most editors display
> > the cursor at the beginning of the interval the tab character
> > occupies as follows (_ is the cursor):
> > 
> > _       if (a > c) ...
> > 
> > Vim does the same in insert or replace mode. But in normal
> > mode the cursor is displayed at the end of the tab character:
> > 
> >        _if (a > c) ...
> > 
> > Is there a way to make vim show the cursor at the beginning
> > of a tab character in normal mode as it does in insert mode?
> > 
> > I tried searching in Google but found nothing unfortunatelly :(
> 
> Then I got a reply that said it's impossible without vim code
> modification so I decided to find out how to fix that.
> 
> I seem to find the solution (the patch is at the end of this
> email) but it is so simple that I can't understand why it hasn't
> been done yet (since I know several people that are irritated by
> this "feature" of vim).
> 
> I guess this mailing list is the best place to ask whether I
> miss anything. Here are my questions:
> 
> 1. Are there any obvious problems/bugs with the patch itself?
>    In other words, does it breaks anything very "basic" so
>    that it definitely breaks some basic functionality or
>    some plugins?

The way it works is intentional.  It's how Vi has always worked.  I have
no intention to change it.

Now we could start a long discussion about yet another option...  Keep
in mind that switching this option on would have the risk of breaking
some plugins and making users wonder why Vim doesn't behave as expected.

> 2. If there are no problems with it, do you have any wishes to
>    apply it to the trunk? (And what the reasons for not doing
>    so?)

I haven't tried it, but I would suspect there are a few more places to
change.

>    If so, I would add an option called, say, cursorattabstart
>    that will trigger the new behaviour and resend the patch
>    here for anyone of you to commit.

-- 
You cannot have a baby in one month by getting nine women pregnant.

 /// 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
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui