dotfiles/symlinks/ideavimrc

54 lines
1.4 KiB
Plaintext

source ~/.vim/vimrc
source ~/.vim/plugins.vim
" IdeaVIM plugins
set surround
set commentary
set NERDTree
" IdeaVIM settings
set ideajoin
set idearefactormode=keep
" IdeaVIM mappings
nmap [c <Action>(VcsShowPrevChangeMarker)
nmap ]c <Action>(VcsShowNextChangeMarker)
nmap <C-P> <Action>(SearchEverywhere)
nmap gd <Action>(GotoDeclaration)
nmap gi <Action>(GotoImplementation)
nmap gr <Action>(FindUsages)
nmap <leader>rn <Action>(RenameElement)
nmap <C-A-F> <Action>(FindInPath)
nmap <leader>tn <Action>(RunAnything)
nmap <leader>tf <Action>(RunClass)
imap <C-K> <Action>(ParameterInfo)
nmap <C-K> <Action>(ParameterInfo)
nmap <leader>db <Action>(ToggleLineBreakpoint)
nmap <leader>dc <Action>(ChooseDebugConfiguration)
nmap <leader>ac <Action>(ShowIntentionActions)
command! Start action Run
if &ide =~? 'rider'
command! A action SwitchHeaderSource
else
command! A action GotoTest
endif
command! Scratch action NewScratchBuffer
command! Ex NERDTree
command! Gw action Git.Add
command! Ggpull action Git.Pull
command! Ggpush action Vcs.Push
command! Gdiffsplit action Git.CompareWithBranch
command! G action Git.Menu
command! Gpro action Github.Create.Pull.Request
command! Git blame action Annotate
command! TODO action ActivateTODOToolWindow
command! Term action ActivateTerminalToolWindow
command! Sync action Android.SyncProject
command! Format action ReformatCode
nmap <leader>tb <Action>(Annotate)