Last active
December 9, 2018 02:54
-
-
Save b0o/a8968d1d7c96d805eb0b2b4e77ca34cb 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
function! s:regPrompt() | |
echo "SetReg: " | |
let l:rawchar = getchar() | |
let l:char = nr2char(l:rawchar) | |
call s:setReg(l:char) | |
endfunction | |
command! -bar -nargs=0 RegPrompt call <sid>regPrompt() | |
nnoremap <leader>" :RegPrompt<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment