dotfiles/symlinks/ideavimrc

50 lines
1.4 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
2021-03-09 17:39:56 +00:00
nnoremap [c :action VcsShowPrevChangeMarker<cr>
nnoremap ]c :action VcsShowNextChangeMarker<cr>
2021-03-04 15:18:01 +00:00
nnoremap <C-P> :action SearchEverywhere<CR>
2021-01-07 08:09:41 +00:00
nnoremap gd :action GotoDeclaration<CR>
nnoremap gi :action GotoImplementation<CR>
nnoremap gr :action FindUsages<CR>
nnoremap <leader>rn :action RenameElement<CR>
2021-03-04 15:18:01 +00:00
nnoremap <C-A-F> :action FindInPath<CR>
nnoremap <leader>tn :action RunAnything<CR>
nnoremap <leader>tf :action RunClass<CR>
2021-12-01 12:28:24 +00:00
inoremap <C-K> <esc>:action ParameterInfo<CR>a
2021-03-04 15:18:01 +00:00
nnoremap <C-K> :action ParameterInfo<CR>
2021-01-07 08:09:41 +00:00
2021-03-09 17:39:56 +00:00
nnoremap <leader>db :action ToggleLineBreakpoint<CR>
nnoremap <leader>dc :action ChooseDebugConfiguration<CR>
2021-01-07 08:09:41 +00:00
nnoremap <leader>ac :action ShowIntentionActions<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
command! Gdiffsplit action Git.CompareWithBranch
command! G action Git.Menu
command! Gpro action Github.Create.Pull.Request
command! Gblame action Annotate
command! TODO action ActivateTODOToolWindow
command! te action ActivateTerminalToolWindow
2022-03-08 19:29:55 +00:00
command! Sync action Android.SyncProject
command! Reformat action ReformatCode