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?


1 Answer 1


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 and acknowledge you have read our privacy policy.

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