diff options
author | Teddy Wing | 2015-09-23 12:24:46 -0400 |
---|---|---|
committer | Teddy Wing | 2015-09-23 12:24:46 -0400 |
commit | a8b4bf9e886f754c62718b3db6dfebce7d7bddd5 (patch) | |
tree | 7054f1c71b125ba3d68c0142444718a8cbfb498d /projects | |
parent | 852d18e0075f14b80dc073e49aac4175b252a0aa (diff) | |
download | dotvim-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.vim | 2 |
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> | |