[/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
I knew
CDPATH
, in fact I actually use it with 'projects' folder to putcd project_name
in Vim (I haven't searched about project management in Vim as I love the simplicity)I couldn't use bookmarks functionality into Vim, for example
:cd omg
. I thought about map each enviroment var into Vim's vars and then aliasing 'cd' command to "exe 'cd' . fnameescape($shell_var)" but... it's so complicated to me.So I've dynamics bookmarks every session into shell and project alias into Vim. It's useful enough ;)
PD: If any arrives here and has a solution to mix both functionality, please comment it