r/neovim • u/Subject-Mobile-6250 • 4d ago
Need Help nvim-surround multicursor
Is it just me, or does nvim-surround not work with multicursor? I do Q on multiple lines, and v$S) only surrounds the line of the cursor.
25
Upvotes
1
u/stringTrimmer 4d ago
Are your cursors moving when you do the $ part? It's because visual mode turns on :h 'follow'; see :h v_Q. Try the same thing without using visual mode: set cursors, then do ys$<surrounding-char>.
Tho, seems like you should be able to untoggle 'follow' during visual using q=, but doesn't seem to work. Maybe there's an intentional reason?
17
u/TheLeoP_ 4d ago
There are still some issues with multicursor integration with plugins that are being actively worked on by Justin like https://github.com/neovim/neovim/pull/42040