Live data from Hacker News

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

github.com

1–10 of 39 posts

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

#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.html

By the ever awesome Magnar Sveen

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

#3
Slightly related: If you are using ST2 I recommend the "Clipboard Manager" plugin to have multiple clipboards, it gets anything that is copied inside ST2 or any other software, it works with multiple cursors which is really handy.

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

#4
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 love Magnar's multiple cursors. I end up using it at least a few times a day, and it always saves me a ton of time.

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

#5

Slightly related: If you are using ST2 I recommend the "Clipboard Manager" plugin to have multiple clipboards, it gets anything that is copied inside ST2 or any other software, it works with multiple cursors which is really handy.

I just tested this with native copy-paste, and - at least on OSX - as long as whatever you're pasting has the same number of lines as you have cursors, you'll get that same line-to-cursor mapping.

That being said, let me also recommend my favorite clipboard history tool, Jumpcut (http://jumpcut.sourceforge.net/).

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

#7
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 resort to some awful hackery to achieve what it does. :-(

That said, good work, but I'll hold off on trying it out, for now. I'd like at least undo to be fixed before I can use it frustration-free in my production-environment, i.e. producing actual code.

I really hope you continue your work, because I'd love to see multi-cursor functionality implemented in Vim!

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

#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. :)

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

#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.
Post reply on HN