Skip to content

Instantly share code, notes, and snippets.

@vuon9
Created July 31, 2024 09:40
Show Gist options
  • Save vuon9/1c8d1be58aad3e6417b9514117e181b1 to your computer and use it in GitHub Desktop.
Save vuon9/1c8d1be58aad3e6417b9514117e181b1 to your computer and use it in GitHub Desktop.
Vim: Replace the whole file content by clipboard

To replace the whole file content by clipboard in VIM

:%d
cmd+v
:w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment