aboutsummaryrefslogtreecommitdiffstats
path: root/projects
diff options
context:
space:
mode:
authorTeddy Wing2015-09-23 12:24:46 -0400
committerTeddy Wing2015-09-23 12:24:46 -0400
commita8b4bf9e886f754c62718b3db6dfebce7d7bddd5 (patch)
tree7054f1c71b125ba3d68c0142444718a8cbfb498d /projects
parent852d18e0075f14b80dc073e49aac4175b252a0aa (diff)
downloaddotvim-a8b4bf9e886f754c62718b3db6dfebce7d7bddd5.tar.bz2
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.
Diffstat (limited to 'projects')
-rw-r--r--projects/flashnotes.vim2
1 files changed, 2 insertions, 0 deletions
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 <buffer> <leader>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!<cr> |