mirror of
https://github.com/chylex/dotfiles.git
synced 2024-11-25 23:42:46 +01:00
Compare commits
No commits in common. "b739008bc5660d1e7305bb5a94a4522cf4a57b52" and "7ebb930f0b1dd3b9eb98f3f8400e072b0e637675" have entirely different histories.
b739008bc5
...
7ebb930f0b
45
.ideavimrc
45
.ideavimrc
@ -56,7 +56,6 @@ 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'
|
||||||
@ -99,6 +98,14 @@ 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
|
||||||
@ -147,25 +154,23 @@ imap <A-p> <Action>(ParameterInfo)
|
|||||||
nmap <BS> <Action>(Back)
|
nmap <BS> <Action>(Back)
|
||||||
nmap <S-BS> <Action>(Forward)
|
nmap <S-BS> <Action>(Forward)
|
||||||
|
|
||||||
" Navigate inspection highlights
|
|
||||||
nmap ( :raction GotoPreviousError<CR>
|
|
||||||
nmap ) :raction GotoNextError<CR>
|
|
||||||
|
|
||||||
" Navigate to previous/next method
|
" Navigate to previous/next method
|
||||||
nmap [[ :raction MethodUp<CR>
|
nnoremap [ [m
|
||||||
nmap ]] :raction MethodDown<CR>
|
xnoremap [ [m
|
||||||
|
nnoremap ] ]m
|
||||||
|
xnoremap ] ]m
|
||||||
|
|
||||||
" Navigate paragraphs at indentation
|
" Alternative bindings for square bracket commands
|
||||||
map { <Plug>(ParagraphPrevMotion)$
|
nnoremap g[ [
|
||||||
map } <Plug>(ParagraphNextMotion)$
|
xnoremap g[ [
|
||||||
|
nnoremap g] ]
|
||||||
|
xnoremap g] ]
|
||||||
|
|
||||||
" Manage editor tabs
|
" Manage editor tabs
|
||||||
map <C-w> <Action>(CloseContent)
|
noremap <C-w> :action CloseContent<CR>
|
||||||
map <C-S-w> <Action>(ReopenClosedTab)
|
noremap <C-S-w> :action ReopenClosedTab<CR>
|
||||||
|
|
||||||
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>
|
||||||
@ -173,10 +178,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 \\\\a :action CloseAllEditors<CR>
|
noremap \\qa :action CloseAllEditors<CR>
|
||||||
noremap \\\\h :action CloseAllToTheLeft<CR>
|
noremap \\qh :action CloseAllToTheLeft<CR>
|
||||||
noremap \\\\l :action CloseAllToTheRight<CR>
|
noremap \\ql :action CloseAllToTheRight<CR>
|
||||||
noremap \\\\o :action CloseAllEditorsButActive<CR>
|
noremap \\qo :action CloseAllEditorsButActive<CR>
|
||||||
|
|
||||||
" Rebind repurposed commands
|
" Rebind repurposed commands
|
||||||
nnoremap GG G
|
nnoremap GG G
|
||||||
@ -194,7 +199,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>(VimJumpToSource)<Action>(HideActiveWindow) " VimJumpToSource requires a custom version of IdeaVIM
|
nmap gf <Action>(EditSource)
|
||||||
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>
|
||||||
@ -206,6 +211,8 @@ 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>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user