[Eug-lug] how do I get out of this?
Fred James
fredjame at fredjame.cnc.net
Thu Nov 15 11:52:53 PST 2007
larry price wrote:
>actually horst
>the ! terminating the command instructs vi to quit immediately without
>writing the file out.
>
>//use vi, but only when trapped.
>
>On Nov 15, 2007 9:53 AM, horst <horsu at freeshell.org> wrote:
>
>
>>>Date: Thu, 15 Nov 2007 01:30:12 -0800
>>>From: larry price <laprice at gmail.com>
>>>Subject: Re: [Eug-lug] how do I get out of this?
>>>
>>>type
>>>
>>>[esc]
>>>:
>>>q
>>>!
>>>
>>>that's one character to a line.
>>>
>>>
>>Larry - I think emacs people shouldn't do vi posts past 1 in the morning :-)
>>
>>On a single line:
>> !
>>doesn't mean anything (as far as I know, or you have redefined the !-key,
>>or...)
>>
>>:<cmd>!
>>means ignore warning and do it anyway!
>> (like :w! :x! as in write! --although file was opened as read-only)
>> ( '<cmd>' meaning 'w' or 'x' )
>>
>>:!<cmd>
>>means execute shell <cmd>
>>
>>
>>Wes, BTW, my vi/vim's do provide you with a hint:
>> " No write since last change (add ! to override) "
>>
>> - Horst
>>
>>
:w to write without quit
:wq to write and quite
:q to quite without write
add the ! to either to force it (if allowed)
Regards
Fred James
More information about the EUGLUG
mailing list