Permalink
Browse files

Remove <Leader>q to close quickfix. <C-W>c is fine.

  • Loading branch information...
1 parent 8ac029f commit 4e0acd24469bb8d1af75322c47e6137448c0f250 @jasoncodes committed Oct 7, 2012
Showing with 0 additions and 13 deletions.
  1. +0 −12 functions.vim
  2. +0 −1 keybindings.vim
View
12 functions.vim
@@ -30,15 +30,3 @@ function! UpdateTags()
call system('(cd "'.b:git_dir.'/.." && [ "$(pwd)" != /usr/local ] && nice ctags --tag-relative -R -f .git/tags.new --exclude=.git --langmap="ruby:+.rake.builder.rjs" . && mv .git/tags.new .git/tags) &')
endif
endfunction
-
-" Closes the quickfix window if it's open, overwise the focused window.
-function! CloseWindow()
- for i in range(1, winnr('$'))
- let bnum = winbufnr(i)
- if getbufvar(bnum, '&buftype') == 'quickfix'
- cclose
- return
- endif
- endfor
- close
-endfunction
View
1 keybindings.vim
@@ -36,7 +36,6 @@ map <Leader>a ggVG
" Buffer navigation
map <Leader>, <C-^>
map <Leader>w :CommandW<CR>
-nmap <silent><Leader>q :call CloseWindow()<CR>
map <Leader>T :CtrlPClearAllCaches<CR>:CtrlP<CR>
map <Leader>l :CtrlPBuffer<CR>

0 comments on commit 4e0acd2

Please sign in to comment.