Move from neobundle to dein

This commit is contained in:
Simon Milvert 2020-08-13 11:54:23 +02:00
parent 3a2f315fad
commit 6be803de7d
1 changed files with 91 additions and 82 deletions

173
vim/vimrc
View File

@ -13,7 +13,10 @@ runtime! debian.vim
" Uncomment the next line to make Vim more Vi-compatible " Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous " NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
" options, so any other options should be set AFTER setting 'compatible'. " options, so any other options should be set AFTER setting 'compatible'.
"set compatible if &compatible
set nocompatible
endif
" Vim5 and later versions support syntax highlighting. Uncommenting the next " Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default. " line enables syntax highlighting by default.
@ -45,7 +48,6 @@ set smartcase " Do smart case matching
set incsearch " Incremental search set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make set autowrite " Automatically save before commands like :next and :make
set hidden " Hide buffers when they are abandoned set hidden " Hide buffers when they are abandoned
set mouse=a " Enable mouse usage (all modes)
set autoread set autoread
set number set number
@ -192,40 +194,45 @@ nmap <Leader>v :e $MYVIMRC <CR>
set clipboard=unnamedplus set clipboard=unnamedplus
" -------------------------------------------------
" Start Dein scripts
" https://github.com/Shougo/dein.vim
"--------------------------------------------------
" "
"""""""""""""""""""""""""""""""" " Add the dein installation directory into runtimepath
" => NeoBUndle set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
""""""""""""""""""""""""
"NeoBundle Scripts-----------------------------
if has('vim_starting')
set nocompatible " Be iMproved
" Required: if dein#load_state('~/.cache/dein')
set runtimepath+=~/.vim/bundle/neobundle.vim/ call dein#begin('~/.cache/dein')
call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
call dein#add('Shougo/deoplete.nvim')
if !has('nvim')
call dein#add('roxma/nvim-yarp')
call dein#add('roxma/vim-hug-neovim-rpc')
endif
call dein#end()
call dein#save_state()
endif endif
" Required:
call neobundle#begin(expand('~/.vim/bundle'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" My Bundles here: " My Bundles here:
NeoBundle 'terryma/vim-expand-region' call dein#add('terryma/vim-expand-region')
vmap v <Plug>(expand_region_expand) vmap v <Plug>(expand_region_expand)
vmap <C-v> <Plug>(expand_region_shrink) vmap <C-v> <Plug>(expand_region_shrink)
NeoBundle 'Shougo/neosnippet.vim' call dein#add('Shougo/neosnippet.vim')
NeoBundle 'Shougo/neosnippet-snippets' call dein#add('Shougo/neosnippet-snippets')
NeoBundle 'tpope/vim-git' call dein#add('tpope/vim-git')
NeoBundle 'tpope/vim-fugitive' call dein#add('tpope/vim-fugitive')
NeoBundle 'kien/ctrlp.vim' call dein#add('kien/ctrlp.vim')
NeoBundle 'flazz/vim-colorschemes' call dein#add('flazz/vim-colorschemes')
NeoBundleLazy 'nathanaelkane/vim-indent-guides' " color indentation call dein#add('nathanaelkane/vim-indent-guides') " color indentation
NeoBundle 'scrooloose/nerdtree' call dein#add('scrooloose/nerdtree')
"NeoBundle 'Valloric/YouCompleteMe', { "call dein#add('Valloric/YouCompleteMe'), {
"" \ 'build' : { "" \ 'build' : {
"" \ 'mac' : './install.sh --clang-completer --system-libclang --omnisharp-completer', "" \ 'mac' : './install.sh --clang-completer --system-libclang --omnisharp-completer',
"" \ 'unix' : './install.sh --clang-completer --system-libclang --omnisharp-completer', "" \ 'unix' : './install.sh --clang-completer --system-libclang --omnisharp-completer',
@ -233,67 +240,86 @@ NeoBundle 'scrooloose/nerdtree'
"" \ 'cygwin' : './install.sh --clang-completer --system-libclang --omnisharp-completer' "" \ 'cygwin' : './install.sh --clang-completer --system-libclang --omnisharp-completer'
"" \ } "" \ }
"" \ } "" \ }
"NeoBundle 'Valloric/YouCompleteMe', { "call dein#add('Valloric/YouCompleteMe'), {
" \ 'build' : { " \ 'build' : {
" \ 'mac' : './install.sh', " \ 'mac' : './install.sh',
" \ }, " \ },
" \ } " \ }
" Syntax checker " Syntax checker
NeoBundle 'scrooloose/syntastic' call dein#add('scrooloose/syntastic')
NeoBundle 'vim-ruby/vim-ruby' "Ruby call dein#add('vim-ruby/vim-ruby' ,{ 'on_ft': 'ruby'}) "Ruby
NeoBundle 'tpope/vim-endwise' "Add endif, end and other stuff call dein#add('tpope/vim-endwise') "Add endif, end and other stuff
""NeoBundleLazy 'masudaK/vim-python' ""NeoBundleLazy 'masudaK/vim-python'
NeoBundle 'klen/python-mode' call dein#add('klen/python-mode' ,{'on_ft': 'python'})
" Show gitdiff " Show gitdiff
NeoBundle 'airblade/vim-gitgutter' call dein#add('airblade/vim-gitgutter')
" Disable plugins for LargeFile " Disable plugins for LargeFile
NeoBundle 'vim-scripts/LargeFile' call dein#add('vim-scripts/LargeFile')
NeoBundle 'vim-scripts/DoxygenToolkit.vim' "Generate doxygen call dein#add('vim-scripts/DoxygenToolkit.vim') "Generate doxygen
NeoBundle 'davidhalter/jedi-vim' "Generate doxygen call dein#add('davidhalter/jedi-vim', {
NeoBundle 'ervandew/supertab' "SuperTab \ 'if': has('pythonx'),
NeoBundle 'sukima/xmledit.git' "xmledit \ 'on_cmd': 'JediClearCache',
NeoBundle 'yuroyoro/vim-autoclose' \ 'on_ft': 'python',
NeoBundle 'tpope/vim-endwise' \ })
NeoBundle 'scrooloose/nerdcommenter' "Comment out lines or blocks call dein#add('ervandew/supertab') "SuperTab
NeoBundle 'nathanaelkane/vim-indent-guides' "Shows indents call dein#add('sukima/xmledit.git' ,{'on_ft': 'xml'}) "xmledit
NeoBundle 'nelstrom/vim-visual-star-search' "Search for visual with * call dein#add('yuroyoro/vim-autoclose')
NeoBundle 'vim-airline/vim-airline' "For the status line call dein#add('tpope/vim-endwise')
NeoBundle 'vim-airline/vim-airline-themes' "For the status line call dein#add('scrooloose/nerdcommenter') "Comment out lines or blocks
NeoBundle 'bling/vim-bufferline' call dein#add('nathanaelkane/vim-indent-guides') "Shows indents
"NeoBundle 'fholgado/minibufexpl.vim' call dein#add('nelstrom/vim-visual-star-search') "Search for visual with *
NeoBundle 'altercation/vim-colors-solarized' call dein#add('vim-airline/vim-airline') "For the status line
NeoBundle 'ujihisa/unite-colorscheme' call dein#add('vim-airline/vim-airline-themes') "For the status line
NeoBundle 'docunext/closetag.vim.git' call dein#add('bling/vim-bufferline')
NeoBundle 'skammer/vim-css-color' "call dein#add('fholgado/minibufexpl.vim')
NeoBundle 'StanAngeloff/php.vim' call dein#add('altercation/vim-colors-solarized')
NeoBundle 'mattn/emmet-vim/' call dein#add('ujihisa/unite-colorscheme')
NeoBundle 'vim-scripts/keepcase.vim' call dein#add('docunext/closetag.vim.git')
call dein#add('skammer/vim-css-color' ,{'on_ft': 'css'})
call dein#add('StanAngeloff/php.vim' ,{'on_ft': 'php'})
call dein#add('mattn/emmet-vim/')
call dein#add('vim-scripts/keepcase.vim')
" Javascript " Javascript
NeoBundle 'othree/yajs.vim' call dein#add('othree/yajs.vim' ,{'on_ft': 'js'})
NeoBundle 'othree/javascript-libraries-syntax.vim' call dein#add('othree/javascript-libraries-syntax.vim' ,{'on_ft': 'js'})
NeoBundle 'bigfish/vim-js-context-coloring' call dein#add('bigfish/vim-js-context-coloring' ,{'on_ft': 'js'})
NeoBundle 'vim-scripts/SyntaxComplete' call dein#add('vim-scripts/SyntaxComplete')
" Arduino " Arduino
NeoBundle 'sudar/vim-arduino-syntax' call dein#add('sudar/vim-arduino-syntax' ,{'on_ft': 'ino'})
""NeoBundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} " For the line in the bottom ""call dein#add('Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/')} " For the line in the bottom
" You can specify revision/branch/tag. " You can specify revision/branch/tag.
NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' } call dein#add('Shougo/vimshell')
" Ctags" " Ctags"
NeoBundle 'xolox/vim-easytags' if system("command -v ctags") != '' || system("command -v global") != ''
NeoBundle 'majutsushi/tagbar'
NeoBundle 'xolox/vim-misc' call dein#add('xolox/vim-easytags' ,{'on_ft': ['c', 'cpp', 'h']})
call dein#add('majutsushi/tagbar')
call dein#add('xolox/vim-misc')
""""""""""""""""""""""""""""""""
" => Easytags
""""""""""""""""""""""""
set tags=./tags;,tags;
let g:easytags_file = '~/.vim/tags'
let g:easytags_dynamic_files = 0
let g:easytags_always_enabled = 0
""""""""""""""""""""""""""""""""
" => Tagbar
""""""""""""""""""""""""
nmap <F7> :TagbarToggle<CR>
endif
" Required:
call neobundle#end()
" Required: " Required:
filetype plugin indent on filetype plugin indent on
" If there are uninstalled bundles found on startup, " If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them. " this will conveniently prompt you to install them.
NeoBundleCheck
"End NeoBundle Scripts------------------------- "End NeoBundle Scripts-------------------------
"let g:pydiction_location = '~/.vim/bundle/pydiction/complete-dict' "let g:pydiction_location = '~/.vim/bundle/pydiction/complete-dict'
@ -304,23 +330,6 @@ nnoremap <buffer> <F9> :exec '!python' shellescape(@%, 1)<cr>
"""""""""""""""""""""""" """"""""""""""""""""""""
let g:used_javascript_libs = 'angularjs,angularui,underscore' let g:used_javascript_libs = 'angularjs,angularui,underscore'
""""""""""""""""""""""""""""""""
" => Easytags
""""""""""""""""""""""""
set tags=./tags;,tags;
let g:easytags_file = '~/.vim/tags'
let g:easytags_dynamic_files = 0
let g:easytags_always_enabled = 0
""""""""""""""""""""""""""""""""
" => Tagbar
""""""""""""""""""""""""
nmap <F7> :TagbarToggle<CR>
"""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""
" => GitGutter " => GitGutter
"""""""""""""""""""""""" """"""""""""""""""""""""