├── .gitignore ├── .ideavimrc └── settings.jar /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | *~ 3 | .fuse_hidden* 4 | .directory 5 | .Trash-* 6 | .nfs* 7 | [._]*.s[a-v][a-z] 8 | [._]*.sw[a-p] 9 | [._]s[a-v][a-z] 10 | [._]sw[a-p] 11 | Session.vim 12 | .netrwhist 13 | *~ 14 | tags 15 | -------------------------------------------------------------------------------- /.ideavimrc: -------------------------------------------------------------------------------- 1 | let mapleader = '-' 2 | 3 | set hlsearch 4 | set incsearch 5 | set scrolloff=2 6 | set smartcase 7 | set showmode 8 | set history=1000 9 | set surround " activate the vim-surround key bindings" 10 | 11 | nnoremap gh gT 12 | nnoremap gl gt 13 | 14 | " onoremap iv i[ 15 | " onoremap av a[ 16 | 17 | " easy window navigation 18 | nnoremap l 19 | nnoremap j 20 | nnoremap h 21 | nnoremap k 22 | nnoremap x :action MoveTabDown 23 | nnoremap v :action MoveTabRight 24 | nnoremap X :action SplitHorizontally 25 | nnoremap V :action SplitVertically 26 | nnoremap u :action Unsplit 27 | nnoremap q :q 28 | nnoremap U :action UnsplitAll 29 | 30 | " tabs 31 | nnoremap gr gT 32 | nnoremap gt 33 | nnoremap gT 34 | 35 | nnoremap :action ShowUsages 36 | nnoremap :action HighlightUsagesInFile 37 | 38 | " code refactoring 39 | nnoremap cre :action RenameElement 40 | nnoremap cS :action ChangeSignature 41 | nnoremap cts :action ChangeTypeSignature 42 | 43 | " unimpaired mappings 44 | nnoremap [ Oj 45 | nnoremap ] ok 46 | nnoremap [m :action MethodUp 47 | nnoremap ]m :action MethodDown 48 | nnoremap [c :action VcsShowPrevChangeMarker 49 | nnoremap ]c :action VcsShowNextChangeMarker 50 | 51 | nnoremap :action GotoFile 52 | nnoremap :action GotoClass 53 | nnoremap :action GotoSymbol 54 | nnoremap :action GotoAction 55 | 56 | nnoremap K :action GotoDeclaration 57 | nnoremap gK :action GotoTypeDeclaration 58 | nnoremap gje :action GoToErrorGroup 59 | nnoremap gji :action GotoImplementation 60 | nnoremap gs :action GotoSuperMethod 61 | nnoremap gjt :action GotoTest 62 | 63 | nnoremap gb0 :action GotoBookmark0 64 | nnoremap gb1 :action GotoBookmark1 65 | nnoremap gb2 :action GotoBookmark2 66 | nnoremap gb3 :action GotoBookmark3 67 | nnoremap gb4 :action GotoBookmark4 68 | nnoremap gb5 :action GotoBookmark5 69 | nnoremap gb6 :action GotoBookmark6 70 | nnoremap gb7 :action GotoBookmark7 71 | nnoremap gb8 :action GotoBookmark8 72 | nnoremap gb9 :action GotoBookmark9 73 | nnoremap gjl :action GoToLinkTarget 74 | 75 | nnoremap gnb :action GotoNextBookmark 76 | nnoremap ]q :action GotoNextError 77 | nnoremap gnx :action GotoNextIncompletePropertyAction 78 | nnoremap gpb :action GotoPreviousBookmark 79 | nnoremap [q :action GotoPreviousError 80 | 81 | " will be replaced as soon as onoremap works 82 | nnoremap civ ci[ 83 | nnoremap div di[ 84 | nnoremap yiv yi[ 85 | nnoremap cav ca[ 86 | nnoremap dav da[ 87 | nnoremap yav ya[ 88 | 89 | " easy system clipboard copy/paste 90 | noremap "+y "*y 91 | noremap "+Y "*Y 92 | noremap "+p "*p 93 | noremap "+P "*P 94 | noremap "*y 95 | noremap "*P 96 | inoremap "+P 97 | vnoremap "+y 98 | 99 | " built-in navigation to navigated items works better 100 | nnoremap :action Back 101 | nnoremap :action Forward 102 | " but preserve ideavim defaults 103 | nnoremap 104 | nnoremap 105 | 106 | " generate 107 | nnoremap gt :action GenerateTestMethod 108 | nnoremap gs :action GenerateSetUpMethod 109 | nnoremap gG :action GenerateGetter 110 | nnoremap gS :action GenerateSetter 111 | nnoremap ga :action GenerateGetterAndSetter 112 | nnoremap ge :action GenerateEquals 113 | nnoremap gc :action GenerateConstructor 114 | nnoremap G :action Generate 115 | 116 | " enter newlines 117 | nnoremap :action EditorEnter 118 | inoremap :action EditorEnter 119 | 120 | " windows 121 | nnoremap gwa :action ActivateAntBuildToolWindow 122 | nnoremap gwm :action ActivateEventLogToolWindow 123 | nnoremap gwg :action ActivateGradleToolWindow 124 | nnoremap gwd :action ActivateDebugToolWindow 125 | nnoremap gwr :action ActivateRunToolWindow 126 | nnoremap gwb :action ViewBreakpoints 127 | nnoremap gwp :action ActivateProjectToolWindow 128 | 129 | " imaps 130 | inoremap {@code }h 131 | inoremap {@link }h 132 | inoremap k 133 | inoremap j 134 | inoremap l 135 | inoremap h 136 | inoremap I 137 | inoremap A 138 | inoremap o\

lDo0wlC 139 | 140 | nnoremap gjK :action QuickJavaDoc 141 | nnoremap ]] :action MethodDown 142 | nnoremap [[ :action MethodUp 143 | 144 | nnoremap :nohl 145 | nnoremap R :action Rerun 146 | nnoremap rt :action RerunTests 147 | nnoremap rf :action RerunFailedTests 148 | 149 | nnoremap go :action OverrideMethods 150 | nnoremap d 0w:action ShowIntentionActions 151 | 152 | nnoremap gn :action NewClass 153 | 154 | " debugger 155 | nnoremap i :ForceStepInto 156 | nnoremap o :ForceStepOver 157 | nnoremap p :Stepout 158 | nnoremap n :action ToggleLineBreakpoint 159 | nnoremap m :action ToggleMethodBreakpoint 160 | nnoremap  :action Resume 161 | nnoremap p :action ShowExecutionPoint 162 | 163 | " templates 164 | inoremap :action NextTemplateVariable 165 | inoremap :action PreviousTemplateVariable 166 | 167 | nnoremap cv ^2cEvalb 168 | -------------------------------------------------------------------------------- /settings.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaHaleMaKai/ideavim-settings/e79692c1ef4cca0f9a5674d2ac81439bca429632/settings.jar --------------------------------------------------------------------------------