Skip to content

Instantly share code, notes, and snippets.

@pazams
Last active September 14, 2022 21:08
Show Gist options
  • Save pazams/53f0f54fefe1964f216fa1614c7a5f55 to your computer and use it in GitHub Desktop.
Save pazams/53f0f54fefe1964f216fa1614c7a5f55 to your computer and use it in GitHub Desktop.
"" 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
" Don't use Ex mode, use Q for formatting.
map Q gq
set NERDTree
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
"" Map \r to the Reformat Code action
"map \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)
" Find more examples here: https://jb.gg/share-ideavimrc
" https://stackoverflow.com/questions/30149091/how-to-configure-in-ideavim-ctrl-n-and-ctrl-p-completion-from-vim
imap <C-j> <ESC>:action HippieCompletion<CR>a
imap <C-k> <ESC>:action HippieBackwardCompletion<CR>a
map <leader>r <Action>(RenameElement)
map <leader>j <Action>(GotoFile)
map <leader>f <Action>(RecentFiles)
" map <C-j> <Action>(EditorDown)
" map <C-k> <Action>(EditorUp)
" map <C-j> <Action>(Up)
" map <C-k> <Action>(Down)
map <C-h> <Action>(ActivateProjectToolWindow)
map <leader>tt <Action>(ActivateTerminalToolWindow)
map <leader>o <Action>(Maven_6736b82btry1e30f2e93compile)
map <C-f> <Action>(FindInPath)
map gr <Action>(FindUsages)
" to see what: track action ids
" https://gist.github.com/zchee/9c78f91cc5ad771c1f5d
" toggle break points: ctrl f8
" ctrl ctrl -> mvn ...
" reformat file https://www.jetbrains.com/idea/guide/tips/reformat-file/#:~:text=You%20can%20use%20%E2%8C%98%E2%8C%A5,L%20(Windows%2FLinux).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment