[/home/user]$ cd some/path
[/home/user/project/omg]$ save omg
[/home/user/project/omg]$ cd
[/home/user]$ cd omg
[/home/user]$ cp file $omg
[/home/user]$ show
omg="/home/user/project/omg"
[/home/user]$ $EDITOR ~/.dirs
$ curl https://raw.github.com/gist/97b1806058ed33cc2612/3b98af2ba3ceaa596139311337a5750686c8a6cc/bookmarks.bash > ~/.bookmarks.bash
$ echo '. ~/.bookmarks.bash' >> ~/.bashrc
Indeed, this was the reason why I wrote "solution" between quotes.
About the use of variables inside vim, you can always use env variable, like
:cd $HOME
without the need of execute it in a shel with the!
.In my shell, I use old-school solution: https://github.com/agonzalezro/.dot/blob/master/zsh#L31 :)