On Mar 19, 3:16 pm, James Vega <[email protected]> wrote:
> This is expected behavior.  See ":help 'startofline".  You'll likely
> want to ":set nostartofline" for the behavior you desire.

Hi James,
Setting "nostartofline" solves the problem, but it results in keeping
the cursor column also for CTRL-F, gg ... which in my opinion is not
natural.

Presently, the situation is as follows:
1)
set sol (default)
set nohidden (default)
autocmd g`" in .vimrc (default .vimrc)
Result: the cursor column is remembered with :bprevious

2)
set sol (default)
set hidden (to be able to edit a new buffer without
saving)
autocmd g`" in .vimrc (default .vimrc)
Result: the cursor column is NOT remembered with :bprevious

In my opinion, the cursor column should be remembered in case 2)

Best regards
Jean Johner

-- 
You received this message from the "vim_dev" 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_dev+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Raspunde prin e-mail lui