Live data from Hacker News

Show HN: vim-multiple-cursors - True Sublime Text style multiple selection

github.com

11–20 of 39 posts

Re: Show HN: vim-multiple-cursors - True Sublime Text style multiple selection

#11
post #9

Issues: > * Multi key commands like ciw do not work at the moment > * Single key commands that do not terminate properly cause unexpected behavior > * Undo behavior is unpredictable > * Performance in terminal vim degrades significantly with more cursors There are some more than just these. I really wish Vim were easier to hack. The cursor and drawing models are terribly rigid in Vim, so this plugin probably has to r…

Thanks for the feedback. I'd love for any issues you've seen to be reported so I can get on fixing them. I finally got the plugin to a usable state today and decided to release it early to get feedback, knowing that there're a ton of bugs and missing features. And you're right, figuring out ways to hack around Vim's peculiar ways wasn't an easy task by any means.

Absolutely fine, I love that you're doing this! I'll give it a run tonight when I have some free time, maybe even look into the undo-stuff, which I think is most important to me.

Re: Show HN: vim-multiple-cursors - True Sublime Text style multiple selection

#12

It looks to me like using a regex is more practical, something like :10,20s/poorly_named_var/nice_var/g

If you do nothing more than a scoped search-and-replace then regexp may be more practical. But if the edit action also involve moving cursors around after selection, or when some match should be skipped then it takes less effort to use multiple cursors to edit than trying to comes up with regexp and edit command that accomplished what you need.

Re: Show HN: vim-multiple-cursors - True Sublime Text style multiple selection

#16
post #8
post #2

If there is one thing I love about vim, sublime, light table, etc.. is it gives emacs fans new things to implement in elisp! But seriously, I love the work that has been going into all these different text editors. It seems to be net benefit for everyone. Multiple cursors are like a visual kbd-macro-edit.. Obligatory emacs equivalent source: - https://github.com/magnars/multiple-cursors.el - http://emacsrocks.com/e13…

I should probably put a reference to him on the project page, as watching his video recently was a big push towards making me implement this in Vim. His expand-region plugin also inspired me to create vim-expand-region. I wonder what I'll 'copy' next. :)

Thanks for mentioning (& developing) this, vim-expand-region is awesome.

Re: Show HN: vim-multiple-cursors - True Sublime Text style multiple selection

#19
For everyone here writing that they don't see a need for this because vim has macros/regexp's:

Please, please, try it out. I'm telling you, this is leaps and bounds above macros/regexp's for most use cases. It's the difference between a visual way to make changes, and a "disconnected" way in which you write commands and hope they work.

Seriously, I consider Multiple Cursors one of the greatest advances in text editing, and everyone who doesn't even bother to try it is just being silly.

Post reply on HN