Tuesday, September 2, 2014

Re: starting position of cursor

> when I start vim on an existing text module I kind of expect it to
> have the cursor in the 1st column of the first line, but some
> setting is causing it to start with the cursor on the first
> non-blank column of the first line

Strange. Normally I'd expect that setting 'sol'/'nosol' would impact
this behavior. However, based on my testing, it doesn't seem to.

> any help getting it to start with the cursor in column 1 line 1
> will be appreciated

Well, a workaround that feels a little dirty to me:

augroup StartOfLine
autocmd StartOfLine BufRead * normal 0
augroup END

It seems to do what you want.

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

Post a Comment