This is related to better copy-paste multiple lines in visual mode where vim pastes after that visual chunk of code.
I need to be able to detect which way vim is going into visual mode so that I can use the following workflow:
- Select multiple lines
- Press Ctrl+l to copy-paste entire block after (not inside the first selected block) with cursor at the beginning of 2nd paste
Here are some mappings that do one direction but not both:
" up to down
vmap <c-l> ygv<Esc>p
" down to up
vmap <c-l> ygvo<Esc>p