I tried to use the python autocomplete in vim and setting the environment
in ~/.bashrc,then it works in shell . but not works when i opening gvim from a window.
find it on line and i get some useful information:
When you are launching gvim
from your window manager, which gets
its environment
from a number of places, but not from your bashrc
since your window manager was not run from bash.
Stuff like PATH and other environment
settings that you expect to be
seen by applications launched from your window manager should really
be defined in your ~/.profile instead of in your ~/.bashrc. Your
~/.profile is read when you log in, whether through X or through a
terminal. Environment
settings (but not aliases) made there and
exported will be seen by all your processes. Your ~/.bashrc should
really be used to make only those settings that you expect to use
only from the command line (including aliases and functions) or by
applications launched only from the command line.