mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 04:23:51 -05:00
Set nocompatible mode instead of checking it
This commit is contained in:
@@ -3,22 +3,16 @@
|
|||||||
" Maintainer: Adam Stankiewicz <sheerun@sher.pl>
|
" Maintainer: Adam Stankiewicz <sheerun@sher.pl>
|
||||||
" URL: https://github.com/sheerun/vim-polyglot
|
" URL: https://github.com/sheerun/vim-polyglot
|
||||||
|
|
||||||
" We are not supporting non-compatible mode
|
|
||||||
if &compatible
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Listen very carefully, I will say this only once
|
" Listen very carefully, I will say this only once
|
||||||
if exists("did_load_polyglot")
|
if exists("did_load_polyglot")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Line continuation is used here, remove 'C' from 'cpoptions'
|
|
||||||
let s:cpo_save = &cpo
|
|
||||||
set cpo&vim
|
|
||||||
|
|
||||||
let did_load_polyglot = 1
|
let did_load_polyglot = 1
|
||||||
|
|
||||||
|
" We are not supporting non-compatible mode
|
||||||
|
set nocompatible
|
||||||
|
|
||||||
" It can happen vim filetype.vim loads first, then we need a reset
|
" It can happen vim filetype.vim loads first, then we need a reset
|
||||||
if exists("did_load_filetypes")
|
if exists("did_load_filetypes")
|
||||||
au! filetypedetect
|
au! filetypedetect
|
||||||
@@ -3433,7 +3427,3 @@ if exists("did_load_filetypes") && exists("g:polyglot_disabled")
|
|||||||
unlet did_load_filetypes
|
unlet did_load_filetypes
|
||||||
runtime! extras/filetype.vim
|
runtime! extras/filetype.vim
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Restore 'cpoptions'
|
|
||||||
let &cpo = s:cpo_save
|
|
||||||
unlet s:cpo_save
|
|
||||||
|
|||||||
Reference in New Issue
Block a user