diff --git a/.gitmodules b/.gitmodules index 81e1652..fce7928 100644 --- a/.gitmodules +++ b/.gitmodules @@ -37,3 +37,6 @@ [submodule ".vim/bundle/command-t"] path = .vim/bundle/command-t url = git://git.wincent.com/command-t.git +[submodule ".vim/bundle/EasyGrep"] + path = .vim/bundle/EasyGrep + url = https://github.com/vim-scripts/EasyGrep.git diff --git a/.vim/bundle/EasyGrep b/.vim/bundle/EasyGrep new file mode 160000 index 0000000..4323a37 --- /dev/null +++ b/.vim/bundle/EasyGrep @@ -0,0 +1 @@ +Subproject commit 4323a37f71a539a004e2630fc9eae19df7a82c7c diff --git a/.vimrc b/.vimrc index bbd2010..1ced1fb 100644 --- a/.vimrc +++ b/.vimrc @@ -73,6 +73,7 @@ let g:NERDChristmasTree = 1 let g:NERDChristmasTree = 1 let g:NERDTreeQuitOnOpen = 1 let g:NERDTreeWinPos = "right" +let g:NERDTreeWinSize = 40 " Tagbar plugin settings let g:tagbar_width = 40 @@ -235,9 +236,10 @@ augroup END nnoremap ff :QFix nnoremap fn :cnext nnoremap fp :cprev -nnoremap aw :AckWord +nnoremap aw :exe 'Ack ' . expand('') nnoremap ac :Ack nnoremap hh :A +nnoremap o :CommandTBuffer nnoremap j nnoremap p :PTW @@ -274,16 +276,17 @@ if g:google != 0 if filereadable("/home/williasr/.vim.d/blaze.vim") source /home/williasr/.vim.d/blaze.vim " Load Blaze errors into quickfix mode - nmap bl :call LoadBlazeErrors():cc + nmap bl :call LoadBlazeErrors():cc " Run the most appropriate blaze command on the target for the current file. nmap bb :call BlazeDwim() " Run update_deps on the target for the current file. - nmap bu :call UpdateDepsDwim() + nmap bu :call UpdateDepsDwim() endif " Configure a 'Comments' command to import CL code review comments into the " quickfix buffer. command! Comments cexpr system('git5 comments -q -u') command! Lint cexpr system('git5 lint -q') + nmap bs :!google-chrome https://cs.corp.google.com/'' endif if filereadable("/home/build/nonconf/google3/tools/tags/gtags.vim")