ideavimrc (4884B)
1 " Plugins 2 set NERDTree 3 set which-key 4 5 " General settings 6 set ideajoin 7 set idearefactormode=keep 8 9 set notimeout 10 set visualbell 11 set noerrorbells 12 set clipboard+=unnamed 13 set clipboard+=ideaput 14 set number relativenumber 15 set scrolloff=10 16 set ignorecase 17 set smartcase 18 set incsearch 19 20 let mapleader=" " 21 inoremap jk <Esc> 22 23 sethandler <C-v> i:ide 24 sethandler <C-r> i:ide 25 sethandler <C-x> i:ide 26 27 map <C-h> <C-w>h 28 map <C-j> <C-w>j 29 map <C-k> <C-w>k 30 map <C-l> <C-w>l 31 32 " Movement 33 nnoremap <leader>gd :action GotoDeclaration<CR> 34 nnoremap <leader>gi :action GotoImplementation<CR> 35 nnoremap <leader>gs :action GotoSuperMethod<CR> 36 nnoremap <leader>gc :action GotoClass<CR> 37 nnoremap <leader>ge :action GotoNextError<CR> 38 39 nnoremap <leader>gbn :action GotoNextBookmark<CR> 40 nnoremap <leader>gbp :action GotoPreviousBookmark<CR> 41 nnoremap <leader>gbt :action Bookmarks.Toggle<CR> 42 43 nnoremap <S-b> :action Back<CR> 44 nnoremap <S-n> :action Forward<CR> 45 nnoremap <Tab> :action PreviousTab<CR> 46 nnoremap <S-Tab> :action NextTab<CR> 47 48 nnoremap [[ :action MethodUp<CR> 49 nnoremap ]] :action MethodDown<CR> 50 51 52 " Format 53 nnoremap <leader>l :action CommentByLineComment<CR> 54 vnoremap <leader>b :action CommentByBlockComment<CR> 55 56 nnoremap <leader>dbt :action ToggleLineBreakpoint<CR> 57 nnoremap <leader>dbr :action RiderRemoveAllLineBreakpoints<CR> 58 59 nnoremap == :action ReformatCode<CR> 60 nnoremap <C-g> :action Generate<CR> 61 62 63 " Refactoring 64 65 map <leader>rn :action RenameElement<CR> 66 map <leader>rm :action ExtractMethod<CR> 67 map <leader>rr :action Refactorings.QuickListPopupAction<CR> 68 69 70 " View 71 nnoremap <leader>qt :action CloseContent<CR> 72 nnoremap <leader>qa :action CloseAllEditors<CR> 73 74 nnoremap <leader>jj :action QuickJavaDoc<CR> 75 76 nnoremap <leader>vz :action ToggleZenMode<CR> 77 nnoremap <leader>vd :action ToggleDistractionFreeMode<CR> 78 nnoremap <leader>vf :action ToggleFullScreen<CR> 79 80 nnoremap <leader>fe :action SearchEverywhere<CR> 81 nnoremap <leader>fu :action FindUsages<CR> 82 83 nnoremap <leader>ns :action RiderNuGetShowPackagesAction<CR> 84 nnoremap <leader>nu :action RiderNuGetUpgradeAllInContextAction<CR> 85 86 map <leader>zc :action CollapseAllRegions<CR> 87 map <leader>zo :action ExpandAllRegions<CR> 88 89 nnoremap <C-\> :action SplitVertically<CR> 90 nnoremap <C--> :action SplitHorizontally<CR> 91 nnoremap <C-=> :action Unsplit<CR> 92 nnoremap <C-m> :action MoveEditorToOppositeTabGroup<CR> 93 94 95 " Run and debug 96 nnoremap <leader>sr :action Run<CR> 97 nnoremap <leader>sc :action ChooseRunConfiguration<CR> 98 nnoremap <leader>sd :action Debug<CR> 99 nnoremap <C-b> :action BuildMenu<CR> 100 nnoremap <C-t> :action Rider.UnitTesting.QuickList<CR> 101 102 " Which Key Descriptions 103 let g:WhichKeyDesc_GoTo = "<leader>g Go To" 104 let g:WhichKeyDesc_GoToDec = "<leader>gd Go To Declaration" 105 let g:WhichKeyDesc_GoToImp = "<leader>gi Go To Implementation" 106 let g:WhichKeyDesc_GoToSup = "<leader>gs Go To Super Method" 107 let g:WhichKeyDesc_GoToCl = "<leader>gc Go To Class" 108 let g:WhichKeyDesc_GoToErr = "<leader>ge Go To Next Error" 109 let g:WhichKeyDesc_Bookmark = "<leader>gb Bookmarks" 110 let g:WhichKeyDesc_BookmarkNext = "<leader>gbn Go To Next Bookmark" 111 let g:WhichKeyDesc_BookmarkPrev = "<leader>gbp Go To Previous Bookmark" 112 let g:WhichKeyDesc_BookmarkTog = "<leader>gbt Toggle Bookmarks Popup" 113 let g:WhichKeyDesc_LineComment = "<leader>l Line Comment" 114 let g:WhichKeyDesc_BlockComment = "<leader>b Block Comment" 115 let g:WhichKeyDesc_Debug = "<leader>d Debugging" 116 let g:WhichKeyDesc_DebugBreak = "<leader>db Breakpoints" 117 let g:WhichKeyDesc_DebugBreakToggle = "<leader>dbt Toggle Line Breakpoint" 118 let g:WhichKeyDesc_DebugBreakRemove = "<leader>dbr Remove All Line Breakpoints" 119 let g:WhichKeyDesc_Refactor = "<leader>r Refactoring" 120 let g:WhichKeyDesc_RefactorRename = "<leader>rn Rename Element" 121 let g:WhichKeyDesc_RefactorExtract = "<leader>rm Extract Method" 122 let g:WhichKeyDesc_RefactorPopup = "<leader>rr Refactorings Quicklist" 123 let g:WhichKeyDesc_Close = "<leader>q Close" 124 let g:WhichKeyDesc_CloseContent = "<leader>qt Close Content" 125 let g:WhichKeyDesc_CloseAll = "<leader>qa Close All Editors" 126 let g:WhichKeyDesc_Doc = "<leader>j Documentation" 127 let g:WhichKeyDesc_DocQuick = "<leader>jj Quick Doc" 128 let g:WhichKeyDesc_View = "<leader>v View" 129 let g:WhichKeyDesc_ViewZen = "<leader>vz Toggle Zen Mode" 130 let g:WhichKeyDesc_ViewDist = "<leader>vd Toggle Distraction Free Mode" 131 let g:WhichKeyDesc_ViewFull = "<leader>vf Toggle Full Screen" 132 let g:WhichKeyDesc_Find = "<leader>f Find" 133 let g:WhichKeyDesc_FindEverywhere = "<leader>fe Search Everywhere" 134 let g:WhichKeyDesc_FindUsage = "<leader>fu Find Usages" 135 let g:WhichKeyDesc_Nuget = "<leader>n NuGet" 136 let g:WhichKeyDesc_NugetShow = "<leader>ns Show NuGet Packages" 137 let g:WhichKeyDesc_NugetUpgrade = "<leader>nu Upgrade NuGet Packages" 138 let g:WhichKeyDesc_Run = "<leader>s Run" 139 let g:WhichKeyDesc_RunRun = "<leader>sr Run" 140 let g:WhichKeyDesc_RunConf = "<leader>sc Choose Run Configuration" 141 let g:WhichKeyDesc_RunDebug = "<leader>sd Debug"