-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious scriptencoding error when checking multiple files #363
Comments
Hi there, I can confirm that I'm seeing this issue with vint 0.4a3 on my .vim directory (it actually contains my vimrc file) my vimrc sets encoding first and then scriptencoding. there's one more file that sets scriptencoding and that causes the error to show up |
Workaround: policies:
ProhibitEncodingOptionAfterScriptEncoding:
enabled: false |
Hi there, I can confirm that adding the snippet of configuration that @offa mentioned to It also takes out all legit checks for this within files though. The way I worked arount this issue was to modify my " vint: -ProhibitEncodingOptionAfterScriptEncoding
set encoding=utf-8
scriptencoding utf-8
" vint: +ProhibitEncodingOptionAfterScriptEncoding |
I just use my fork which includes the fix #364 |
The warning "Set encoding before setting scriptencoding (see :help :scriptencoding)" is reported when a
set encoding=
is found in any file after:scriptencoding
To reproduce:
dir1/file1.vim
with the following:dir2/file2.vim
with the following:vint dir1/ dir2/
Expected result: no error
Actual result:
The text was updated successfully, but these errors were encountered: