在 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
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
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.
--
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
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
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
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
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
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