1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-03-01 04:46:02 +01:00

EA-32923 - SIOOBE: VimKeyMapUtil.installKeyBoardBindings

This commit is contained in:
oleg 2012-01-10 17:53:43 +04:00
parent a6701a8178
commit d2fc2f354f

View File

@ -64,7 +64,7 @@ public class VimKeyMapUtil {
String keymapPath = PathManager.getPluginsPath() + File.separatorChar + IDEAVIM_NOTIFICATION_TITLE + File.separatorChar + VIM_XML;
File vimKeyMapFile = new File(keymapPath);
// Look in development path
if (!vimKeyMapFile.exists() || !vimKeyMapFile.isFile()) {
if ((!vimKeyMapFile.exists() || !vimKeyMapFile.isFile()) && ApplicationManagerEx.getApplicationEx().isInternal()) {
final String resource = VimKeyMapUtil.class.getResource("").toString();
keymapPath = resource.toString().substring("file:".length(), resource.indexOf("out")) + "community/plugins/ideavim/keymap/" + VIM_XML;
vimKeyMapFile = new File(keymapPath);