feat: improve ideavimrc

This commit is contained in:
Moritz Böhme 2024-06-12 09:48:47 +02:00
parent e83ce10ad7
commit 11d13544c1

View file

@ -4,12 +4,15 @@ let mapleader=" "
""" Plugins -------------------------------- """ Plugins --------------------------------
set surround set surround
set commentary set commentary
set NERDTree
""" Common settings ------------------------- """ Common settings -------------------------
set showmode set showmode
set so=5 set so=5
set incsearch set incsearch
set nu set nu
set relativenumber
set number
""" Which-Key """ Which-Key
set which-key set which-key
@ -36,6 +39,8 @@ let g:WhichKeyDesc_extract_field = '<leader>ef Extract field'
map <leader>ef <Action>(IntroduceField) map <leader>ef <Action>(IntroduceField)
let g:WhichKeyDesc_extract_parameter = '<leader>ep Extract parameter' let g:WhichKeyDesc_extract_parameter = '<leader>ep Extract parameter'
map <leader>ep <Action>(IntroduceParameter) map <leader>ep <Action>(IntroduceParameter)
let g:WhichKeyDesc_extract_method = '<leader>em Extract method'
map <leader>em <Action>(ExtractMethod)
let g:WhichKeyDesc_rename = '<leader>r Rename' let g:WhichKeyDesc_rename = '<leader>r Rename'
map <leader>r <Action>(RenameElement) map <leader>r <Action>(RenameElement)
@ -46,13 +51,14 @@ map [b <Action>(PreviousTab)
let g:WhichKeyDesc_next_buffer = ']b Next buffer' let g:WhichKeyDesc_next_buffer = ']b Next buffer'
map ]b <Action>(NextTab) map ]b <Action>(NextTab)
let g:WhichKeyDesc_prev_error = 'gI Goto Implementation' let g:WhichKeyDesc_goto_impl = 'gI Goto implementation'
map gI <Action>(GotoImplementation) map gI <Action>(GotoImplementation)
let g:WhichKeyDesc_goto_type = 'gt Goto type declaration'
map gt <Action>(GotoTypeDeclaration)
"" Other "" Other
let g:WhichKeyDesc_terminal = '<leader>t Terminal' let g:WhichKeyDesc_terminal = '<leader>t Terminal'
map <leader>t <Action>(ActivateTerminalToolWindow) map <leader>t <Action>(ActivateTerminalToolWindow)
map <Esc> <Action>(HideActiveWindow)
map = <Action>(ReformatCode) map = <Action>(ReformatCode)
"" Folding "" Folding