Why Atom Can’t Replace Vim
https://medium.com/@mkozlows/why-atom-cant-replace-vim-433852f4b4d1#.n86vueqci82
u/ven_ May 07 '16
Before Atom can replace anything it needs to stop basically being a fucking website.
20
u/NotoriousArab May 08 '16
I really don't get this trend now a days. I tried out Atom last summer and found it obnoxiously slow. Still hear from people that it hasn't improved much, and really, it may not ever improve because of the way it's built inherently.
5
u/ivosaurus May 08 '16
Funny thing is VSCode doesn't suffer from this nearly as much, but built on the same tech.
5
u/redwall_hp May 08 '16
"But guys, computers are super fast nowadays and getting faster, so it doesn't matter."
It's still orders of magnitudes slower, and single-threaded performance is kind of stagnant right now in the old hardware department. So that single-threaded event loop isn't getting any faster any time soon.
1
u/eshansingh May 19 '16
It has improved substantially since then, especially with the release of Electron 1.0.
12
u/AshylarrySC May 07 '16
I've been ruining Emacs/evil and then Spacemacs for the last several months and really like the combo of emacs and vim. It's slightly slow to start compared to Vim but the more I operate in emacs, the less I leave it to do anything else. I doubt I'll be moving back to Vim any time soon.
5
u/thukjeche May 07 '16
Could you detail more what you appreciate about Space/emacs that Vim or Neovim doesn't offer?
6
u/AshylarrySC May 08 '16
First, I generally I find the configuration easier. People are working to port a lot of the best vim plugins to work on emacs (most of what I used in vim is available in evil emacs) but the opposite is not true for vim. There's nothing that yet comes close to things like org-mode or magit in vim and those things are awesome. There are projects to bring those to Vim but they're still quite a ways away from being as good as the emacs versions.
They really have different philosophies though. Vim is an excellent editor, emacs is almost OS like in that you can do almost anything in it.
Disclaimer: I'm a Windows user and a keyboard fanatic which is an unfortunate place to be but emacs lets me do software development, control Spotify, check my email, interact with slack all very quickly and easily from my keyboard.
But all that would still not be worth it if I couldn't use vim modal editing and keybindings which since I switched and fell in love with, I don't want to be without.
So basically it gives me the best of both worlds and I'm not a vim super user so I haven't run into evil missing subtle features that I really need.
It was this: https://youtu.be/JWD1Fpdd4Pc coupled with Neovim for Windows being kind of an afterthought that got me to switch. It will probably take Neovim on Windows being REALLY good to get me to switch back.
2
1
u/__baxx__ May 08 '16
idk about neovim because i haven't used it, and when I used vim I was really using vimkeys. By this distinction i mean that I didn't write any plugins for vim, i didn't make use of piping vim through bash commands or integrating it with shell functions. I didn't ssh into machines with it etc, I just used vim keys and set a few things up.
So using spacemacs isn't really much different at all for me. The vim emulation is immense, I think when I started using it I said I'd give it a month, and for a couple of weeks i wasn't really sure. Guess it just felt different or whatever. I haven't used org mode much either, but it's nice that the option is there if i want (it's something that i want to get around to using).
I just find that most things feel a bit better in spacemacs than vim, like helm, using it as an irc client and stuff.
Guess you'd just need to have a mess about, i'd recommend giving it a couple of weeks though. And make use of the gitter chat.
1
8
u/soguesswhat May 08 '16
Why can't Atom replace Vim? Because Atom's just a crappier version of Sublime - and Sublime already couldn't replace Vim.
4
u/spajus May 08 '16
Vim is not just about navigating and editing text, and you don't need a medium article to tell "why X can't replace vim". Can you use X without ever leaving command line terminal? Can you run X to edit files on remote machine over ssh? Can you seriously think that some new hip editor can ever replace something that was being developed for decades? Why bother with all those articles.
4
u/degeneratepr May 08 '16
2008 - Why Textmate Can't Replace Vim
2013 - Why Sublime Text Can't Replace Vim
2016 - Why Atom Can't Replace Vim
It cycles every few years. Can't wait for the 2020 edition!
3
3
u/bakuretsu May 08 '16
This post should be called "Why Medium can't replace a simple webpage with words on it."
Even on my insanely high resolution retina display, the headline of this post is actually under the floating bar at the bottom. Does it really need a hero image that large? Full of code?
A content page whose primary purpose is to provide readable text should fit text into at least half of the above-the-fold area for 95% of visitors. It's shameful that Medium doesn't force its authors, who are of varying degrees of experience in web content management, to meet these standards.
2
u/derrickcope May 08 '16
I wonder if vim's modular hotkey system is even implementable in modern text editors along with emacs way of assigning one function to a specific hotkey? It seems like they are mutually exclusive.
1
2
May 08 '16
Atom doesn't ssh as well as ncurses-style editors, nor is Atom installed by default on most UNIXen, not is Atom designed for 100% hotkey-based interaction.
Atom is an excellent GUI text editor, just not a CLI text editor.
2
u/Elronnd May 08 '16
unices, not UNIXen. The capitalized version refers to a specific OS released by Bell Labs about fifty years ago. The lowercased version refers to a family of OSes.
1
May 11 '16
I knew someone would balk!
This is a generic brand like bandaid, kleenex, and coke... are you expecting a new release soon?
3
May 07 '16
Seeing as this is over 2 years old, surely Why No One Said It Would And Why The Author Is Projecting has been written since then.
2
u/__baxx__ May 07 '16
so basically vim keys are nice?
4
May 08 '16
Why the hell would people downvote the answer to the clickbait article? is __baxx__ wrong?
5
u/__baxx__ May 08 '16
idk lol. I didn't get much from the article. I didn't really feel it made a very compelling argument for anything really.
Maybe i just didn't get it :P
1
May 08 '16
I didn't really feel it made a very compelling argument for anything really.
Hehe, that's what I would expect to see. Your post reminds me of the Saved you a click facebook group that was recently featured somewhere on reddit.
1
u/csreid May 08 '16
Aren't they like totally different approaches to the problem? Why would atom replace vim?
0
0
May 07 '16
[deleted]
10
6
u/Deto May 07 '16
It's an old article. I wonder if the header wasn't so big when it first came out?
3
u/rockidr4 May 08 '16
It wasn't. I remember reading this back in the day because neovim and atom were coming out at the same time, and I was super excited about both (still am). And this article was... you know. Just a normal read.
6
u/oh_lord May 07 '16
Medium, more than any other site, gives me issues with responsive design and the CSS. I love the site, but it breaks for me so much.
0
May 07 '16
[deleted]
10
u/cypherpunks May 07 '16
I was going to say the same thing. What are these half-dozen plugins?
My main external additions are
!}fmt(or!apfmt) and:!git add %4
u/AkaiRyuu May 08 '16
What's the difference between using
!}fmtandgq}?3
u/cypherpunks May 08 '16
Basically,
gquses an internal line-wrapper, whilefmtuses an external one.gqcan be told to use an external program, but it's still easier to add extra options like a-cor a non-standard width.Mostly, it's just a finger-macro that predates using vim.
6
u/Tarmen May 08 '16
Stuff that I wouldn't want to use vim without:
Textobjects only scan the current line and are pretty limited with only a and i, targets.vim
vim misses a bunch of very useful textobjects like function, indentation, current line, entire file. Vim-textobj-user plus the textobjets
Whops, already at half a dozen. Maybe add fugitive for MUCH nicer git usage and fzf.vim for decent file opening, gutentags for tags and around 30 bindings to fix vim backward compatibility weirdness like Y or awful mappings like the window ones...
I can use vanilla vim or vi no problem if I had to. It just wouldn't be very fun.
2
u/seeegma May 08 '16
out of curiosity, what are your replacement mappings for window operations?
3
u/Tarmen May 08 '16
Wrote an overview in one of the vim tips threads.
Otherwise I generally use ex commands like q, qa, xa, on, enew and so on.
0
May 07 '16
[deleted]
15
May 07 '16
All Vim emulations fall apart under close enough scrutiny IMO.
11
u/Sean1708 May 07 '16
Which is why neovim's embeddability is so interesting, it's not emulation, it is actual vim. I'm reserving judgement until some stable implementations come out though.
0
May 08 '16
[deleted]
6
u/Tarmen May 08 '16
What if you could just start typing in your browser and have vim features? Or intellij and keep all its power while still getting real vim?
3
u/B8F1F488 May 08 '16
because you can never get vim to be an ide. It is a text editor ultimately. I'm not sure how much it makes sense in atom.
2
u/sullyj3 May 08 '16
Ide features without having to coax vim itself into being an ugly bloated ide. Vim is a text editor, that's what it does best.
13
u/juanjux May 07 '16
So true. It's like tofu to real meat. The only thing that get close is Emacs's Evil plugin.
16
u/mocahante May 07 '16
Completely unrelated, but that's totally not the point of tofu at all
3
u/juanjux May 07 '16
I don't know the general point of tofu but I've tasted tofu burgers where it is clearly trying to replace a meat product (there are also tofu hot dogs).
1
u/thukjeche May 07 '16
True, though I think a lot of vecrhrarians end up eating tofu in place of meat..
4
u/mocahante May 07 '16
True, as a vegetarian I eat a lot more tofu than the average meat eater, but it's definitely not really seen as a replacement for meat, just one of many alternative sources of protein, as well as a good way to carry flavor
1
1
3
u/Jwkicklighter May 07 '16
Serious question, what don't you like about it? I just installed the vim and ex plugins in Atom and haven't had an issue yet.
1
u/__baxx__ May 07 '16
i tried atom a while back and found the vim emu awful. The documentation was also poor as well. So i use spacemacs instead, which is decent.
Atom with neovim sounds interesting tho
0
May 07 '16
[deleted]
8
u/Jwkicklighter May 07 '16
Oh wow, I see what you mean. In my normal day-to-day, I don't use . a ton so I hadn't encountered that yet. Bummer, some of the other pieces seemed to work better for me than Sublime's bindings.
8
u/riddley May 07 '16
You should think about changing that. '.' is incredibly powerful if you think about your editing with it in mind.
1
May 08 '16
ciw
Brilliant! Did not know that (even though I use
ci(all the time...).1
u/pandabrain May 09 '16 edited May 09 '16
ciwandci(do have different meanings, though. You can however usecibas an alias forci(.Read
:help object-selectfor a list of all default text objects.Edit: Misread your comment.
0
May 08 '16
[deleted]
3
u/6086555 May 08 '16
I'm pretty sure you're talking about Drew Neil. Probably during the questions in [that video)(https://vimeo.com/53144573)
2
u/frnkcn May 07 '16
Would connecting Atom to Neovim also import bindings/plugins from your init.vim?
1
64
u/Funkmaster_Lincoln May 07 '16
For me its two reasons:
My computer starts up faster than atom does
Doing any text operations is a pain in the ass compared to vim