Open Anstow opened 8 years ago
This also occurs when using
nnoremap t j
nnoremap j t
A possible solution would be a way to disable the default mappings in g:ack_mappings
.
Yep, I have the same problem, I would like to remap
nnoremap t j
nnoremap j t
Setting g:ack_mappings seems to extend the existing mappings, instead of replacing them. I had to replace it directly in the file ack.vim/plugin/ack.vim, which is only a temporary solution.
Another solution to replace the mappings is using an autocommand. For example
autocmd VimEnter * let g:ack_mappings = { "o": "<CR>" }
will replace the ack_mappings after vim has started (disabling the offending ack_mapping of t
). This is sufficient for my purposes and I would be happy to call this issue closed assuming @NicolasWebDev doesn't have any other comments.
Looks like the code currently will extend the s:ack_mappings
if g:ack_mappings
is set.
Using
One would expect the t key to move around the quickfix window and the
j
key open a new tab. However with this set up the neither key moves around the window andt
opens a new tab.I believe this is due to the double remapping of
t
andT
in the normal mode mappingI can't not set
nolangremap
as this would break other plugins.