Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
0 votes
in vifm by

Hi,
I was wondering if there was a way to open a pdf file or any file and still have vifm running so that I can go to it and open more files?

1 Answer

0 votes
by

Hi,

when invoking pdf viewer just add & at the end (see the docs).

by

Wierd, maybe they changed start command. Try without "vim" then:

filetype *.txt echo && start "C:\Program Files (x86)\Vim\vim82\vim.exe" %"c
by

Hi xaizek, thanks a lot, I tried everything and didn't work, lastly tried the statements directly in Power Shell, and some of that worked, but not in vifmrc, I don't know why.
Doing that I discovered the correct statement separator is ";", not &&, anyway didn't work in vifmrc.

filetype *.txt start cmd /k ; start "C:\Program Files (x86)\Vim\vim82\vim.exe"

by

Dear xaizek, it's only script issues. We are near of solution. With the last test I achieved al least launch the file in other cmd session, the only point that I want to solve is what I'll describe for you.

Now, with this statement...

filetype *.txt cmd && start "C:\Program Files (x86)\Vim\vim82\vim.exe"

Occurs the following...

I press Enter over file >> CMD is opened >> I close the CMD >> The file in VIM pop up

WE ARE REALLY CLOSER, only remains that wont be neccessary to close CMD for view the txt file.

by

Maybe try:

filetype *.txt cmd /C "C:\Program Files (x86)\Vim\vim82\vim.exe"
by

WORKING!!!!!! tHANKS A LOT.

...