opnsense-ports/editors/vim/files/patch-src_feature.h
Franco Fichtner 30e02fcc81 editors/vim: sync with upstream
Taken from: FreeBSD
2022-09-07 23:01:25 +02:00

21 lines
591 B
C

This allows /usr/local/etc/vim/vimrc to be loaded as a system
vimrc. Note that creating that file will prevent loading
defaults.vim from Vim's runtime.
--- src/feature.h.orig 2022-09-04 15:48:55 UTC
+++ src/feature.h
@@ -710,12 +710,12 @@
/*
* SYS_VIMRC_FILE Name of the system-wide .vimrc file.
*/
-// #define SYS_VIMRC_FILE "/etc/vimrc"
+#define SYS_VIMRC_FILE "%%ETCDIR%%/vimrc"
/*
* SYS_GVIMRC_FILE Name of the system-wide .gvimrc file.
*/
-// #define SYS_GVIMRC_FILE "/etc/gvimrc"
+#define SYS_GVIMRC_FILE "%%ETCDIR%%/gvimrc"
/*
* DFLT_HELPFILE Name of the help file.