dotfiles/symlinks/ideavimrc

66 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-01-07 08:09:41 +00:00
source ~/.vim/vimrc
source ~/.vim/plugins.vim
" IdeaVIM plugins
set surround
set commentary
2021-08-17 13:19:16 +00:00
set NERDTree
2021-01-07 08:09:41 +00:00
" IdeaVIM settings
set ideajoin
set idearefactormode=keep
" IdeaVIM mappings
2022-04-30 11:06:20 +00:00
nmap [c <Action>(VcsShowPrevChangeMarker)
nmap ]c <Action>(VcsShowNextChangeMarker)
nmap ]w <Action>(GotoNextError)
nmap [w <Action>(GotoPreviousError)
2021-03-09 17:39:56 +00:00
2022-04-30 11:06:20 +00:00
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 <A-K> <Action>(ParameterInfo)
nmap <A-K> <Action>(ParameterInfo)
nmap <leader>c <Action>(HideSideWindows)
2021-01-07 08:09:41 +00:00
2022-04-30 11:06:20 +00:00
nmap <leader>db <Action>(ToggleLineBreakpoint)
nmap <leader>dc <Action>(ChooseDebugConfiguration)
2021-03-09 17:39:56 +00:00
2022-04-30 11:06:20 +00:00
nmap <leader>ac <Action>(ShowIntentionActions)
nmap <leader>tb <Action>(Annotate)
2022-05-12 10:57:38 +00:00
nmap - :Ex<CR>
command! Start action Run
2022-03-08 19:29:55 +00:00
if &ide =~? 'rider'
command! A action SwitchHeaderSource
else
command! A action GotoTest
endif
2021-03-04 15:18:01 +00:00
command! Scratch action NewScratchBuffer
2021-10-03 19:15:18 +00:00
command! Ex NERDTree
2021-10-03 19:49:28 +00:00
command! Gw action Git.Add
command! Ggpull action Git.Pull
2022-04-30 11:06:20 +00:00
command! Ggpush action Vcs.Push
2021-10-03 19:49:28 +00:00
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
2022-04-30 11:06:20 +00:00
command! Term action ActivateTerminalToolWindow
2022-03-08 19:29:55 +00:00
command! Sync action Android.SyncProject
2022-04-30 11:06:20 +00:00
command! Format action ReformatCode
command! EditVimConfig e ~/.ideavimrc
command! ReloadVimConfig action IdeaVim.ReloadVimRc.reload
2022-05-12 10:57:38 +00:00
command! Warnings action ActivateProblemsViewToolWindow
command! Logs action ActivateLogcatToolWindow
2022-05-12 10:57:38 +00:00
nmap <leader>vec :EditVimConfig<CR>
nmap <leader>vep :EditVimConfig<CR>
nmap <leader>vrc :ReloadVimConfig<CR>