Ver Fonte

Added some fun stuff to vimrc, got rid of YCM, and added gdb support

wreed4 há 11 anos atrás
pai
commit
ba28f4acfe
4 ficheiros alterados com 37 adições e 9 exclusões
  1. 3 3
      .gitmodules
  2. 33 5
      .vimrc
  3. 0 1
      bundle/YouCompleteMe
  4. 1 0
      bundle/tagbar

+ 3 - 3
.gitmodules

@@ -19,9 +19,6 @@
 [submodule "bundle/vim-snippets"]
 	path = bundle/vim-snippets
 	url = https://github.com/garbas/vim-snipmate.git
-[submodule "bundle/YouCompleteMe"]
-	path = bundle/YouCompleteMe
-	url = https://github.com/Valloric/YouCompleteMe.git
 [submodule "bundle/matchit"]
 	path = bundle/matchit
 	url = https://github.com/tmhedberg/matchit.git
@@ -40,3 +37,6 @@
 [submodule "bundle/vim-surround"]
 	path = bundle/vim-surround
 	url = https://github.com/tpope/vim-surround.git
+[submodule "bundle/tagbar"]
+	path = bundle/tagbar
+	url = https://github.com/majutsushi/tagbar.git

+ 33 - 5
.vimrc

@@ -12,6 +12,22 @@ let pymode_lint_ignore="E501,E401,E225,W191,W391,W404"
 " use rope code assist instead of a complete function
 " au FileType python inoremap <expr> <S-Space> '<C-r>=RopeCodeAssistInsertMode()<CR><C-r>=pumvisible() ? "\<lt>C-p>\<lt>Down>" : ""<CR>'
 
+" Tlist
+" Toggle tag list
+" nnoremap <C-T> :TlistToggle<CR>
+
+" Tagbar options
+let g:tagbar_autofocus = 1
+let g:tagbar_left = 1
+let g:tagbar_zoomwidth = 0
+let g:tagbar_autofocus = 1
+
+" open Tagbar automatically when viewing a supported file/files
+autocmd VimEnter * nested :call tagbar#autoopen(1)
+
+" Toggle Tagbar
+nnoremap <C-T> :TagbarToggle<CR>
+
 " }}}
 
 "{{{ ***** VIM FEATURES ***** "
@@ -59,12 +75,11 @@ set whichwrap+=<,>,h,l
 
 set pastetoggle=<F2>
 nmap <F12> :mks!<CR>
-nnoremap <F3> :!rakefds build release && source X86_64/environment.sh<CR>
-nnoremap <F4> :!rakefds build debug && source X86_64/environment.sh<CR>
+nnoremap <F3> :make! build release 
+nnoremap <F4> :make! build debug 
 
 " look up things in opengrok
-noremap <leader>K :!elinks http://opengrok.factset.com/source/search?defs=<cword>&project=%2Fonline%2Fmakefds<CR>
-
+noremap <leader>K :call OpenGrok()<CR>
 " treat wrapped lines as multiple lines when navigating
 map j gj
 map k gk
@@ -79,6 +94,19 @@ map <C-l> <C-W>l
 "{{{ ***** PROJECTS ***** "
 
 " set default project options
-"set makeprg=rakefds 
+set makeprg=rakefds 
 " }}}
 
+
+"{{{ ***** FUNCTIONS ***** "
+" open OpenGrok in midori
+function! OpenGrok()
+    :!midori http://opengrok.factset.com/source/search?defs=<cword>&project=%2Fonline%2Fmakefds<CR>
+endfunction
+
+" }}}
+
+
+"{{{ ***** COMMANDS ***** " 
+" make todo list
+command -nargs=* -complete=file Todos vimgrep /asdf:/gj *|cw

+ 0 - 1
bundle/YouCompleteMe

@@ -1 +0,0 @@
-Subproject commit 9cff4e854819f8d46b9752318e529eafd9cb3858

+ 1 - 0
bundle/tagbar

@@ -0,0 +1 @@
+Subproject commit 59c9b7ce1cc70ac2c7bd3c858e80c89f17b42cc9