DEV Community

Discussion on: What's your favorite Vim trick?

Collapse
 
voyeg3r profile image
Sérgio Araújo

To me one of the most usefull features I have discovered is how to manipulate varoius registers type like:

 " Export the last command to the clipboard
 :let @+=@:

 " Copy the buffer to the clipboard
 :%y+

Load a function from the clipboard:

:@+

On insert mode, paste any register with Ctrl-r + Register, for example insert last search

Ctrl-r /