From a8b4bf9e886f754c62718b3db6dfebce7d7bddd5 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 23 Sep 2015 12:24:46 -0400 Subject: projects/flashnotes.vim: Open HTML files as `htmldjango` Assume all Flashnotes HTML files are 'htmldjango'-type files (as they typically are since Flashnotes is a Django project). This will preclude me from having to `set ft=htmldjango` when I want to see syntax colours for Django template tags. --- projects/flashnotes.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'projects/flashnotes.vim') diff --git a/projects/flashnotes.vim b/projects/flashnotes.vim index 294ccef..6de2a53 100644 --- a/projects/flashnotes.vim +++ b/projects/flashnotes.vim @@ -3,6 +3,8 @@ augroup Flashnotes autocmd! autocmd BufRead,BufEnter $VIM_PROJECT_PATH_FLASHNOTES/*.{scss,js,html} setlocal expandtab tabstop=2 softtabstop=2 shiftwidth=2 textwidth=100 + autocmd BufRead,BufEnter $VIM_PROJECT_PATH_FLASHNOTES/*.html setlocal filetype=htmldjango + " Generate a new ctags file for Python sources. Use tmux to run the command in the background. autocmd BufRead,BufEnter $VIM_PROJECT_PATH_FLASHNOTES/*.{py} \ nnoremap gc :silent! execute '!tmux new -d "ctags --languages=Python --python-kinds=-i --excmd=number -f $VIM_PROJECT_PATH_FLASHNOTES_ROOT/tags -R $VIM_PROJECT_PATH_FLASHNOTES/ $VIM_PROJECT_PATH_VIRTUALENVS"' \| redraw! | -- cgit v1.2.3