0

I save my sessions to Session.vim and load them by running vim -S, which opens my layout just the way I want it. It's great!

Sometimes I want to edit ./README.md. I could run vim README.md, but then I'm not loading my session. I could run vim -S and navigate to README.md, but sometimes the session is saved all the way up in src/main/java/App/App.java, which makes it a chore to navigate back to the root.

What I want to do is run something like vim -S Session.vim README.md, which should both load my session with its layout and open README.md for editing, perhaps in a new tab. How can I achieve this?

In case it is relevant, I use :Obsess to store my sessions automatically.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.