Skip to content

Spurious scriptencoding error when checking multiple files #363

@puremourning

Description

@puremourning

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:

  • Create a file dir1/file1.vim with the following:
set encoding=utf-8
scriptencoding utf-8
  • Create a file dir2/file2.vim with the following:
set encoding=utf-8
  • run vint dir1/ dir2/

Expected result: no error
Actual result:

dir2/file2.vim:1:1: Set encoding before setting scriptencoding (see :help :scriptencoding)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions