exit or close the vim through shell script

Viewed 1393

I'm writing a script file in which I have to close the vim files that are opened. So, how can I close or exit from the file through the shell script? I've tried this solution, but had no luck. I've tried it this way:

vim path_to_file/abc +qa
1 Answers
Related