Added CSCope plugin and keybindings
Added Vim-Airline Added Vim-Bufferline
This commit is contained in:
9
.gitmodules
vendored
9
.gitmodules
vendored
@@ -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
|
||||
|
||||
1
vim/bundle/quickr-cscope.vim
Submodule
1
vim/bundle/quickr-cscope.vim
Submodule
Submodule vim/bundle/quickr-cscope.vim added at 3c7ccd4ad8
1
vim/bundle/vim-airline
Submodule
1
vim/bundle/vim-airline
Submodule
Submodule vim/bundle/vim-airline added at f5a6597496
1
vim/bundle/vim-bufferline
Submodule
1
vim/bundle/vim-bufferline
Submodule
Submodule vim/bundle/vim-bufferline added at 651fd010aa
22
vimrc
22
vimrc
@@ -11,13 +11,13 @@ set ignorecase
|
||||
set smartcase
|
||||
set smartindent
|
||||
set tags=./tags;
|
||||
set tags+=./kernel.tags;
|
||||
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
|
||||
syntax on
|
||||
filetype plugin indent on
|
||||
"set omnifunc=syntaxcomplete#Complete
|
||||
colorscheme apprentice
|
||||
|
||||
nnoremap tn :tabnew<CR>
|
||||
|
||||
map <C-\> :tab split<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
|
||||
"
|
||||
|
||||
" Nerdtree
|
||||
nnoremap <leader>n :NERDTreeFocus<CR>
|
||||
nnoremap <C-n> :NERDTreeToggle<CR>
|
||||
nnoremap <C-f> :NERDTreeFind<CR>
|
||||
|
||||
" Taglist
|
||||
nnoremap <C-l> :TlistToggle<CR>
|
||||
nnoremap <C-p> :TlistShowPrototype<CR>
|
||||
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 <C-g> :GitGutterToggle<CR>
|
||||
|
||||
" OmniCpp
|
||||
let OmniCpp_MayCompleteDot = 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
|
||||
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_wq = 0
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user