mirror of
https://github.com/chylex/dotfiles.git
synced 2024-11-25 14:42:46 +01:00
Compare commits
3 Commits
3b7145539e
...
2368dc86c4
Author | SHA1 | Date | |
---|---|---|---|
2368dc86c4 | |||
3fe3a9a285 | |||
14691e4ed9 |
19
.ideavimrc
19
.ideavimrc
@ -19,7 +19,6 @@ if has('win32')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Configure IDEA settings (https://github.com/JetBrains/ideavim/wiki/set-commands)
|
" Configure IDEA settings (https://github.com/JetBrains/ideavim/wiki/set-commands)
|
||||||
set ideaglobalmode
|
|
||||||
set ideajoin
|
set ideajoin
|
||||||
set idearefactormode=visual
|
set idearefactormode=visual
|
||||||
|
|
||||||
@ -97,6 +96,9 @@ nnoremap <A-S-b> gE
|
|||||||
" Navigate and close tabs
|
" Navigate and close tabs
|
||||||
noremap <A-h> gT
|
noremap <A-h> gT
|
||||||
noremap <A-l> gt
|
noremap <A-l> gt
|
||||||
|
inoremap <A-h> <C-o>gT
|
||||||
|
inoremap <A-l> <C-o>gt
|
||||||
|
|
||||||
noremap <C-w> :action CloseContent<CR>
|
noremap <C-w> :action CloseContent<CR>
|
||||||
|
|
||||||
" Increment/decrement numbers
|
" Increment/decrement numbers
|
||||||
@ -145,19 +147,8 @@ nnoremap M m
|
|||||||
nnoremap Z z
|
nnoremap Z z
|
||||||
noremap \\ <C-w>
|
noremap \\ <C-w>
|
||||||
|
|
||||||
" Repurpose 'Enter' for statement completion (renaming function requires a custom version of IdeaVIM)
|
" Repurpose 'Enter' for statement completion (requires a custom version of IdeaVIM)
|
||||||
function! CompleteStatement()
|
nmap <Enter> :action EditorCompleteStatement<CR>
|
||||||
if (renaming())
|
|
||||||
" TODO https://github.com/JetBrains/ideavim/discussions/397#discussioncomment-1573048
|
|
||||||
" return "\<Enter>"
|
|
||||||
return "<Enter>"
|
|
||||||
else
|
|
||||||
action EditorCompleteStatement
|
|
||||||
return ""
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
nmap <expr> <Enter> CompleteStatement()
|
|
||||||
|
|
||||||
" Repurpose special characters for navigation
|
" Repurpose special characters for navigation
|
||||||
nmap ( :raction GotoPreviousError<CR>
|
nmap ( :raction GotoPreviousError<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user