When I open a Gnome terminal in my Ubuntu 18 and execute the command ipython
, I start an Anaconda IPython terminal version 5.8.0. Within Vim 8.1, that is what I also get if I first open a Vim terminal buffer with :term
, navigate to the terminal and then execute the ipython
command:
However, if instead I use the command :term ipython
, I get a different non-Anaconda version of the IPython terminal:
Why would that be the case and how could one make sure that :term ipython
gives the same version as is given by executing ipython
on the terminal (in my case, the Anaconda one in the first picture)?
:echo $PATH
in Vim with the output ofecho $PATH
in the terminal opened via:term
?ipython
in your shell config? Trytype -a ipython
in the shell window.echo $PATH
indeed give different results and the anaconda2 path does not show up. I am opening Vim through a shortcut (gnome-terminal --command vim
) and somehow this is making Vim to not get the system's PATH.bashrc
). When you startgnome-terminal --command vim
via desktop shortcut etc, no shell is involved, so the PATH is not changed. You could trygnome-terminal -x bash -c vim
.