Set nocompatible

This commit is contained in:
Tim Pope
2023-03-08 17:07:35 -05:00
parent a7eea09ba6
commit 5693bb650a

View File

@@ -8,15 +8,13 @@ else
let g:loaded_sensible = 'yes'
endif
if !(exists('g:did_load_filetypes') && exists('g:did_load_ftplugin') && exists('g:did_indent_on'))
filetype plugin indent on
endif
if has('syntax') && !exists('g:syntax_on')
syntax enable
endif
" Use :help 'option' to see the documentation for the given option.
" Disable vi compatibility, if for some reason it's on.
if &compatible
set nocompatible
endif
" Check if an option was set from a file in $HOME. This lets us avoid
" overriding options in the user's vimrc, but still override options in the
" system vimrc.
@@ -132,6 +130,13 @@ if has('langmap') && exists('+langremap') && &langremap && s:MaySet('langremap')
set nolangremap
endif
if !(exists('g:did_load_filetypes') && exists('g:did_load_ftplugin') && exists('g:did_indent_on'))
filetype plugin indent on
endif
if has('syntax') && !exists('g:syntax_on')
syntax enable
endif
if empty(mapcheck('<C-U>', 'i'))
inoremap <C-U> <C-G>u<C-U>
endif