diff --git a/.gitignore b/.gitignore index 6ca2b86..1c19104 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ Session.vim *.ba karabiner/automatic_backups/* +.idea/* +*.pyc diff --git a/idea/.ideavimrc b/idea/.ideavimrc index c990063..f9dadbb 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -1,3 +1,4 @@ +" enable plugin set easymotion set surround @@ -19,26 +20,35 @@ set history=1000 nnoremap ,a :action GotoAction vnoremap ,a :action GotoAction nnoremap ,e :action SearchEverywhere +vnoremap ,e :action SearchEverywhere nnoremap ,s :action FileStructurePopup nnoremap ,g :action FindInPath -nnoremap ,r :action RecentFiles +vnoremap ,g :action FindInPath +nnoremap ,r :action RenameElement +" vnoremap ,r :action RecentFiles " jump on code +nnoremap gc :action GotoClass nnoremap gd :action GotoDeclaration nnoremap gs :action GotoSuperMethod nnoremap gi :action GotoImplementation nnoremap gf :action GotoFile -nnoremap gb :action JumpToLastChange +nnoremap gl :action JumpToLastChange nnoremap gu :action ShowUsages nnoremap gt :action GotoTest -nnoremap gh :action Back -nnoremap gl :action Forward +nnoremap gp :action FindInPath +" cmd + [ and cmd + ] +" nnoremap gh :action Back +" nnoremap gl :action Forward " code editing -" nnoremap r :action RenameElement -nnoremap q :action ShowIntentionActions +nnoremap \f :action ReformatCode nnoremap == :action ReformatCode vnoremap == :action ReformatCode +nnoremap \i :action OptimizeImports +vnoremap \i :action OptimizeImports +" nnoremap \r :action RenameElement +nnoremap q :action ShowIntentionActions nnoremap cc :action CommentByLineComment vnoremap cc :action CommentByLineComment @@ -64,6 +74,9 @@ nnoremap gt " options nnoremap cow :action EditorToggleUseSoftWraps nnoremap col :action EditorToggleShowWhitespaces +nnoremap ta :action Annotate +nnoremap tb :action ToggleLineBreakpoint +nnoremap tp :action ActivateProjectToolWindow " actions nnoremap q :action CloseContent @@ -73,7 +86,7 @@ nnoremap e :action SearchEverywhere nnoremap E :action Switcher nnoremap t :action FileStructurePopup nnoremap T :action GotoSymbol -nnoremap a :action GotoAction +nnoremap a :action Annotate nnoremap b :action ToggleLineBreakpoint " code navigation @@ -103,8 +116,8 @@ nnoremap ]c :action VcsShowNextChangeMarker " built-in navigation to navigated items works better -nnoremap :action Back -nnoremap :action Forward +" nnoremap :action Back +" nnoremap :action Forward " but preserve ideavim defaults nnoremap g nnoremap g @@ -142,4 +155,4 @@ nnoremap f :action AceAction " 在 Target 模式下会跳转到目标,并选中目标整个Word" nnoremap F :action AceTargetAction " Press `g` to activate Line Mode -" map g :action AceLineAction \ No newline at end of file +" nnoremap g :action AceLineAction