64 lines
1.7 KiB
Plaintext
64 lines
1.7 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 ]w <Action>(GotoNextError)
|
|
nmap [w <Action>(GotoPreviousError)
|
|
|
|
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)
|
|
xmap <C-K> <Action>(ParameterInfo)
|
|
nmap <leader>c <Action>(HideSideWindows)
|
|
|
|
nmap <leader>db <Action>(ToggleLineBreakpoint)
|
|
nmap <leader>dc <Action>(ChooseDebugConfiguration)
|
|
|
|
nmap <leader>ac <Action>(ShowIntentionActions)
|
|
|
|
nmap <leader>tb <Action>(Annotate)
|
|
nmap - :Ex<CR>
|
|
|
|
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
|
|
command! EditVimConfig e ~/.ideavimrc
|
|
command! ReloadVimConfig action IdeaVim.ReloadVimRc.reload
|
|
command! Warnings action ActivateProblemsViewToolWindow
|
|
|
|
nmap <leader>vec :EditVimConfig<CR>
|
|
nmap <leader>vep :EditVimConfig<CR>
|
|
nmap <leader>vrc :ReloadVimConfig<CR>
|