We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32f5e90 commit ff35c02Copy full SHA for ff35c02
ftdetect/polyglot.vim
@@ -120,6 +120,10 @@ endfunc
120
121
augroup polyglot-observer | augroup END
122
123
+" Restore 'cpoptions'
124
+let &cpo = s:cpo_save
125
+unlet s:cpo_save
126
+
127
" Load user-defined filetype.vim and oter plugins ftdetect first
128
" This is to use polyglot-defined ftdetect always as fallback to user settings
129
augroup filetypedetect
@@ -130,6 +134,10 @@ augroup END
130
134
131
135
132
136
137
+" Switch to compatible mode for the time being
138
+let s:cpo_save = &cpo
139
+set cpo&vim
140
133
141
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
142
143
if !has_key(g:polyglot_is_disabled, 'context')
0 commit comments