I have the following three lines on my .vimrc
:
map ,e :e <C-R>=expand("%:p:h") . "/" <CR>map ,t :tabe <C-R>=expand("%:p:h") . "/" <CR>map ,s :split <C-R>=expand("%:p:h") . "/" <CR>
Now ,e <some-file>
opens on this buffer. ,t
and ,s
do the same but on a new tab/split window.