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

Compare commits

..

No commits in common. "b739008bc5660d1e7305bb5a94a4522cf4a57b52" and "7ebb930f0b1dd3b9eb98f3f8400e072b0e637675" have entirely different histories.

View File

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