I have an issue with Vim in NixOS.
The problem is that Vim sets to shell
the path to not desired bash (non-interactive bash).
So I want to know how Vim finds a shell and sets its path to shell
to fix the issue.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityI have an issue with Vim in NixOS.
The problem is that Vim sets to shell
the path to not desired bash (non-interactive bash).
So I want to know how Vim finds a shell and sets its path to shell
to fix the issue.
Looks like it is set from environment variable $SHELL. . For example try run vim like this:
% env SHELL=/bin/csh vim
-i
option to bash? If so, I'd suggest vi.stackexchange.com/a/11173/205 instead. See:h 'shell'
and:h 'shellcmdflag'