Is there a way in vim to close all files (buffers, let’s not get into that) from some directory and its subdirectories?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put the following into your .vimrc or in some custom file inside vim plugin folder.
Use commands like
to close buffers which name matches passed regexp.
That means that to close all files from the certain folder you can use
To close all the files from the current dir and all subdirs