vimideavim

How to include only some of vimrc in ideavimrc


I know that I can use a .ideavimrc file, and from it I can source my .vimrc But there are some settings in there that don't work well.

With vim I can do things like:

" Avoid installing twice or when in unsupported Vim version.
if (v:version > 700)
    " do some set up
endif

Does anyone know if I can do something similar so that ideavimrc will just skip certain sections?


Solution

  • IdeaVIM now supports this syntax. Wrap the lines you want to make conditional in your ~/.vimrc like this:

    if !has("ide")
      "Settings to hide from IdeaVIM go here
    endif