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
|
||||
|
||||
" Configure IDEA settings (https://github.com/JetBrains/ideavim/wiki/set-commands)
|
||||
set ideaglobalmode
|
||||
set ideajoin
|
||||
set idearefactormode=visual
|
||||
|
||||
@ -97,6 +96,9 @@ nnoremap <A-S-b> gE
|
||||
" Navigate and close tabs
|
||||
noremap <A-h> gT
|
||||
noremap <A-l> gt
|
||||
inoremap <A-h> <C-o>gT
|
||||
inoremap <A-l> <C-o>gt
|
||||
|
||||
noremap <C-w> :action CloseContent<CR>
|
||||
|
||||
" Increment/decrement numbers
|
||||
@ -145,19 +147,8 @@ nnoremap M m
|
||||
nnoremap Z z
|
||||
noremap \\ <C-w>
|
||||
|
||||
" Repurpose 'Enter' for statement completion (renaming function requires a custom version of IdeaVIM)
|
||||
function! CompleteStatement()
|
||||
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 'Enter' for statement completion (requires a custom version of IdeaVIM)
|
||||
nmap <Enter> :action EditorCompleteStatement<CR>
|
||||
|
||||
" Repurpose special characters for navigation
|
||||
nmap ( :raction GotoPreviousError<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user