Skip to content

Unknown option: cfg #345

Closed
Closed
@zenixls2

Description

@zenixls2
  • rust.vim version: git commit f45cdae
    Steps to reproduce:

mine installation is through vim-plug.
by changing the order of these two lines, different results will occur:

Plug 'rust-lang/rust.vim'
Plug 'cespare/vim-toml'

Expected vs. actual behavior:

if vim-toml is loaded before rust.vim, no error will occur.
otherwise, vim will output something like:

"Cargo.toml" 10L, 252C
Error detected while processing FileType Auto commands for "*":
E518: Unknown option: cfg

and vim-toml will be ignored (no color for the script).
The error message is produced by this line
vim version is

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Sep 18 2016 14:42:40)

Paste debugging info from the Rust Vim plugin via one of the following
commands: :RustInfo, :RustInfoToClipboard, or :RustInfoToFile <filename>.

these won't work.

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