Added CSCope plugin and keybindings

Added Vim-Airline
Added Vim-Bufferline
This commit is contained in:
Autumn Naber
2022-11-02 12:27:21 -07:00
parent 036248b797
commit d5f5cf2ef6
5 changed files with 31 additions and 3 deletions

9
.gitmodules vendored
View File

@@ -28,3 +28,12 @@
[submodule "vim/bundle/indentLine"] [submodule "vim/bundle/indentLine"]
path = vim/bundle/indentLine path = vim/bundle/indentLine
url = https://github.com/Yggdroot/indentLine.git 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

22
vimrc
View File

@@ -11,13 +11,13 @@ set ignorecase
set smartcase set smartcase
set smartindent set smartindent
set tags=./tags; set tags=./tags;
set tags+=./kernel.tags;
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR> :nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
syntax on syntax on
filetype plugin indent on filetype plugin indent on
"set omnifunc=syntaxcomplete#Complete
colorscheme apprentice colorscheme apprentice
nnoremap tn :tabnew<CR>
map <C-\> :tab split<CR>:exec("tag ".expand("<cword>"))<CR> map <C-\> :tab split<CR>:exec("tag ".expand("<cword>"))<CR>
map <A-]> :vsp <CR>:exec("tag ".expand("<cword>"))<CR> map <A-]> :vsp <CR>:exec("tag ".expand("<cword>"))<CR>
@@ -29,26 +29,34 @@ map <A-]> :vsp <CR>:exec("tag ".expand("<cword>"))<CR>
silent! helptags ALL silent! helptags ALL
" "
" Nerdtree
nnoremap <leader>n :NERDTreeFocus<CR> nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTreeToggle<CR> nnoremap <C-n> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR> nnoremap <C-f> :NERDTreeFind<CR>
" Taglist
nnoremap <C-l> :TlistToggle<CR> nnoremap <C-l> :TlistToggle<CR>
nnoremap <C-p> :TlistShowPrototype<CR> nnoremap <C-p> :TlistShowPrototype<CR>
let Tlist_Use_Right_Window = 1 " Move window to right side let Tlist_Use_Right_Window = 1 " Move window to right side
let Tlist_Exit_OnlyWindow = 1 " Close if only window left let Tlist_Exit_OnlyWindow = 1 " Close if only window left
let Tlist_Hightlight_Tag_On_BufEnter = 1 " Hightlight current tag let Tlist_Hightlight_Tag_On_BufEnter = 1 " Hightlight current tag
let Tlist_Display_Prototypte = 1 " Show full prototype at bottom let Tlist_Display_Prototypte = 1 " Show full prototype at bottom
let Tlist_Ctags_Cmd = 'ctags --extra=-q --c++-kinds=-p'
" vim-rainbow " vim-rainbow
let g:rainbow_active = 1 let g:rainbow_active = 1
let g:rainbow_guifgs = ['RoyalBlue3', 'DarkOrange3', 'DarkOrchid3', 'FireBrick']
let g:rainbow_ctermfgs = ['lightblue', 'lightgreen', 'yellow', 'red', 'magenta']
nnoremap <C-g> :GitGutterToggle<CR> nnoremap <C-g> :GitGutterToggle<CR>
" OmniCpp
let OmniCpp_MayCompleteDot = 0 let OmniCpp_MayCompleteDot = 0
let OmniCpp_MayCompleteArrow = 0 let OmniCpp_MayCompleteArrow = 0
" set omnifunc=syntaxcomplete#Complete
let g:SuperTabDefaultCompletionType = "<c-x><c-o>" " Supertab
let g:SuperTabDefaultCompletionType = "<c-x><c-]>"
" Fugitive conflict resolution " Fugitive conflict resolution
nnoremap <leader>gd :Gvdiff<CR> nnoremap <leader>gd :Gvdiff<CR>
@@ -71,3 +79,11 @@ let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0 let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0 let g:syntastic_check_on_wq = 0
nnoremap <C-y> :SyntasticToggleMode<CR> nnoremap <C-y> :SyntasticToggleMode<CR>
" 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