Sunday, November 3, 2013

Re: jump to true beginning of line

On 2013-11-03 14:07, Christian Brabandt wrote:
> On Sa, 02 Nov 2013, Tim Chase wrote:
> > Despite its description in the help, 'nostartofline' doesn't seem
> > to respect being in the first column if your jump lands you on a
> > line with leading whitespace. I tested this with 'nosol' set ad
> > line 19 containing leading indentation before characters. Going
> > to the first column of a previous line and issuing "19G" landed
> > me on the first character on line 19 after the indent, not the
> > first column as I would have expected.
>
> I might be misunderstanding the problem, but I think, I don't see
> this:
>
> vim -u NONE -N -c 'call setline(".", ["1234567890", "
> abcd"])|set nosol ruler|norm! 02gg'

Doh, I feel dumb now. Retesting now, I suspect that I indented with a
tab (accidentally had 'noet' set, and used <tab> to indent) at the
beginning of the line, and it landed the cursor on the right-side of
the tab and I misinterpreted that as not being at the actual start of
the line. Looks like it's all good.

-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/groups/opt_out.

No comments:

Post a Comment