From c3e6ae67b39e064b150ea65c8504ce009805755a Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Fri, 28 Dec 2018 13:45:06 +0100 Subject: [PATCH] Use hostname for python paths --- init.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.vim b/init.vim index b969cba..1730fba 100644 --- a/init.vim +++ b/init.vim @@ -1,3 +1,4 @@ +let hostname = substitute(system('hostname'), '\n', '', '') " =============Plugins================== call plug#begin() Plug 'morhetz/gruvbox' @@ -101,8 +102,10 @@ map :TComment " =================Python============================== if has("win32") - let g:python3_host_prog="f:\\Tools\\Python\\python.exe" - let g:python_host_prog="f:\\Tools\\Python27\\python.exe" + if hostname == "perryWin64" + let g:python3_host_prog="f:\\Tools\\Python\\python.exe" + let g:python_host_prog="f:\\Tools\\Python27\\python.exe" + end end " =========================Deoplete====================