Created
April 2, 2025 19:20
-
-
Save rlewicki/97bd162bd48f76e91560ab2ffe3961d4 to your computer and use it in GitHub Desktop.
IdeaVim config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " .ideavimrc is a configuration file for IdeaVim plugin. It uses | |
| " the same commands as the original .vimrc configuration. | |
| " You can find a list of commands here: https://jb.gg/h38q75 | |
| " Find more examples here: https://jb.gg/share-ideavimrc | |
| "" -- Suggested options -- | |
| " Show a few lines of context around the cursor. Note that this makes the | |
| " text scroll if you mouse-click near the start or end of the window. | |
| set scrolloff=5 | |
| set relativenumber | |
| set number | |
| set clipboard+=unnamed | |
| let mapleader=" " | |
| noremap U <C-r> | |
| " Do incremental searching. | |
| set incsearch | |
| " Don't use Ex mode, use Q for formatting. | |
| map Q gq | |
| " --- Enable IdeaVim plugins https://jb.gg/ideavim-plugins | |
| " Highlight copied text | |
| Plug 'machakann/vim-highlightedyank' | |
| " Commentary plugin | |
| Plug 'tpope/vim-commentary' | |
| Plug 'easymotion/vim-easymotion' | |
| Plug 'tpope/vim-surround' | |
| Plug 'tpope/vim-repeat' | |
| Plug 'dbakker/vim-paragraph-motion' | |
| set quickscope | |
| let g:qs_highlight_on_keys = ['f', 'F'] | |
| set easymotion | |
| set visualbell | |
| set noerrorbells | |
| "" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t | |
| map <leader>r <Action>(ReformatCode) | |
| map <leader>d <Action>(Debug) | |
| map cc :action CommentByLineComment <CR> | |
| map <leader>ga :action GotoAction <CR> | |
| map <leader>gs :action GotoSymbol <CR> | |
| map <leader>gc :action GotoClass <CR> | |
| map <leader>h <Action>(SwitchHeaderSource) | |
| map <leader>q <Action>(ShowIntentionActions) | |
| map <leader>p <Action>(ToggleLineBreakpoint) | |
| map <leader>o <Action>(FileStructurePopup) | |
| map <leader>u :action FindUsages <CR> | |
| map <leader>sv :action SplitVertically <CR> | |
| map <leader>sc :action UnsplitAll <CR> | |
| map <leader>v :action NextSplitter <CR> | |
| map <leader>mv :action MoveEditorToOppositeTabGroup <CR> | |
| map gh :action Back <CR> | |
| map gl :action Forward <CR> | |
| map gj :action MethodDown <CR> | |
| map gk :action MethodUp <CR> | |
| map gr :action RecentFiles <CR> | |
| map gd :action GotoDeclaration <CR> | |
| map gs :action GotoSuperMethod <CR> | |
| map gf :action GotoFile <CR> | |
| set ideajoin | |
| "" More config examples: https://gist.github.com/AlexPl292/50a3ff4cef1badcbb23436b22cbd3cf4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment