Just for the record, I found what I was looking for, and it is "%:p:h".
Thus, the command is something like  ":lvim /pattern/gj %:p:h/*.txt".

On Tue, Jan 10, 2012 at 6:51 PM, Alexandre Provencio <
[email protected]> wrote:

> Hello guys, I used to have 'autochdir' set on vimrc and among other things
> I was able to use lvimgrep to search on my actual buffer's dir for a
> pattern, as easy as ':lvim /pattern/gj *.txt'
>
> After installing Fuzzy Finder plugin and using its bookmarking
> functionality, I found out disabling 'autochdir' was the right thing, but
> as a consequence I have to specify to lvimgrep the dir I'm in (:lvim
> /pattern/gj /boring/path/to/type/*.txt), or cd into the dir beforehand,
> which also does not seem to be a good practice for Fuzzy Finder bookmarks.
>
> I would like to know from you guys if there's a way to make a lvimgrep
> statement to search within the current buffer's dir instead of current
> working dir, and if this is the best answer.
>
> Thank you
>
>

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to