.vimrc for IntelliJ Idea's vim plugin

前端 未结 4 2159
名媛妹妹
名媛妹妹 2020-12-29 19:00

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

相关标签:
4条回答
  • 2020-12-29 19:11
    echo %homepath%  
    

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

    0 讨论(0)
  • 2020-12-29 19:16

    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.

    0 讨论(0)
  • 2020-12-29 19:28

    The latest version of the plugin will read settings from a file named .ideavimrc in the home directory.

    On *nix, the home directory can be accessed at ~.

    On Windows, you can use the %HOMEPATH% environment variable. (Normally, "C:\Users\<User Name>" or "C:\Documents and Settings\<User Name>", depending on your Windows version.)

    0 讨论(0)
  • 2020-12-29 19:36

    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.

    0 讨论(0)
提交回复
热议问题