Skip to content

Instantly share code, notes, and snippets.

@donfreiday
Created February 14, 2024 14:53
Show Gist options
  • Save donfreiday/f79aa807f3c2bdf5205a388403156df1 to your computer and use it in GitHub Desktop.
Save donfreiday/f79aa807f3c2bdf5205a388403156df1 to your computer and use it in GitHub Desktop.
.ideavimrc
# enable plugins
set surround
set exchange
set nerdtree
set highlightedyank
# yank to the system clipboard
set clipboard^=unnamedplus
set clipboard^=ideaput
# Use intellij's join when J is pressed
set ideajoin
imap jk <Esc>
# use [[ and ]] for navigating methods
nnoremap [ [m
nnoremap ] ]m
# TabShift plugin actions
nnoremap <C-w><S-l> :action TabShiftActions.ShiftRight<CR>
nnoremap <C-w><S-h> :action TabShiftActions.ShiftLeft<CR>
nnoremap <C-w><S-j> :action TabShiftActions.ShiftDown<CR>
nnoremap <C-w><S-k> :action TabShiftActions.ShiftUp<CR>
nnoremap <C-w><=> :action tabshifter.Actions.EqualSizeSplit<CR>
# Hierarchy navigation
nmap gs :action GotoSuperMethod<CR>
nmap gi :action GotoImplementation<CR>
# Scroll offset (show a few lines around cursor)
set scrolloff=5
# Forward and back
nmap <C-o> :action Back<CR>
nmap <C-i> :action Forward<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment