Skip to content

Commit

Permalink
Use the same Python version as YCM
Browse files Browse the repository at this point in the history
When Python 2 and 3 are available, we need to use the version that is
used by YCM to be able to access ycm_state. This commit adopts the
version detection logic of YCM to ensure that we use the right version.

Fixes #7.
  • Loading branch information
real-or-random committed May 9, 2018
1 parent cf3d86c commit 4a9fe8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/dyevim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ set cpo&vim

let s:script_folder_path = escape( expand( '<sfile>:p:h' ), '\' )
let s:current_filetype = ''
let s:py = has('python') ? "py" : "py3"
let s:python_eof = has('python') ? "python << EOF" : "python3 << EOF"
let s:py = has('python3') ? "py3" : "py"
let s:python_eof = has('python3') ? "python3 << EOF" : "python << EOF"

function! dyevim#Enable()
if &diff
Expand Down

0 comments on commit 4a9fe8a

Please sign in to comment.