[英]git command is not recognized on Terminal tool window in IntelliJ IDEA
[英]Using vim as an external tool in intellij idea
我想將vim
編輯器用作intellij idea中的外部工具。 我將Ctrl-U
組合映射為使用vim
打開當前文件。 然后,我想使用fugitive
插件,該插件是git
的包裝,並使用git
二進制文件。 但是從想法中打開的vim
無法找到git
二進制文件。 從外殼啟動vim時,它可以找到vim
二進制文件。
/bin/bash: git: command not found
從IDE啟動時,vim似乎不會繼承您在~/*rc
設置的環境變量(例如PATH
)。 您可以嘗試將正確的PATH
重新添加到命令中。 就像是:
PATH=/path/to/git:$PATH /usr/bin/gvim
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.