mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-11 04:23:47 -05:00
Set nocompatible
This commit is contained in:
@@ -8,15 +8,13 @@ else
|
|||||||
let g:loaded_sensible = 'yes'
|
let g:loaded_sensible = 'yes'
|
||||||
endif
|
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.
|
" 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
|
" 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
|
" overriding options in the user's vimrc, but still override options in the
|
||||||
" system vimrc.
|
" system vimrc.
|
||||||
@@ -132,6 +130,13 @@ if has('langmap') && exists('+langremap') && &langremap && s:MaySet('langremap')
|
|||||||
set nolangremap
|
set nolangremap
|
||||||
endif
|
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'))
|
if empty(mapcheck('<C-U>', 'i'))
|
||||||
inoremap <C-U> <C-G>u<C-U>
|
inoremap <C-U> <C-G>u<C-U>
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user