Skip to content

Commit

Permalink
vim: Add Ember handlebars
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
martinwe-adfinis committed Nov 25, 2024
1 parent 2b9dfd0 commit 1b0a781
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion etc/vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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 {{{
Expand Down

0 comments on commit 1b0a781

Please sign in to comment.