From 1b0a7818e62000d0250123bd63a96aabb3b4498e Mon Sep 17 00:00:00 2001 From: Martin Weber Date: Wed, 5 Jun 2024 15:50:59 +0200 Subject: [PATCH] vim: Add Ember handlebars Also explicitly tell it to indent by 2, expand tabs, and not add final EOL (apparently the last is common practice in Ember.js land). --- etc/vim/vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/vim/vimrc b/etc/vim/vimrc index 2861e08f..5ad164b1 100644 --- a/etc/vim/vimrc +++ b/etc/vim/vimrc @@ -71,6 +71,7 @@ NeoBundle 'mqudsi/meson.vim' NeoBundle 'nfnty/vim-nftables' NeoBundle 'scrooloose/syntastic' NeoBundle 'tangledhelix/vim-kickstart' +NeoBundle 'joukevandermaas/vim-ember-hbs' NeoBundle 'vim-scripts/bbcode' " Initial run requires NeoBundleInstall, as a simple 'Check' won't suffice: @@ -364,7 +365,7 @@ set copyindent set noexpandtab tabstop=4 shiftwidth=4 au FileType c setl tabstop=8 shiftwidth=8 au BufRead,BufNewFile PKGBUILD setl expandtab tabstop=2 shiftwidth=2 -au FileType hcl,javascript,json,meson,nftables,scala,terraform,tex,xml,yaml setl expandtab tabstop=2 shiftwidth=2 +au FileType hcl,html.handlebars,javascript,json,meson,nftables,scala,terraform,tex,xml,yaml setl expandtab tabstop=2 shiftwidth=2 au FileType haskell,java,lisp,named,p4,python,sql setl expandtab " Visually wrap lines and break words: @@ -383,6 +384,9 @@ set ffs=unix,dos,mac " Don't insert double spaces after period when joining lines: set nojoinspaces +" Do not fix final EOL for Ember handlebars: +au FileType html.handlebars setl nofixeol + " }}} " ------------------------------------------------------------------------------ " KEY BINDINGS, BEHAVIOUR {{{