Ack.vim is a plugin for the Perl CLI script
ack which is a replacement of
It provides a front for running
ack from vim.
By default, It will search recursively under the current directory. It’s not convenient to search of a project.
Fortunately, there is a plugin vim-rooter which will changes the working directory to the project root automatically.
I use Janus for my Vim. So I git clone it to
It works great, but if I open Vim from the terminal, I got a key mapping conflict error message:
1 2 3
<leader>cd to changes the path to the active buffer’s file,
vim-rooter also try to map
Here is the source
1 2 3
The Solution is simple, just create a mapping to