I have the following commands in a README file:
./Setup ...
./Setup ...
./Setup ...
I want to run them by selecting the codes visually and then running them.
I run unsuccessfully
: '<,'> !
Current code after Luc's comments in his answer
My code in .vimrc which I have not managed to get to work:
vmap <silent> <leader>v y:exe '!'.join(split(@", "\n"),';')<cr>
I am trying to make make a keyboard combination for
v yy
How can you get the above command work, such that you can run file's commands directly in Vim?