Friday, March 26, 2010

Re: Is there a good reason not remembering cursor column when switching buffers

Hi Jean!

On Fr, 26 Mär 2010, Jean Johner wrote:

> When you use "set nohidden", :next and :prev really load files from
> disk, so that the BufReadPost condition is met in the autocmd of
> your .vimrc.
> With "set hidden", it is no longer the case and the cursor column is
> no longer remembered.
> (the advantage of "set hidden" is that you can switch without saving)
>
> If you suppress the BufReadPost autocmd, it is the same. For example
> with
> gvim -u NONE file1 file2
> :next, :prev do not keep cursor column.

So use the BufWinEnter event for your autocmd.


regards,
Christian

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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: