-
-
Save dahu/4151037 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vnoremap <leader>d :call Test()<CR>gv"yp | |
function! Test() | |
"yank current visual selection to reg x | |
normal! gv"xy | |
"put new string value in reg y | |
let @y = " IF (DEBUG.GT.0) THEN\n" . @x . "\n ENDIF" | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment