Created
August 20, 2025 07:28
-
-
Save jiimaho/12d3e453a4aacae592d706278d9b2c27 to your computer and use it in GitHub Desktop.
.ideavimrc
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 | |
set relativenumber | |
set guicursor=i:block | |
"" -- 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 | |
" 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' | |
nnoremap <SPACE> <Nop> | |
let mapleader=" " | |
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t | |
"" Map \r to the Reformat Code action | |
map <leader>r <Action>(ReformatCode) | |
"" Map <leader>d to start debug | |
"map <leader>d <Action>(Debug) | |
"" Map \b to toggle the breakpoint on the current line | |
"map \b <Action>(ToggleLineBreakpoint) | |
" Tips från Theprimeagan. Utökar u resp d så att den centrerar också | |
nnoremap <C-u> <C-u>zz | |
nnoremap <C-d> <C-d>zz | |
" Tips från Felix | |
map <leader>b <Action>(ToggleLineBreakpoint) | |
map <leader>o <Action>(FileStructurePopup) | |
map <leader>s <Action>(ChangeSignature) | |
" Jim | |
map <leader>k <Action>(MoveLineUp) | |
map <leader>j <Action>(MoveLineDown) | |
map <leader>p <Action>(ParameterInfo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment