Skip to content

Commit 33ccb24

Browse files
committed
patch 8.0.0534: defaults.vim does not work well with tiny features
Problem: Defaults.vim does not work well with tiny features. (crd477) Solution: When the +eval feature is not available always reset 'compatible'.
1 parent 878c263 commit 33ccb24

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

runtime/defaults.vim

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" The default vimrc file.
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last change: 2017 Mar 08
4+
" Last change: 2017 Apr 01
55
"
66
" This is loaded if no vimrc file was found.
77
" Except when Vim is run with "-u NONE" or "-C".
@@ -26,6 +26,16 @@ if &compatible
2626
set nocompatible
2727
endif
2828

29+
" When the +eval feature is missing, the set command above will be skipped.
30+
" Use a trick to reset compatible only when the +eval feature is missing.
31+
if 1
32+
nnoremap : :"
33+
endif
34+
silent normal :set nocompatible
35+
if 1
36+
nunmap :
37+
endif
38+
2939
" Allow backspacing over everything in insert mode.
3040
set backspace=indent,eol,start
3141

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
534,
767769
/**/
768770
533,
769771
/**/

0 commit comments

Comments
 (0)