Vim
vim Things to Remember
This is for vim
stuff that I frequently have to Google for.
Copy output of shell command to file
This is done with:
:r !ls -1
Yanking and deleting properly
When trying to delete something and then paste, it’s best to use a dedicated register for yank instead:
"ay
and then paste with the register:
"ap
There’s also a separate register specifically for yanking:
"0p