Tuesday, September 2, 2014

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

On 2014-09-02 09:13, tooth pik wrote:
> > Strange. Normally I'd expect that setting 'sol'/'nosol' would
> > impact this behavior. However, based on my testing, it doesn't
> > seem to.
>
> > augroup StartOfLine
> > autocmd StartOfLine BufRead * normal 0
> > augroup END
>
> > It seems to do what you want.
>
> yes, that does it, but should that be necessary? Is this a ...
> dare I say it ... bug?

The documentation for 'sol' does mention "buffer changing commands" which
could ambiguously be interpreted to mean that it should take
effect when a file is opened for the first time (after all, it's
changing from no-loaded-buffer to a now-loaded-buffer). I'm not sure
I'd go so far as to call it a bug, but perhaps an unfortunate
inconsistency or documentation ambiguity.

And I suspect that anybody who flies with 'nosol' set would be irked
by the behavior much as you mention.

-tim



--
--
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: