summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2023-08-26 11:48:06 +0200
committerkkard2 <[email protected]>2023-08-26 11:48:06 +0200
commit9077f13f9a065d6cbc3821010fbd3ebc1922e93b (patch)
tree45ad1004e093c59f6ef060234af957d25e8016cc
parent488eff7f609b1da2538a39ef0ecea14eb4765b4a (diff)
i have an idea
-rw-r--r--idea/.ideavimrc23
1 files changed, 12 insertions, 11 deletions
diff --git a/idea/.ideavimrc b/idea/.ideavimrc
index 7b93851..b517baf 100644
--- a/idea/.ideavimrc
+++ b/idea/.ideavimrc
@@ -1,3 +1,8 @@
+call plug#begin()
+Plug 'tpope/vim-surround'
+Plug 'tpope/vim-commentary'
+call plug#end()
+
let mapleader = ' '
" how do you even vim without this
@@ -15,11 +20,12 @@ set smartindent
set wrap=false
" highlight all search results while searching (i think)
-set incsearch
+set incsearc
" this is cool, J actually works
set ideajoin
+nnoremap <C-j> xi<CR><Esc>f\
" i want to try this
nnoremap ; :
@@ -39,10 +45,10 @@ nmap <leader>fx <Action>(HideAllWindows)
" lsp ig?
nmap <leader>lr <Action>(RenameElement)
-
-" tabs
-nmap <leader>j <Action>(NextTab)
-nmap <leader>k <Action>(PreviousTab)
+nmap <leader>lf <Action>(ReformatCode)
+nmap <C-]> <Action>(GotoNextError)
+nmap <C-[> <Action>(GotoPreviousError)
+nmap gh <Action>(ShowErrorDescription)
" system clipboard
nnoremap <leader>p "+p
@@ -78,21 +84,16 @@ nmap ,cd <Action>(ContextDebug)
nmap ,s <Action>(Stop)
nmap ,t <Action>(RiderUnitTestRunSolutionAction)
nmap ,f <Action>(RiderUnitTestRerunBrokenSplitAction)
-nmap ,o <Action>(ReformatCode)
" ide stuff
nmap <leader><CR> <Action>(ShowIntentionActions)
-nmap <leader><leader> <Action>(GotoClass)
+nmap <leader><leader> <Action>(GotoFile)
nmap <leader>a <Action>(GotoAction)
" goto is a bad language feature
nmap gd <Action>(GotoDeclaration)
nmap gi <Action>(GotoImplementation)
nmap gr <Action>(FindUsages)
-nmap gh <Action>(QuickJavaDoc)
-nmap ge <Action>(GotoNextError)
-nmap gE <Action>(GotoPreviousError)
-nmap gj <Action>(ShowErrorDescription)
" debugging
nmap \b <Action>(ToggleLineBreakpoint)