1
0
mirror of https://github.com/chylex/dotfiles.git synced 2024-11-25 14:42:46 +01:00

Compare commits

...

4 Commits

View File

@ -56,6 +56,7 @@ sethandler <C-P> a:vim
sethandler <C-U> a:vim sethandler <C-U> a:vim
sethandler <C-W> a:vim sethandler <C-W> a:vim
sethandler <C-S-W> a:vim sethandler <C-S-W> a:vim
sethandler <S-BS> a:vim
" Enable plugins (https://github.com/JetBrains/ideavim/wiki/IdeaVim-Plugins) " Enable plugins (https://github.com/JetBrains/ideavim/wiki/IdeaVim-Plugins)
Plug 'argtextobj.vim' Plug 'argtextobj.vim'
@ -98,14 +99,6 @@ xnoremap H ]b
noremap <A-b> ge noremap <A-b> ge
noremap <A-S-b> gE noremap <A-S-b> gE
" Navigate paragraphs at indentation level
map { <Plug>(ParagraphPrevMotion)$
map } <Plug>(ParagraphNextMotion)$
" Navigate inspection highlights
nmap ( :raction GotoPreviousError<CR>
nmap ) :raction GotoNextError<CR>
" Navigate editor tabs " Navigate editor tabs
noremap <A-h> gT noremap <A-h> gT
noremap <A-l> gt noremap <A-l> gt
@ -154,23 +147,25 @@ imap <A-p> <Action>(ParameterInfo)
nmap <BS> <Action>(Back) nmap <BS> <Action>(Back)
nmap <S-BS> <Action>(Forward) nmap <S-BS> <Action>(Forward)
" Navigate to previous/next method " Navigate inspection highlights
nnoremap [ [m nmap ( :raction GotoPreviousError<CR>
xnoremap [ [m nmap ) :raction GotoNextError<CR>
nnoremap ] ]m
xnoremap ] ]m
" Alternative bindings for square bracket commands " Navigate to previous/next method
nnoremap g[ [ nmap [[ :raction MethodUp<CR>
xnoremap g[ [ nmap ]] :raction MethodDown<CR>
nnoremap g] ]
xnoremap g] ] " Navigate paragraphs at indentation
map { <Plug>(ParagraphPrevMotion)$
map } <Plug>(ParagraphNextMotion)$
" Manage editor tabs " Manage editor tabs
noremap <C-w> :action CloseContent<CR> map <C-w> <Action>(CloseContent)
noremap <C-S-w> :action ReopenClosedTab<CR> map <C-S-w> <Action>(ReopenClosedTab)
noremap \\ <C-w> noremap \\ <C-w>
noremap \\m :action MoveEditorToOppositeTabGroup<CR>
noremap \\s :action MoveTabDown<CR> noremap \\s :action MoveTabDown<CR>
noremap \\S <C-w>s noremap \\S <C-w>s
noremap \\u :action Unsplit<CR> noremap \\u :action Unsplit<CR>
@ -178,10 +173,10 @@ noremap \\U :action UnsplitAll<CR>
noremap \\v :action MoveTabRight<CR> noremap \\v :action MoveTabRight<CR>
noremap \\V <C-w>v noremap \\V <C-w>v
noremap \\qa :action CloseAllEditors<CR> noremap \\\\a :action CloseAllEditors<CR>
noremap \\qh :action CloseAllToTheLeft<CR> noremap \\\\h :action CloseAllToTheLeft<CR>
noremap \\ql :action CloseAllToTheRight<CR> noremap \\\\l :action CloseAllToTheRight<CR>
noremap \\qo :action CloseAllEditorsButActive<CR> noremap \\\\o :action CloseAllEditorsButActive<CR>
" Rebind repurposed commands " Rebind repurposed commands
nnoremap GG G nnoremap GG G
@ -199,7 +194,7 @@ nmap gB :raction GotoPreviousBookmark<CR>
nmap gD <Action>(GotoTypeDeclaration) nmap gD <Action>(GotoTypeDeclaration)
nmap ge :raction VcsShowNextChangeMarker<CR> nmap ge :raction VcsShowNextChangeMarker<CR>
nmap gE :raction VcsShowPrevChangeMarker<CR> nmap gE :raction VcsShowPrevChangeMarker<CR>
nmap gf <Action>(EditSource) nmap gf <Action>(VimJumpToSource)<Action>(HideActiveWindow) " VimJumpToSource requires a custom version of IdeaVIM
nmap gi <Action>(GotoImplementation) nmap gi <Action>(GotoImplementation)
map gj :raction EditorCloneCaretBelow<CR> map gj :raction EditorCloneCaretBelow<CR>
map gk :raction EditorCloneCaretAbove<CR> map gk :raction EditorCloneCaretAbove<CR>
@ -211,8 +206,6 @@ map gt :raction KM.GotoNextTypeInFile<CR>
map gT :raction KM.GotoPreviousTypeInFile<CR> map gT :raction KM.GotoPreviousTypeInFile<CR>
nmap gu <Action>(ShowUsages) nmap gu <Action>(ShowUsages)
nmap gU <Action>(FindUsages) nmap gU <Action>(FindUsages)
map gz <Action>(NextSplitter)
map gZ <Action>(PrevSplitter)
nmap g( :raction KM.GotoPreviousErrorInOtherMode<CR> nmap g( :raction KM.GotoPreviousErrorInOtherMode<CR>
nmap g) :raction KM.GotoNextErrorInOtherMode<CR> nmap g) :raction KM.GotoNextErrorInOtherMode<CR>