From b99919de871984d1f8e0dc5244d168552bde0790 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Wed, 14 Nov 2012 14:25:21 -0800 Subject: [PATCH] vimrc simplification --- .vimrc | 38 ++++++++++++++------------------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/.vimrc b/.vimrc index 1ced1fb..2078ec8 100644 --- a/.vimrc +++ b/.vimrc @@ -137,6 +137,14 @@ inoremap ^ inoremap $ imap + +nmap :FocusNextWindow +nmap :FocusPrevWindow +nmap :FocusMasterWindow +nmap :SwapWithMasterWindow +nmap :SwapWithNextWindow +nmap :SwapWithPrevWindow + set laststatus=2 set statusline=%t "tail of the filename "set statusline+=[%{&ff}] "file format @@ -257,31 +265,18 @@ let g:disable_google_optional_settings = 1 if filereadable("/usr/share/vim/google/google.vim") source /usr/share/vim/google/google.vim let g:google = 1 -else - if filereadable("/google/src/head/depot/eng/vim/google.vim") - source /google/src/head/depot/eng/vim/google.vim - let g:google = 1 - else - if filereadable("/home/build/public/eng/vim/google.vim") - source /home/build/public/eng/vim/google.vim - let g:google = 1 - endif - endif endif if g:google != 0 augroup filetypedetect au WinEnter,BufNewFile,BufRead * call HighlightTooLongLines() augroup END - 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 - " 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() - endif + " Load Blaze errors into quickfix mode + 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() " Configure a 'Comments' command to import CL code review comments into the " quickfix buffer. command! Comments cexpr system('git5 comments -q -u') @@ -289,11 +284,6 @@ if g:google != 0 nmap bs :!google-chrome https://cs.corp.google.com/'' endif -if filereadable("/home/build/nonconf/google3/tools/tags/gtags.vim") - source /home/build/nonconf/google3/tools/tags/gtags.vim - nmap :exe 'Gtlist ' . expand('') -endif - " Configure browser for haskell_doc.vim let g:haddock_browser = "open" let g:haddock_browser_callformat = "%s %s"