migrate from vundle to vim-plug

This commit is contained in:
kageru 2020-06-28 22:44:03 +02:00
parent d4906f8858
commit 795e567678
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

76
.vimrc
View File

@ -1,45 +1,42 @@
set nocompatible " be iMproved, required set nocompatible " be iMproved, required
filetype on " required filetype on " required
" set the runtime path to include Vundle and initialize "set rtp+=~/.vim/bundle/Vundle.vim
set rtp+=~/.vim/bundle/Vundle.vim "call vundle#begin()
call vundle#begin() call plug#begin('~/.vim/plugged')
" alternatively, pass a path where Vundle should install bundles
"let path = '~/some/path/here'
"call vundle#rc(path)
" let Vundle manage Vundle, required Plug 'scrooloose/syntastic'
Plugin 'VundleVim/Vundle.vim' Plug 'rust-lang/rust.vim'
"Plugin 'zah/nim.vim' Plug 'fatih/vim-go'
Plugin 'scrooloose/syntastic' Plug 'udalov/kotlin-vim'
Plugin 'w0ng/vim-hybrid' "Plug 'Valloric/YouCompleteMe'
Plugin 'rust-lang/rust.vim' Plug 'phanviet/vim-monokai-pro'
Plugin 'fatih/vim-go' Plug 'cespare/vim-toml'
Plugin 'udalov/kotlin-vim' Plug 'sirver/UltiSnips'
"Plugin 'Valloric/YouCompleteMe' Plug 'honza/vim-snippets'
Plugin 'phanviet/vim-monokai-pro' Plug 'lotabout/skim', { 'dir': '~/.skim', 'do': './install' }
"Plugin 'wincent/command-t' Plug 'lotabout/skim.vim'
Plugin 'cespare/vim-toml' Plug 'ervandew/supertab'
Plugin 'sirver/UltiSnips'
Plugin 'honza/vim-snippets'
Plugin 'junegunn/fzf'
"Plugin 'ervandew/supertab'
" rp call thing for auto completion with language servers " rp call thing for auto completion with language servers
Plugin 'roxma/nvim-yarp' Plug 'roxma/nvim-yarp'
" language client stuff " language client stuff
Plugin 'autozimu/LanguageClient-neovim' Plug 'autozimu/LanguageClient-neovim', {
Plugin 'ncm2/ncm2' \ 'branch': 'next',
Plugin 'ncm2/ncm2-jedi' \ 'do': 'bash install.sh',
Plugin 'ncm2/ncm2-ultisnips' \ }
Plugin 'ncm2/ncm2-racer' Plug 'ncm2/ncm2'
Plugin 'zxqfl/tabnine-vim' Plug 'ncm2/ncm2-jedi'
Plug 'ncm2/ncm2-ultisnips'
Plug 'ncm2/ncm2-racer'
"Plug 'zxqfl/tabnine-vim'
let g:go_def_mode='gopls' let g:go_def_mode='gopls'
let g:go_info_mode='gopls' let g:go_info_mode='gopls'
call vundle#end() " required "call vundle#end() " required
call plug#end()
"set rtp+=~/code/tabnine-vim "set rtp+=~/code/tabnine-vim
filetype plugin on filetype plugin on
autocmd BufNewFile,BufRead *.vpy setfiletype python autocmd BufNewFile,BufRead *.vpy setfiletype python
@ -48,22 +45,23 @@ autocmd BufNewFile,BufRead *.kt set ft=kotlin
" for ncm2 completion " for ncm2 completion
autocmd BufEnter * call ncm2#enable_for_buffer() autocmd BufEnter * call ncm2#enable_for_buffer()
set completeopt=noinsert,menuone,noselect set completeopt=noinsert,menuone,noselect
"inoremap <expr> <Tab> (pumvisible() ? "\<CR>" : "\<Tab>") " When the <Enter> key is pressed while the popup menu is visible, it only
"inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<cr>" : "\<CR>") " hides the menu. Use this mapping to close the menu and also start a new line.
"inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<cr>" : "\<CR>")
" Required for operations modifying multiple buffers like rename. " Required for operations modifying multiple buffers like rename.
set hidden set hidden
"\ 'rust': ['rustup', 'run', 'stable', 'rls'], "\ 'rust': ['rustup', 'run', 'stable', 'rls'],
"\ 'rust': ['rust-analyzer'], "\ 'rust': ['rustup', 'run', 'nightly', 'rls'],
let g:LanguageClient_serverCommands = { let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'nightly', 'rls'], \ 'rust': ['rust-analyzer'],
\ 'haskell': ['hie-wrapper'], \ 'haskell': ['hie-wrapper'],
\ 'python': ['/usr/bin/pyls'], \ 'python': ['/usr/bin/pyls'],
\ 'go': ['gopls'], \ 'go': ['gopls'],
\ 'kotlin': ['/usr/bin/kotlin-language-server'], \ 'kotlin': ['/usr/bin/kotlin-language-server'],
\ 'c': ['/usr/bin/ccls'], \ 'c': ['/usr/bin/ccls'],
\ 'java': ['jdtls'],
\ } \ }
nnoremap <F5> :call LanguageClient_contextMenu()<CR> nnoremap <F5> :call LanguageClient_contextMenu()<CR>
@ -97,8 +95,6 @@ let &t_EI = "\<esc>[2 q"
set undolevels=1000 set undolevels=1000
set backspace=indent,eol,start set backspace=indent,eol,start
let g:hybrid_custom_term_colors = 1
let g:hybrid_reduced_contrast = 1
set background=dark set background=dark
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
@ -133,3 +129,9 @@ nnoremap <C-K> <C-W>k
nnoremap <C-H> <C-W>h nnoremap <C-H> <C-W>h
set splitbelow set splitbelow
set splitright set splitright
nmap <S-Tab> :Snippets<CR>
nmap <C-G> :Files<CR>
imap <C-G> <Esc>:Files<CR>
nmap <S-L> :BLines<CR>
nmap <C-F> :Lines<CR>