From 8af69345adef52b55a282247e31197ffb05dacef Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 20 Dec 2019 15:38:06 +0100 Subject: Replace NeoBundle by vim packaging --- dotvimrc | 91 +++++++++++++++------------------------------------------------- 1 file changed, 21 insertions(+), 70 deletions(-) (limited to 'dotvimrc') diff --git a/dotvimrc b/dotvimrc index 08d8413..a00edf6 100644 --- a/dotvimrc +++ b/dotvimrc @@ -35,8 +35,6 @@ set scrolloff=3 set undodir=~/.vim/undodir set undofile -set runtimepath+=~/.vim/bundle/neobundle.vim/ - " remove toolbar set guioptions-=T " remove menu @@ -57,40 +55,26 @@ let mapleader="\" "\ endif "endif -call neobundle#begin(expand('~/.vim/bundle/')) - -" Let NeoBundle manage NeoBundle -NeoBundleFetch 'Shougo/neobundle.vim' - -" Recommended to install -" After install, turn shell ~/.vim/bundle/vimproc, (n,g)make -f your_machines_makefile -"NeoBundle 'Shougo/vimproc' +"'CoatiSoftware/vim-sourcetrail' +"nnoremap sr :SourcetrailRefresh +"nnoremap sa :SourcetrailActivateToken -NeoBundle 'hashivim/vim-terraform' - -NeoBundle 'CoatiSoftware/vim-sourcetrail' -nnoremap sr :SourcetrailRefresh -nnoremap sa :SourcetrailActivateToken - -"NeoBundle 'elixir-lang/vim-elixir' +if executable('rg') + let g:ackprg = "rg -i --vimgrep" + let g:ack_default_options = " -i --vimgrep" +elseif executable('ag') + let g:ackprg = 'ag --vimgrep' +endif -let g:ack_default_options = " -i --vimgrep" -let g:ackprg = "rg -i --vimgrep" -NeoBundle 'mileszs/ack.vim.git' noremap a :Ack! -t rust -t cpp -t c -t py noremap A :Ack! -NeoBundle 'tpope/vim-fugitive' - "Show + - ~ in the margin for vim modification -NeoBundle "airblade/vim-gitgutter" let g:gitgutter_eager = 0 " only update on read/write - -NeoBundle 'kien/ctrlp.vim' "amazing search with ctrl p - -NeoBundle 'JazzCore/ctrlp-cmatcher' -let g:ctrlp_match_func = {'match' : 'matcher#cmatch' } +" The C matcher is supposedly faster +"'JazzCore/ctrlp-cmatcher' +"let g:ctrlp_match_func = {'match' : 'matcher#cmatch' } " Also search tags let g:ctrlp_extensions = ['tag'] @@ -102,9 +86,7 @@ noremap b :CtrlPBuffer " Ignore some folders and files for CtrlP indexing let g:ctrlp_custom_ignore = { 'dir': '\.git$\|\CODENAME_Data' } -NeoBundle 'git-time-lapse' - -NeoBundle 'Valloric/YouCompleteMe.git' +"Valloric/YouCompleteMe.git let g:ycm_extra_conf_globlist = ['~/dab/*', '~/*'] let g:ycm_always_populate_location_list = 1 let g:ycm_rust_src_path = '/home/bram/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src' @@ -112,33 +94,24 @@ noremap y :YcmDiags noremap Y :YcmRestartServer noremap F :YcmCompleter FixIt:ccl +"rust-lang/rust.vim let g:rust_recommended_style = 0 -NeoBundle 'rust-lang/rust.vim' - au FileType rust nmap m :make build -NeoBundle 'tpope/vim-surround.git' -NeoBundle 'taglist.vim' -NeoBundle 'majutsushi/tagbar' +"tpope/vim-surround.git +"taglist.vim +"majutsushi/tagbar noremap t :TagbarToggle -NeoBundle 'ifdef-highlighting' -NeoBundle 'ciaranm/detectindent' "adapts tabstop and this shit automagically +"ifdef-highlighting +"scrooloose/nerdtree -NeoBundle "scrooloose/nerdtree" - -" Nice tabulation -NeoBundle 'godlygeek/tabular' -"http://vimcasts.org/episodes/aligning-text-with-tabular-vim/ - -let g:Powerline_symbols = 'unicode' +colorscheme bramwombat function! ToggleFullScreen() call system("wmctrl -i -r ".v:windowid." -b toggle,fullscreen") redraw endfunction -colorscheme bramwombat - if has("nvim") set termguicolors set noincsearch @@ -175,10 +148,6 @@ set cursorline "set a sudo vim cmap w!! w !sudo tee % > /dev/null -hi scalaNew gui=underline -hi scalaMethodCall gui=italic -hi scalaValName gui=underline -hi scalaVarName gui=underline "folding set foldcolumn=2 set foldmethod=marker @@ -206,7 +175,7 @@ set statusline+=%{((exists(\"+bomb\")\ &&\ &bomb)?\"B,\":\"\")}]\ " BOM set statusline+=%{strftime('%a\ %b\ %e\ %H:%M')}\ " hour "set statusline+=%{SyntaxItem()} " syntax highlight group under cursor set statusline+=%= " right align -if !empty(glob("$HOME/.vim/bundle/vim-fugitive/plugin/fugitive.vim")) +if !empty(glob("$HOME/.vim/pack/tpope/start/vim-fugitive/plugin/fugitive.vim")) set statusline+=%{fugitive#statusline()}\ " git branch endif set statusline+=0x%-8B\ " current char @@ -215,12 +184,6 @@ set statusline+=%-14.(%l,%c%V%)\ %<%P " offset "tags set tags=tags,./tags,../tags,../../tags -"C syntax for ellisys files -autocmd BufNewFile,BufRead *.usbs set filetype=c - -"C syntax for ARM Scatterfiles -autocmd BufNewFile,BufRead *.scat set filetype=c - "ARM Assembler for .s files autocmd BufNewFile,BufRead *.s set filetype=armasm @@ -294,19 +257,11 @@ noremap :let @/ = expand(''):3match none highlight ManualHighlight ctermbg=darkcyan guibg=darkcyan noremap :exe printf('match ManualHighlight /%s/', escape(expand(''), '/\')) -"if has("gui_running") -" " auto highlight word under cursor -" highlight WordUnderCursor ctermbg=darkred guibg=#552211 -" autocmd CursorMoved * exe printf('3match WordUnderCursor /\V\<%s\>/', escape(expand(''), '/\')) -"endif - "Show tabs set listchars=tab:›\ ,trail:␣ set list -"clang_complete options set completeopt=menu,menuone,longest -"let g:clang_complete_copen=1 noremap R :cscope reset:CtrlPClearAllCaches @@ -363,9 +318,5 @@ inoremap "very magic search noremap / /\v -call neobundle#end() - filetype plugin indent on -NeoBundleCheck - -- cgit v1.2.3