4 ms·
Is multiline editing popular/useful? Thus far, the only occasions I've seen it shown is when someone is demonstrating it.
by kreetx 5y ago
Is multiline editing popular/useful? Thus far, the only occasions I've seen it shown is when someone is demonstrating it.
- andrewzah 5y agoI'd say so, I find myself using it somewhat regularly. It's pretty easy in vim once you learn how to use visual block mode. That or using Sed to replace text in a selection or the entire file. http://paulrougieux.github.io/vim.html#Edit_multiple_lines http://paulrougieux.github.io/vim.html#Edit_multiple_lines
- mplanchard 5y agoI use it not infrequently for crafting big ol bash pipelines to put into scripts, specifically via emacs’ `shell` terminal emulator.
- tomxor 5y agoI use the visual-multi plugin [0] all day in vim/neovim. I don't like using tons of plugins but multi cursor with with selective invocation like the ctrl-d of sublime etc was the main thing I missed when moving to vim. (I use visual block mode too but it's not the same thing). https://github.com/mg979/vim-visual-multi.git https://github.com/mg979/vim-visual-multi.git
- nicoburns 5y agoIf you need to pass lots of arguments to a command it's super useful. Typically I don't do this because it's quite unwieldly with a standard readline editor, but I could if multiline editing was available!
- chaxor 5y agoPut `set -o vi` in your .bashrc That's all you need - you don't need a whole program that collects all of your information.
- jzm2k 5y agoThey are very useful! As a long time Vim user who switched to Kakoune[0] a while back, I didn't even realize I needed a good multiline cursor from my editor before it tried Kakoune. Highly recommend it! [0] https://kakoune.org/ https://kakoune.org/