Last active
December 22, 2025 01:05
-
-
Save 0bvim/f721ad8ea51950d19775f3ec5687bac5 to your computer and use it in GitHub Desktop.
My vim configuration file for idea vim plugin. It can be used with any Jetbrains IDE
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 | |
| " Source your .vimrc | |
| source ~/.vimrc | |
| "" -- 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 | |
| " Do incremental searching. | |
| set incsearch | |
| " My cfgs | |
| let mapleader = ";" | |
| let maplocalleader = ";" | |
| set easymotion | |
| " Mappings | |
| " search everywhere | |
| map <leader>f <Plug>(easymotion-s) | |
| " Don't use Ex mode, use Q for formatting. | |
| map Q gq | |
| " Rename element | |
| map <leader>r <Action>(RenameElement) | |
| " Chill and code | |
| map <leader>z <Action>(ToggleDistractionFreeMode) | |
| " find errors easy | |
| map <leader>n <Action>(GotoNextError) | |
| map <leader>m <Action>(GotoPreviousError) | |
| " Object tree is life. | |
| map <leader>o <Action>(FileStructurePopup) | |
| " Options for option + enter (macOS) / alt + enter | |
| map <leader>t <Action>(ShowIntentionActions) | |
| " Toggle Integrated Terminal | |
| " hint: to close terminal u can use default command 'shift+<ESC>' | |
| map <leader>g <Action>(ActivateTerminalToolWindow) | |
| " This I removed before cuz I guess that it have o utility... but if very useful (git blame toggler) | |
| map <leader>b <Action>(Annotate) | |
| " Format code | |
| map <leader>l <action>(ReformatCode) | |
| " Extract Method | |
| map <leader>x <action>(ExtractMethod) | |
| " Show Diff current file | |
| map <leader>d <action>(Compare.SameVersion) | |
| " --- Enable IdeaVim plugins https://jb.gg/ideavim-plugins | |
| " Copy github link from line or file | |
| map <leader>c <action>(GitHub.Copy.Link) | |
| " Highlight copied text | |
| Plug 'machakann/vim-highlightedyank' | |
| " Commentary plugin | |
| Plug 'tpope/vim-commentary' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment