How can I delete from the disk the current open file from within vim? Would be nice to also close the buffer.
I see you can use NERDTree for that, but I don\'t use this
You can do it with two steps:
save as a new file
:w newfilename
delete the old file
! rm oldfilename