.vimrc for IntelliJ Idea's vim plugin

2019-02-04 02:32发布

I am using the vim plugin for IntelliJ Idea.
Where should I place the .vimrc for that plugin.
Using Windows XP

5条回答
看我几分像从前
2楼-- · 2019-02-04 02:43

.vimrc typically belongs in your home directory (for your personal configurations).

查看更多
走好不送
3楼-- · 2019-02-04 02:47

The latest version of the plugin will read settings from ~/.ideavimrc

查看更多
可以哭但决不认输i
4楼-- · 2019-02-04 02:47

On my mac i simply ran ln -s "$HOME/.vimrc" "$HOME/.ideavimrc" to create a symlink so IntelliJ would use the same .vimrc as my standard vim.

My .vimrc is very simple. However, if there is config that is incompatible between IntelliJ and vim then you might have issues with this approach.

查看更多
Bombasti
5楼-- · 2019-02-04 02:55

If you rename your .vimrc to _ideavimrc in your ~ directory (/Users/ in windows)

Underscore is used instead of the . in windows for vim apparently

IntelliJ will honour it

Was tearing my hair out for a while getting this to work.

查看更多
你好瞎i
6楼-- · 2019-02-04 03:05
echo %homepath%  

gives me my "home directory" on Windows XP,
where I need to put my .vimrc.

查看更多
登录 后发表回答