intellij-idea

Is there a way to use Ctrl-C in edit mode as a vim command (exit edit mode) and as an IDE Command in selection or neutral (copy text) in IntelliJ?


I like the vim plugin for IntelliJ but one thing's bugging me. I like using Ctrl-C to copy to system clipboard (as opposed to vim buffer). But I still want to be able to easily exit edit mode. NeoVim let me do this by only binding Ctrl-C in edit mode. Is there a way to do it in IntelliJ vim as well?


Solution

  • Figured it out:

    Add this to ideavimrc

      " Make Ctrl-C behave like Esc in insert mode
      inoremap <C-c> <Esc>
    
      " Copy selected text to system clipboard in visual mode
      vnoremap <C-c> "+y