We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 29b7dd8 + c1ba93d commit 13495abCopy full SHA for 13495ab
plugin/ack.vim
@@ -81,6 +81,12 @@ function! s:Ack(cmd, args)
81
exec "nnoremap <silent> <buffer> H <C-W><CR><C-W>K<C-W>b"
82
exec "nnoremap <silent> <buffer> v <C-W><CR><C-W>H<C-W>b<C-W>J<C-W>t"
83
exec "nnoremap <silent> <buffer> gv <C-W><CR><C-W>H<C-W>b<C-W>J"
84
+
85
+ " If auto preview in on, remap j and k keys
86
+ if exists("g:ackpreview")
87
+ exec "nnoremap <silent> <buffer> j j<CR><C-W><C-W>"
88
+ exec "nnoremap <silent> <buffer> k k<CR><C-W><C-W>"
89
+ endif
90
endif
91
92
" If highlighting is on, highlight the search keyword.
0 commit comments