Skip to content

lunaru/vim-twig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This vim bundle adds syntax highlighting for .twig. It's based on Alex Suraci's twig.vim. This README is also heavily inspired by vim-coffee-script.

Installing and Using

  1. Install tpope's pathogen into ~/.vim/autoload/ and add the following line to your ~/.vimrc:

     call pathogen#runtime_append_all_bundles()
    

    Be aware that it must be added before any filetype plugin indent on lines according to the install page:

    Note that you need to invoke the pathogen functions before invoking "filetype plugin indent on" if you want it to load ftdetect files. On Debian (and probably other distros), the system vimrc does this early on, so you actually need to "filetype off" before "filetype plugin indent on" to force reloading.

  1. Create, and change into, the ~/.vim/bundle/ directory:

     $ mkdir -p ~/.vim/bundle
     $ cd ~/.vim/bundle
    
  2. Make a clone of the vim-twig repository: $ git clone git://github.com/lunaru/vim-twig.git [...] $ ls vim-twig/

That's it. Pathogen should handle the rest. Opening a file with a .twig extension will load everything.

Updating

  1. Change into the ~/.vim/bundle/vim-twig/ directory:

     $ cd ~/.vim/bundle/vim-twig
    
  2. Pull in the latest changes:

     $ git pull
    

Everything will then be brought up to date.

About

vim syntax highlighting for .twig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published