Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-22 Thread ping song
wow...that helps! sorry for my stupid question. it seems I did't learn taglist well.. thanks! but, I think my question might remain valid as a generic question: how to define a new map : 1) in .vimrc 2) specific to a ft and local buffer 3) make it overide all other plugins/scripts, but just overid

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-22 Thread Yegappan Lakshmanan
Hi, On Sun, Dec 22, 2013 at 11:48 AM, ping song wrote: > gee..I just tried this idea on another scenario, didn't work... > > "this doesn't work, guess overided by taglist > augroup MyTagListCommand > au! > au BufEnter FileType taglist nnoremap p > augroup END > > > n *@:call 11

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-22 Thread ping song
gee..I just tried this idea on another scenario, didn't work... "this doesn't work, guess overided by taglist augroup MyTagListCommand au! au BufEnter FileType taglist nnoremap p augroup END n *@:call 117_Tlist_Window_Jump_To_Tag('useopen') Last set from ~/.vim/plugin/

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-21 Thread ping song
I think this might be another great thought that solves the issue from a different angle.. filter the quickfix 2nd time is a good idea. thanks! On Wed, Dec 18, 2013 at 5:37 AM, Marc Weber wrote: > Map :cnext and :cprev to keys, then :cnext is fast. > > If you have to find a different line, thin

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-21 Thread ping song
thanks Chris, this works! I didn't know that vim can: define a map for just one filetype further, just for one buffer. that's nice! On Wed, Dec 18, 2013 at 4:39 AM, Christian Brabandt wrote: > On Wed, December 18, 2013 10:30, ping song wrote: > > I guess this is an old topic, at least I asked ea

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-18 Thread Marc Weber
Map :cnext and :cprev to keys, then :cnext is fast. If you have to find a different line, think about how you find it. Eg if you look for .txt files in the grep result only, see github.com/MarcWeber/vim-addon-other about a possible keep lines / drop lines implementation based on regular expressio

Re: vim quickfix: make a locate the match but don't jump on it.

2013-12-18 Thread Christian Brabandt
On Wed, December 18, 2013 10:30, ping song wrote: > I guess this is an old topic, at least I asked earlier some time ago. > but I seems never got the good resolution... > > quickfix windows is handy. the :cXXX commands are also good. current work > flow is sth like this: > > 1. you search via vimgr

vim quickfix: make a locate the match but don't jump on it.

2013-12-18 Thread ping song
I guess this is an old topic, at least I asked earlier some time ago. but I seems never got the good resolution... quickfix windows is handy. the :cXXX commands are also good. current work flow is sth like this: 1. you search via vimgrep :vimgrep /abc/gj ## 2. :cw to open the quickfix(QF) win 3