From c74770e7e146d7daea2a58751dce99ec43a12049 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sun, 3 Feb 2019 13:23:26 +0100 Subject: [PATCH] Use machine specific vim files --- UUL4JKMG.vim | 5 +++++ init.vim | 30 +++++------------------------- perryLinux64.vim | 4 ++++ perryWin64.vim | 5 +++++ 4 files changed, 19 insertions(+), 25 deletions(-) create mode 100644 UUL4JKMG.vim create mode 100644 perryLinux64.vim create mode 100644 perryWin64.vim diff --git a/UUL4JKMG.vim b/UUL4JKMG.vim new file mode 100644 index 0000000..5660f8a --- /dev/null +++ b/UUL4JKMG.vim @@ -0,0 +1,5 @@ +" =================Python============================== +let g:python3_host_prog="c:\\Python36\\python.exe" +let g:python_host_prog="c:\\Python27\\python.exe" +" ===================Chromatica====================== +let g:chromatica#libclang_path='D:\Tools\LLVM\bin\libclang.dll' diff --git a/init.vim b/init.vim index c0b2580..270e32c 100644 --- a/init.vim +++ b/init.vim @@ -1,4 +1,4 @@ -let hostname = substitute(system('hostname'), '\n', '', '') +let HOSTNAME = substitute(system('hostname'), '\n', '', '') " =============Plugins================== call plug#begin() Plug 'morhetz/gruvbox' @@ -26,15 +26,13 @@ else \ 'do': 'bash install.sh', \ } end -Plug 'junegunn/fzf' -if has("win32") - if hostname == "perryWin64" - Plug 'F:\Tools\fzf_win\' - end -end Plug 'Shougo/echodoc.vim' Plug 'arakashic/chromatica.nvim', { 'do': ':UpdateRemotePlugins' } call plug#end() + +" =============Paths===================== +echo $HOSTNAME +exec "source " . HOSTNAME . ".vim" " =============Settings================== filetype plugin on filetype indent on @@ -146,17 +144,6 @@ vnoremap g " =================Comments============================ map :TComment -" =================Python============================== -if has("win32") - if hostname == "perryWin64" - let g:python3_host_prog="f:\\Tools\\Python\\python.exe" - let g:python_host_prog="f:\\Tools\\Python27\\python.exe" - elseif hostname == "UUL4JKMG" - let g:python3_host_prog="c:\\Python36\\python.exe" - let g:python_host_prog="c:\\Python27\\python.exe" - end -end - " =========================Deoplete==================== let g:deoplete#enable_at_startup = 1 let g:deoplete#auto_complete_start_length = 1 @@ -218,13 +205,6 @@ let g:fzf_action = { \ 'ctrl-v': 'vsplit' } " ===================Chromatica====================== let g:chromatica#enable_at_startup=1 -if has("win32") - if hostname == "perryWin64" - let g:chromatica#libclang_path='F:\Tools\LLVM\bin\libclang.dll' - elseif hostname == "UUL4JKMG" - let g:chromatica#libclang_path='D:\Tools\LLVM\bin\libclang.dll' - end -end " ===================COC============================= inoremap coc#refresh() diff --git a/perryLinux64.vim b/perryLinux64.vim new file mode 100644 index 0000000..636cdfe --- /dev/null +++ b/perryLinux64.vim @@ -0,0 +1,4 @@ +" =================Python============================== +" let g:python3_host_prog="/usr/bin/python3" +" let g:python_host_prog="/usr/bin/python2" +" ===================Chromatica====================== diff --git a/perryWin64.vim b/perryWin64.vim new file mode 100644 index 0000000..14c8d0c --- /dev/null +++ b/perryWin64.vim @@ -0,0 +1,5 @@ +" =================Python============================== +let g:python3_host_prog="f:\\Tools\\Python\\python.exe" +let g:python_host_prog="f:\\Tools\\Python27\\python.exe" +" ===================Chromatica====================== +let g:chromatica#libclang_path='F:\Tools\LLVM\bin\libclang.dll'