I am trying to save my session in Vim with relative paths for opening files. With cur_dir in sessionoptions , the file paths will be relative. the current file, but the session file contains the cd /path/to/base/directory :
... cd /path/to/base badd +0 relpath1/file badd +0 relpath2/file ...
If I leave curdir out of sessions, the cd will disappear, but the file paths will be absolute:
badd +0 /path/to/base/relpath1/file badd +0 /path/to/base/relpath2/file
Is there a way to have only relative wrt paths. to whatever current directory when creating a session - without plugins or scripting? To have a session file only:
badd +0 relpath1/file badd +0 relpath2/file
My ultimate goal is to have a session file that I can copy, for example. from checking svn to another.
source share