All Projects → juvenn → Mustache.vim

juvenn / Mustache.vim

Vim mode for mustache and handlebars (Deprecated)

Labels

Projects that are alternatives of or similar to Mustache.vim

Workflowish
A todo "plugin" for Vim, inspired by https://workflowy.com/
Stars: ✭ 118 (-8.53%)
Mutual labels:  viml
Provim
Repository to hold dotfiles and scripts specific to ProVim
Stars: ✭ 122 (-5.43%)
Mutual labels:  viml
Perlomni.vim
perl omnicompletion for vim (including base class function compleltions .. etc)
Stars: ✭ 125 (-3.1%)
Mutual labels:  viml
Image.vim
View images in Vim, because Vim is awesome!
Stars: ✭ 119 (-7.75%)
Mutual labels:  viml
Tmux Config
Configuration and tools for tmux. Can be used as a Vim plugin.
Stars: ✭ 121 (-6.2%)
Mutual labels:  viml
Xml.vim
helps editing xml (and [x]html, sgml, xslt) files
Stars: ✭ 123 (-4.65%)
Mutual labels:  viml
Vim Ruby Xmpfilter
helper for ruby's xmpfilter or seeing_is_believing
Stars: ✭ 117 (-9.3%)
Mutual labels:  viml
Quickfixsigns vim
Mark quickfix & location list items with signs
Stars: ✭ 126 (-2.33%)
Mutual labels:  viml
Vim Qfreplace
Perform the replacement in quickfix.
Stars: ✭ 121 (-6.2%)
Mutual labels:  viml
Spacemacs Theme.vim
Spacemacs-flavoured colorscheme for Vim and iTerm
Stars: ✭ 125 (-3.1%)
Mutual labels:  viml
Vimrc
vimrc for PHP & Web developers
Stars: ✭ 119 (-7.75%)
Mutual labels:  viml
Minimap Vim
Minimap for Vim
Stars: ✭ 121 (-6.2%)
Mutual labels:  viml
Vim R Plugin
Plugin to work with R
Stars: ✭ 124 (-3.88%)
Mutual labels:  viml
Vim Space
space.vim - Smart Space key for Vim
Stars: ✭ 118 (-8.53%)
Mutual labels:  viml
Vim Todo Lists
Vim plugin for TODO lists
Stars: ✭ 126 (-2.33%)
Mutual labels:  viml
Vim Nodejs Complete
nodejs 'omnifunc' function of vim
Stars: ✭ 118 (-8.53%)
Mutual labels:  viml
Vim Arduino
Compile and Deploy Arduino sketches in Vim
Stars: ✭ 122 (-5.43%)
Mutual labels:  viml
Vim Noscrollbar
A scrollbar-like widget for the vim statusline
Stars: ✭ 129 (+0%)
Mutual labels:  viml
Vim Twig
Twig syntax highlighting, snipMate, etc.
Stars: ✭ 126 (-2.33%)
Mutual labels:  viml
Vim Makegreen
MakeGreen runs make and shows a red or green message bar for success/failure. Speeds the red-green-refactor cycle!
Stars: ✭ 124 (-3.88%)
Mutual labels:  viml

mustache and handlebars mode for vim

Note: This repo is deprecated, active development moved to mustache/vim-mode.

A vim plugin for working with mustache and handlebars templates. It has:

  • syntax highlighting
  • matchit support
  • mustache abbreviations (optional)
  • section movement mappings [[ and ]]

Install for pathogen

cd ~/.vim/
git submodule add git://github.com/mustache/vim-mode.git bundle/mustache
vim bundle/mustache/example.mustache

Get pathogen.

Manually Install

cd ~/.local/src
git clone git://github.com/mustache/vim-mode.git mustache.vim
cp -R mustache.vim/syntax/* ~/.vim/syntax/
cp -R mustache.vim/ftdetect/* ~/.vim/ftdetect/
cp -R mustache.vim/ftplugin/* ~/.vim/ftplugin/
vim mustache.vim/example.mustache

Mustache Abbreviations

You can activate mustache abbreviations by putting this line in your .vimrc: let g:mustache_abbreviations = 1

Now you get a set of convenient abbreviations. Underscore _ indicates where your cursor ends up after typing an abbreviation:

  • {{ => {{_}}

  • {{{ => {{{_}}}

  • {{! => {{!_}}

  • {{> => {{>_}}

  • {{< => {{<_}}

  • {{# produces

    {{# _}}
    {{/}}
    
  • {{if produces

    {{#if _}}
    {{/if}}
    
  • {{ife produces

    {{#if _}}
    {{else}}
    {{/if}}
    

Section movement mappings

Following the vim convention of jumping from section to section, [[ and ]] mappings are implemented for easier movement between mustache tags.

  • ]] jumps to the first following tag
  • [[ jumps to the first previous tag

Count with section movements is supported:

  • 2]] jumps to the second next tag

Maintainers

This is combined work from juvenn/mustache.vim and nono/vim-handlebars.


Thanks @5long for adding matchit support.

You're encouraged to propose ideas or have discussions via github issues.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].