Re: vi

2021-09-10 Thread Ben Francom via PLUG-discuss
":x" (Write if necessary and quit). Fewer keystrokes. It's the same as
ZZ..I haven't gone back to ":wq" after a fellow engineer showed me that one.

On Fri, Sep 10, 2021 at 10:08 AM Shaun Anderson via PLUG-discuss <
plug-discuss@lists.phxlinux.org> wrote:

> People will probably beat this to death, but take some time and go through
> the tutorials, and really learn it.  The ramp is a bit steep, but it is
> such an efficient editor.  You don't need to learn every esoteric way of
> doing things, but a dozen or more keys will have you zipping around in no
> time.
>
> On Fri, Sep 10, 2021 at 8:58 AM Michael via PLUG-discuss <
> plug-discuss@lists.phxlinux.org> wrote:
>
>> h,  when I go back to look at the file there is nothing in it
>>
>> On Fri, Sep 10, 2021 at 11:52 AM Michael  wrote:
>>
>>> thanks guys.  I should have done a web search. Sorry.
>>>
>>> On Fri, Sep 10, 2021 at 11:49 AM Matt Graham via PLUG-discuss <
>>> plug-discuss@lists.phxlinux.org> wrote:
>>>
>>>> On 2021-09-10 08:36, Michael via PLUG-discuss wrote:
>>>> > how does  one save and exit with vi?
>>>>
>>>> (escape):wq or (escape)ZZ .  If you're going to try to use vim, you
>>>> should start by running vimtutor.  That will show you how to use all
>>>> the
>>>> basic features of the editor.
>>>>
>>>> --
>>>> Crow202 Blog: http://crow202.org/wordpress
>>>> There is no Darkness in Eternity
>>>> But only Light too dim for us to see.
>>>> ---
>>>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>
>>>
>>>
>>> --
>>> :-)~MIKE~(-:
>>>
>>
>>
>> --
>> :-)~MIKE~(-:
>> ---
>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
> ---
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss



-- 
Ben Francom
https://www.benfrancom.com
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: vi

2021-09-10 Thread Thomas Scott via PLUG-discuss
Learning VIM was one of the best moves I ever made - It's not an
exaggeration to say that I use it for everything, to the point that one of
my first questions when evaluating any editor/software is "does it have vim
keybindings?" and if not, "can I *give it *vim keybindings..."

I still remember watching Phil show it to my intro to linux class for the
first time. I had been a longtime nano user, because, who wanted to (hjkll)
around? But the second that he showed us how it *could *work. I was sold.

- Thomas Scott | mr.thomas.sc...@gmail.com


On Fri, Sep 10, 2021 at 12:08 PM Shaun Anderson via PLUG-discuss <
plug-discuss@lists.phxlinux.org> wrote:

> People will probably beat this to death, but take some time and go through
> the tutorials, and really learn it.  The ramp is a bit steep, but it is
> such an efficient editor.  You don't need to learn every esoteric way of
> doing things, but a dozen or more keys will have you zipping around in no
> time.
>
> On Fri, Sep 10, 2021 at 8:58 AM Michael via PLUG-discuss <
> plug-discuss@lists.phxlinux.org> wrote:
>
>> h,  when I go back to look at the file there is nothing in it
>>
>> On Fri, Sep 10, 2021 at 11:52 AM Michael  wrote:
>>
>>> thanks guys.  I should have done a web search. Sorry.
>>>
>>> On Fri, Sep 10, 2021 at 11:49 AM Matt Graham via PLUG-discuss <
>>> plug-discuss@lists.phxlinux.org> wrote:
>>>
>>>> On 2021-09-10 08:36, Michael via PLUG-discuss wrote:
>>>> > how does  one save and exit with vi?
>>>>
>>>> (escape):wq or (escape)ZZ .  If you're going to try to use vim, you
>>>> should start by running vimtutor.  That will show you how to use all
>>>> the
>>>> basic features of the editor.
>>>>
>>>> --
>>>> Crow202 Blog: http://crow202.org/wordpress
>>>> There is no Darkness in Eternity
>>>> But only Light too dim for us to see.
>>>> ---
>>>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>>>> To subscribe, unsubscribe, or to change your mail settings:
>>>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>
>>>
>>>
>>> --
>>> :-)~MIKE~(-:
>>>
>>
>>
>> --
>> :-)~MIKE~(-:
>> ---
>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
> ---
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: vi

2021-09-10 Thread Shaun Anderson via PLUG-discuss
People will probably beat this to death, but take some time and go through
the tutorials, and really learn it.  The ramp is a bit steep, but it is
such an efficient editor.  You don't need to learn every esoteric way of
doing things, but a dozen or more keys will have you zipping around in no
time.

On Fri, Sep 10, 2021 at 8:58 AM Michael via PLUG-discuss <
plug-discuss@lists.phxlinux.org> wrote:

> h,  when I go back to look at the file there is nothing in it
>
> On Fri, Sep 10, 2021 at 11:52 AM Michael  wrote:
>
>> thanks guys.  I should have done a web search. Sorry.
>>
>> On Fri, Sep 10, 2021 at 11:49 AM Matt Graham via PLUG-discuss <
>> plug-discuss@lists.phxlinux.org> wrote:
>>
>>> On 2021-09-10 08:36, Michael via PLUG-discuss wrote:
>>> > how does  one save and exit with vi?
>>>
>>> (escape):wq or (escape)ZZ .  If you're going to try to use vim, you
>>> should start by running vimtutor.  That will show you how to use all the
>>> basic features of the editor.
>>>
>>> --
>>> Crow202 Blog: http://crow202.org/wordpress
>>> There is no Darkness in Eternity
>>> But only Light too dim for us to see.
>>> ---
>>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
>>
>>
>> --
>> :-)~MIKE~(-:
>>
>
>
> --
> :-)~MIKE~(-:
> ---
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: vi

2021-09-10 Thread Michael via PLUG-discuss
h,  when I go back to look at the file there is nothing in it

On Fri, Sep 10, 2021 at 11:52 AM Michael  wrote:

> thanks guys.  I should have done a web search. Sorry.
>
> On Fri, Sep 10, 2021 at 11:49 AM Matt Graham via PLUG-discuss <
> plug-discuss@lists.phxlinux.org> wrote:
>
>> On 2021-09-10 08:36, Michael via PLUG-discuss wrote:
>> > how does  one save and exit with vi?
>>
>> (escape):wq or (escape)ZZ .  If you're going to try to use vim, you
>> should start by running vimtutor.  That will show you how to use all the
>> basic features of the editor.
>>
>> --
>> Crow202 Blog: http://crow202.org/wordpress
>> There is no Darkness in Eternity
>> But only Light too dim for us to see.
>> ---
>> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
> --
> :-)~MIKE~(-:
>


-- 
:-)~MIKE~(-:
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: vi

2021-09-10 Thread Michael via PLUG-discuss
thanks guys.  I should have done a web search. Sorry.

On Fri, Sep 10, 2021 at 11:49 AM Matt Graham via PLUG-discuss <
plug-discuss@lists.phxlinux.org> wrote:

> On 2021-09-10 08:36, Michael via PLUG-discuss wrote:
> > how does  one save and exit with vi?
>
> (escape):wq or (escape)ZZ .  If you're going to try to use vim, you
> should start by running vimtutor.  That will show you how to use all the
> basic features of the editor.
>
> --
> Crow202 Blog: http://crow202.org/wordpress
> There is no Darkness in Eternity
> But only Light too dim for us to see.
> ---
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss



-- 
:-)~MIKE~(-:
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: vi

2021-09-10 Thread Ryan Petris via PLUG-discuss
:wq!

On Fri, Sep 10, 2021, at 8:36 AM, Michael via PLUG-discuss wrote:
> how does  one save and exit with vi?
> 
> -- 
> :-)~MIKE~(-:
> ---
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: vi

2021-09-10 Thread Matt Graham via PLUG-discuss

On 2021-09-10 08:36, Michael via PLUG-discuss wrote:

how does  one save and exit with vi?


(escape):wq or (escape)ZZ .  If you're going to try to use vim, you 
should start by running vimtutor.  That will show you how to use all the 
basic features of the editor.


--
Crow202 Blog: http://crow202.org/wordpress
There is no Darkness in Eternity
But only Light too dim for us to see.
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

Re: vi

2021-09-10 Thread der.hans via PLUG-discuss

Am 10. Sep, 2021 schwätzte Michael via PLUG-discuss so:

moin moin MIchael,


how does  one save and exit with vi?


Carefully. :)

vi is a modal editor with editing mode and command mode.

To exit cleanly, you need to be in command mode.

Hit  to make sure you're in command mode, then you can give an exit
command, which starts with a colon.

:q == simple quit if there have not been changes to the file
:wq == write the current changes, then quit
:q! == quit and throw away any changes

There are other variants you might see in documentation. They're
essentially aliases for one of the above.

ciao,

der.hans
--
#  https://www.LuftHans.com   https://www.PhxLinux.org
#  Dissent is patriotic.---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

vi

2021-09-10 Thread Michael via PLUG-discuss
how does  one save and exit with vi?

-- 
:-)~MIKE~(-:
---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss

vi VS emacs

2013-02-16 Thread Nathan England


To all you emacs fans,

Everybody knows that imitation is the sincerest form of flattery. For 
years you have argued and attempted to convince the world that emacs is 
better than vi(m). All the while, you have secretly been developing a 
plugin for your beloved emacs that would allow complete vi(m) like 
control from within your emacs.


Well, someone finally slipped. That's right boys, the cat's out of the 
bag! There's no hiding anymore!


With the release of Evil 1.0 ( https://gitorious.org/evil ) you are 
finally able to fully emulate the *real* power of vi(m) from within your 
emacs! That's right! All the power, precision, speed and performance of 
vi(m) has finally come to emacs via the use of the Evil plugin.


With this, I guess emacs really *is* the better of the two... !


<...ducks and runs...>


---
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss