Re: all I want to do is save a file!

2011-06-10 Fir de Conversatie Xavier Wang
在 2011-6-10 上午2:57,"Tony Mechelynck" 写道: > > On 09/06/11 09:07, Christian Brabandt wrote: > [...] > >> to save and quit, we use: >> >> :exe 'w !tee %' | exe '!kill -9' getpid() > > [...] > > Wow! Christian, you're a genius! It might even work. But maybe not on Windows (or have the "tee and "kill" c

Re: all I want to do is save a file!

2011-06-09 Fir de Conversatie Christian Brabandt
Hi Tony! On Do, 09 Jun 2011, Tony Mechelynck wrote: > On 09/06/11 09:07, Christian Brabandt wrote: > [...] > >to save and quit, we use: > > > >:exe 'w !tee %' | exe '!kill -9' getpid() > [...] > > Wow! Christian, you're a genius! It might even work. But maybe not > on Windows (or have the "tee a

Re: all I want to do is save a file!

2011-06-09 Fir de Conversatie Tony Mechelynck
On 09/06/11 09:07, Christian Brabandt wrote: [...] to save and quit, we use: :exe 'w !tee %' | exe '!kill -9' getpid() [...] Wow! Christian, you're a genius! It might even work. But maybe not on Windows (or have the "tee and "kill" commands been added since I left?). Best regards, Tony. --

Re: all I want to do is save a file!

2011-06-09 Fir de Conversatie Axioplase
2011/6/9 urbanpcguru : > I can open vim with sudo vim /etc/hosts  for example..  But how do I > save and close it? The same way you close it when you run it without sudo! >  I can't seem to find the answer to this > anywhere!? Most people here did find the answer somewhere. > Why would one easy

Re: all I want to do is save a file!

2011-06-09 Fir de Conversatie Christian Brabandt
Hi urbanpcguru! On Mi, 08 Jun 2011, urbanpcguru wrote: > I can open vim with sudo vim /etc/hosts for example.. But how do I > save and close it? I can't seem to find the answer to this > anywhere!? Why would one easy question be so freaking hard to > find??!!! Because you are using the one a

Re: all I want to do is save a file!

2011-06-08 Fir de Conversatie Tony Mechelynck
On 08/06/11 20:30, urbanpcguru wrote: I can open vim with sudo vim /etc/hosts for example.. But how do I save and close it? I can't seem to find the answer to this anywhere!? Why would one easy question be so freaking hard to find??!!! How do I save a file?<--- Is this too easy a question to

Re: all I want to do is save a file!

2011-06-08 Fir de Conversatie tux.
urbanpcguru wrote: I can open vim with sudo vim /etc/hosts for example.. But how do I save and close it? First, this is probably the wrong place to ask that. Second, I advise you to go through the vimtutor first... :wq -- You received this message from the "vim_dev" maillist. Do not top-pos

Re: all I want to do is save a file!

2011-06-08 Fir de Conversatie Gary Johnson
On 2011-06-08, urbanpcguru wrote: > I can open vim with sudo vim /etc/hosts for example.. But how do I > save and close it? I can't seem to find the answer to this > anywhere!? Why would one easy question be so freaking hard to > find??!!! > > How do I save a file? <--- Is this too easy a qu

all I want to do is save a file!

2011-06-08 Fir de Conversatie urbanpcguru
I can open vim with sudo vim /etc/hosts for example.. But how do I save and close it? I can't seem to find the answer to this anywhere!? Why would one easy question be so freaking hard to find??!!! How do I save a file? <--- Is this too easy a question to be answered? I have been driven mad