If in specific you would like to avoid the mklink
on Windows or symlinks on Linux/Unix/Mac, you can use small files for the specific languages that simply load base.vim
.
The technique is recommended in :help :syn-files
:
When a language is a superset of another language, it may include the other one,
for example, the cpp.vim
file could include the c.vim
file:
:so $VIMRUNTIME/syntax/c.vim
In your case, to source file base.vim
from the same directory where the language file is located, you can use:
source :h/base.vim
As the whole contents of files javascript.vim
, c.vim
, etc. in your $HOME/vimfiles/after/syntax/
.
If the name syntax/base.vim
is unique, you can also use the runtime
command to load it, which will search the file in the directories listed under 'runtimepath'
:
runtime syntax/base.vim
Or if you want to load all files named syntax/base.vim
in directories listed under 'runtimepath'
, then use runtime!
instead.
markdown syntax
the site offers, as well as more new lines. This will increase your chance of getting answers :)