mirror of
https://github.com/chylex/dotfiles.git
synced 2026-10-16 23:33:56 +02:00
Compare commits
5
Commits
0c2918c61e
...
9ddf8bad60
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ddf8bad60
|
||
|
|
b97e6c82e6
|
||
|
|
342417d33b
|
||
|
|
591b05b582
|
||
|
|
3fe53230ec
|
+32
-4
@@ -85,6 +85,10 @@ sethandler <C-Left> a:vim
|
|||||||
sethandler <S-Left> a:vim
|
sethandler <S-Left> a:vim
|
||||||
sethandler <C-Right> a:vim
|
sethandler <C-Right> a:vim
|
||||||
sethandler <S-Right> a:vim
|
sethandler <S-Right> a:vim
|
||||||
|
sethandler <C-Up> a:vim
|
||||||
|
sethandler <S-Up> a:vim
|
||||||
|
sethandler <C-Down> a:vim
|
||||||
|
sethandler <S-Down> a:vim
|
||||||
|
|
||||||
if &ide =~? 'rider'
|
if &ide =~? 'rider'
|
||||||
" These shortcuts are broken in Rider for some reason...
|
" These shortcuts are broken in Rider for some reason...
|
||||||
@@ -94,6 +98,7 @@ endif
|
|||||||
|
|
||||||
" 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'
|
||||||
|
Plug 'vim-abolish'
|
||||||
Plug 'vim-exchange'
|
Plug 'vim-exchange'
|
||||||
Plug 'vim-highlightedyank'
|
Plug 'vim-highlightedyank'
|
||||||
Plug 'vim-indent-object'
|
Plug 'vim-indent-object'
|
||||||
@@ -102,6 +107,7 @@ Plug 'vim-multiple-cursors'
|
|||||||
Plug 'vim-paragraph-motion'
|
Plug 'vim-paragraph-motion'
|
||||||
Plug 'vim-surround'
|
Plug 'vim-surround'
|
||||||
Plug 'vim-textobj-entire'
|
Plug 'vim-textobj-entire'
|
||||||
|
Plug 'vim-textobj-function'
|
||||||
|
|
||||||
" https://vimhelp.org/index.txt.html
|
" https://vimhelp.org/index.txt.html
|
||||||
|
|
||||||
@@ -167,6 +173,21 @@ xnoremap D dd
|
|||||||
nnoremap < <<
|
nnoremap < <<
|
||||||
nnoremap > >>
|
nnoremap > >>
|
||||||
|
|
||||||
|
" Navigate with selection
|
||||||
|
nmap <S-Up> v<Up>
|
||||||
|
nmap <S-Down> v<Down>
|
||||||
|
nmap <S-Left> v<Left>
|
||||||
|
nmap <S-Right> v<Right>
|
||||||
|
nmap <S-Home> v<Home>
|
||||||
|
nmap <S-End> v<End>
|
||||||
|
|
||||||
|
vmap <S-Up> <Up>
|
||||||
|
vmap <S-Down> <Down>
|
||||||
|
vmap <S-Left> <Left>
|
||||||
|
vmap <S-Right> <Right>
|
||||||
|
vmap <S-Home> <Home>
|
||||||
|
vmap <S-End> <End>
|
||||||
|
|
||||||
" Indent keeping selection
|
" Indent keeping selection
|
||||||
xnoremap < <gv
|
xnoremap < <gv
|
||||||
xnoremap > >gv
|
xnoremap > >gv
|
||||||
@@ -235,6 +256,13 @@ imap <expr> <A-k> pumvisible() ? '<Action>(EditorUp)' : '<Action>(EditorCloneCar
|
|||||||
|
|
||||||
xmap gl <Action>(EditorAddCaretPerSelectedLine)
|
xmap gl <Action>(EditorAddCaretPerSelectedLine)
|
||||||
|
|
||||||
|
let g:multi_cursor_use_default_mapping = 0
|
||||||
|
|
||||||
|
nmap <A-n> <Plug>NextWholeOccurrence
|
||||||
|
xmap <A-n> <Plug>NextWholeOccurrence
|
||||||
|
xmap <A-x> <Plug>SkipOccurrence
|
||||||
|
xmap <A-p> <Plug>RemoveOccurrence
|
||||||
|
|
||||||
" Manage editor tabs
|
" Manage editor tabs
|
||||||
map <C-w>m <Action>(MoveEditorToOppositeTabGroup)
|
map <C-w>m <Action>(MoveEditorToOppositeTabGroup)
|
||||||
map <C-w>s <Action>(MoveTabDown)
|
map <C-w>s <Action>(MoveTabDown)
|
||||||
@@ -263,8 +291,8 @@ noremap g[ [
|
|||||||
nnoremap M m
|
nnoremap M m
|
||||||
nnoremap Z z
|
nnoremap Z z
|
||||||
|
|
||||||
" Repurpose 'Enter' for statement completion ('isactionenabled' requires a custom version of IdeaVIM)
|
" Repurpose 'Enter' for statement completion ('isactionenabled' and 'isinplacerenaming' require a custom version of IdeaVIM)
|
||||||
nmap <Enter> <Action>(EditorCompleteStatement)
|
nmap <expr> <Enter> isinplacerenaming() ? '<Action>(NextTemplateVariable)' : '<Action>(EditorCompleteStatement)'
|
||||||
|
|
||||||
imap <expr> <C-Enter> isactionenabled('Console.Jdbc.Execute') ? '<Action>(Console.Jdbc.Execute)' : '<Action>(EditorCompleteStatement)'
|
imap <expr> <C-Enter> isactionenabled('Console.Jdbc.Execute') ? '<Action>(Console.Jdbc.Execute)' : '<Action>(EditorCompleteStatement)'
|
||||||
imap <expr> <D-Enter> isactionenabled('Console.Jdbc.Execute') ? '<Action>(Console.Jdbc.Execute)' : '<Action>(EditorCompleteStatement)'
|
imap <expr> <D-Enter> isactionenabled('Console.Jdbc.Execute') ? '<Action>(Console.Jdbc.Execute)' : '<Action>(EditorCompleteStatement)'
|
||||||
@@ -282,14 +310,14 @@ map ge <Action>(VcsShowNextChangeMarker)
|
|||||||
map gE <Action>(VcsShowPrevChangeMarker)
|
map gE <Action>(VcsShowPrevChangeMarker)
|
||||||
map gf <Action>(VimJumpToSource)<Action>(HideActiveWindow)
|
map gf <Action>(VimJumpToSource)<Action>(HideActiveWindow)
|
||||||
map gi <Action>(GotoImplementation)
|
map gi <Action>(GotoImplementation)
|
||||||
map gr <Action>(RecentLocations)
|
map gr <Action>(GotoRelated)
|
||||||
map gR <Action>(RecentChangedFiles)
|
|
||||||
map gs <Action>(GotoSuperMethod)
|
map gs <Action>(GotoSuperMethod)
|
||||||
map gS <Action>(ShowSiblings)
|
map gS <Action>(ShowSiblings)
|
||||||
map gt gg<Action>(KM.GotoNextTypeInFile)
|
map gt gg<Action>(KM.GotoNextTypeInFile)
|
||||||
map gT <Action>(KM.GotoNextTypeInFile)
|
map gT <Action>(KM.GotoNextTypeInFile)
|
||||||
map gu <Action>(ShowUsages)
|
map gu <Action>(ShowUsages)
|
||||||
map gU <Action>(FindUsages)
|
map gU <Action>(FindUsages)
|
||||||
|
map g<BS> <Action>(RecentLocations)
|
||||||
|
|
||||||
" Repurpose 'z' for view actions and debugger
|
" Repurpose 'z' for view actions and debugger
|
||||||
map za <Action>(Annotate)
|
map za <Action>(Annotate)
|
||||||
|
|||||||
Reference in New Issue
Block a user