Re: How to keep the buffer unsaved while jumping to other file

2010-05-19 Thread Gary Johnson
On 2010-05-20, robert song wrote: > thank you, gary. > > > Odd.  It works as advertised for me.  I wonder if you have a mapping > > interfering with the normal behavior. > > > > I'm using vim 7.2.411 on RHEL4. > > Maybe there are something conflict in my config file. > but I executed map command

Re: How to keep the buffer unsaved while jumping to other file

2010-05-19 Thread robert song
thank you, gary. > Odd.  It works as advertised for me.  I wonder if you have a mapping > interfering with the normal behavior. > > I'm using vim 7.2.411 on RHEL4. Maybe there are something conflict in my config file. but I executed map command on vim, and can't find CTRL-W+} is remapped. I use v

Re: How to keep the buffer unsaved while jumping to other file

2010-05-18 Thread Ben Fritz
On May 18, 4:36 am, robert song wrote: > Hi, everyone. > > If I in a C file, and try to jump to the definition of one function > with CTRL-] key, but if the file is modified, I must save the file at > first, is there any way to avoid saving file? > Yet another option (which can actually be comb

Re: How to keep the buffer unsaved while jumping to other file

2010-05-18 Thread Gary Johnson
On 2010-05-19, robert song wrote: > thank you, gary, > > > Another alternative is to use Ctrl-W } to see the source of the tag > > in a preview window.  That will leave the cursor in the original > > window, which is useful if you just want to see the definition and > > not edit it. > > > > I tri

Re: How to keep the buffer unsaved while jumping to other file

2010-05-18 Thread robert song
thank you, gary, > Another alternative is to use Ctrl-W } to see the source of the tag > in a preview window.  That will leave the cursor in the original > window, which is useful if you just want to see the definition and > not edit it. > I tried Ctrl-W }, but it works just like Ctrl-W ] in C so

Re: How to keep the buffer unsaved while jumping to other file

2010-05-18 Thread Gary Johnson
On 2010-05-18, Tony Mechelynck wrote: > >On Tue, May 18, 2010 at 12:36 PM, robert song wrote: > > > >Hi, everyone. > > > >If I in a C file, and try to jump to the definition of one function > >with CTRL-] key, but if the file is modified, I must save the file at > >first, is there

Re: How to keep the buffer unsaved while jumping to other file

2010-05-18 Thread tyru
Hi. On May 18, 8:25 pm, robert song wrote: > Thank you very much, Ephraim, > > > I like to just :set hidden, which keeps all buffers in memory even when they > > are not visible.  I tend to think the default, which doesn't do this is a > > holdover from when memory was much more expensive. > > ye

Re: How to keep the buffer unsaved while jumping to other file

2010-05-18 Thread Tony Mechelynck
On 18/05/10 11:39, Efraim Yawitz wrote: On Tue, May 18, 2010 at 12:36 PM, robert song mailto:robertsong.ja...@gmail.com>> wrote: Hi, everyone. If I in a C file, and try to jump to the definition of one function with CTRL-] key, but if the file is modified, I must save the file at

Re: How to keep the buffer unsaved while jumping to other file

2010-05-18 Thread robert song
Thank you very much, Ephraim, > I like to just :set hidden, which keeps all buffers in memory even when they > are not visible. I tend to think the default, which doesn't do this is a > holdover from when memory was much more expensive. yes, it's very helpful if I can take care not to use ":q!"

Re: How to keep the buffer unsaved while jumping to other file

2010-05-18 Thread Efraim Yawitz
On Tue, May 18, 2010 at 12:36 PM, robert song wrote: > Hi, everyone. > > If I in a C file, and try to jump to the definition of one function > with CTRL-] key, but if the file is modified, I must save the file at > first, is there any way to avoid saving file? > I like to just :set hidden, which

How to keep the buffer unsaved while jumping to other file

2010-05-18 Thread robert song
Hi, everyone. If I in a C file, and try to jump to the definition of one function with CTRL-] key, but if the file is modified, I must save the file at first, is there any way to avoid saving file? Best Regards, robert -- You received this message from the "vim_use" maillist. Do not top-post!