Use machine specific vim files
This commit is contained in:
parent
0a791230ae
commit
c74770e7e1
5
UUL4JKMG.vim
Normal file
5
UUL4JKMG.vim
Normal file
@ -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'
|
30
init.vim
30
init.vim
@ -1,4 +1,4 @@
|
|||||||
let hostname = substitute(system('hostname'), '\n', '', '')
|
let HOSTNAME = substitute(system('hostname'), '\n', '', '')
|
||||||
" =============Plugins==================
|
" =============Plugins==================
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
@ -26,15 +26,13 @@ else
|
|||||||
\ 'do': 'bash install.sh',
|
\ 'do': 'bash install.sh',
|
||||||
\ }
|
\ }
|
||||||
end
|
end
|
||||||
Plug 'junegunn/fzf'
|
|
||||||
if has("win32")
|
|
||||||
if hostname == "perryWin64"
|
|
||||||
Plug 'F:\Tools\fzf_win\'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Plug 'Shougo/echodoc.vim'
|
Plug 'Shougo/echodoc.vim'
|
||||||
Plug 'arakashic/chromatica.nvim', { 'do': ':UpdateRemotePlugins' }
|
Plug 'arakashic/chromatica.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
" =============Paths=====================
|
||||||
|
echo $HOSTNAME
|
||||||
|
exec "source " . HOSTNAME . ".vim"
|
||||||
" =============Settings==================
|
" =============Settings==================
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
filetype indent on
|
filetype indent on
|
||||||
@ -146,17 +144,6 @@ vnoremap <silent> <End> g<End>
|
|||||||
" =================Comments============================
|
" =================Comments============================
|
||||||
map <C-C> :TComment<CR>
|
map <C-C> :TComment<CR>
|
||||||
|
|
||||||
" =================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====================
|
" =========================Deoplete====================
|
||||||
let g:deoplete#enable_at_startup = 1
|
let g:deoplete#enable_at_startup = 1
|
||||||
let g:deoplete#auto_complete_start_length = 1
|
let g:deoplete#auto_complete_start_length = 1
|
||||||
@ -218,13 +205,6 @@ let g:fzf_action = {
|
|||||||
\ 'ctrl-v': 'vsplit' }
|
\ 'ctrl-v': 'vsplit' }
|
||||||
" ===================Chromatica======================
|
" ===================Chromatica======================
|
||||||
let g:chromatica#enable_at_startup=1
|
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=============================
|
" ===================COC=============================
|
||||||
inoremap <silent><expr> <c-space> coc#refresh()
|
inoremap <silent><expr> <c-space> coc#refresh()
|
||||||
|
4
perryLinux64.vim
Normal file
4
perryLinux64.vim
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
" =================Python==============================
|
||||||
|
" let g:python3_host_prog="/usr/bin/python3"
|
||||||
|
" let g:python_host_prog="/usr/bin/python2"
|
||||||
|
" ===================Chromatica======================
|
5
perryWin64.vim
Normal file
5
perryWin64.vim
Normal file
@ -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'
|
Loading…
x
Reference in New Issue
Block a user