Tuesday, September 2, 2014

Re: [bug? doc clarification?] starting position of cursor

On 2014-09-02 22:34, Christian Brabandt wrote:
> Perhaps. I can reproduce your test case:
>
> #v+
> 0 2116 chrisbra@debian ~/vim_test % vim -u NONE -N -i NONE <(printf
> ' x\n') -c 'set nosol t_ti= t_te= |:echo getpos(".")|:q!'
> "/proc/self/fd/11" [fifo/socket] 1L, 7C [0, 1, 6, 0]
> 0 2117 chrisbra@debian ~/vim_test % vim -u NONE -N -i NONE <(printf
> ' x\n') -c 'set sol t_ti= t_te= |:echo getpos(".")|:q!'
> "/proc/self/fd/11" [fifo/socket] 1L, 7C [0, 1, 6, 0]
> #v-

Okay, at least you're seeing what I saw. As mentioned, it's not
provably a bug, but just violates my intuition.

> BTW: nvi behaves the same here, it always positions the cursor on
> the first non-blank.

I'd expect nvi to behave like 'sol' was set, as there's a note in
its help that 'sol' is (re)set when 'compatible' is set.

-tkc

PS: I see that you too are running on Debian. I'm curious how you
have your machine set up to run Vim and develop it? Do you have the
vim package installed, and then also occasionally build Vim from
source? And if building your main vim from source, to where do you
install it? I'd enjoy running something slightly more recent than
what comes out of the box in Debian Stable, but not enough to
overcome the inertia of shrugging and accepting whatever comes out of
the box with Debian Stable.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment