It looks like define
and include
can't match on the same line.
Goal: set define
to a simple value and see if it works as intended.
-
Open
sample_a
with:$ vim -Nu NONE sample_a
-
Set the
define
option with::set define=import
-
List all definitions with:
:dlist /
-
Expected result:
1: 1 import foo from 'sample_b';
-
Actual result:
1: 1 import foo from 'sample_b';
It works!
Goal: set include
to a simple value and see if it works as intended.
-
Open
sample_a
with:$ vim -Nu NONE sample_a
-
Set the
include
option with::set include=from
-
List all includes with:
:checkpath!
-
Expected result:
--- Included files in path --- sample_b
-
Actual result:
--- Included files in path --- sample_b
It works!
Goal: set define
and include
to simple values that match on the same line and see if both values are honored.
-
Open
sample_a
with:$ vim -Nu NONE sample_a
-
Set the
define
option with::set define=import
-
and the
include
option with::set include=from
-
List all definitions with:
:dlist /
-
Expected result:
1: 1 import foo from 'sample_b';
-
Actual result:
E388: Couldn't find definition
-
List all includes with:
:checkpath!
-
Expected result:
--- Included files in path --- sample_b
-
Actual result:
--- Included files in path --- sample_b
It doesn't work :-(