diff --git a/autoload/ack.vim b/autoload/ack.vim index b6afdba4..f4c31892 100644 --- a/autoload/ack.vim +++ b/autoload/ack.vim @@ -114,26 +114,26 @@ function! s:ApplyMappings() "{{{ let l:closemap = ':' . l:wintype . 'close' let g:ack_mappings.q = l:closemap - nnoremap ? :call QuickHelp() + silent! nnoremap ? :call QuickHelp() if g:ack_autoclose " We just map the 'go' and 'gv' mappings to close on autoclose, wtf? for key_map in items(g:ack_mappings) - execute printf("nnoremap %s %s", get(key_map, 0), get(key_map, 1) . l:closemap) + silent! execute printf("nnoremap %s %s", get(key_map, 0), get(key_map, 1) . l:closemap) endfor - execute "nnoremap " . l:closemap + silent! execute "nnoremap " . l:closemap else for key_map in items(g:ack_mappings) - execute printf("nnoremap %s %s", get(key_map, 0), get(key_map, 1)) + silent! execute printf("nnoremap %s %s", get(key_map, 0), get(key_map, 1)) endfor endif if exists("g:ackpreview") " if auto preview in on, remap j and k keys - nnoremap j j - nnoremap k k - nmap j - nmap k + silent! nnoremap j j + silent! nnoremap k k + silent! nmap j + silent! nmap k endif endfunction "}}}