Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the default quickfix window height for gv #29

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion autoload/ag.vim
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ function! ag#Ag(cmd, args)
nnoremap <silent> <buffer> v <C-w><CR><C-w>H<C-W>b<C-W>J<C-W>t

nnoremap <silent> <buffer> gv <C-w><CR><C-w>H<C-w>b<C-w>J80<C-w>-5<C-w>+
nnoremap <silent> <buffer> gv <C-w><CR><C-w>H<C-w>b<C-w>J80<C-w>-9<C-w>+
" Interpretation:
" ^W<cr> Jump to quickfix under cursor (this is a default quickfix window binding)
" ^WH Slam the new window to the left wall
" ^Wb Go to the bottom-right window, which is the quickfix window
" ^WJ Slam it to the floor
" 80^W- Decrease this window by (at most) 80 lines.
" 5^W+ Increase the quickfix window by 5 lines, so you can see what you're doing
" 9^w+ Undecrease the quickfix window by 9, which is the default
" quickfix window height

" TODO: j Now you probably want to do something on the next line

Expand Down