vim-htmldjango_omnicomplete
vim-htmldjango_omnicomplete copied to clipboard
htmldjango filetype omnicomplete - completes template tags/filters/variables
Backslashes in Windows paths makes suggestions unusebale. I've replaced backslashes in `get_template_names()`: `word' : os.path.join(root,f).replace(d,'').replace("\\","/")` and `get_staticfiles()`: `matches.append(dict(word=path.replace("\\","/"),info=''))` and It's work... sort of.
python3
Hi. I've just made little improvement for python 3 support. In theory you can choose between py2 or py3 by `let g:htmldjangocomplete_python=3`, but I can't test it with Py2. Thanks...
`s:load_libs()` should handle errors better. I think the best approach would be to make it at Python function, and then return in case of errors, e.g. `ImportError` etc. Because this...