On Sun, Feb 12, 2017 at 1:56 PM, K.Takata <[email protected]> wrote:
> Current Windows installer creates a system vimrc which includes
> vimrc_example.vim, but it is not documented as far as I know.
> Now Vim 8.0 has defaults.vim and it is well documented. Maybe the Windows
> installer should create a system vimrc which includes defaults.vim instead
> of vimrc_example.vim. (Or the installer should stop creating a system
> vimrc?)
>
In recent versions of vim, if no vimrc is found, Vim will source
$VIMRUNTIME/defaults.vim which in turn sources
$VIMRUNTIME/vimrc_example.vim which sets a lot of useful settings,
starting with 'nocompatible'. This is however a very recent
development (Vim 8.0, see ":help incompatible-8"); before that, there
was no defaults.vim, vimrc_example.vim was not sourced automatically
(but of course your vimrc could do it), and if you had no vimrc you
started in 'compatible' mode, while if a vimrc was found it was
sourced in 'nocompatible' mode (and if an exrc was found it was
sourced in 'compatible' mode for compatibility with ex and legacy vi).
If you have a vimrc, defaults.vim and vimrc_example.vim won't be
automatically sourced, but I still recommend to source the
vimrc_example.vim because IMHO most of the settings it sets are
useful. The few that I don't like I reset after coming back from it,
e.g.
runtime vimrc_example.vim
filetype indent off
(the example vimrc sets ":filetype plugin indent on" but I don't like
the way Vim does filetype-dependent indentation in the kinds of files
I write).
Best regards,
Tony.
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.