Skip to content

Commit f450fec

Browse files
committed
Prepare for Ideavim
1 parent d0049a0 commit f450fec

File tree

3 files changed

+34
-22
lines changed

3 files changed

+34
-22
lines changed

.config/hypr/hyprland.conf

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ windowrulev2 = workspace 1, class:org.mozilla.firefox
136136
windowrulev2 = workspace 1, class:chromium-browser
137137
windowrulev2 = workspace 1, class:vivaldi-stable
138138
windowrulev2 = group set, class:vivaldi-stable
139+
windowrulev2 = workspace 2, class:jetbrains-idea
139140
windowrulev2 = workspace 3, class:kitty
140141
windowrulev2 = fullscreen, class:kitty
141142
windowrulev2 = workspace 4 silent, class:org.mozilla.Thunderbird

.ideavimrc

+32-18
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ nnoremap v<Leader>ge v]b
7979
" nnoremap ci<Leader>w di[w
8080

8181

82-
" vim-unimpaired
83-
nnoremap ]q :action GotoNextError<cr>
84-
nnoremap [q :action GotoPreviousError<cr>
85-
86-
8782
""""""""""""""""""""
8883
""" IDEA setings """
8984
""""""""""""""""""""
@@ -142,7 +137,7 @@ nnoremap gi :action GotoImplementation<cr>
142137
nnoremap gp :action GotoSuperMethod<cr>
143138
nnoremap gr :action GotoRelated<cr>
144139
nnoremap gs :action GotoSymbol<cr>
145-
nnoremap gt :action GotoTest<cr>
140+
nnoremap gpt :action GotoTest<cr>
146141
nnoremap gh :action TypeHierarchy<cr>
147142
nnoremap gm :action FileStructurePopup<cr>
148143

@@ -156,26 +151,45 @@ nnoremap <Leader>ff :action GotoFile<cr>
156151
nnoremap <Leader>fc :action GotoClass<cr>
157152
nnoremap <Leader>fo :action RecentFiles<cr>
158153
" opens current file in NerdTree
159-
nnoremap <Leader>T :NERDTreeFind<cr>
154+
nnoremap - :NERDTreeFind<cr>
160155
nnoremap <C-n> :NERDTreeToggle<cr>
161156

157+
" windows
158+
nnoremap <Leader>/ :vsp<CR>
159+
nnoremap <Leader>- :sp<CR>
160+
nnoremap <C-Left> <C-w>h
161+
nnoremap <C-Right> <C-w>l
162+
nnoremap <C-Up> <C-w>k
163+
nnoremap <C-Down> <C-w>j
164+
162165
" Runing stuff
163-
nnoremap <Leader>r :action Run<cr>
164-
nnoremap <Leader>R :action ContextRun<cr>
165-
nnoremap <Leader>d :action Debug<cr>
166-
nnoremap <Leader>D :action ContextDebug<cr>
167-
nnoremap <Leader>c :action RunClass<cr>
168-
nnoremap <Leader>C :action DebugClass<cr>
169-
" nnoremap <Leader>f :action RerunFailedTests<cr>
166+
nnoremap <Leader>rr :action Run<cr>
167+
nnoremap <Leader>rn :action ContextRun<cr>
168+
nnoremap <Leader>rf :action RunClass<cr>
170169
map <C-p> <Action>(RebuildProject)
171-
map <C-s> <Action>(Stop)
170+
map <Leader>R <Action>(Stop)
171+
172172
" TODO?
173173
" nnoremap <Leader>rt :action ActivateRunToolWindow<cr>
174174
" nnoremap ,l :action ChooseRunConfiguration<cr>
175+
" nnoremap <Leader>rd :action Debug<cr>
176+
" nnoremap <Leader>D :action ContextDebug<cr>
177+
" nnoremap <Leader>C :action DebugClass<cr>
178+
" nnoremap <Leader>f :action RerunFailedTests<cr>
175179

176180
" Debugging
177-
nnoremap <Leader>db :action ToggleLineBreakpoint<cr>
178-
nnoremap <Leader>dB :action EditBreakpoint<cr>
181+
nnoremap <Leader>rb :action ToggleLineBreakpoint<cr>
182+
nnoremap <Leader>rB :action EditBreakpoint<cr>
179183

180184
" Git Integration
181-
nnoremap <Leader>vb :action Annotate<cr>
185+
nnoremap <Leader>gb :action Annotate<cr>
186+
nnoremap ]g :action VcsShowNextChangeMarker<cr>
187+
nnoremap [g :action VcsShowPrevChangeMarker<cr>
188+
189+
" Code Actions
190+
nnoremap crr :action ShowIntentionActions<cr>
191+
nnoremap crf :action ReformatCode<cr>
192+
nnoremap crn :action RenameElement<cr>
193+
nnoremap ]d :action GotoNextError<cr>
194+
nnoremap [d :action GotoPreviousError<cr>
195+

.vimrc

+1-4
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ nnoremap <silent> <CR> :noh<CR>
8383
8484
nnoremap H ^
8585
nnoremap L g_
86-
" move lines up and down in visual mode
87-
vnoremap J :m '>+1<CR>gv=gv
88-
vnoremap K :m '<-2<CR>gv=gv
8986
9087
" Omnicomplete with C-Space
91-
imap <c-space> <c-x><c-o>
88+
" imap <c-space> <c-x><c-o>

0 commit comments

Comments
 (0)