Add a bunch of stuff, change leader key

git-svn-id: http://photonzero.com/dotfiles/trunk@70 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
michener 2010-10-09 02:28:34 +00:00
parent 410560d54e
commit c47f86d55b
90 changed files with 9641 additions and 1653 deletions

27
.vimrc
View file

@ -12,6 +12,7 @@ set ts=8
set softtabstop=2
set shiftwidth=2
set expandtab
let mapleader = ","
filetype off
call pathogen#runtime_append_all_bundles()
@ -55,6 +56,8 @@ autocmd FileType python set tags+=$HOME/.vim/tags/python.ctags
let python_highlight_all = 1
let g:Tb_MaxSize=0
let g:Tb_MapCTabSwitchBufs = 1
let g:buftabs_only_basename = 1
"let g:buftabs_in_statusline=1
"MiniBufExplore Options
@ -185,6 +188,28 @@ function! Find(name)
endfunction
command! -nargs=1 Find :call Find("<args>")
" toggles the quickfix window.
command -bang -nargs=? QFix call QFixToggle(<bang>0)
function! QFixToggle(forced)
if exists("g:qfix_win") && a:forced == 0
cclose
else
execute "copen " . 15
endif
endfunction
" used to track the quickfix window
augroup QFixToggle
autocmd!
autocmd BufWinEnter quickfix let g:qfix_win = bufnr("$")
autocmd BufWinEnter quickfix exec "nnoremap <silent> <buffer> q :QFix<CR>"
autocmd BufWinLeave * if exists("g:qfix_win") && expand("<abuf>") == g:qfix_win | unlet! g:qfix_win | endif
augroup END
nnoremap <Leader>qf :QFix<CR>
nnoremap <Leader>aw :AckWord<CR>
nnoremap <Leader>ac :Ack
" Googley things....
function! HighlightTooLongLines()
@ -224,3 +249,5 @@ endif