Skip to content

varnishcache-friends/vim-varnish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-varnish

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

Installation

packer

  • use 'varnishcache-friends/vim-varnish'

Pathogen

  • git clone --depth=1 https://github.com/varnishcache-friends/vim-varnish ~/.vim/bundle/vim-varnish

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

License

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