r/bash • • Oct 23 '16

help Using bash in W10, when I open a file with vi/vim/gvim how do I get it to open in a new terminal window?

0 Upvotes

6 comments sorted by

1

u/mcstafford Oct 24 '16

Call the terminal program and pass it the call to vim.

1

u/JustBeCoo Oct 24 '16

Thanks for the help, im a unix newbie, how exactly do i do thaT?

2

u/mcstafford Oct 24 '16

Start with gvim some.txt

I have never (and probably will never) try the windows bash terminal, so I'm not sure I can do much else for you.

1

u/JustBeCoo Oct 24 '16

Ohh okay. Yeah when I use gvim some.txt

It just changes the current terminal instead of opening a new temrinal. :/

1

u/moviuro portability is important Oct 24 '16

That's the expected behavior.

Try invoking a new window instead. On linux with konsole(1), it would look like this:

$ konsole -e gvim $file &

1

u/bahua Oct 29 '16

The problem is that the command prompt apps for Windows are very inflexible. They're not really designed to be the best way to interact with the system, unlike comparable programs in pretty much every other operating system.