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'.
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
" The default vimrc file.
|
" The default vimrc file.
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last change: 2017 Mar 08
|
" Last change: 2017 Apr 01
|
||||||
"
|
"
|
||||||
" This is loaded if no vimrc file was found.
|
" This is loaded if no vimrc file was found.
|
||||||
" Except when Vim is run with "-u NONE" or "-C".
|
" Except when Vim is run with "-u NONE" or "-C".
|
||||||
@ -26,6 +26,16 @@ if &compatible
|
|||||||
set nocompatible
|
set nocompatible
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" When the +eval feature is missing, the set command above will be skipped.
|
||||||
|
" Use a trick to reset compatible only when the +eval feature is missing.
|
||||||
|
if 1
|
||||||
|
nnoremap : :"
|
||||||
|
endif
|
||||||
|
silent normal :set nocompatible
|
||||||
|
if 1
|
||||||
|
nunmap :
|
||||||
|
endif
|
||||||
|
|
||||||
" Allow backspacing over everything in insert mode.
|
" Allow backspacing over everything in insert mode.
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
|
|
||||||
|
|||||||
@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
534,
|
||||||
/**/
|
/**/
|
||||||
533,
|
533,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user