Re: Proposal: New command/feature for quickfix
On Wed, Jun 28, 2006 at 03:26:04PM -0700, Yegappan Lakshmanan wrote: > Hi, > > On 6/28/06, Nikolai Weibull <[EMAIL PROTECTED]> wrote: > >On 6/28/06, Jochen Baier <[EMAIL PROTECTED]> wrote: > >> On Wed, Jun 28, 2006 at 11:21:00PM +0200, Mikolaj Machowski wrote: > >> > Dnia ?roda, 28 czerwca 2006 22:07, Jochen Baier napisa?: > >> > > i think a command like "cbefore" or "croot" could be > >> > > usefull. using this command after a quickfix trip (vimgrep, > >> > > >> > Doesn't fulfill your request? > >> > > >> > m. > >> > >> no > > > >Good answer ;-). Short and to the point. > > > >However, further explanation may be necessary. > > > > just gets you back to the previous position in the jump list (or > >[count]), but this would be a complete reset to the point where you > >were before beginning to use the change list commands. > > > > You can try using the attached qf.vim plugin. Save the file to the > $HOME/.vim/plugin or $HOME/vimfiles/plugin directory. hi, i used the qf.vim script to make a "crestore.vim" script. see: http://www.vim.org/scripts/script.php?script_id=1592 seems to be usefull regards jochen
Re: Proposal: New command/feature for quickfix
Hi, On 6/28/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote: Hi, On 6/28/06, Nikolai Weibull <[EMAIL PROTECTED]> wrote: > On 6/28/06, Jochen Baier <[EMAIL PROTECTED]> wrote: > > On Wed, Jun 28, 2006 at 11:21:00PM +0200, Mikolaj Machowski wrote: > > > Dnia ?roda, 28 czerwca 2006 22:07, Jochen Baier napisa?: > > > > i think a command like "cbefore" or "croot" could be > > > > usefull. using this command after a quickfix trip (vimgrep, > > > > > > Doesn't fulfill your request? > > > > > > m. > > > > no > > Good answer ;-). Short and to the point. > > However, further explanation may be necessary. > > just gets you back to the previous position in the jump list (or > [count]), but this would be a complete reset to the point where you > were before beginning to use the change list commands. > You can try using the attached qf.vim plugin. Save the file to the $HOME/.vim/plugin or $HOME/vimfiles/plugin directory. This plugin saves the current location in the file before executing a quickfix command like grep, vimgrep, make, etc. The locations are maintained in a stack. You can display the stack using the ":QfShow" command. You can pop an entry from the stack and jump to that file location using the ":QfPop" command. This command also accepts a count and allows you to pop multiple entries. I have updated the quickfix stack plugin with the new Vim7 data types and fixed a few problems. The updated version is attached. If there are no problems, I will upload it to the Vim online website. - Yegappan qf.vim Description: Binary data
Re: Proposal: New command/feature for quickfix
Hi, On 6/28/06, Nikolai Weibull <[EMAIL PROTECTED]> wrote: On 6/28/06, Jochen Baier <[EMAIL PROTECTED]> wrote: > On Wed, Jun 28, 2006 at 11:21:00PM +0200, Mikolaj Machowski wrote: > > Dnia ?roda, 28 czerwca 2006 22:07, Jochen Baier napisa?: > > > i think a command like "cbefore" or "croot" could be > > > usefull. using this command after a quickfix trip (vimgrep, > > > > Doesn't fulfill your request? > > > > m. > > no Good answer ;-). Short and to the point. However, further explanation may be necessary. just gets you back to the previous position in the jump list (or [count]), but this would be a complete reset to the point where you were before beginning to use the change list commands. You can try using the attached qf.vim plugin. Save the file to the $HOME/.vim/plugin or $HOME/vimfiles/plugin directory. This plugin saves the current location in the file before executing a quickfix command like grep, vimgrep, make, etc. The locations are maintained in a stack. You can display the stack using the ":QfShow" command. You can pop an entry from the stack and jump to that file location using the ":QfPop" command. This command also accepts a count and allows you to pop multiple entries. - Yegappan qf.vim Description: application/octetstream
Re: Proposal: New command/feature for quickfix
On 6/28/06, Jochen Baier <[EMAIL PROTECTED]> wrote: On Wed, Jun 28, 2006 at 11:21:00PM +0200, Mikolaj Machowski wrote: > Dnia ?roda, 28 czerwca 2006 22:07, Jochen Baier napisa?: > > i think a command like "cbefore" or "croot" could be > > usefull. using this command after a quickfix trip (vimgrep, > > Doesn't fulfill your request? > > m. no Good answer ;-). Short and to the point. However, further explanation may be necessary. just gets you back to the previous position in the jump list (or [count]), but this would be a complete reset to the point where you were before beginning to use the change list commands. nikolai (who seriously wants to gouge out his eyes - eye infections suck!)
Re: Proposal: New command/feature for quickfix
On Wed, Jun 28, 2006 at 11:21:00PM +0200, Mikolaj Machowski wrote: > Dnia ?roda, 28 czerwca 2006 22:07, Jochen Baier napisa?: > > i think a command like "cbefore" or "croot" could be > > usefull. using this command after a quickfix trip (vimgrep, > > Doesn't fulfill your request? > > m. no
Re: Proposal: New command/feature for quickfix
Dnia środa, 28 czerwca 2006 22:07, Jochen Baier napisał: > i think a command like "cbefore" or "croot" could be > usefull. using this command after a quickfix trip (vimgrep, Doesn't fulfill your request? m.
Re: Proposal: New command/feature for quickfix
Hi Jochen, On 6/28/06, Jochen Baier <[EMAIL PROTECTED]> wrote: hi, i think a command like "cbefore" or "croot" could be usefull. using this command after a quickfix trip (vimgrep, make etc) will jump to the buffer and line the user used before. with this command it will be easy to go back to buffer it was used before and the user do not need to remember it. what you think ? What about using the per window jump list? After using the quickfix commands, you can use the CTRL-O command to go back to the previous buffer/file location. :help jumplist - Yegappan
Re: Proposal: New command/feature for quickfix
On Wed, Jun 28, 2006 at 10:25:10PM +0200, Nikolai Weibull wrote: > Do you mean "go back to the buffer that was active before the user > invoked :vimgrep, :make, or similar"? > > If so, then yes, that could probably be useful. > > I guess :crestore is a possible name as well. Then one could perhaps > restore more than just the buffer, e.g., window layout and so on, > configurable through a bang or some option or such. (Hooray! An > excuse to add yet another option!) > > nikolai yes exactly. "crestore" would be a good name for it. jochen