From d5f5cf2ef60544f4683b4eedd99b01371dfa8481 Mon Sep 17 00:00:00 2001 From: Autumn Naber Date: Wed, 2 Nov 2022 12:27:21 -0700 Subject: [PATCH] Added CSCope plugin and keybindings Added Vim-Airline Added Vim-Bufferline --- .gitmodules | 9 +++++++++ vim/bundle/quickr-cscope.vim | 1 + vim/bundle/vim-airline | 1 + vim/bundle/vim-bufferline | 1 + vimrc | 22 +++++++++++++++++++--- 5 files changed, 31 insertions(+), 3 deletions(-) create mode 160000 vim/bundle/quickr-cscope.vim create mode 160000 vim/bundle/vim-airline create mode 160000 vim/bundle/vim-bufferline diff --git a/.gitmodules b/.gitmodules index dd603a4..50c72f5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -28,3 +28,12 @@ [submodule "vim/bundle/indentLine"] path = vim/bundle/indentLine url = https://github.com/Yggdroot/indentLine.git +[submodule "vim/bundle/vim-airline"] + path = vim/bundle/vim-airline + url = https://github.com/vim-airline/vim-airline +[submodule "vim/bundle/quickr-cscope.vim"] + path = vim/bundle/quickr-cscope.vim + url = https://github.com/ronakg/quickr-cscope.vim +[submodule "vim/bundle/vim-bufferline"] + path = vim/bundle/vim-bufferline + url = https://github.com/bling/vim-bufferline diff --git a/vim/bundle/quickr-cscope.vim b/vim/bundle/quickr-cscope.vim new file mode 160000 index 0000000..3c7ccd4 --- /dev/null +++ b/vim/bundle/quickr-cscope.vim @@ -0,0 +1 @@ +Subproject commit 3c7ccd4ad8aa626a7fbb8564c51c8ccf529412cc diff --git a/vim/bundle/vim-airline b/vim/bundle/vim-airline new file mode 160000 index 0000000..f5a6597 --- /dev/null +++ b/vim/bundle/vim-airline @@ -0,0 +1 @@ +Subproject commit f5a6597496506da19d8177f4efc569e4971d0b74 diff --git a/vim/bundle/vim-bufferline b/vim/bundle/vim-bufferline new file mode 160000 index 0000000..651fd01 --- /dev/null +++ b/vim/bundle/vim-bufferline @@ -0,0 +1 @@ +Subproject commit 651fd010aa9613a4b8636a4af8a2db0d22800262 diff --git a/vimrc b/vimrc index 1fa69d2..683d87f 100644 --- a/vimrc +++ b/vimrc @@ -11,13 +11,13 @@ set ignorecase set smartcase set smartindent set tags=./tags; -set tags+=./kernel.tags; :nnoremap :nohlsearch:echo syntax on filetype plugin indent on -"set omnifunc=syntaxcomplete#Complete colorscheme apprentice +nnoremap tn :tabnew + map :tab split:exec("tag ".expand("")) map :vsp :exec("tag ".expand("")) @@ -29,26 +29,34 @@ map :vsp :exec("tag ".expand("")) silent! helptags ALL " +" Nerdtree nnoremap n :NERDTreeFocus nnoremap :NERDTreeToggle nnoremap :NERDTreeFind +" Taglist nnoremap :TlistToggle nnoremap :TlistShowPrototype let Tlist_Use_Right_Window = 1 " Move window to right side let Tlist_Exit_OnlyWindow = 1 " Close if only window left let Tlist_Hightlight_Tag_On_BufEnter = 1 " Hightlight current tag let Tlist_Display_Prototypte = 1 " Show full prototype at bottom +let Tlist_Ctags_Cmd = 'ctags --extra=-q --c++-kinds=-p' " vim-rainbow let g:rainbow_active = 1 +let g:rainbow_guifgs = ['RoyalBlue3', 'DarkOrange3', 'DarkOrchid3', 'FireBrick'] +let g:rainbow_ctermfgs = ['lightblue', 'lightgreen', 'yellow', 'red', 'magenta'] nnoremap :GitGutterToggle +" OmniCpp let OmniCpp_MayCompleteDot = 0 let OmniCpp_MayCompleteArrow = 0 +" set omnifunc=syntaxcomplete#Complete -let g:SuperTabDefaultCompletionType = "" +" Supertab +let g:SuperTabDefaultCompletionType = "" " Fugitive conflict resolution nnoremap gd :Gvdiff @@ -71,3 +79,11 @@ let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 0 let g:syntastic_check_on_wq = 0 nnoremap :SyntasticToggleMode + +" vim-airline +let g:airline#extensions#whitespace#enabled = 0 +if !exists('g:airline_symbols') + let g:airline_symbols = {} +endif +let g:airline_symbols.colnr = '' +let g:airline#extensions#taglist#enabled = 1