Monday, March 30, 2020

Re: .vimrc problem with "autocmd" section, how to resolve?

Hi,

On Saturday, March 28, 2020 at 8:57:27 PM UTC+1, Nicholas Papadonis wrote:
I debugged this further:

This block causes problems with a newer vim:

" Return to last edit position when opening files (You want this!)
autocmd BufReadPost *
     \ if line("'\"") > 0 && line("'\"") <= line("$") |
     \   exe "normal! g`\"" |
     \ endif

I would check these commands:

:verbose set cpo?
:scriptnames
:verbose autocmd

What do they print out? Might be good to compare their output with the other systems where the problem does not exist. By the way, what is the version of the other (older) vim?

Tom M

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8a723af9-27d9-437c-8f1c-88f8104f5f2b%40googlegroups.com.

No comments:

Post a Comment