# VIM Overwrite instead of edit

I am currently running the following two commands.

\rm myfile
vim myfile


Then, i, to enter insert mode, and ctrl-shift-v to paste

Basically I have text on my clipboard that I would like to copy and overwrite my current file.

Can this be done with less work?

See the accepted answer here. You can use xsel to paste directly from your clipboard into a file, using > to overwrite the original file.
xsel --clipboard > path/to/file.txt