-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to omit Vim from the installation #1557
Comments
Do you know about a way to detect that your preferred Vim is installed, that we could turn into a programmatic check in the installer? |
I'll see what I can come up with. |
Perhaps check your $PATH if Vim/gvim is available? However note, that whatever existing Vim you want to use, it needs to understand the path separators, because an existing Vim might not understand cygwin like paths. One could use |
When Git (itself not a Cygwin executable) launches an editor (or for that matter, any other process), the So your concern is already addressed (actually, it had been addressed for the entire lifetime of Git for Windows).
@bgshacklett great! FWIW I would not really want to follow this advice:
... as that |
FWIW, the official VIM Windows installer creates a registry entry unter HKLM\SOFTWARE\Vim\Gvim\path (REG_SZ) pointing to the installed gvim.exe. |
Detection of Vim and skip its installation automatically would be very neat feature, but for me it could be just simple checkbox. As I can opt-out Git LSF or Windows integration at first configuration page of instalator, I could just do it for Vim - but here I'm assuming that this "toggle" could be passed via execution parameters as other components, couldn't it be? |
Sure. And for many others, it should be as descriptive an option as our current options for Git's default editor. I imagine once @bgshacklett is done, the existing
Yes, both components and options can be passed via command-line parameters. The components via InnoSetup's own |
After spending some time thinking about this, I wonder if the "Choose the default editor used by Git" page could just have an option to browse for an editor at a custom path. It would remove any question as to which editor is being chosen, as well as preventing potential errors in automatic detection logic. It would also have the benefit of allowing the user to choose whatever editor they desire (Sublime, Atom, VS Code, etc.) |
That idea sounds compelling until you think of these two things:
|
While you were wondering, lucky you, @ungps was not satisfied with only wondering about it but went ahead and implemented this. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
For the record, I hid some off-topic remarks and blocked the account responsible for them, as they violate the https://github.com/git-for-windows/git/blob/master/CODE_OF_CONDUCT.md, in particular Our Standards. |
Summary
Each time I install Git on Windows, I must delete the
vim.exe
file from under the Git folder to ensure that my preferred Vim distribution is used instead. It would be helpful to be able to omit Vim from the installation in cases where it's already installed on the system.Setup
to the issue you're seeing?
n/a
Details
ConEmu + PowerShell
Minimal, Complete, and Verifiable example
this will help us understand the issue.
My preferred Vim distribution should open with the commit message template
The bundled Vim distribution opens with the commit message template.
** insert URL here **
n/a
The text was updated successfully, but these errors were encountered: