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:
parent
410560d54e
commit
c47f86d55b
90 changed files with 9641 additions and 1653 deletions
27
.vimrc
27
.vimrc
|
|
@ -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
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue