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'))) Python vim.command('edit ' + jedi_vim.escape_file_path(vim.eval('a:path')))
endif endif
" sometimes syntax is being disabled and the filetype not set. " sometimes syntax is being disabled and the filetype not set.
syntax on if !exists("g:syntax_on")
set filetype=python syntax enable
endif
if &filetype != 'python'
set filetype=python
endif
endfunction endfunction
function! jedi#add_goto_window() function! jedi#add_goto_window()