Skip to content

Instantly share code, notes, and snippets.

@b0o
Last active December 9, 2018 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b0o/a8968d1d7c96d805eb0b2b4e77ca34cb to your computer and use it in GitHub Desktop.
Save b0o/a8968d1d7c96d805eb0b2b4e77ca34cb to your computer and use it in GitHub Desktop.
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