move to vim-plug

This commit is contained in:
Mike Cugini 2019-07-22 12:03:35 -04:00
parent 6fc07baa4e
commit a4f1b5210a

53
vimrc
View File

@ -1,7 +1,25 @@
" load pathogen from bundle dir call plug#begin('~/.local/share/nvim/plugged')
runtime bundle/vim-pathogen/autoload/pathogen.vim
"load pathogen plugins Plug 'w0rp/ale'
call pathogen#infect()
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'morhetz/gruvbox'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'hdima/python-syntax'
Plug 'rust-lang/rust.vim'
Plug 'mhinz/vim-signify'
Plug 'tpope/vim-fugitive'
Plug 'vim-airline/vim-airline'
call plug#end()
set nocompatible set nocompatible
set encoding=utf-8 set encoding=utf-8
@ -21,7 +39,7 @@ set background=dark
"colorscheme molokai "gruvbox zenburn "colorscheme molokai "gruvbox zenburn
" colorscheme material-monokai " colorscheme material-monokai
"let g:molokai_original = 1 "let g:molokai_original = 1
colorscheme deep-space colorscheme gruvbox
"always show status bar "always show status bar
set laststatus=2 set laststatus=2
@ -63,23 +81,6 @@ nnoremap <C-H> <C-W><C-H>
set splitbelow set splitbelow
set splitright set splitright
function! s:goyo_enter()
set wrap
Limelight
endfunction
function! s:goyo_leave()
set nowrap
Limelight!
endfunction
autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()
au BufRead,BufNewFile *.txt :Goyo
let g:goyo_width = 120
" choose the fastest available searcher " choose the fastest available searcher
if executable('rg') if executable('rg')
let g:ctrlp_user_command = 'rg --files %s' let g:ctrlp_user_command = 'rg --files %s'
@ -132,10 +133,6 @@ endfunction
inoremap <expr><tab> InsertTabWrapper() inoremap <expr><tab> InsertTabWrapper()
inoremap <expr><s-tab> pumvisible()?"\<c-p>":"\<c-d>" inoremap <expr><s-tab> pumvisible()?"\<c-p>":"\<c-d>"
" let g:LanguageClient_serverCommands = {
" \ 'python': ['pyls'],
" \ }
let g:go_fmt_command = "goimports" let g:go_fmt_command = "goimports"
let g:syntastic_go_checkers = ['go', 'goimports', 'govet', 'golint'] let g:syntastic_go_checkers = ['go', 'goimports', 'govet', 'golint']
@ -168,10 +165,6 @@ let g:deoplete#sources#go#json_directory = '~/.cache/deoplete/go/$GOOS_$GOARCH'
let g:deoplete#sources#rust#racer_binary = '/home/cugini/.cargo/bin/racer' let g:deoplete#sources#rust#racer_binary = '/home/cugini/.cargo/bin/racer'
let g:deoplete#sources#rust#rust_source_path = '/home/cugini/Projects/rust/src' let g:deoplete#sources#rust#rust_source_path = '/home/cugini/Projects/rust/src'
" deoplete Python (jedi)
let g:deoplete#sources#jedi#python_path = '/usr/drte/v1/python-2.7.7/bin/python2.7'
let g:deoplete#sources#jedi#extra_path = ['/home/cugini/src/server','/home/cugini/src/server/pip']
"configure tagbar "configure tagbar
nmap <F8> :TagbarToggle<CR> nmap <F8> :TagbarToggle<CR>
let g:tagbar_width = 60 let g:tagbar_width = 60