mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

history list is changed #175

Open Yggdroot opened 8 years ago

Yggdroot commented 8 years ago

I have let g:ackhighlight = 1 in my vimrc.

After Ack xxx, the last cmd in history list is let &hlsearch=1 | echo.

ches commented 8 years ago

The implementation of this is pretty hacky. It precedes my time as maintainer, I'm not exactly sure why it's done the way it is, but I can recall seeing some git history waffling around on it, so if you want to investigate, check out the git blame and follow it through parent commits to try to understand (fugitive's re-blame support is handy).

It should be possible to work around it with some histdel() hackery or maybe some other approach altogether, but to be frank it's not something that bothers me enough that I'm likely to try to figure it out with any urgency. Patches welcome 😃