mileszs / ack.vim

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

Hitting enter on a file doesn't open it #1

Closed marcus closed 14 years ago

marcus commented 14 years ago

Hi, great plugin. I'm using Snow Leopard, and in both the latest MacVim and vim 7.2 hitting return after searching doesn't open the file. It's highlighted, but nothing happens.

airblade commented 14 years ago

I have the same problem. Not sure how to debug this.

marcus commented 14 years ago

I "fixed" this by finding someone who had forked it and fixed it. I'm not positive which one I used, but try this one:

git://github.com/adamlogic/ack.vim.git

If that doesn't work, check out the network tab. It's in there.

airblade commented 14 years ago

I looked in all the forks for this but couldn't find it. Can you remember if it was part of a larger commit?

airblade commented 14 years ago

Found the problem: I had this line in my .vimrc:

nnoremap <CR> :noh<CR>            " Turn off search highlighting

The comment became part of the map, so every time I pressed <CR> the cursor moved twelve characters to the right. Obvious in retrospect.