diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 64255d5..805aee4 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -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('', 'i')) inoremap u endif