Friday, September 23, 2016

Re: surprising behavior with -u: variable defaults not set?

On Fri, Sep 23, 2016 at 09:27:24PM +0200, Dominique Pellé wrote:
>
> That's probably because when using ~/.vimrc file, it implies
> that vim runs with 'nocompatible' mode, whereas when you
> use vim -u ... it runs in 'compatible' mode.
>
> See :help 'compatible' and :help -u
>
> If you add "set compatible" in your ~/.vimrc near the top,
> before moving it, then I'd expect vim -u /tmp/.vimrc to work
> as when using the default ~/.vimrc.

Exactly so. Thanks for clearing that up for me.

Danek

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