xnoremap @ :<C-u>call ExecuteMacroOverVisualRange()<CR>
function! ExecuteMacroOverVisualRange()
echo "@".getcmdline()
execute ":'<,'>normal @".nr2char(getchar())
endfunction
Created
March 30, 2022 18:38
-
-
Save irizwaririz/f78790471481b184b1e348e77226067d to your computer and use it in GitHub Desktop.
Execute macro over visual range
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment