I am using the vim plugin for IntelliJ Idea.
Where should I place the .vimrc for that plugin.
Using Windows XP
-
4Sorry friend - the IntelliJ vim plugin is just an emulator - it doesn't use your vimrc – Shane C. Mason Oct 09 '11 at 03:34
-
I was able to get RubyMine to pick up my `~/.ideavimrc`. – Jason Swett Feb 02 '17 at 11:45
4 Answers
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.)
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.
- 878
- 10
- 17
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.
- 1,418
- 1
- 17
- 26
echo %homepath%
gives me my "home directory" on Windows XP,
where I need to put my .vimrc.
- 11,893
- 24
- 83
- 134
-
4Does this really work? I don't think my intellij vim plugin doesn't use a .vimrc. – easel Jul 14 '11 at 19:15
-
1This doesn't work. IntelliJ Idea Vim does not support `.vimrc` file. http://stackoverflow.com/questions/5585687/is-there-a-way-to-get-ideavim-to-honor-the-mappings-from-my-vimrc-file. Who voted this up? – Sanghyun Lee Feb 11 '14 at 07:04