From 2e25867bb4ecd28d69ccdc511bea0deeb051aed4 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Wed, 5 Jul 2023 23:39:32 +0200 Subject: my honest reaction to that .ideavimrc --- idea/.ideavimrc | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 idea/.ideavimrc (limited to 'idea/.ideavimrc') diff --git a/idea/.ideavimrc b/idea/.ideavimrc new file mode 100644 index 0000000..0b0be1c --- /dev/null +++ b/idea/.ideavimrc @@ -0,0 +1,89 @@ +let mapleader = ' ' + +" how do you even vim without this +set number +set relativenumber + +" tbh i don't know what this does but it's some tab stuff +set tabstop = 4 +set softtabstop = 4 +set shiftwidth = 4 +set expandtab + +" this i kinda get i think +set smartindent +set wrap=false + +" highlight all search results while searching (i think) +set incsearch + +" this is cool, J actually works +set ideajoin + + +" Focus sth (e.g. Focus Search) +nmap f; (ActivateTerminalToolWindow) +nmap f: (Terminal.OpenInTerminal) +nmap ff (ActivateProjectToolWindow) +nmap fs (FindInPath) +nmap fc (ActivateCommitToolWindow) +nmap fp (ActivateProblemsViewToolWindow) +nmap ft (ActivateUnitTestsToolWindow) +nmap fx (HideAllWindows) + +" tabs +nmap j (NextTab) +nmap k (PreviousTab) + +" system clipboard +nnoremap p "+p +nnoremap y "+y +nnoremap d "+d +nnoremap P "+P +vnoremap p "+p +vnoremap y "+y +vnoremap d "+d +vnoremap P "+P + +" center stuff when navigating +nnoremap zz +nnoremap zz +nnoremap n nzz +nnoremap N Nzz + +" move selected lines up one line +xnoremap K :m-2gv=gv + +" move selected lines down one line +xnoremap J :m'>+gv=gv + +" indentation fun +vnoremap < >gv + +" running and stuff +nmap ,r (Run) +nmap ,d (Debug) +nmap ,cr (ContextRun) +nmap ,cd (ContextDebug) +nmap ,t (RiderUnitTestRunSolutionAction) +nmap ,f (RiderUnitTestRerunBrokenSplitAction) + +" ide stuff +nmap (ShowIntentionActions) +nmap (GotoClass) +nmap a (GotoAction) + +" goto is a bad language feature +nmap gd (GotoDeclaration) +nmap gi (GotoImplementation) +nmap gh (QuickJavaDoc) +nmap gj (Forward) +nmap gk (Back) + +" debugging +nmap \b (ToggleLineBreakpoint) +nmap \r (Resume) +nmap \j (StepInto) +nmap \k (StepOut) +nmap (StepOver) -- cgit v1.3.1 From 85b8d0109eb0ec188bdec5d136558e6d938bef87 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Wed, 5 Jul 2023 23:56:12 +0200 Subject: i forgor about stoppage --- idea/.ideavimrc | 1 + 1 file changed, 1 insertion(+) (limited to 'idea/.ideavimrc') diff --git a/idea/.ideavimrc b/idea/.ideavimrc index 0b0be1c..ac1346e 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -66,6 +66,7 @@ nmap ,r (Run) nmap ,d (Debug) nmap ,cr (ContextRun) nmap ,cd (ContextDebug) +nmap ,s (Stop) nmap ,t (RiderUnitTestRunSolutionAction) nmap ,f (RiderUnitTestRerunBrokenSplitAction) -- cgit v1.3.1 From 4e077b6e22b830e303a65fa200dbd65706f2dcc9 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Thu, 6 Jul 2023 14:59:24 +0200 Subject: more things i forgor --- idea/.ideavimrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'idea/.ideavimrc') diff --git a/idea/.ideavimrc b/idea/.ideavimrc index ac1346e..9a35082 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -21,6 +21,12 @@ set incsearch set ideajoin +" i want to try this +nnoremap ; : +nnoremap : ; +vnoremap ; : +vnoremap : ; + " Focus sth (e.g. Focus Search) nmap f; (ActivateTerminalToolWindow) nmap f: (Terminal.OpenInTerminal) @@ -79,8 +85,9 @@ nmap a (GotoAction) nmap gd (GotoDeclaration) nmap gi (GotoImplementation) nmap gh (QuickJavaDoc) -nmap gj (Forward) -nmap gk (Back) +nmap ge (GotoNextError) +nmap gE (GotoPreviousError) +nmap gj (ShowErrorDescription) " debugging nmap \b (ToggleLineBreakpoint) -- cgit v1.3.1 From 08f8dfc685b5cbc0dafa1e6d95f7f19d9cbc9437 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Fri, 7 Jul 2023 13:55:33 +0200 Subject: lsp rename --- idea/.ideavimrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'idea/.ideavimrc') diff --git a/idea/.ideavimrc b/idea/.ideavimrc index 9a35082..7d12d69 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -37,6 +37,9 @@ nmap fp (ActivateProblemsViewToolWindow) nmap ft (ActivateUnitTestsToolWindow) nmap fx (HideAllWindows) +" lsp ig? +nmap lr (RenameElement) + " tabs nmap j (NextTab) nmap k (PreviousTab) -- cgit v1.3.1 From dfbd247f37142efd24afe8878776562f1913a142 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Fri, 7 Jul 2023 15:13:59 +0200 Subject: idea format code --- idea/.ideavimrc | 1 + 1 file changed, 1 insertion(+) (limited to 'idea/.ideavimrc') diff --git a/idea/.ideavimrc b/idea/.ideavimrc index 7d12d69..d5dbe25 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -78,6 +78,7 @@ nmap ,cd (ContextDebug) nmap ,s (Stop) nmap ,t (RiderUnitTestRunSolutionAction) nmap ,f (RiderUnitTestRerunBrokenSplitAction) +nmap ,o (ReformatCode) " ide stuff nmap (ShowIntentionActions) -- cgit v1.3.1 From ee97c509840aec5208bb24c097df8bd62d6cc4ce Mon Sep 17 00:00:00 2001 From: kkard2 Date: Tue, 11 Jul 2023 10:00:41 +0200 Subject: goto references --- idea/.ideavimrc | 1 + 1 file changed, 1 insertion(+) (limited to 'idea/.ideavimrc') diff --git a/idea/.ideavimrc b/idea/.ideavimrc index d5dbe25..7b93851 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -88,6 +88,7 @@ nmap a (GotoAction) " goto is a bad language feature nmap gd (GotoDeclaration) nmap gi (GotoImplementation) +nmap gr (FindUsages) nmap gh (QuickJavaDoc) nmap ge (GotoNextError) nmap gE (GotoPreviousError) -- cgit v1.3.1