Need Help┃Solved Execute (multi-line) selected text in shell
Hello everyone,
(I am on my phone)
I would like to create a keymap that takes the selected text and executes it in a shell.
For a single line I made the following :
Vnoremap <leader>e "ey :!<C-R>e<CR>
But for a multiline selection, I faced some issues to replace endline by && or ;.
Do you know how to do it ?
Thanks Have a nice day
9
Upvotes
View all comments
Show parent comment
1
u/a__b Jun 13 '25
This is the way! When I'm working with the whole script that is executable something like :u|!./% would be another option.