Skip to content

Instantly share code, notes, and snippets.

@jeovazero
Created April 13, 2022 17:50
Show Gist options
  • Save jeovazero/ff90c56c5ef3a8b47b94a72752245af7 to your computer and use it in GitHub Desktop.
Save jeovazero/ff90c56c5ef3a8b47b94a72752245af7 to your computer and use it in GitHub Desktop.
"" Source your .vimrc
"source ~/.vimrc
let mapleader=" "
"" -- 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
set ideajoin
set multiple-cursors
" Don't use Ex mode, use Q for formatting.
map Q gq
" A-CR ProblemsView.QuickFixes
map <leader>re <Action>(RenameElement)
map <leader>rc <Action>(ReformatCode)
map <leader>ru <Action>(Run)
map <leader>fu <Action>(FindUsages)
map ff <Action>(FindInPath)
map <leader>ti <Action>(Scala.TypeInfo)
nmap <C-n> <Plug>NextWholeOccurrence
xmap <C-n> <Plug>NextWholeOccurrence
nmap g<C-n> <Plug>NextOccurrence
xmap g<C-n> <Plug>NextOccurrence
nmap <C-x> <Plug>SkipOccurrence
xmap <C-x> <Plug>SkipOccurrence
nmap <C-p> <Plug>RemoveOccurrence
xmap <C-p> <Plug>RemoveOccurrence
"" -- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment