Open brucedsu opened 10 years ago
Thanks for the pull! This is quite helpful.
Question: do you need the -r
on the rm
command? I don't see why you'd need to specify it for a single file.
I would say most definitely do not have the -r for safety.
I love your RenameFile() function. However there are two problems. The first one is that some files have spaces in their names. The solution is to use escape() function to escape those spaces. The second one is that I created an alias for my rm command. I am using “rm -i” for rm, so I can not delete the origin file when I am using MacVim (I don’t know why it doesn’t prompt me to enter “y”). The solution is to add “-rf”.