I very often need to open files through vsplit/split
. Very often I want to open files in the same directory. Still, I must pass their paths to vsplit/split
.
:vsplit @/siblingfile.txt
@
is an alias equal to the path of the current file (that exists only in my imagination of course but you got the idea :) ).
Is this possible?
UPDATE
--> vim --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Nov 24 2016 16:00:18)
:echo has('cmdline_compl') displays 1
:Vex
and:Sex
%:h/
, your solution is faster thx