mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-11 09:40:37 +02:00
VIM-92 Reconfigure Vim keymap by overwriting it and switching bindings without restart
This commit is contained in:
parent
2e2e7a7df6
commit
d744d45ccd
src/com/maddyhome/idea/vim
@ -56,10 +56,6 @@ public class VimKeyMapUtil {
|
||||
*/
|
||||
public static boolean installKeyBoardBindings() {
|
||||
LOG.debug("Check for keyboard bindings");
|
||||
if (isVimKeymapInstalled()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
final LocalFileSystem localFileSystem = LocalFileSystem.getInstance();
|
||||
if (localFileSystem.refreshAndFindFileByPath(KEYMAPS_PATH) == null) {
|
||||
reportError("Failed to install vim keymap. Empty keymaps folder");
|
||||
|
@ -3,7 +3,6 @@ package com.maddyhome.idea.vim;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.project.DumbAware;
|
||||
import com.intellij.openapi.actionSystem.PlatformDataKeys;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
@ -18,6 +17,7 @@ public class VimReconfigureKeymapAction extends AnAction implements DumbAware {
|
||||
|
||||
@Override
|
||||
public void actionPerformed(@NotNull final AnActionEvent e) {
|
||||
VimKeyMapUtil.reconfigureParentKeymap(e.getData(PlatformDataKeys.PROJECT));
|
||||
VimKeyMapUtil.installKeyBoardBindings();
|
||||
VimKeyMapUtil.switchKeymapBindings(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user