vimrc simplification
This commit is contained in:
parent
40322be308
commit
b99919de87
1 changed files with 14 additions and 24 deletions
38
.vimrc
38
.vimrc
|
|
@ -137,6 +137,14 @@ inoremap <C-a> <C-O>^
|
||||||
inoremap <C-e> <C-O>$
|
inoremap <C-e> <C-O>$
|
||||||
imap <C-c> <Esc>
|
imap <C-c> <Esc>
|
||||||
|
|
||||||
|
|
||||||
|
nmap <silent> <C-j> :FocusNextWindow<CR>
|
||||||
|
nmap <silent> <C-k> :FocusPrevWindow<CR>
|
||||||
|
nmap <silent> <C-m> :FocusMasterWindow<CR>
|
||||||
|
nmap <silent> <C-Enter> :SwapWithMasterWindow<CR>
|
||||||
|
nmap <silent> <C-Down> :SwapWithNextWindow<CR>
|
||||||
|
nmap <silent> <C-Up> :SwapWithPrevWindow<CR>
|
||||||
|
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set statusline=%t "tail of the filename
|
set statusline=%t "tail of the filename
|
||||||
"set statusline+=[%{&ff}] "file format
|
"set statusline+=[%{&ff}] "file format
|
||||||
|
|
@ -257,31 +265,18 @@ let g:disable_google_optional_settings = 1
|
||||||
if filereadable("/usr/share/vim/google/google.vim")
|
if filereadable("/usr/share/vim/google/google.vim")
|
||||||
source /usr/share/vim/google/google.vim
|
source /usr/share/vim/google/google.vim
|
||||||
let g:google = 1
|
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
|
endif
|
||||||
|
|
||||||
if g:google != 0
|
if g:google != 0
|
||||||
augroup filetypedetect
|
augroup filetypedetect
|
||||||
au WinEnter,BufNewFile,BufRead * call HighlightTooLongLines()
|
au WinEnter,BufNewFile,BufRead * call HighlightTooLongLines()
|
||||||
augroup END
|
augroup END
|
||||||
if filereadable("/home/williasr/.vim.d/blaze.vim")
|
" Load Blaze errors into quickfix mode
|
||||||
source /home/williasr/.vim.d/blaze.vim
|
nmap <Leader>bl :call LoadBlazeErrors():cc<CR>
|
||||||
" Load Blaze errors into quickfix mode
|
" Run the most appropriate blaze command on the target for the current file.
|
||||||
nmap <Leader>bl :call LoadBlazeErrors():cc<CR>
|
nmap <Leader>bb :call BlazeDwim()
|
||||||
" Run the most appropriate blaze command on the target for the current file.
|
" Run update_deps on the target for the current file.
|
||||||
nmap <Leader>bb :call BlazeDwim()
|
nmap <Leader>bu :call UpdateDepsDwim()<CR>
|
||||||
" Run update_deps on the target for the current file.
|
|
||||||
nmap <Leader>bu :call UpdateDepsDwim()<CR>
|
|
||||||
endif
|
|
||||||
" Configure a 'Comments' command to import CL code review comments into the
|
" Configure a 'Comments' command to import CL code review comments into the
|
||||||
" quickfix buffer.
|
" quickfix buffer.
|
||||||
command! Comments cexpr system('git5 comments -q -u')
|
command! Comments cexpr system('git5 comments -q -u')
|
||||||
|
|
@ -289,11 +284,6 @@ if g:google != 0
|
||||||
nmap <leader>bs :!google-chrome https://cs.corp.google.com/'<cword>'<CR><CR>
|
nmap <leader>bs :!google-chrome https://cs.corp.google.com/'<cword>'<CR><CR>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if filereadable("/home/build/nonconf/google3/tools/tags/gtags.vim")
|
|
||||||
source /home/build/nonconf/google3/tools/tags/gtags.vim
|
|
||||||
nmap <C-]> :exe 'Gtlist ' . expand('<cword>')<CR>
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Configure browser for haskell_doc.vim
|
" Configure browser for haskell_doc.vim
|
||||||
let g:haddock_browser = "open"
|
let g:haddock_browser = "open"
|
||||||
let g:haddock_browser_callformat = "%s %s"
|
let g:haddock_browser_callformat = "%s %s"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue