简体   繁体   中英

Using vim as an external tool in intellij idea

I want to use vim editor as an external tool in intellij idea. I mapped a Ctrl-U combination to opening the current file with vim . Then I want to use the fugitive plugin, which is a wrapper over git and uses the git binary. But the vim opened from idea cannot locate the git binary. When I start the vim from shell, it can locate the vim binary.

/bin/bash: git: command not found

When launched from the IDE, vim doesn't seem to inherit the environment variables (like PATH ) that you set in your ~/*rc . You could try toprepend the correct PATH to your command. Something like:

PATH=/path/to/git:$PATH /usr/bin/gvim

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM