On Oct 18, 12:26 am, John Wiersba <[email protected]> wrote:
> I just noticed this:  that when invoking vim (or vi) from the command
> line, the cursor is placed on the first non-blank character in the
> first line, if possible, instead of in column 1 always.  Is there
> anyway to turn this behavior off?  I already have "nostartofline" set,
> so at least it doesn't do this when switching between buffers.  Or can
> someone modify "nostartofline" to also also include when starting vim?
>
> Thanks!

This will work, in your .vimrc:

autocmd VimEnter * normal! 0

Or, from the command line:

vim -c "normal! 0" file.abc

Many people instead restore the last known cursor position in the
file, as set from .viminfo. See :help last-position-jump.

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

Reply via email to