Code Monkey home page Code Monkey logo

twig.vim's Introduction

Twig.vim

Twig syntax highlighting, indentation, neocomplete and UltiSnips snippets in Vim

Installation

To install twig.vim and other Vim plug-ins it is recommended to use one of the popular package managers for Vim, rather than installing by drag and drop all required files into your .vim folder.

Neobundle (recommended)

  1. Setup the neobundle package manager

  2. Set the bundles for twig.vim

    NeoBundle 'nelsyeung/twig.vim'
  3. Open up Vim and start installation with :NeoBundleInstall

Vundle

  1. Setup the vundle package manager

  2. Set the bundles for twig.vim

    Plugin 'nelsyeung/twig.vim'
  3. Open up Vim and start installation with :PluginInstall

Manual (not recommended)

  1. Download the twig.vim files
  2. Put files in your Vim directory (usually ~/.vim/ or %PROGRAMFILES%/Vim/vimfiles on Windows)

Snippets

This package does not include the old snipMate snippets in favour of Neosnippet. Follow the instructions on their page to get snippets working. Although a neosnippet-snippets have the snippets from this package, it might not be the latest version. To have the latest snippets working, you can add to your .vimrc

let g:neosnippet#snippets_directory='~/.vim/bundle/twig.vim/neosnippets'

Todo

  • Better filetype detection. Detect html.twig, js.twig differently. This will need to change both ftdetect and indent files.
  • More useful snippets.

twig.vim's People

Contributors

nepella avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

twig.vim's Issues

help implemention of the indent in files twig

Hello I have been using the plugin for a while, but I have not found the way how I can apply the twig files identation in the documentation there is no mention of any extra configuration for this or if you must run a special command.

otherwise the plugin is working great, thanks a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.