From 36e40f9ec91bdbf6f1adf408522a73a6925c3042 Mon Sep 17 00:00:00 2001 From: Ches Martin Date: Wed, 28 Feb 2018 01:50:24 +0700 Subject: [PATCH] Fix ackpreview when there are splits When previewing we want to open the result and then move back to the results buffer, the previous window (`:h CTRL-W_p`) -- not cycle through windows (`:h CTRL-W_w`) which would include other splits besides the results list. Fixes #238 --- autoload/ack.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/ack.vim b/autoload/ack.vim index dbf84572..b6afdba4 100644 --- a/autoload/ack.vim +++ b/autoload/ack.vim @@ -130,8 +130,8 @@ function! s:ApplyMappings() "{{{ endif if exists("g:ackpreview") " if auto preview in on, remap j and k keys - nnoremap j j - nnoremap k k + nnoremap j j + nnoremap k k nmap j nmap k endif