mirror of
https://github.com/luzifer/vim.git
synced 2024-12-20 10:21:19 +00:00
Drop vim <8.0 support
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d801ac8b9d
commit
f33a1eb934
1 changed files with 8 additions and 22 deletions
30
vimrc
30
vimrc
|
@ -13,16 +13,12 @@ Plug 'Chiel92/vim-autoformat'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'reedes/vim-pencil'
|
Plug 'reedes/vim-pencil'
|
||||||
|
|
||||||
if v:version >= 800
|
if has('nvim')
|
||||||
if has('nvim')
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
|
||||||
else
|
|
||||||
Plug 'Shougo/deoplete.nvim'
|
|
||||||
Plug 'roxma/nvim-yarp'
|
|
||||||
Plug 'roxma/vim-hug-neovim-rpc'
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
Plug 'Shougo/neocomplete.vim'
|
Plug 'Shougo/deoplete.nvim'
|
||||||
|
Plug 'roxma/nvim-yarp'
|
||||||
|
Plug 'roxma/vim-hug-neovim-rpc'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Languages
|
" Languages
|
||||||
|
@ -32,11 +28,7 @@ Plug 'groenewege/vim-less'
|
||||||
Plug 'mutewinter/nginx.vim'
|
Plug 'mutewinter/nginx.vim'
|
||||||
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||||
Plug 'ekalinin/Dockerfile.vim'
|
Plug 'ekalinin/Dockerfile.vim'
|
||||||
if v:version >= 800
|
Plug 'zchee/deoplete-go', { 'do': 'make'}
|
||||||
Plug 'zchee/deoplete-go', { 'do': 'make'}
|
|
||||||
else
|
|
||||||
Plug 'nsf/gocode', {'rtp': 'vim/'}
|
|
||||||
endif
|
|
||||||
Plug 'Matt-Deacalion/vim-systemd-syntax'
|
Plug 'Matt-Deacalion/vim-systemd-syntax'
|
||||||
Plug 'cespare/vim-toml'
|
Plug 'cespare/vim-toml'
|
||||||
Plug 'fatih/vim-hclfmt'
|
Plug 'fatih/vim-hclfmt'
|
||||||
|
@ -994,16 +986,10 @@ map <C-n> :NERDTreeToggle<CR>
|
||||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
|
||||||
|
|
||||||
"
|
"
|
||||||
" neocomplete / deoplete configuration
|
" deoplete configuration
|
||||||
"
|
"
|
||||||
|
|
||||||
if v:version >= 800
|
let g:deoplete#enable_at_startup = 1
|
||||||
let g:deoplete#enable_at_startup = 1
|
|
||||||
else
|
|
||||||
let g:acp_enableAtStartup = 0 " Disable AutoComplPop.
|
|
||||||
let g:neocomplete#enable_at_startup = 1 " Use neocomplete.
|
|
||||||
let g:neocomplete#enable_smart_case = 1 " Use smartcase.
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Enable omni completion.
|
" Enable omni completion.
|
||||||
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
|
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
|
||||||
|
|
Loading…
Reference in a new issue