Re: Opening 2 files with common basename
- A.T. Hofkamp wrote:
> Hello,:help user-commands
> After my syntax-highlighting experiments, it is time for another
> This time, I'd like to open 2 files instead of 1 when editing in vim,
> i.e. after entering ":e base", I'd like to obtain a gvim with a split,
> containing "base.sdf" and "base.asf" (if they exist).
> It is like opening a .c and a .h file together at the same time.
> Being a vim-programming-newbie, I have no clue how to implement
> something like the above.
> I briefly tried looking into the online help for a pointer in the right
> direction, but :help multi and :help file didn't provide any useful
> hooks at first sight.
> I'd appreciate pointers to useful pieces of the online help.
> PS I probably want ":e2 base" rather than ":e base" in order to preserve
> the semantics of :e
and start by reading the part of the users' manual linked from there.
HTH --Benji Fisher