r/programming • • May 07 '16

Why Atom Can’t Replace Vim

https://medium.com/@mkozlows/why-atom-cant-replace-vim-433852f4b4d1#.n86vueqci
360 Upvotes

458 comments sorted by

View all comments

31

u/[deleted] May 07 '16

I grew up with my CUA shortcuts, Cc, Cx, Cv, CA, etc. I used Word for 18 years before I touched a text editor.

No matter how many great packages Vim or Emacs has, I will always hate an editor that doesn't have modern controls.

I love that Atom is providing a FOSS way to have a featureful editor is made for the 21st century.

10

u/mirpa May 07 '16

Emacs includes CUA mode.

3

u/[deleted] May 07 '16

Well... You could still configure vim and emacs to behave in such a way that you are already used to but I understand if that seems like to much hassle. Just grab whatever suits your needs best.

9

u/[deleted] May 07 '16

[removed] — view removed comment

2

u/[deleted] May 07 '16

That's true. Although I've yet to reach the point where it gets unmanageable. Currently I'm using a private git repository to keep track of all my config files. (Not only vim but also i3, fish, lesskeys, etc...) But again: I get why someone wouldn't want to do that. If there is something that has a default config that works for you, that's a perfectly fine reason to choose that tool over any other one.

1

u/gnuvince May 08 '16

I've yet to see a Vim user who doesn't have a config file. I'm an Emacs user myself, but if I need to use a remote machine without my own configs, I just use vi (or mg if the remote machine is running OpenBSD).

1

u/bobindashadows May 08 '16

If you don't have a homedir on those machines that makes sense to me, but I generally do, and I just clone my dotfiles repo onto the machine. Run a script in the repo to set up symlinks, and I'm done.

The only machines I don't have a homedir on are deployment servers but if I'm editing files on them something has gone horribly, horribly wrong - I only have to SSH into them about once a year as it is.

0

u/marchelzo May 07 '16

Modern controls? What? It's trivial to remap keys in Vim.

vno <C-c> y
vno <C-x> d
nno <C-v> P
vno <C-v> p
nno <C-a> Gvgg
vno <C-a> <C-c>Gvgg

done.

13

u/[deleted] May 07 '16

[removed] — view removed comment

2

u/link23 May 08 '16

Isn't that just another reason to become comfortable with the things that are standard? I.e., learn to use vim's bindings effectively rather than remapping them?

1

u/immibis May 08 '16

Yes - it's a reason to become comfortable with things that are standard - such as copying and pasting with Ctrl-C/Ctrl-V.

2

u/marchelzo May 07 '16

I only touch two machines, my laptop and my desktop, so that's not a problem.

I see this argument all the time, but it just isn't very convincing to me. How many people are out there SSHing into different machines all the time? I know some people do that, but I'd bet the majority of people do all of their work on no more than 3 machines, and besides, syncing dotfiles isn't very hard.

7

u/dr_guitar May 07 '16

I can only jump in with my anecdotal experience but on my current project I SSH into 4 DEV servers, 4 test servers, and 8 user acceptance test servers on a regular basis, and it's not unusual for the line of work I'm in (contracting for large organizations).

2

u/Olreich May 08 '16

And you can't pull the configuration files back to your local machine, make edits, then push them back out? Have your one or two well-set-up machines, do the vast majority of your work on them, and only do trivial updates on the remote servers.

2

u/daperson1 May 08 '16

Sshfs to the rescue!

2

u/oblio- May 08 '16

Why are you editing all of that? Shouldn't you have some automated deployment system to push the files for you?

6

u/[deleted] May 07 '16

[removed] — view removed comment

2

u/BezierPatch May 07 '16

Well, use emacs + evil then, and open them as remote files.

Unless you're using systems where you can't transfer anything between servers.

1

u/oblio- May 08 '16

You need a automated deployment system, not vim :)

1

u/heisian May 07 '16

a Desktop, two laptops, the possibility of having to work remotely from a completely new machine, plus 12 different servers that I need to SSH into. I could easily copy my vim settings to every machine, but, why bother? I use atom everyday thanks to things like sshfs.

1

u/skulgnome May 08 '16

Still quicker than installing a different editor, times the machines I've touched.

1

u/otherwiseguy May 08 '16

scp .vimrc newmachine: && ssh newmachine

1

u/AcousticDan May 08 '16

Dotfiles. I log into a machine and in three commands I have a copy of vim and all its settings.