Skip to content

Instantly share code, notes, and snippets.

@isobit
Created September 12, 2017 15:47
Show Gist options
  • Save isobit/a6cde6b90c8617c325f6f8e776867fd8 to your computer and use it in GitHub Desktop.
Save isobit/a6cde6b90c8617c325f6f8e776867fd8 to your computer and use it in GitHub Desktop.
Intellij IDEA vimrc
set surround
" gc and gcc to comment
" https://github.com/JetBrains/ideavim/pull/109#issuecomment-276759741
nnoremap gcc :action CommentByLineComment<cr>
vnoremap gc :<bs><bs><bs><bs><bs>action VimVisualSwapSelections<cr>:action CommentByLineComment<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment