ideavim-rc/.ideavimrc

55 lines
1.2 KiB
Plaintext

let mapleader = " "
set scrolloff=5
set incsearch
set smartcase
map Q gq
" Sane mappings
nnoremap <leader>y "+y
nnoremap <leader>Y "+Y
nnoremap <leader>p "+p
nnoremap <leader>P "+P
nnoremap \\\\ :source ~/.ideavimrc<CR>
" Handlers
sethandler <c-c> n-x:ide i:vim
sethandler gi n-x:vim i:ide
sethandler gt n-x:vim i:ide
sethandler gs n-x:vim i:ide
sethandler ga n-x:vim i:ide
sethandler <c-f> n-x:vim i:ide
sethandler <a-k> n-x:vim i:ide
sethandler <a-j> n-x:vim i:ide
sethandler <c-e> a:ide
map gi <Action>(GoToImplementation)
map go <Action>(GotoTypeDeclaration)
map ga <Action>(ShowIntentionActions)
map <leader>i <Action>(ImplementMethods)
map <c-f> <Action>(FindInPath)
map gt <Action>(TabsActions)
map <a-k> <Action>(MoveLineUp)
map <a-j> <Action>(MoveLineDown)
map gS <Action>(GotoSymbol)
map gs <Action>(FileStructurePopup)
map <leader>r <Action>(RenameElement)
map gr <Action>(ShowUsages)
nmap <c-y> <Action>(GotoFile)
imap <c-y> <Action>(EditorChooseLookupItem)
map [[ <Action>(MethodUp)
map ]] <Action>(MethodDown)
nmap <c-n> <Action>(NextTab)
nmap <c-p> <Action>(PreviousTab)
map <c-e> <Action>(ActivateProjectToolWindow)
" Plugins
set sneak
set quickscope