From 0be4bcc40ce4d189cd9e419fa4af6ae785fe3faf Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Tue, 2 Jan 2024 01:33:18 +0400 Subject: [PATCH] add ideavimrc --- .ideavimrc | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 .ideavimrc diff --git a/.ideavimrc b/.ideavimrc new file mode 100644 index 0000000..54d5a1c --- /dev/null +++ b/.ideavimrc @@ -0,0 +1,89 @@ +"" Source your .vimrc +"source ~/.vimrc +let mapleader = " " + +""editor config +"" -- Suggested options -- +" Show a few lines of context around the cursor. Note that this makes the +" text scroll if you mouse-click near the start or end of the window. +set scrolloff=8 +" Do incremental searching. +set incsearch +set relativenumber +set number + +""plugins +Plug 'preservim/nerdtree' +Plug 'machakann/vim-highlightedyank' +set sneak + +" Don't use Ex mode, use Q for formatting. +map Q gq + + + + +""Jetbrains actions mapping +map dc (QuickJavaDoc) +map fc (ReformatCode) +""if csharpier plugin and csharpier itself is installed you can use this for formatting +""map fc (com.intellij.csharpier.ReformatWithCSharpierAction) +map gd (GotoDeclaration) +map ed (ShowErrorDescription) +map bd (BuildWholeSolutionAction) +map ru (Run) +map de (Debug) +map tb (ToggleLineBreakpoint) +map qi (QuickImplementations) +map pf (GotoFile) +map ps (TextSearchAction) +map cj (HideActiveWindow) +map pe (SearchEverywhere) + + + +""csharp specific actions +map emm (EfCore.Features.Migrations.AddMigrationAction) +map emr (EfCore.Features.Database.RemoveMigrationAction) +map edu (EfCore.Features.Database.UpdateDatabaseAction) + +""convenient remaps +nnoremap :m .+1== +nnoremap :m .-2== + +nnoremap :m .+1== +nnoremap :m .-2== +nnoremap zz +nnoremap zz +"" copy to system clipboard +nnoremap y \"+y +vnoremap y \"+y +nnoremap Y \"+Y +nnoremap dd \"_d + + +""tab remap +nnoremap 1 1gt +nnoremap 2 2gt +nnoremap 3 3gt +nnoremap 4 4gt +nnoremap 5 5gt +nnoremap 6 6gt +nnoremap 7 7gt +nnoremap 8 8gt +nnoremap 9 9gt +nnoremap q :q + +""nerdtree remaps +nnoremap ft :NERDTreeFocus +nnoremap tt :NERDTreeToggle +"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t +"" Map \r to the Reformat Code action +"map \r (ReformatCode) + +"" Map d to start debug +"map d (Debug) + + + +" Find more examples here: https://jb.gg/share-ideavimrc