paradigm / vim-multicursor

Allows Vim to use multiple cursors simultaneously
117 stars 4 forks source link

vim-multicursor doesn't support placing cursors at arbitrary locations #3

Open habibalamin opened 9 years ago

habibalamin commented 9 years ago

I want to be able to click a key to 'drop' a cursor at any place in the file, ala Ctrl-click/Cmd-click on Sublime Text. Maybe have the dropped cursors be a different colour from the main cursor. Once all the cursors have been placed, the user should be able to go into insert mode as usual to start editing.

paradigm commented 9 years ago

I suspect either I'm misunderstanding you, or you've misread the documentation.

vim-multicursor does in fact support placing cursors at arbitrary locations, see :help MultiCursorPlaceCursor() and the following section, :help MultiCursorManual(). Essentially, map something to place a cursor, then once you've placed all the desired cursors, map something else to tell the plugin to start utilizing them. Once you've done that, you should be able to use them as you normally would, including insert mode. Note that insert mode does not yet update "live" - not until you've <esc>'d it to completion. Live updating is something I'd like to add later.

habibalamin commented 9 years ago

Whoops, I commented in the wrong tab. I was wondering why it couldn't find the docs for MultiCursorManual(). This is the one I have installed. I was looking at multiple options at the time. If this gets live updating or the other gets 'cursor drops', I will be happy.

paradigm commented 9 years ago

Sadly there's a number of things keeping me from being able to work on this, but once I've gotten past those I fully intend to add such things. Until I've gotten past those blockers and caught up feature wise, terryma's implementation is a perfectly reasonable one to use.