Merge branch 'bugfix-newtab-syntax' of git://github.com/artnez/jedi-vim into newtab

This commit is contained in:
David Halter
2013-05-18 22:44:49 +04:30

View File

@@ -97,8 +97,12 @@ function! jedi#new_buffer(path)
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
if !exists("g:syntax_on")
syntax enable
endif
if &filetype != 'python'
set filetype=python
endif
endfunction
function! jedi#add_goto_window()