Execute command from register
Here's a cool command
:nmap <leader>s :smile<CR>
If you read the above in vim, how would you execute it? You can use the system buffer or tmux copy+paste and paste it to the command line, but that seems very not-vim.
Vim has a :@
command that will execute registry contents. Just put the line into your registry with yy
and then call:
:@"
This executes the contents of the default register
Tweet