Skip to content

Latest commit

 

History

63 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-varnish

Vim and Neovim syntax highlighting support for the Varnish and Vinyl Cache Configuration Language (VCL).

Installation

lazy.nvim

Add this plugin spec to your Neovim configuration:

return {
  "varnishcache-friends/vim-varnish",
  lazy = false,
}

lazy = false keeps the filetype detection available at startup.

vim-plug

  • Add Plug 'varnishcache-friends/vim-varnish' to ~/.vimrc
  • :PlugInstall or $ vim +PlugInstall +qall

Features

Folding

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 = 0

Tests

Run the syntax-highlighting tests with:

./test/run.sh

To run them with Neovim:

VIM_BIN=nvim ./test/run.sh

License

This plugin is licensed under BSD License. See LICENSE for details.

About

Vim and Neovim syntax highlighting support for Varnish Configuration Language (VCL)

Topics

Resources

Stars

25 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages