r/LinuxActionShow • • May 21 '16

Loyal Vim User !

http://imgur.com/v3uSDVk
122 Upvotes

30 comments sorted by

6

u/Mongaz May 21 '16

I find nano complicated to use... I always install vim on my machines.

1

u/brwtx May 22 '16

If you grew up using Wordstar it is incredibly easy. If not, it can seem a little unusual.

3

u/Alycidon94 May 21 '16

And that's why I use nano!

2

u/[deleted] May 21 '16

I don't understand what is so hard about <esc> <q> <!> <enter>

9

u/[deleted] May 21 '16

did you mean <esc><esc><esc><esc><esc><:><q><!><enter>?

0

u/[deleted] May 21 '16

[deleted]

2

u/GisterMizard May 23 '16

For your vim rc:

command W w
command Q q

Viola, :Q now works. :p

3

u/ejiek May 21 '16

Not ctrl-c. Lack of guidance

2

u/bradmont May 21 '16

Shhhh, don't tell him... he might switch to emacs...

0

u/[deleted] May 21 '16

[deleted]

5

u/regeya May 21 '16

I worked in the newspaper business for years a few I could always tell I was getting too sleepy when a text box ended with ":wq"

3

u/beyere5398 May 21 '16

I like to save first. ":wq!"

1

u/[deleted] May 23 '16

:x! Is faster dan :wq! ;)

1

u/[deleted] May 23 '16

Not for me, wq is so embedded in muscle memory that it's easier to find, the x is so far down there on the keyboard.

0

u/[deleted] May 21 '16

[deleted]

2

u/beyere5398 May 22 '16

A detailed explanation is at Stack Overflow:

http://stackoverflow.com/questions/3094667/whats-the-use-of-the-exclamation-mark-in-vims-command-line-after-certain

TL;DR - the exclamation point 'forces' the command, overriding warnings.

1

u/memnoch_proxy May 21 '16

Means quit and discard changes.

0

u/[deleted] May 21 '16

[deleted]

3

u/varesa May 22 '16 edited May 22 '16

http://unix.stackexchange.com/questions/266037/vim-writes-to-file-without-having-permissions http://unix.stackexchange.com/questions/228624/what-does-the-really-do-when-its-added-to-an-ex-command-wq-w-q

TL;DR It is to quit read-only mode / when you don't have write permission to a file but you have a permission to replace the file with a new one (directory permissions).

EDIT: Fixed other link

1

u/[deleted] May 21 '16

Vi is good. Its the only editor I know how to use.

1

u/CrimAldan May 22 '16

LOL. I find myself hitting "esc" when in Sublime or Atom nowadays

1

u/sb56637 May 21 '16

Haaaaaaaaaaaaaaaaaaaaaaaaaa!!!!!!!!

0

u/[deleted] May 22 '16

I really liked this article on Medium: https://medium.com/@mkozlows/why-atom-cant-replace-vim-433852f4b4d1#.iiggs8z2h

For some strange reason no other editor seems to do high performance and composable commands.

2

u/Mongaz May 22 '16

I feel that vi is like Arch. Powerful, flexible, minimal but nobody understand how to get started and you have to RTFM every now and then.

1

u/[deleted] May 22 '16

Arch isn't that hard to comprehend, it even has a package manger to do 90% of the work for you.

2

u/Mongaz May 22 '16

http://i.imgur.com/2Xmwdmn.jpg sure it is easy... like vi ;)

1

u/[deleted] May 23 '16

yes, try some of the more minimal distros they are harder. vi is also not that hard ; )

1

u/[deleted] May 24 '16

Depends on what you mean by "hard". Learning something new is hard, but so is doing something laborious when there is a simpler way.

One example is typing. It's "hard" to type if you don't know how, and using a pen and paper is "easier" because you already know the skills. Once you have the skill, though, it's harder to not type.

If you do not write text documents, something like vi seems superfluous and difficult "for no reason". You prefer a thing which is easy to digest. However, if you spend your life typing text documents, vi is fairly efficient compared to the alternatives.

0

u/gaga666 May 22 '16

This joke is older than vi...

0

u/[deleted] May 21 '16

[deleted]

6

u/Lurker_Since_Forever May 21 '16

emacs user

I found your mistake.

0

u/[deleted] May 21 '16

[deleted]

1

u/Lurker_Since_Forever May 22 '16

Why not turn on evil mode, so you don't have to use emacs any more?

0

u/[deleted] May 22 '16

[deleted]

1

u/[deleted] May 23 '16

That's the only way I use emacs ;)

1

u/[deleted] May 22 '16 edited Aug 03 '17

deleted 0.6998 What is ^^^this?