I want to open another file in the same directory or any file with its path relative to the current directory in command line.
My path is /home/sibich/
/home/sibich> vim a.pl
In vim, I want to open b.pl in same directory, so I use :
:vim b.pl
Bit I receive this message Invalid pattern or filename
So, I had to give it in shell.
:!vim b.pl
I want to directly execute this in vim.
Example 2: sub is a folder under /home/sibich
:vim sub/c.pl
Is there a way to set options such that command line accepts path relative to current directory and allows opening files through split, tabnew and vim commands?
:vim
is short for:vimgrep
. Is there a reason you aren't using:e
?vimtutor
or used google to find a solution?