Remove all invalid nvimrc and ngvimrc references

"vimrc" refers to all files that are used to configure Neovim. The main
configuration file is init.vim nowadays.

All nvimrc references that are left refer to a local ".nvimrc" which is read
if 'exrc' is set. ".ngvimrc" references were completely wiped.

Closes #3552.
This commit is contained in:
Marco Hinz
2015-11-11 01:00:04 +01:00
parent 947e356cda
commit 85b1052c3c
8 changed files with 19 additions and 25 deletions

View File

@@ -2412,9 +2412,7 @@ do_source (
*/
p = path_tail(fname_exp);
if ((*p == '.' || *p == '_')
&& (STRICMP(p + 1, "nvimrc") == 0
|| STRICMP(p + 1, "ngvimrc") == 0
|| STRICMP(p + 1, "exrc") == 0)) {
&& (STRICMP(p + 1, "nvimrc") == 0 || STRICMP(p + 1, "exrc") == 0)) {
if (*p == '_')
*p = '.';
else