GCC: use -fuse-cxa-atexit by default
[unleashed-userland.git] / components / editor / vim / patches / vi-compatible.patch
blob08d16894087c6147d405a1f920293dbde2cba628
1 When started as "vi", run in vi-compatibility mode, and don't source
2 defaults.vim. This can be submitted upstream.
4 --- a/runtime/defaults.vim 2016-09-12 07:41:04.000000000 -0700
5 +++ b/runtime/defaults.vim 2016-09-15 15:55:10.820971765 -0700
6 @@ -13,6 +13,12 @@
7 finish
8 endif
10 +" When started as "vi", operate in compatible mode (unless you have a
11 +" .vimrc).
12 +if v:progname ==? "vi"
13 + finish
14 +endif
16 " Bail out if something that ran earlier, e.g. a system wide vimrc, does not
17 " want Vim to use these default values.
18 if exists('skip_defaults_vim')