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'm trying to use notepad++ as my editor. I have the following in my vifmrc:

set vicmd="C:\Program Files (x86)\Notepad++\notepad++.exe"

But I get the following error when trying to launch a .txt file.

'C:Program' is not recognized as an internal or external command,
operable program or batch file.

Any suggestions?

1 Answer

0 votes
Best answer


use single quotes and nest double quotes inside them to account for both slashes (single quotes) and spaces (double quotes):

set vicmd='"C:\Program Files (x86)\Notepad++\notepad++.exe"'

Note though that not everything will work when you set 'vicmd' to something that's not Vim-like. Vifm makes some assumptions about what command-line options 'vicmd'-program accepts (e.g., to set cursor on a particular line when opening a file from :grep menu).

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.