about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-07-10 12:50:42 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-07-10 12:52:50 +0200
commit9f489503bd0d0f70ef215fd3ca28943a130e6b7b (patch)
tree804f65e79b95f1444b26951499c941e551da6c9d
parent69122f4a8883f2d3d80a76a8e53fb69a6f7378a5 (diff)
programs/vim: Associate *.tt with filetype tt2html
While hacking on Hydra, this gets quite annoying, because all of these
template toolkit files don't get properly highlighted whenever I edit
them, so I always had to set the file type manually.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r--modules/user/aszlig/programs/vim/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user/aszlig/programs/vim/default.nix b/modules/user/aszlig/programs/vim/default.nix
index a633182a..affbb54a 100644
--- a/modules/user/aszlig/programs/vim/default.nix
+++ b/modules/user/aszlig/programs/vim/default.nix
@@ -321,6 +321,7 @@ let
     " filetype defaults
     filetype plugin indent on
     au BufNewFile,BufRead *.as set ft=actionscript
+    au BufNewFile,BufRead *.tt set ft=tt2html ts=2 sw=2 sts=2 et
     au BufNewFile,BufRead *.html set ts=2 sw=2 sts=2 et
     au FileType python set textwidth=79
     au FileType gitcommit set textwidth=72