Created
September 24, 2014 14:47
-
-
Save OliverUv/ea20c707471cb1ff355b 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
" Edit register | |
function! EditRegister() | |
call inputsave() | |
let l:reg = input("Enter a register: ") | |
call inputrestore() | |
execute "let l:cont = @" . l:reg . "" | |
return "let @" . l:reg . " = '" . l:cont . "'" | |
endfunction | |
nnoremap <leader>eq :<C-R>=EditRegister()<CR><C-E><C-F><Left> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment