turn syntax highlighting on again if it's turned off by renaming (possible vim bug).

This commit is contained in:
David Halter
2013-01-14 15:37:59 +01:00
parent ef1011d8c6
commit 69e4cead81
3 changed files with 7 additions and 8 deletions

View File

@@ -96,6 +96,9 @@ function! jedi#new_buffer(path)
endif
Python vim.command('edit ' + jedi_vim.escape_file_path(vim.eval('a:path')))
endif
" sometimes syntax is being disabled and the filetype not set.
syntax on
set filetype=python
endfunction
function! s:add_goto_window()