Skip to content

Instantly share code, notes, and snippets.

@ni554n
Created April 24, 2026 21:05
Show Gist options
  • Select an option

  • Save ni554n/b3351050733a213c5e11e9371188e4dc to your computer and use it in GitHub Desktop.

Select an option

Save ni554n/b3351050733a213c5e11e9371188e4dc to your computer and use it in GitHub Desktop.
~/
set scrolloff=5
set incsearch
" Don't use Ex mode, use Q for formatting.
"map Q gq
let mapleader=" "
map Y y$
map <Leader>y "+y
map <Leader>Y "+Y
map <Leader>d "+d
map <Leader>D "+D
map <Leader>p "+p
map <Leader>P "+P
map <Leader><Leader>p :put +<CR>
map <Leader><Leader>P k:put +<CR>
map <C-w>q :wq<CR>
map grn <Action>(RenameElement)
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
map <leader>f <Action>(ReformatCode)
map [d <Action>(GotoPreviousError)
map ]d <Action>(GotoNextError)
" Moves the line so mark not working
map [<Space> mq<Action>(EditorStartNewLineBefore)`q
map ]<Space> mq<Action>(EditorStartNewLine)`q
map gcc <Action>(CommentByLineComment)k
"" 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)
" Find more examples here: https://jb.gg/share-ideavimrc
"set ideajoin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment