If vim started with vim -i ~/tmp/.viminfo, how can I extract that pathname after vim started?

Since upon exiting vim, history, mark, buf-list, etc will automatically write to that file, thus it must be stored somewhere.

The question is: how can I get that pathname?



See the viminfofile option (:help viminfofile), which is set when using the -i command line flag.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.