Vim and Neovim syntax highlighting support for the Varnish and Vinyl Cache Configuration Language (VCL).
Add this plugin spec to your Neovim configuration:
return {
"varnishcache-friends/vim-varnish",
lazy = false,
}lazy = false keeps the filetype detection available at startup.
- Add
Plug 'varnishcache-friends/vim-varnish'to~/.vimrc :PlugInstallor$ vim +PlugInstall +qall
Setting g:vcl_fold enables folding VCL via the syntax engine.
Any block, comment, or inline-C that extends over more than one
line can be folded using the standard Vim and Neovim fold-commands.
This option is off by default.
" Default
let g:vcl_fold = 0Run the syntax-highlighting tests with:
./test/run.shTo run them with Neovim:
VIM_BIN=nvim ./test/run.shThis plugin is licensed under BSD License. See LICENSE for details.