Guest User

Untitled

a guest
Sep 13th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.35 KB | None | 0 0
  1. function! SaveUnnamedRegTo()
  2.   call inputsave()
  3.   let regKey = input('Enter key: ')
  4.   call inputrestore()
  5.   let "@" . regKey = @@
  6. endfunction
  7.  
  8. "When I call the function and feed it a letter:
  9. Enter key: hError detected while processing function SaveUnnamedRegTo:
  10. line 4:
  11. E475: Invalid argument: "@" . regKey = @@
  12. Press ENTER or type command to continue
Add Comment
Please, Sign In to add comment