Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

how can i delete an entire file using vim? as in what is the command to use?

OpenStudy (anonymous):

Why not use the 'rm' command outside or in a shell of vim?

OpenStudy (nowhereman):

Do you want to delete it from disc completely or just empty it? In the former case you jdunn32's answer is correct, take the shell and use 'rm' or just call it from inside vim: :exe "!rm" expand("%") To empty it, I would go to the first row with 'gg' and the remove all content with 'dG'.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!