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

120

u/drjeats May 07 '16

Somebody write a Why Text Objects Can Never Replace Multiple Cursors post please.

80

u/panorambo May 07 '16

And then follow it up with Why Multiple Cursors Can Never Replace Text Objects.

11

u/drjeats May 07 '16

Would upvote both.

36

u/Black_Handkerchief May 07 '16

How about an ELI5: What are text objects and what are multiple cursors?

I for one would upvote that thread into the stratosphere despite roughly knowing the differences between the Unix text editors.

27

u/phalp May 07 '16

Multiple cursors: exactly what it sounds like. You can duplicate your cursor so every edit you do happens at all of them.

Text objects: most of the editing commands are two-keystroke: the first one indicates the action (like deletion), and the second one says whether to delete a character, a word, six chatacters, the whole line, etc.

5

u/epicwisdom May 08 '16

Wouldn't you need to position your multiple cursors somehow? And that would almost always be aligned with some kind of text objects?

1

u/[deleted] May 08 '16

There is column mode and multiple insert mode. Column mode is used more and supported by more IDEs. Multiple cursor mode you hold down a button and click everywhere you want to insert text.

https://www.youtube.com/watch?v=WXuBgSpLpK4

This specific video doesn't show the best use of multiple cursor mode but you can get the idea. Below is a video for column mode.

https://www.youtube.com/watch?v=a6UN06Qk_Js

→ More replies (2)