Why is this Vim syntax command not working after running / ftplugin / yaml.vim?
I have the following line in after/ftplugin/yaml.vim
syn match yamlBlockMappingKey /^\s*\zs.*\ze\s*:\%(\s\|$\)/
I also tried this:
execute 'syn match yamlBlockMappingKey /^\s*\zs.*\ze\s*:\%(\s\|$\)/'
The goal is to make vim properly allocated keys that contain spaces, for that matter on thread_stack . The problem is the command doesn't work when I open a new YAML file. I know what after/ftplugin/yaml.vim
is being used as I put the command there echom
and it appears in messages
. Also, if I just take a string and paste it into the command line and execute it, it works. Does anyone know what?
+3
source to share