[/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
You can use the env variable
$OLDPWD
of my "solution" on vim.Furhtermore, I think that you can use
$omg
variable on vim too, am I right?Example: try to write on vim
:!echo "testing" > $omg/testing
and then:vi $omg/testing