Ask your own question, for FREE!
Computer Science 17 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!
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!