diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..19ba6d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Intellij +/.idea/ diff --git a/README.org b/README.org index 54ff555..e921608 100644 --- a/README.org +++ b/README.org @@ -2,6 +2,8 @@ [[http://spacemacs.org][file:https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg]] +[[file:docs/preview.gif]] + * Presentation This project tries to mimic [[http://spacemacs.org][Spacemacs]] key bindings in IDEs based on the [[https://www.jetbrains.com][IntelliJ]] platform, i.e. IntelliJ IDEA, PyCharm, CLion, PhpStorm, WebStorm, RubyMine, @@ -38,8 +40,10 @@ mode, which may be enabled by sourcing the file =~/.intellimacs/hybrid.vim=. Read [[file:docs/KEYBINDINGS.org][KEYBINDINGS.org]] to see all 200+ available key bindings. * Installation -1. Install IdeaVim by using the IDE's plugin manager (File -> Settings -> - Plugins -> Search for IdeaVim -> Install IdeaVim). +1. Go to the IDE's plugin manager (File -> Settings -> Plugins) and install + the following plugins: + - [[https://plugins.jetbrains.com/plugin/164-ideavim][IdeaVim]]: vim emulation + - (Optional) [[https://plugins.jetbrains.com/plugin/15976-idea-which-key][IDEA Which-Key]]: menu that shows the available commands as you type 2. Clone this repository in your home directory: #+begin_src sh git clone https://github.com/MarcoIeni/intellimacs ~/.intellimacs @@ -50,20 +54,24 @@ Read [[file:docs/KEYBINDINGS.org][KEYBINDINGS.org]] to see all 200+ available ke the functionalities offered by Intellimacs. In this file you can also include your own vim commands. #+begin_src vimrc - " Selected Intellimacs modules source ~/.intellimacs/spacemacs.vim + + " (Optional) Enable other Intellimacs modules source ~/.intellimacs/extra.vim source ~/.intellimacs/major.vim source ~/.intellimacs/hybrid.vim - " My own vim commands + " (Optional) Enable which-key plugin + source ~/.intellimacs/which-key.vim + + " (Optional) My own vim commands nnoremap Y y$ - " Comma for major mode + " (Optional) Comma for major mode nmap , m vmap , m - " Add/edit actions + " (Optional) Add/edit actions nnoremap gl :action Vcs.Show.Log vnoremap gl :action Vcs.Show.Log #+end_src @@ -110,5 +118,6 @@ Before contributing, be sure to read [[file:docs/CONTRIBUTING.org][CONTRIBUTING. * Related projects - [[https://github.com/MarcoIeni/spaceclipse][Spaceclipse]] - Spacemacs' like key bindings for Eclipse +- [[https://github.com/SpaceVim/SpaceVim][SpaceVim]] - A community-driven modular vim distribution - [[https://github.com/VSpaceCode/VSpaceCode][VSpaceCode]] - Spacemacs' like key bindings for Visual Studio Code (thanks for the inspiration) diff --git a/docs/CHANGELOG.org b/docs/CHANGELOG.org index 1091df7..7b07fbe 100644 --- a/docs/CHANGELOG.org +++ b/docs/CHANGELOG.org @@ -5,13 +5,19 @@ All notable changes to this project will be documented in this file. The format is based on [[https://keepachangelog.com/en/1.0.0/][Keep a Changelog]], and this project adheres to [[https://semver.org/spec/v2.0.0.html][Semantic Versioning]]. -* [[https://github.com/marcoieni/intellimacs/compare/v0.0.1...HEAD][Unreleased]] +* [[https://github.com/marcoieni/intellimacs/compare/v1.1.0...HEAD][Unreleased]] + +* [[https://github.com/marcoieni/intellimacs/tags/v1.0.0...v1.1.0][1.1.0]] - 2020-03-30 ** Added + - add which-key support - enable the following vim plugins: argtextobj, textobj-entire, ReplaceWithRegister - =SPC j l=: Jump to line (AceJump required) - =SPC m h t=: Type definition +** Changed + - =SPC '=: Activate terminal window + * [[https://github.com/marcoieni/intellimacs/tags/v0.0.1...v1.0.0][1.0.0]] - 2019-12-27 Manual intervention is required: - execute =mv ~/intellispace ~/.intellimacs= diff --git a/docs/KEYBINDINGS.org b/docs/KEYBINDINGS.org index 1adf396..2d8eb26 100644 --- a/docs/KEYBINDINGS.org +++ b/docs/KEYBINDINGS.org @@ -11,24 +11,26 @@ master branch. ** leader -| Key binding | Description | -|-------------+----------------------| -| ~SPC SPC~ | Execute an action | -| ~SPC TAB~ | Last buffer | -| ~SPC !~ | Open terminal window | -| ~SPC '~ | Open terminal window | -| ~SPC *~ | Show usages | -| ~SPC ; ;~ | Comment lines | -| ~SPC ?~ | Show key bindings | +| Key binding | Description | +|-------------+-------------------------------| +| ~SPC SPC~ | Execute an action | +| ~SPC TAB~ | Last buffer | +| ~SPC !~ | Open new terminal window | +| ~SPC '~ | Activate terminal window | +| ~SPC *~ | Show usages | +| ~SPC ; ;~ | Comment lines | +| ~SPC ?~ | Show key bindings | +| ~SPC /~ | Search in project files | ** applications -| Key binding | Description | -|-------------+----------------------| -| ~SPC a k~ | Plugins marketplace | -| ~SPC a o t~ | Show TODOs | -| ~SPC a P~ | Show CPU usage | -| ~SPC a p~ | List processes | -| ~SPC a s~ | Open terminal window | + +| Key binding | Description | +|-------------+--------------------------| +| ~SPC a k~ | Plugins marketplace | +| ~SPC a o t~ | Show TODOs | +| ~SPC a P~ | Show CPU usage | +| ~SPC a p~ | List processes | +| ~SPC a s~ | Open new terminal window | ** buffers @@ -66,14 +68,17 @@ master branch. ** errors -| Key binding | Description | -|-------------+-------------------| -| ~SPC e l~ | List errors | -| ~SPC e N~ | Previous error | -| ~SPC e n~ | Next error | -| ~SPC e p~ | Previous error | -| ~SPC e s~ | Select inspection | -| ~SPC e x~ | Explain error | +| Key binding | Description | +|-------------+------------------------| +| ~SPC e L~ | Inspect code | +| ~SPC e l~ | List errors | +| ~SPC e N~ | Previous error | +| ~SPC e n~ | Next error | +| ~SPC e p~ | Previous error | +| ~SPC e R~ | Run inspection by name | +| ~SPC e r~ | Resolve error | +| ~SPC e s~ | Inspection settings | +| ~SPC e x~ | Explain error | ** frame @@ -155,7 +160,7 @@ master branch. | Key binding | Description | |-------------+----------------------------------------| -| ~SPC p !~ | Open terminal in project root | +| ~SPC p !~ | Activate terminal window | | ~SPC p a~ | Toggle between implementation and test | | ~SPC p b~ | Recent files | | ~SPC p h~ | Recent files | @@ -177,6 +182,8 @@ master branch. | ~SPC q f~ | Close project | | ~SPC q q~ | Close project | | ~SPC q Q~ | Exit (close all projects) | +| ~SPC q r~ | Restart | +| ~SPC q R~ | Restart | | ~SPC q s~ | Save all and close project | ** registers/rings/resume diff --git a/docs/preview.gif b/docs/preview.gif new file mode 100644 index 0000000..d8fbb4a Binary files /dev/null and b/docs/preview.gif differ diff --git a/extra.vim b/extra.vim index 64fec71..71c1f7e 100644 --- a/extra.vim +++ b/extra.vim @@ -6,6 +6,8 @@ source ~/.intellimacs/extra/settings.vim " Key bindings source ~/.intellimacs/extra/applications.vim + +let g:WhichKeyDesc_Bookmarks = "B +bookmarks" source ~/.intellimacs/extra/bookmarks.vim source ~/.intellimacs/extra/buffers.vim source ~/.intellimacs/extra/compile-comments.vim @@ -13,10 +15,16 @@ source ~/.intellimacs/extra/errors.vim source ~/.intellimacs/extra/files.vim source ~/.intellimacs/extra/frame.vim source ~/.intellimacs/extra/git-vcs.vim + +let g:WhichKeyDesc_Help = "h +help/history" source ~/.intellimacs/extra/help-history.vim + source ~/.intellimacs/extra/jump.vim source ~/.intellimacs/extra/leader.vim + +let g:WhichKeyDesc_Run = "R +run" source ~/.intellimacs/extra/run.vim + source ~/.intellimacs/extra/search.vim source ~/.intellimacs/extra/toggles.vim source ~/.intellimacs/extra/ui_toggles-themes.vim diff --git a/extra/applications.vim b/extra/applications.vim index 2e3349f..854e096 100644 --- a/extra/applications.vim +++ b/extra/applications.vim @@ -1,3 +1,4 @@ " Show TODOs +let g:WhichKeyDesc_Applications_Todo = "at todo" nnoremap at :action ActivateTODOToolWindow vnoremap at :action ActivateTODOToolWindow diff --git a/extra/bookmarks.vim b/extra/bookmarks.vim index 83cf481..c7673f9 100644 --- a/extra/bookmarks.vim +++ b/extra/bookmarks.vim @@ -1,25 +1,31 @@ " List bookmarks " Create bookmark 0 with , Create bookmark 1 with and so on. " Go to bookmark 0 with , go to bookmark 1 with and so on. +let g:WhichKeyDesc_Bookmarks_List = "Bl list-bookmarks" nnoremap Bl :action ShowBookmarks vnoremap Bl :action ShowBookmarks " Previous bookmark +let g:WhichKeyDesc_Bookmarks_PreviousN = "BN previous-bookmark" nnoremap BN :action GotoPreviousBookmark vnoremap BN :action GotoPreviousBookmark " Next bookmark +let g:WhichKeyDesc_Bookmarks_Next = "Bn next-bookmark" nnoremap Bn :action GotoNextBookmark vnoremap Bn :action GotoNextBookmark " Previous bookmark +let g:WhichKeyDesc_Bookmarks_Previous = "Bp previous-bookmark" nnoremap Bp :action GotoPreviousBookmark vnoremap Bp :action GotoPreviousBookmark " Toggle bookmark. When you activate it, assign to it a value. +let g:WhichKeyDesc_Bookmarks_ToggleMnemonic = "BT toggle-bookmark-with-mnemonic" nnoremap BT :action ToggleBookmarkWithMnemonic vnoremap BT :action ToggleBookmarkWithMnemonic " Toggle bookmark +let g:WhichKeyDesc_Bookmarks_Toggle = "Bt toggle-bookmark" nnoremap Bt :action ToggleBookmark vnoremap Bt :action ToggleBookmark diff --git a/extra/buffers.vim b/extra/buffers.vim index e9760e6..91e40e1 100644 --- a/extra/buffers.vim +++ b/extra/buffers.vim @@ -1,15 +1,19 @@ " Go to first tab +let g:WhichKeyDesc_Buffers_FirstTab = "b0 first-tab" nnoremap b0 :action GoToTab1 vnoremap b0 :action GoToTab1 " Go to last tab +let g:WhichKeyDesc_Buffers_LastTab = "b$ last-tab" nnoremap b$ :action GoToLastTab vnoremap b$ :action GoToLastTab " Next Tab +let g:WhichKeyDesc_Buffers_NextTab = "bk next-tab" nnoremap bk :action NextTab vnoremap bk :action NextTab " Previous Tab +let g:WhichKeyDesc_Buffers_PreviousTab = "bj previous-tab" nnoremap bj :action PreviousTab vnoremap bj :action PreviousTab diff --git a/extra/compile-comments.vim b/extra/compile-comments.vim index 08fe7e7..82eb447 100644 --- a/extra/compile-comments.vim +++ b/extra/compile-comments.vim @@ -1,3 +1,4 @@ " Comment by block comment +let g:WhichKeyDesc_CompileComments_CommentByBlockComment = "cb comment-by-block-comment" nnoremap cb :action CommentByBlockComment vnoremap cb :action CommentByBlockComment diff --git a/extra/errors.vim b/extra/errors.vim index 9a49433..6772661 100644 --- a/extra/errors.vim +++ b/extra/errors.vim @@ -1,11 +1,14 @@ " Inspect code +let g:WhichKeyDesc_Errors_InspectCode = "eL inspect-code" nnoremap eL :action InspectCode vnoremap eL :action InspectCode +" Run inspection by name +let g:WhichKeyDesc_Errors_RunInspectionByName = "eR run-inspection-by-name" +nnoremap eR :action RunInspection +vnoremap eR :action RunInspection + " Resolve error +let g:WhichKeyDesc_Errors_ResolveError = "er resolve-error" nnoremap er :action ShowIntentionActions vnoremap er :action ShowIntentionActions - -" Edit inspection settings -nnoremap es :action EditInspectionSettings -vnoremap es :action EditInspectionSettings diff --git a/extra/files.vim b/extra/files.vim index 060ccc0..cd7f294 100644 --- a/extra/files.vim +++ b/extra/files.vim @@ -1,7 +1,9 @@ " Create a new Element. +let g:WhichKeyDesc_Files_NewElement = "fN new-element" nnoremap fN :action NewElement vnoremap fN :action NewElement " Create a new class. You can also create enum, interface and more. +let g:WhichKeyDesc_Files_NewClass = "fn new-class" nnoremap fn :action NewClass vnoremap fn :action NewClass diff --git a/extra/frame.vim b/extra/frame.vim index 2ac3fd9..aeb9c10 100644 --- a/extra/frame.vim +++ b/extra/frame.vim @@ -1,3 +1,4 @@ " Focus previous project +let g:WhichKeyDesc_Frame_PreviousProjectWindow = "FO previous-project-window" nnoremap FO :action PreviousProjectWindow vnoremap FO :action PreviousProjectWindow diff --git a/extra/git-vcs.vim b/extra/git-vcs.vim index d7f8a56..603cea7 100644 --- a/extra/git-vcs.vim +++ b/extra/git-vcs.vim @@ -1,19 +1,24 @@ " Git checkout +let g:WhichKeyDesc_GitVcs_Branches = "gb branches" nnoremap gb :action Git.Branches vnoremap gb :action Git.Branches " Show Version control tool window +let g:WhichKeyDesc_GitVcs_ShowWindow = "gG show-window" nnoremap gG :action ActivateVersionControlToolWindow vnoremap gG :action ActivateVersionControlToolWindow " Select a VCS operation +let g:WhichKeyDesc_GitVcs_SelectOperation = "gg select-operation" nnoremap gg :action Vcs.QuickListPopupAction vnoremap gg :action Vcs.QuickListPopupAction " Vcs push (git push)" +let g:WhichKeyDesc_GitVcs_Push = "gp push" nnoremap gp :action Vcs.Push vnoremap gp :action Vcs.Push " Show shelf +let g:WhichKeyDesc_GitVcs_Shelf = "gS shelf" nnoremap gS :action Vcs.Show.Shelf vnoremap gS :action Vcs.Show.Shelf diff --git a/extra/help-history.vim b/extra/help-history.vim index c276e7d..0894745 100644 --- a/extra/help-history.vim +++ b/extra/help-history.vim @@ -1,11 +1,14 @@ " Show action list +let g:WhichKeyDesc_Help_ShowActionList = "ha show-action-list" nnoremap ha :actionlist vnoremap ha :actionlist " Show changes in current file +let g:WhichKeyDesc_Help_ShowHistory = "hh show-history" nnoremap hh :action LocalHistory.ShowHistory vnoremap hh :action LocalHistory.ShowHistory " Visit JetBrains youtube channel +let g:WhichKeyDesc_Help_VisitYoutubeChannel = "hv visit-youtube-channel" nnoremap hv :action Help.JetBrainsTV vnoremap hv :action Help.JetBrainsTV diff --git a/extra/jump.vim b/extra/jump.vim index af11553..9c460ee 100644 --- a/extra/jump.vim +++ b/extra/jump.vim @@ -1,11 +1,14 @@ " Jump to class +let g:WhichKeyDesc_JumpJoinSplit_JumpToClass = "jc jump-to-class" nnoremap jc :action GotoClass vnoremap jc :action GotoClass " Jump to element in current file +let g:WhichKeyDesc_JumpJoinSplit_JumpToFileStructure = "je jump-to-file-structure" nnoremap je :action FileStructurePopup vnoremap je :action FileStructurePopup " Jump to symbol +let g:WhichKeyDesc_JumpJoinSplit_JumpToSymbol = "js jump-to-symbol" nnoremap js :action GotoSymbol vnoremap js :action GotoSymbol diff --git a/extra/leader.vim b/extra/leader.vim index 97b7bd2..a2a39c3 100644 --- a/extra/leader.vim +++ b/extra/leader.vim @@ -1,7 +1,9 @@ " Go to code block start +let g:WhichKeyDesc_Leader_GotoCodeBlockStart = "[ goto-code-block-start" nnoremap [ :action EditorCodeBlockStart vnoremap [ :action EditorCodeBlockStart " Go to code block end +let g:WhichKeyDesc_Leader_GotoCodeBlockEnd = "] goto-code-block-end" nnoremap ] :action EditorCodeBlockEnd vnoremap ] :action EditorCodeBlockEnd diff --git a/extra/run.vim b/extra/run.vim index b0c2f88..06ae75d 100644 --- a/extra/run.vim +++ b/extra/run.vim @@ -1,19 +1,24 @@ " Run Anything +let g:WhichKeyDesc_Run_Anything = "Ra run-anything" nnoremap Ra :action RunAnything vnoremap Ra :action RunAnything " Run class +let g:WhichKeyDesc_Run_Class = "Rc run-class" nnoremap Rc :action RunClass vnoremap Rc :action RunClass " Kill (Stop application) +let g:WhichKeyDesc_Run_Kill = "Rk kill" nnoremap Rk :action Stop vnoremap Rk :action Stop " Run +let g:WhichKeyDesc_Run_Run = "Rr run" nnoremap Rr :action Run vnoremap Rr :action Run " Select configuration and run +let g:WhichKeyDesc_Run_SelectRunConfiguration = "Rs select-run-configuration" nnoremap Rs :action ChooseRunConfiguration vnoremap Rs :action ChooseRunConfiguration diff --git a/extra/search.vim b/extra/search.vim index d742684..51b3ab5 100644 --- a/extra/search.vim +++ b/extra/search.vim @@ -1,11 +1,14 @@ " Search everywhere +let g:WhichKeyDesc_SearchSymbol_SearchEverywhere = "sE search-everywhere" nnoremap sE :action SearchEverywhere vnoremap sE :action SearchEverywhere " Search in current file by using Intellij Search +let g:WhichKeyDesc_SearchSymbol_FindInFile = "sf find-in-file" nnoremap sf :action Find vnoremap sf :action Find " Search and replace in current file by using Intellij Search +let g:WhichKeyDesc_SearchSymbol_ReplaceInFile = "sr replace-in-file" nnoremap sr :action Replace vnoremap sr :action Replace diff --git a/extra/toggles.vim b/extra/toggles.vim index 5de7ca5..568963b 100644 --- a/extra/toggles.vim +++ b/extra/toggles.vim @@ -1,7 +1,9 @@ " Toggle Gutter icons +let g:WhichKeyDesc_Toggles_GutterIcons = "tg gutter-icons" nnoremap tg :action EditorToggleShowGutterIcons vnoremap tg :action EditorToggleShowGutterIcons " Toggle power save +let g:WhichKeyDesc_Toggles_PowerSave = "tp power-save" nnoremap tp :action TogglePowerSave vnoremap tp :action TogglePowerSave diff --git a/extra/ui_toggles-themes.vim b/extra/ui_toggles-themes.vim index ee1927f..4cf4621 100644 --- a/extra/ui_toggles-themes.vim +++ b/extra/ui_toggles-themes.vim @@ -1,11 +1,14 @@ " Hide all windows except the ones with code +let g:WhichKeyDesc_UiTogglesThemes_HideAllWindows = "Tm hide-all-windows" nnoremap Tm :action HideAllWindows vnoremap Tm :action HideAllWindows " Toggle presentation mode +let g:WhichKeyDesc_UiTogglesThemes_PresentationMode = "Tp presentation-mode" nnoremap Tp :action TogglePresentationMode vnoremap Tp :action TogglePresentationMode " Toggle presentation or distraction free mode +let g:WhichKeyDesc_UiTogglesThemes_ChooseViewMode = "TT choose-view-mode" nnoremap TT :action ChangeView vnoremap TT :action ChangeView diff --git a/extra/windows.vim b/extra/windows.vim index 4eb4458..a6bcae8 100644 --- a/extra/windows.vim +++ b/extra/windows.vim @@ -1,23 +1,29 @@ " Focus window far left +let g:WhichKeyDesc_Windows_FocusWindowFarLeft = "wH focus-window-far-left" nnoremap wH 10h vnoremap wH 10h " Focus window very bottom +let g:WhichKeyDesc_Windows_FocusWindowVeryBottom = "wJ focus-window-very-bottom" nnoremap wJ 10j vnoremap wJ 10j " Focus window very top +let g:WhichKeyDesc_Windows_FocusWindowVeryTop = "wK focus-window-very-top" nnoremap wK 10k vnoremap wK 10k " Focus window far right +let g:WhichKeyDesc_Windows_FocusWindowFarRight = "wL focus-window-far-right" nnoremap wL 10l vnoremap wL 10l " Close all other windows +let g:WhichKeyDesc_Windows_CloseAllOtherWindows = "wm close-all-other-windows" nnoremap wm :action HideAllWindows vnoremap wm :action HideAllWindows " Move tab to the opposite window +let g:WhichKeyDesc_Windows_MoveTabToOppositeWindow = "wO move-tab-to-opposite-window" nnoremap wO :action MoveEditorToOppositeTabGroup vnoremap wO :action MoveEditorToOppositeTabGroup diff --git a/extra/zoom.vim b/extra/zoom.vim index 6ffd710..49b9b01 100644 --- a/extra/zoom.vim +++ b/extra/zoom.vim @@ -1,13 +1,17 @@ " Increase font size +let g:WhichKeyDesc_Zoom_Increase = "z+ increase" nnoremap z+ :action EditorIncreaseFontSize vnoremap z+ :action EditorIncreaseFontSize +let g:WhichKeyDesc_Zoom_IncreaseAlt = "z= increase" nnoremap z= :action EditorIncreaseFontSize vnoremap z= :action EditorIncreaseFontSize " Decrease font size +let g:WhichKeyDesc_Zoom_Decrease = "z- decrease" nnoremap z- :action EditorDecreaseFontSize vnoremap z- :action EditorDecreaseFontSize " Reset font size +let g:WhichKeyDesc_Zoom_Reset = "z0 reset" nnoremap z0 :action EditorResetFontSize vnoremap z0 :action EditorResetFontSize diff --git a/major.vim b/major.vim index e391050..84967b4 100644 --- a/major.vim +++ b/major.vim @@ -1,8 +1,23 @@ " This file contains the most common spacemacs major mode key bindings +let g:WhichKeyDesc_Major = "m +major-mode-commands" + +let g:WhichKeyDesc_Major_Compile = "mc +compile" source ~/.intellimacs/major/compile.vim + +let g:WhichKeyDesc_Major_Debug = "md +debug" source ~/.intellimacs/major/debug.vim + +let g:WhichKeyDesc_Major_Goto = "mg +goto" source ~/.intellimacs/major/go.vim + +let g:WhichKeyDesc_Major_Help = "mh +help" source ~/.intellimacs/major/help-hierarchy.vim + +let g:WhichKeyDesc_Major_Format = "m= +format" source ~/.intellimacs/major/leader.vim + +let g:WhichKeyDesc_Major_Project = "mp +project" source ~/.intellimacs/major/projects.vim + +let g:WhichKeyDesc_Major_Refactoring = "mr +refactor" source ~/.intellimacs/major/refactoring.vim diff --git a/major/compile.vim b/major/compile.vim index f8df851..270f827 100644 --- a/major/compile.vim +++ b/major/compile.vim @@ -1,7 +1,9 @@ " Compile selected file, package or module +let g:WhichKeyDesc_Major_Compile_Compile = "mcC compile" nnoremap mcC :action Compile vnoremap mcC :action Compile " Make project +let g:WhichKeyDesc_Major_Compile_CompileDirty = "mcc compile-dirty" nnoremap mcc :action CompileDirty vnoremap mcc :action CompileDirty diff --git a/major/debug.vim b/major/debug.vim index 2efb4ef..033a88d 100644 --- a/major/debug.vim +++ b/major/debug.vim @@ -1,39 +1,49 @@ " View Breakpoints +let g:WhichKeyDesc_Major_Debug_ViewBreakpoints = "mdB view-breakpoints" nnoremap mdB :action ViewBreakpoints vnoremap mdB :action ViewBreakpoints " Toggle breakpoint +let g:WhichKeyDesc_Major_Debug_ToggleBreakpoint = "mdb toggle-breakpoint" nnoremap mdb :action ToggleLineBreakpoint vnoremap mdb :action ToggleLineBreakpoint " Clear all breakpoints +let g:WhichKeyDesc_Major_Debug_ClearAllBreakpoints = "mdC clear-all-breakpoints" nnoremap mdC :action Debugger.RemoveAllBreakpointsInFile vnoremap mdC :action Debugger.RemoveAllBreakpointsInFile " Continue (Go to next breakpoint). 'c' is the same as gdb. +let g:WhichKeyDesc_Major_Debug_Continue = "mdc continue" nnoremap mdc :action Resume vnoremap mdc :action Resume " Debug class +let g:WhichKeyDesc_Major_Debug_DebugClass = "mdD debug-class" nnoremap mdD :action DebugClass vnoremap mdD :action DebugClass " Debug +let g:WhichKeyDesc_Major_Debug_Debug = "mdd debug" nnoremap mdd :action Debug vnoremap mdd :action Debug " Next (Step over). 's' is the same as gdb +let g:WhichKeyDesc_Major_Debug_StepOver = "mdn step-over" nnoremap mdn :action StepOver vnoremap mdn :action StepOver " Step out (same as "finish" in gdb). +let g:WhichKeyDesc_Major_Debug_StepOut = "mdo step-out" nnoremap mdo :action StepOut vnoremap mdo :action StepOut " Select configuration and debug +let g:WhichKeyDesc_Major_Debug_SelectDebugConfiguration = "mdr select-debug-configuration" nnoremap mdr :action ChooseDebugConfiguration vnoremap mdr :action ChooseDebugConfiguration " Step (Step into). 's' is the same as gdb. +let g:WhichKeyDesc_Major_Debug_StepInto = "mds step-into" nnoremap mds :action StepInto vnoremap mds :action StepInto diff --git a/major/go.vim b/major/go.vim index a3d6b2c..243c785 100644 --- a/major/go.vim +++ b/major/go.vim @@ -1,19 +1,24 @@ " Go to declaration +let g:WhichKeyDesc_Major_Goto_Declaration = "mgg declaration" nnoremap mgg :action GotoDeclaration vnoremap mgg :action GotoDeclaration " Go to implementation +let g:WhichKeyDesc_Major_Goto_Implementation = "mgi implementation" nnoremap mgi :action GotoImplementation vnoremap mgi :action GotoImplementation " Go to type declaration +let g:WhichKeyDesc_Major_Goto_TypeDeclaration = "mgt type-declaration" nnoremap mgt :action GotoTypeDeclaration vnoremap mgt :action GotoTypeDeclaration " Go to code block start +let g:WhichKeyDesc_Major_Goto_CodeBlockStart = "mg[ code-block-start" nnoremap mg[ :action EditorCodeBlockStart vnoremap mg[ :action EditorCodeBlockStart " Go to code block end +let g:WhichKeyDesc_Major_Goto_CodeBlockEnd = "mg] code-block-end" nnoremap mg] :action EditorCodeBlockEnd vnoremap mg] :action EditorCodeBlockEnd diff --git a/major/help-hierarchy.vim b/major/help-hierarchy.vim index 8c11999..a005837 100644 --- a/major/help-hierarchy.vim +++ b/major/help-hierarchy.vim @@ -1,27 +1,34 @@ " Call hierarchy +let g:WhichKeyDesc_Major_Help_CallHierarchy = "mhc call-hierarchy" nnoremap mhc :action CallHierarchy vnoremap mhc :action CallHierarchy " Show implementation +let g:WhichKeyDesc_Major_Help_ShowImplementation = "mhH show-implementation" nnoremap mhH :action QuickImplementations vnoremap mhH :action QuickImplementations " Show documetation +let g:WhichKeyDesc_Major_Help_ShowDocumentation = "mhh show-documentation" nnoremap mhh :action QuickJavaDoc vnoremap mhh :action QuickJavaDoc " Inheritance hierarchy +let g:WhichKeyDesc_Major_Help_InheritanceHierarchy = "mhi inheritance-hierarchy" nnoremap mhi :action TypeHierarchy vnoremap mhi :action TypeHierarchy " Type Definition +let g:WhichKeyDesc_Major_Help_TypeDefinition = "mht type-definition" nnoremap mht :action QuickTypeDefinition vnoremap mht :action QuickTypeDefinition " Show usages for symbol +let g:WhichKeyDesc_Major_Help_ShowUsages = "mhU show-usages" nnoremap mhU :action ShowUsages vnoremap mhU :action ShowUsages " Find usages for symbol +let g:WhichKeyDesc_Major_Help_FindUsages = "mhu find-usages" nnoremap mhu :action FindUsages vnoremap mhu :action FindUsages diff --git a/major/leader.vim b/major/leader.vim index b3e3035..58bbcec 100644 --- a/major/leader.vim +++ b/major/leader.vim @@ -1,5 +1,5 @@ " Reformat whole buffer -nnoremap m= :action ReformatCode - +let g:WhichKeyDesc_Major_Format_ReformatSelection = "m== reformat-selection" +nnoremap m== :action ReformatCode " Reformat selected lines -vnoremap m= :action ReformatCode +vnoremap m== :action ReformatCode diff --git a/major/projects.vim b/major/projects.vim index 81c8aab..a51663a 100644 --- a/major/projects.vim +++ b/major/projects.vim @@ -1,19 +1,24 @@ " Make project (build) +let g:WhichKeyDesc_Major_Project_CompileProject = "mpb compile-project" nnoremap mpb :action CompileDirty vnoremap mpb :action CompileDirty " Create project +let g:WhichKeyDesc_Major_Project_CreateProject = "mpc create-project" nnoremap mpc :action NewProject vnoremap mpc :action NewProject " Import project +let g:WhichKeyDesc_Major_Project_ImportProject = "mpi import-project" nnoremap mpi :action ImportProject vnoremap mpi :action ImportProject " Open project +let g:WhichKeyDesc_Major_Project_OpenProject = "mpo open-project" nnoremap mpo :action WelcomeScreen.OpenProject vnoremap mpo :action WelcomeScreen.OpenProject " Run project +let g:WhichKeyDesc_Major_Project_RunProject = "mpr run-project" nnoremap mpr :action Run vnoremap mpr :action Run diff --git a/major/refactoring.vim b/major/refactoring.vim index 7e8d5aa..5200bb0 100644 --- a/major/refactoring.vim +++ b/major/refactoring.vim @@ -1,47 +1,63 @@ " Code cleanup +let g:WhichKeyDesc_Major_Refactoring_CodeCleanup = "mrC code-cleanup" nnoremap mrC :action CodeCleanup vnoremap mrC :action CodeCleanup " Create constructor +let g:WhichKeyDesc_Major_Refactoring_CreateConstructor = "mrc create-constructor" nnoremap mrc :action GenerateConstructor vnoremap mrc :action GenerateConstructor +""" Extract Submenu --------------------------------- +let g:WhichKeyDesc_Major_Refactoring_CodeCleanup_Extract = "mre +extract" + " Extract method +let g:WhichKeyDesc_Major_Refactoring_CodeCleanup_Extract_Method = "mrem method" nnoremap mrem :action ExtractMethod vnoremap mrem :action ExtractMethod " Extract superclass +let g:WhichKeyDesc_Major_Refactoring_CodeCleanup_Extract_Superclass = "mres superclass" nnoremap mres :action ExtractSuperclass vnoremap mres :action ExtractSuperclass +""" --------------------------------------------- " Generate getter and setter +let g:WhichKeyDesc_Major_Refactoring_GenerateGetterSetter = "mrG generate-getter-setter" nnoremap mrG :action GenerateGetterAndSetter vnoremap mrG :action GenerateGetterAndSetter " Select what to generate +let g:WhichKeyDesc_Major_Refactoring_Generate = "mrg generate" nnoremap mrg :action Generate vnoremap mrg :action Generate " Implement Methods +let g:WhichKeyDesc_Major_Refactoring_ImplementMethods = "mrI implement-methods" nnoremap mrI :action ImplementMethods vnoremap mrI :action ImplementMethods " Optimize imports +let g:WhichKeyDesc_Major_Refactoring_OptimizeImports = "mri optimize-imports" nnoremap mri :action OptimizeImports vnoremap mri :action OptimizeImports " Create a new Element. +let g:WhichKeyDesc_Major_Refactoring_NewElement = "mrN new-element" nnoremap mrN :action NewElement vnoremap mrN :action NewElement " Create a new class. You can also create enum, interface and more. +let g:WhichKeyDesc_Major_Refactoring_NewClass = "mrn new-class" nnoremap mrn :action NewClass vnoremap mrn :action NewClass " Choose a refactoring action +let g:WhichKeyDesc_Major_Refactoring_ChooseRefactoringAction = "mrR choose-refactoring-action" nnoremap mrR :action Refactorings.QuickListPopupAction vnoremap mrR :action Refactorings.QuickListPopupAction " Rename symbol +let g:WhichKeyDesc_Major_Refactoring_RenameSymbol = "mrr rename-symbol" nnoremap mrr :action RenameElement vnoremap mrr :action RenameElement diff --git a/spacemacs.vim b/spacemacs.vim index 7998f0f..f2e52b5 100644 --- a/spacemacs.vim +++ b/spacemacs.vim @@ -4,26 +4,70 @@ source ~/.intellimacs/spacemacs/settings.vim " Key bindings + +let g:WhichKeyDesc_Applications = "a +applications" source ~/.intellimacs/spacemacs/applications.vim + +let g:WhichKeyDesc_Buffers = "b +buffers" source ~/.intellimacs/spacemacs/buffers.vim + +let g:WhichKeyDesc_Colors = "C +colors" source ~/.intellimacs/spacemacs/colors.vim + +let g:WhichKeyDesc_CompileComments = "c +compile/comments" source ~/.intellimacs/spacemacs/compile-comments.vim + +let g:WhichKeyDesc_Errors = "e +errors" source ~/.intellimacs/spacemacs/errors.vim + +let g:WhichKeyDesc_Files = "f +files" source ~/.intellimacs/spacemacs/files.vim + +let g:WhichKeyDesc_Frame = "F +frame" source ~/.intellimacs/spacemacs/frame.vim + +let g:WhichKeyDesc_GitVcs = "g +git/version-control" source ~/.intellimacs/spacemacs/git-vcs.vim + +let g:WhichKeyDesc_Help = "h +help" source ~/.intellimacs/spacemacs/help.vim + +let g:WhichKeyDesc_Insertion = "i +insertion" source ~/.intellimacs/spacemacs/insertion.vim + +let g:WhichKeyDesc_JumpJoinSplit = "j +jump/join/split" source ~/.intellimacs/spacemacs/jump-join-split.vim + source ~/.intellimacs/spacemacs/leader.vim + source ~/.intellimacs/spacemacs/misc.vim + +let g:WhichKeyDesc_NarrowNumbers = "n +narrow/numbers" source ~/.intellimacs/spacemacs/narrow-numbers.vim + +let g:WhichKeyDesc_Projects = "p +projects" source ~/.intellimacs/spacemacs/projects.vim + +let g:WhichKeyDesc_Quit = "q +quit" source ~/.intellimacs/spacemacs/quit.vim + +let g:WhichKeyDesc_RegistersRingsResume = "r +registers/rings/resume" source ~/.intellimacs/spacemacs/registers-rings-resume.vim + +let g:WhichKeyDesc_SearchSymbol = "s +search/symbol" source ~/.intellimacs/spacemacs/search-symbol.vim + +let g:WhichKeyDesc_Text = "x +text" source ~/.intellimacs/spacemacs/text.vim + +let g:WhichKeyDesc_Toggles = "t +toggles" source ~/.intellimacs/spacemacs/toggles.vim + +let g:WhichKeyDesc_UiTogglesThemes = "T +UI toggles/themes" source ~/.intellimacs/spacemacs/ui_toogles-themes.vim + +let g:WhichKeyDesc_Windows = "w +windows" source ~/.intellimacs/spacemacs/windows.vim + +let g:WhichKeyDesc_Zoom = "z +zoom" source ~/.intellimacs/spacemacs/zoom.vim diff --git a/spacemacs/applications.vim b/spacemacs/applications.vim index a2bad61..4add2a8 100644 --- a/spacemacs/applications.vim +++ b/spacemacs/applications.vim @@ -1,19 +1,25 @@ " Plugins screen +let g:WhichKeyDesc_Applications_Plugins = "ak plugins" nnoremap ak :action WelcomeScreen.Plugins vnoremap ak :action WelcomeScreen.Plugins " Show TODOs +let g:WhichKeyDesc_Applications_Org = "ao +org" +let g:WhichKeyDesc_Applications_Org_Todo = "aot todo" nnoremap aot :action ActivateTODOToolWindow vnoremap aot :action ActivateTODOToolWindow " Show cpu usage +let g:WhichKeyDesc_Applications_ActivityMonitor = "aP activity-monitor" nnoremap aP :action Performance.ActivityMonitor vnoremap aP :action Performance.ActivityMonitor " List processes +let g:WhichKeyDesc_Applications_Processes = "ap processes" nnoremap ap :action ShowProcessWindow vnoremap ap :action ShowProcessWindow -" Open the terminal window +" Open a new terminal window +let g:WhichKeyDesc_Applications_Shell = "as shell" nnoremap as :action Terminal.OpenInTerminal vnoremap as :action Terminal.OpenInTerminal diff --git a/spacemacs/buffers.vim b/spacemacs/buffers.vim index 6321183..7c852b6 100644 --- a/spacemacs/buffers.vim +++ b/spacemacs/buffers.vim @@ -1,43 +1,54 @@ " Switch among recently opened files +let g:WhichKeyDesc_Buffers_ListBuffers = "bb list-buffers" nnoremap bb :action RecentFiles vnoremap bb :action RecentFiles " Close current tab +let g:WhichKeyDesc_Buffers_KillBuffer = "bd kill-buffer" nnoremap bd :action CloseContent vnoremap bd :action CloseContent " Show event log +let g:WhichKeyDesc_Buffers_MessagesBuffer = "bm messages-buffer" nnoremap bm :action ActivateEventLogToolWindow vnoremap bm :action ActivateEventLogToolWindow " Next Tab +let g:WhichKeyDesc_Buffers_NextBuffer = "bn next-buffer" nnoremap bn :action NextTab vnoremap bn :action NextTab " Substitute the whole content of the buffer with the content of your clipboard +let g:WhichKeyDesc_Buffers_PasteAndReplaceBuffer = "bP paste-and-replace-buffer" nnoremap bP ggVGp vnoremap bP ggVGp " Previous Tab +let g:WhichKeyDesc_Buffers_PreviousBuffer = "bp previous-buffer" nnoremap bp :action PreviousTab vnoremap bp :action PreviousTab " Open a new scratch buffer +let g:WhichKeyDesc_Buffers_ScratchBuffer = "bs scratch-buffer" nnoremap bs :action NewScratchBuffer vnoremap bs :action NewScratchBuffer " Reopen last closed tab +let g:WhichKeyDesc_Buffers_ReopenLastKilledBuffer = "bu reopen-last-killed-buffer" nnoremap bu :action ReopenClosedTab vnoremap bu :action ReopenClosedTab " Close a window together with its tabs +let g:WhichKeyDesc_Buffers_KillBufferAndCloseWindow = "bx kill-buffer-and-close-window" nnoremap bx :action CloseAllEditors vnoremap bx :action CloseAllEditors " Copy whole buffer +let g:WhichKeyDesc_Buffers_CopyBuffer = "bY copy-buffer" nnoremap bY :%y vnoremap bY :%y " Close other tabs in current window +let g:WhichKeyDesc_Buffers_KillOtherBuffers = "b kill-other-buffers" nnoremap b :action CloseAllEditorsButActive vnoremap b :action CloseAllEditorsButActive diff --git a/spacemacs/colors.vim b/spacemacs/colors.vim index 39189e8..825d385 100644 --- a/spacemacs/colors.vim +++ b/spacemacs/colors.vim @@ -1,3 +1,4 @@ " Pick color +let g:WhichKeyDesc_Colors_ShowColorPicker = "Cl color-picker" nnoremap Cl :action ShowColorPicker vnoremap Cl :action ShowColorPicker diff --git a/spacemacs/compile-comments.vim b/spacemacs/compile-comments.vim index 73fab95..55873c0 100644 --- a/spacemacs/compile-comments.vim +++ b/spacemacs/compile-comments.vim @@ -1,27 +1,34 @@ " Compile selected file, package or module +let g:WhichKeyDesc_CompileComments_Compile = "cC compile" nnoremap cC :action Compile vnoremap cC :action Compile " Make project +let g:WhichKeyDesc_CompileComments_CompileDirty = "cc compile-dirty" nnoremap cc :action CompileDirty vnoremap cc :action CompileDirty " Comment lines +let g:WhichKeyDesc_CompileComments_CommentByLineComment = "cl comment-by-line-comment" nnoremap cl :action CommentByLineComment vnoremap cl :action CommentByLineComment " Make module +let g:WhichKeyDesc_CompileComments_MakeModule = "cm make-module" nnoremap cm :action MakeModule vnoremap cm :action MakeModule " Comment paragraph +let g:WhichKeyDesc_CompileComments_CommentParagraphByLineComment = "cp comment-paragraph-by-line-comment" nnoremap cp vip:action CommentByLineComment vnoremap cp vip:action CommentByLineComment " Comment from begin of buffer up to current line +let g:WhichKeyDesc_CompileComments_CommentBufferByLineComment = "ct comment-buffer-from-start-to-line" nnoremap ct Vgg:action CommentByLineComment vnoremap ct Vgg:action CommentByLineComment " Copy and comment current line +let g:WhichKeyDesc_CompileComments_CopyAndCommentCurrentLine = "cy copy-and-comment-current-line" nnoremap cy yyP:action CommentByLineComment vnoremap cy yyP:action CommentByLineComment diff --git a/spacemacs/errors.vim b/spacemacs/errors.vim index de7c8ae..9d1c993 100644 --- a/spacemacs/errors.vim +++ b/spacemacs/errors.vim @@ -1,23 +1,29 @@ " List errors +let g:WhichKeyDesc_Errors_ListErrors = "el list-errors" nnoremap el :action CodeInspection.OnEditor vnoremap el :action CodeInspection.OnEditor " Go to previous error +let g:WhichKeyDesc_Errors_PreviousError = "eN previous-error" nnoremap eN :action GotoPreviousError vnoremap eN :action GotoPreviousError " Go to next error +let g:WhichKeyDesc_Errors_NextError = "en next-error" nnoremap en :action GotoNextError vnoremap en :action GotoNextError " Go to previous error +let g:WhichKeyDesc_Errors_PreviousErrorAlt = "ep previous-error" nnoremap ep :action GotoPreviousError vnoremap ep :action GotoPreviousError -" Select inspection by name -nnoremap es :action RunInspection -vnoremap es :action RunInspection +" Edit inspection settings +let g:WhichKeyDesc_Errors_OpenInspectionSettings = "es inspection-settings" +nnoremap es :action PopupHector +vnoremap es :action PopupHector -" Explain error at point +" Explain error at cursor +let g:WhichKeyDesc_Errors_ExplainError = "ex explain-error" nnoremap ex :action ShowErrorDescription vnoremap ex :action ShowErrorDescription diff --git a/spacemacs/files.vim b/spacemacs/files.vim index da712ae..4132bb0 100644 --- a/spacemacs/files.vim +++ b/spacemacs/files.vim @@ -1,40 +1,49 @@ " Show bookmarks. " Create bookmark 0 with , Create bookmark 1 with and so on. " Go to bookmark 0 with , go to bookmark 1 with and so on. +let g:WhichKeyDesc_Files_ShowBookmarks = "fb show-bookmarks" nnoremap fb :action ShowBookmarks vnoremap fb :action ShowBookmarks +""" IDE Submenu --------------------------------- +let g:WhichKeyDesc_Files_IDE = "fe +IDE" + " Show settings +let g:WhichKeyDesc_Files_IDE_Settings = "fed settings" nnoremap fed :action ShowSettings vnoremap fed :action ShowSettings " Reload .ideavimrc +let g:WhichKeyDesc_Files_IDE_ReloadIdeaVimRc = "feR reload-ideavimrc" nnoremap feR :source ~/.ideavimrc vnoremap feR :source ~/.ideavimrc +""" --------------------------------------------- " Find files +let g:WhichKeyDesc_Files_GotoFileAlt = "fF goto-file" nnoremap fF :action GotoFile vnoremap fF :action GotoFile +let g:WhichKeyDesc_Files_GotoFile = "ff goto-file" nnoremap ff :action GotoFile vnoremap ff :action GotoFile -" Search in project -nnoremap fg :action FindInPath -vnoremap fg :action FindInPath - " Rename file +let g:WhichKeyDesc_Files_Rename = "fR rename" nnoremap fR :action RenameFile vnoremap fR :action RenameFile " Recent files +let g:WhichKeyDesc_Files_Recent = "fr recent" nnoremap fr :action RecentFiles vnoremap fr :action RecentFiles " Save all files +let g:WhichKeyDesc_Files_SaveAll = "fS save-all" nnoremap fS :action SaveAll vnoremap fS :action SaveAll " Save single file (I think that Intellij autosaves anything by default anyway) +let g:WhichKeyDesc_Files_Save = "fs save" nnoremap fs :action SaveDocument vnoremap fs :action SaveDocument @@ -42,9 +51,15 @@ vnoremap fs :action SaveDocument " Sadly when you are inside the project window this key binding does not work " anymore. You can use if you want to close the window or if you " want to leave the window opened and focus on the code. +let g:WhichKeyDesc_Files_FileTree = "ft file-tree" nnoremap ft :action ActivateProjectToolWindow vnoremap ft :action ActivateProjectToolWindow +""" Yank/Copy Submenu --------------------------------- +let g:WhichKeyDesc_Files_YankCopy = "fy +Yank/Copy" + " Copy file path +let g:WhichKeyDesc_Files_YankCopy_FilePath = "fyy file-path" nnoremap fyy :action CopyAbsolutePath vnoremap fyy :action CopyAbsolutePath +""" --------------------------------------------------- diff --git a/spacemacs/frame.vim b/spacemacs/frame.vim index 22b2101..f9e2dc1 100644 --- a/spacemacs/frame.vim +++ b/spacemacs/frame.vim @@ -1,3 +1,4 @@ " Focus next project +let g:WhichKeyDesc_Frame_NextProjectWindow = "Fo next-project-window" nnoremap Fo :action NextProjectWindow vnoremap Fo :action NextProjectWindow diff --git a/spacemacs/git-vcs.vim b/spacemacs/git-vcs.vim index 7291c43..d6106e1 100644 --- a/spacemacs/git-vcs.vim +++ b/spacemacs/git-vcs.vim @@ -1,27 +1,42 @@ " Git clone +let g:WhichKeyDesc_GitVcs_Clone = "gc clone" nnoremap gc :action Git.Clone vnoremap gc :action Git.Clone +""" File Submenu --------------------------------- +let g:WhichKeyDesc_GitVcs_File = "gf +file" + " Show log of current file +let g:WhichKeyDesc_GitVcs_File_Log = "gfl log" nnoremap gfl :action Vcs.ShowTabbedFileHistory vnoremap gfl :action Vcs.ShowTabbedFileHistory +""" --------------------------------------------- " Git init +let g:WhichKeyDesc_GitVcs_Init = "gi init" nnoremap gi :action Git.Init vnoremap gi :action Git.Init " Show local changes (git status) +let g:WhichKeyDesc_GitVcs_Status = "gs status" nnoremap gs :action Vcs.Show.Local.Changes vnoremap gs :action Vcs.Show.Local.Changes +""" VCS Submenu --------------------------------- +let g:WhichKeyDesc_GitVcs_VersionControl = "gv +version-control" + " Update project (git pull) +let g:WhichKeyDesc_GitVcs_Vcs_Pull = "gv+ pull" nnoremap gv+ :action Vcs.UpdateProject vnoremap gv+ :action Vcs.UpdateProject " Annotate. Show when each line was last edited and by whom. +let g:WhichKeyDesc_GitVcs_Vcs_Annotate = "gvg annotate" nnoremap gvg :action Annotate vnoremap gvg :action Annotate " Show log (git log) +let g:WhichKeyDesc_GitVcs_Vcs_Log = "gvl log" nnoremap gvl :action Vcs.Show.Log vnoremap gvl :action Vcs.Show.Log +""" --------------------------------------------- diff --git a/spacemacs/help.vim b/spacemacs/help.vim index d0d8d7d..8be959a 100644 --- a/spacemacs/help.vim +++ b/spacemacs/help.vim @@ -1,17 +1,29 @@ " Show key bindings +let g:WhichKeyDesc_Help_ShowKeyBindings = "hk show-key-bindings" nnoremap hk :map vnoremap hk :map + +""" Describe Submenu --------------------------------- +let g:WhichKeyDesc_Help_Describe = "hd +describe" + +let g:WhichKeyDesc_Help_Describe_Bindings = "hdb describe-bindings" nnoremap hdb :map vnoremap hdb :map + +let g:WhichKeyDesc_Help_Describe_Key = "hdk describe-key" nnoremap hdk :map vnoremap hdk :map +""" --------------------------------------------- " JetBrains Plugins Repository +let g:WhichKeyDesc_Help_PluginDevelopment = "hp plugin-development" nnoremap hp :action WelcomeScreen.DevelopPlugins vnoremap hp :action WelcomeScreen.DevelopPlugins " Visit Intellij documentation website +let g:WhichKeyDesc_Help_ContextualHelp = "hr contextual-help" nnoremap hr :action ContextHelp vnoremap hr :action ContextHelp +let g:WhichKeyDesc_Help_ContextualHelpAlt = "h contextual-help" nnoremap h :action ContextHelp vnoremap h :action ContextHelp diff --git a/spacemacs/insertion.vim b/spacemacs/insertion.vim index 66d7578..9279a7d 100644 --- a/spacemacs/insertion.vim +++ b/spacemacs/insertion.vim @@ -1,19 +1,28 @@ " Insert line below +let g:WhichKeyDesc_Insertion_InsertLineBelow = "ij insert-line-below" nnoremap ij ok vnoremap ij ok " Insert line above +let g:WhichKeyDesc_Insertion_InsertLineAbove = "ik insert-line-above" nnoremap ik Oj vnoremap ik Oj +""" LoremIpsum Submenu --------------------------------- +let g:WhichKeyDesc_Insertion_LoremIpsum = "il +lorem-ipsum" + " Insert lorem ipsum paragraph +let g:WhichKeyDesc_Insertion_LoremIpsum_Paragraph = "ilp paragraph" nnoremap ilp iLorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl. vnoremap ilp iLorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl. " Insert lorem ipsum sentence +let g:WhichKeyDesc_Insertion_LoremIpsum_Sentence = "ils sentence" nnoremap ils iLorem ipsum dolor sit amet, consectetuer adipiscing elit. vnoremap ils iLorem ipsum dolor sit amet, consectetuer adipiscing elit. +""" --------------------------------------------- " Insert snippet +let g:WhichKeyDesc_Insertion_InsertSnippet = "is insert-snippet" nnoremap is :action InsertLiveTemplate vnoremap is :action InsertLiveTemplate diff --git a/spacemacs/jump-join-split.vim b/spacemacs/jump-join-split.vim index 9bc35f9..f3fac90 100644 --- a/spacemacs/jump-join-split.vim +++ b/spacemacs/jump-join-split.vim @@ -1,6 +1,6 @@ " Reformat whole buffer +let g:WhichKeyDesc_JumpJoinSplit_Reformat= "j= reformat" nnoremap j= :action ReformatCode - " Reformat selected lines vnoremap j= :action ReformatCode @@ -8,23 +8,29 @@ vnoremap j= :action ReformatCode " Sadly when you are inside the project window this key binding does not work " anymore. You can use if you want to close the window or if you " want to leave the window opened and focus on the code. +let g:WhichKeyDesc_JumpJoinSplit_JumpToProjectWindow = "jD jump-to-project-window" nnoremap jD :action ActivateProjectToolWindow vnoremap jD :action ActivateProjectToolWindow +let g:WhichKeyDesc_JumpJoinSplit_JumpToProjectWindowAlt = "jd jump-to-project-window" nnoremap jd :action ActivateProjectToolWindow vnoremap jd :action ActivateProjectToolWindow " Jump to character (AceJump plugin required) +let g:WhichKeyDesc_JumpJoinSplit_JumpToCharacter = "jj jump-to-character" nnoremap jj :action AceAction vnoremap jj :action AceAction " Jump to line (AceJump plugin required) +let g:WhichKeyDesc_JumpJoinSplit_JumpToLine = "jl jump-to-line" nnoremap jl :action AceLineAction vnoremap jl :action AceLineAction " Insert new line and move down +let g:WhichKeyDesc_JumpJoinSplit_InsertNewlineAndMoveDown = "jn insert-newline-and-move-down" nnoremap jn i vnoremap jn i " Insert new line +let g:WhichKeyDesc_JumpJoinSplit_InsertNewline = "jo insert-newline" nnoremap jo ik$ vnoremap jo ik$ diff --git a/spacemacs/leader.vim b/spacemacs/leader.vim index 097864a..c0d4be5 100644 --- a/spacemacs/leader.vim +++ b/spacemacs/leader.vim @@ -1,27 +1,42 @@ " Execute an action. Like +let g:WhichKeyDesc_Leader_Space = " M-x" nnoremap :action GotoAction vnoremap :action GotoAction " Focus last buffer -nnoremap -vnoremap +let g:WhichKeyDesc_Leader_LastBuffer = " last-buffer" +nnoremap +vnoremap -" Open the terminal window (use :! for a single shell cmd) +" Open a new terminal window (use :! for a single shell cmd) +let g:WhichKeyDesc_Leader_OpenShell = "! open-shell" nnoremap ! :action Terminal.OpenInTerminal vnoremap ! :action Terminal.OpenInTerminal -nnoremap ' :action Terminal.OpenInTerminal -vnoremap ' :action Terminal.OpenInTerminal + +" Activate terminal window +let g:WhichKeyDesc_Leader_OpenShell2 = "' open-shell" +nnoremap ' :action ActivateTerminalToolWindow +vnoremap ' :action ActivateTerminalToolWindow " Show usages for symbol. " Ideally this should be FindInPath the current word, but I think that it is " not possible. +let g:WhichKeyDesc_Leader_ShowUsages = "* show-usages" nnoremap * :action ShowUsages vnoremap * :action ShowUsages " Comment lines +let g:WhichKeyDesc_Leader_Comment = ";; comment" nnoremap ;; :action CommentByLineComment +let g:WhichKeyDesc_Leader_Comment2 = "; comment" vnoremap ; :action CommentByLineComment " Show key bindings +let g:WhichKeyDesc_Leader_ShowKeybindings = "? show-keybindings" nnoremap ? :map vnoremap ? :map + +" Search in project files +let g:WhichKeyDesc_Leader_SearchProject = "/ search-project" +nnoremap / :action FindInPath +vnoremap / :action FindInPath diff --git a/spacemacs/misc.vim b/spacemacs/misc.vim index 8fcf165..43e0c59 100644 --- a/spacemacs/misc.vim +++ b/spacemacs/misc.vim @@ -1,22 +1,27 @@ """ Key bindings that do not have as first key " Go to next change +let g:WhichKeyDesc_Misc_GotoNextChange = "g, goto-next-change" nnoremap g, :action JumpToNextChange vnoremap g, :action JumpToNextChange " Go to last change +let g:WhichKeyDesc_Misc_GotoLastChange = "g; goto-last-change" nnoremap g; :action JumpToLastChange vnoremap g; :action JumpToLastChange " Go to declaration +let g:WhichKeyDesc_Misc_JumpToDefinition = "gd jump-to-definition" nnoremap gd :action GotoDeclaration vnoremap gd :action GotoDeclaration " Collapse all folds +let g:WhichKeyDesc_Misc_CloseFolds = "zm close-folds" nnoremap zm :action CollapseAllRegions vnoremap zm :action CollapseAllRegions " Open all folds +let g:WhichKeyDesc_Misc_OpenFolds = "zr open-folds" nnoremap zr :action ExpandAllRegions vnoremap zr :action ExpandAllRegions diff --git a/spacemacs/narrow-numbers.vim b/spacemacs/narrow-numbers.vim index a64ad58..cc997e3 100644 --- a/spacemacs/narrow-numbers.vim +++ b/spacemacs/narrow-numbers.vim @@ -1,11 +1,14 @@ " Increment number. " As usual you can press '.' to repeat this action again. +let g:WhichKeyDesc_NarrowNumbers_IncrementNumber = "n+ increment-number" nnoremap n+ vnoremap n+ +let g:WhichKeyDesc_NarrowNumbers_IncrementNumberAlt = "n= increment-number" nnoremap n= vnoremap n= " Decrement number. " As usual you can press '.' to repeat this action again. +let g:WhichKeyDesc_NarrowNumbers_DecrementNumber = "n- decrement-number" nnoremap n- vnoremap n- diff --git a/spacemacs/projects.vim b/spacemacs/projects.vim index 41f89f3..c2e82c7 100644 --- a/spacemacs/projects.vim +++ b/spacemacs/projects.vim @@ -1,20 +1,26 @@ -" Open terminal in project root +" Activate terminal window +let g:WhichKeyDesc_Projects_OpenShell = "p! open-shell" nnoremap p! :action ActivateTerminalToolWindow vnoremap p! :action ActivateTerminalToolWindow " Toggle between implementation file and its test file +let g:WhichKeyDesc_Projects_ToggleBetweenImplAndTestFile = "pa toggle-between-impl-and-test-file" nnoremap pa :action GotoTest vnoremap pa :action GotoTest " Switch among recently opened files +let g:WhichKeyDesc_Projects_ListBuffers = "pb list-buffers" nnoremap pb :action RecentFiles vnoremap pb :action RecentFiles +let g:WhichKeyDesc_Projects_ListBuffersAlt = "ph list-buffers" nnoremap ph :action RecentFiles vnoremap ph :action RecentFiles +let g:WhichKeyDesc_Projects_RecentFiles = "pr recent-files" nnoremap pr :action RecentFiles vnoremap pr :action RecentFiles " Make project +let g:WhichKeyDesc_Projects_CompileProject = "pc compile-project" nnoremap pc :action CompileDirty vnoremap pc :action CompileDirty @@ -22,31 +28,39 @@ vnoremap pc :action CompileDirty " Sadly when you are inside the project window this key binding does not work " anymore. You can use if you want to close the window or if you " want to leave the window opened and focus on the code. +let g:WhichKeyDesc_Projects_Window = "pD project-window" nnoremap pD :action ActivateProjectToolWindow vnoremap pD :action ActivateProjectToolWindow +let g:WhichKeyDesc_Projects_Tree = "pt file-tree" nnoremap pt :action ActivateProjectToolWindow vnoremap pt :action ActivateProjectToolWindow " Find files +let g:WhichKeyDesc_Projects_GotoFile = "pf goto-file" nnoremap pf :action GotoFile vnoremap pf :action GotoFile " Invalidate cache +let g:WhichKeyDesc_Projects_InvalidateCaches = "pI invalidate-caches" nnoremap pI :action InvalidateCaches vnoremap pI :action InvalidateCaches " Recent projects +let g:WhichKeyDesc_Projects_RecentProjects = "pp recent-projects" nnoremap pp :action ManageRecentProjects vnoremap pp :action ManageRecentProjects " Replace in path +let g:WhichKeyDesc_Projects_ReplaceInFiles = "pR replace-in-files" nnoremap pR :action ReplaceInPath vnoremap pR :action ReplaceInPath " Rerun tests +let g:WhichKeyDesc_Projects_RerunTets = "pT rerun-tests" nnoremap pT :action RerunTests vnoremap pT :action RerunTests " Show local changes (git status) +let g:WhichKeyDesc_Projects_ShowVersionControlChanges = "pv show-version-control-changes" nnoremap pv :action Vcs.Show.Local.Changes vnoremap pv :action Vcs.Show.Local.Changes diff --git a/spacemacs/quit.vim b/spacemacs/quit.vim index 9047d06..5787429 100644 --- a/spacemacs/quit.vim +++ b/spacemacs/quit.vim @@ -1,13 +1,25 @@ " Close project +let g:WhichKeyDesc_Quit_CloseProject = "qf close-project" nnoremap qf :action CloseProject vnoremap qf :action CloseProject +let g:WhichKeyDesc_Quit_CloseProjectAlt = "qq close-project" nnoremap qq :action CloseProject vnoremap qq :action CloseProject " Exit (close all projects) +let g:WhichKeyDesc_Quit_CloseAllProjects = "qQ close-all-projects" nnoremap qQ :action Exit vnoremap qQ :action Exit +" Restart +let g:WhichKeyDesc_Quit_Restart = "qR restart" +nnoremap qR :action InvalidateCaches +vnoremap qR :action InvalidateCaches +let g:WhichKeyDesc_Quit_RestartAlt = "qr restart" +nnoremap qr :action InvalidateCaches +vnoremap qr :action InvalidateCaches + " Save all and close project +let g:WhichKeyDesc_Quit_SaveAllAndCloseProject = "qs save-all-close-project" nnoremap qs :action SaveAll:action CloseProject vnoremap qs :action SaveAll:action CloseProject diff --git a/spacemacs/registers-rings-resume.vim b/spacemacs/registers-rings-resume.vim index d32567b..b536802 100644 --- a/spacemacs/registers-rings-resume.vim +++ b/spacemacs/registers-rings-resume.vim @@ -1,17 +1,22 @@ " Switch among recently opened files +let g:WhichKeyDesc_RegistersRingsResume_ListBuffers = "rb list-buffers" nnoremap rb :action RecentFiles vnoremap rb :action RecentFiles +let g:WhichKeyDesc_RegistersRingsResume_ListBuffersAlt = "rB list-buffers" nnoremap rB :action RecentFiles vnoremap rB :action RecentFiles " Show registers +let g:WhichKeyDesc_RegistersRingsResume_ShowRegisters = "re show-registers" nnoremap re :reg vnoremap re :reg " Search in project +let g:WhichKeyDesc_RegistersRingsResume_SearchProject = "rs search-project" nnoremap rs :action FindInPath vnoremap rs :action FindInPath " Show kill ring +let g:WhichKeyDesc_RegistersRingsResume_ShowKillRing = "ry show-kill-ring" nnoremap ry :action PasteMultiple vnoremap ry :action PasteMultiple diff --git a/spacemacs/search-symbol.vim b/spacemacs/search-symbol.vim index 8af7563..d30f09c 100644 --- a/spacemacs/search-symbol.vim +++ b/spacemacs/search-symbol.vim @@ -1,23 +1,30 @@ " Clear search highlights. +let g:WhichKeyDesc_SearchSymbol_ClearHighlight = "sc clear-highlight" nnoremap sc :nohlsearch vnoremap sc :nohlsearch " Rename symbol +let g:WhichKeyDesc_SearchSymbol_RenameElement = "se rename-element" nnoremap se :action RenameElement vnoremap se :action RenameElement " Highlight current symbol. Do it again to toggle highlight. +let g:WhichKeyDesc_SearchSymbol_HighlightUsages = "sh highlight-usages" nnoremap sh :action HighlightUsagesInFile vnoremap sh :action HighlightUsagesInFile " Find usages +let g:WhichKeyDesc_SearchSymbol_FindUsages = "sP find-usages" nnoremap sP :action FindUsages vnoremap sP :action FindUsages -" Search in project. Unfortunately / does not work. +" Search in project. +let g:WhichKeyDesc_SearchSymbol_SearchProject = "sp search-project" nnoremap sp :action FindInPath vnoremap sp :action FindInPath +let g:WhichKeyDesc_SearchSymbol_ResumeLastSearch = "sl resume-last-search" nnoremap sl :action FindInPath vnoremap sl :action FindInPath +let g:WhichKeyDesc_SearchSymbol_Swoop = "ss swoop" nnoremap ss :action FindInPath vnoremap ss :action FindInPath diff --git a/spacemacs/text.vim b/spacemacs/text.vim index 3d1edd4..25108af 100644 --- a/spacemacs/text.vim +++ b/spacemacs/text.vim @@ -1,37 +1,60 @@ " Count words and characters +let g:WhichKeyDesc_Text_CountWordsAndCharacters = "xc count-words-and-characters" nnoremap xc g vnoremap xc g + +""" Words Submenu --------------------------------- +let g:WhichKeyDesc_Text_Words = "xw +words" + +let g:WhichKeyDesc_Text_Words_CountWordsAndCharacters = "xwc count-words-and-characters" nnoremap xwc g vnoremap xwc g +""" --------------------------------------------- + +""" Delete Submenu --------------------------------- +let g:WhichKeyDesc_Text_Delete = "xd +delete" " Delete all spaces except one +let g:WhichKeyDesc_Text_Delete_HungryBackspace = "xd hungry-backspace" nnoremap xd wh:action EditorHungryBackSpace vnoremap xd wh:action EditorHungryBackSpace +""" --------------------------------------------- " Alternate string inflection (CamelCase plugin required) +let g:WhichKeyDesc_Text_ToggleCamelCase = "xi toggle-camel-case" nnoremap xi :action de.netnexus.CamelCasePlugin.ToggleCamelCase vnoremap xi :action de.netnexus.CamelCasePlugin.ToggleCamelCase " Move lines down +let g:WhichKeyDesc_Text_MoveLinesDown = "xJ move-lines-down" nnoremap xJ $:action MoveLineDown vnoremap xJ $:action MoveLineDown " Move lines up +let g:WhichKeyDesc_Text_MoveLinesUp = "xK move-lines-up" nnoremap xK $:action MoveLineUp vnoremap xK $:action MoveLineUp +""" Transpose Submenu --------------------------------- +let g:WhichKeyDesc_Text_Transpose = "xt +transpose" + " Transpose characters +let g:WhichKeyDesc_Text_Transpose_Characters = "xtc transpose-characters" nnoremap xtc xhP vnoremap xtc xhP " Transpose lines +let g:WhichKeyDesc_Text_Transpose_Lines = "xtl transpose-lines" nnoremap xtl ddkP vnoremap xtl ddkP +""" --------------------------------------------- " Upcase region +let g:WhichKeyDesc_Text_UpcaseRegion = "xU upcase-region" nnoremap xU vU vnoremap xU U " Downcase region +let g:WhichKeyDesc_Text_DowncaseRegion = "xu downcase-region" nnoremap xu vu vnoremap xu u diff --git a/spacemacs/toggles.vim b/spacemacs/toggles.vim index 4595337..740833a 100644 --- a/spacemacs/toggles.vim +++ b/spacemacs/toggles.vim @@ -1,19 +1,24 @@ " Toggle show indent guide +let g:WhichKeyDesc_Toggles_IndentLines = "ti indent-lines" nnoremap ti :action EditorToggleShowIndentLines vnoremap ti :action EditorToggleShowIndentLines " Toggle truncate lines +let g:WhichKeyDesc_Toggles_SoftWraps = "tl soft-wraps" nnoremap tl :action EditorToggleUseSoftWraps vnoremap tl :action EditorToggleUseSoftWraps " Toggle line numbers +let g:WhichKeyDesc_Toggles_LineNumbers = "tn line-numbers" nnoremap tn :action EditorToggleShowLineNumbers vnoremap tn :action EditorToggleShowLineNumbers " Toggle relative line numbers +let g:WhichKeyDesc_Toggles_RelativeLineNumbers = "tr relative-line-numbers" nnoremap tr :set relativenumber! vnoremap tr :set relativenumber! " Toggle Show Whitespaces +let g:WhichKeyDesc_Toggles_ShowWhitespace = "tw show-whitespace" nnoremap tw :action EditorToggleShowWhitespaces vnoremap tw :action EditorToggleShowWhitespaces diff --git a/spacemacs/ui_toogles-themes.vim b/spacemacs/ui_toogles-themes.vim index 71ddb8a..82fe3ed 100644 --- a/spacemacs/ui_toogles-themes.vim +++ b/spacemacs/ui_toogles-themes.vim @@ -1,3 +1,4 @@ " Toggle distraction free mode +let g:WhichKeyDesc_UiTogglesThemes_DistractionFreeMode = "Tt distraction-free-mode" nnoremap Tt :action ToggleDistractionFreeMode vnoremap Tt :action ToggleDistractionFreeMode diff --git a/spacemacs/windows.vim b/spacemacs/windows.vim index 372ef0a..a7b07fa 100644 --- a/spacemacs/windows.vim +++ b/spacemacs/windows.vim @@ -1,61 +1,81 @@ " Split window right +let g:WhichKeyDesc_Windows_SplitWindowRight = "w/ split-window-right" nnoremap w/ :action SplitVertically vnoremap w/ :action SplitVertically +let g:WhichKeyDesc_Windows_SplitWindowRightV = "wv split-window-right" nnoremap wv :action SplitVertically vnoremap wv :action SplitVertically " Split window below +let g:WhichKeyDesc_Windows_SplitWindowBelow = "w- split-window-below" nnoremap w- :action SplitHorizontally vnoremap w- :action SplitHorizontally +let g:WhichKeyDesc_Windows_SplitWindowBelowS = "ws split-window-below" nnoremap ws :action SplitHorizontally vnoremap ws :action SplitHorizontally " Close window +let g:WhichKeyDesc_Windows_DeleteWindow = "wd delete-window" nnoremap wd :action CloseAllEditors vnoremap wd :action CloseAllEditors +let g:WhichKeyDesc_Windows_DeleteWindowX = "wx delete-window" nnoremap wx :action CloseAllEditors vnoremap wx :action CloseAllEditors " Focus window left +let g:WhichKeyDesc_Windows_WindowLeftH = "wh window-left" nnoremap wh h vnoremap wh h +let g:WhichKeyDesc_Windows_WindowLeft = "w window-left" nnoremap w h vnoremap w h " Focus window down +let g:WhichKeyDesc_Windows_WindowDownJ = "wj window-down" nnoremap wj j vnoremap wj j +let g:WhichKeyDesc_Windows_WindowDown = "w window-down" nnoremap w j vnoremap w j " Focus window up +let g:WhichKeyDesc_Windows_WindowUpK = "wk window-up" nnoremap wk k vnoremap wk k +let g:WhichKeyDesc_Windows_WindowUp = "w window-up" nnoremap w k vnoremap w k " Focus window right +let g:WhichKeyDesc_Windows_WindowRightL = "wl window-right" nnoremap wl l vnoremap wl l +let g:WhichKeyDesc_Windows_WindowRight = "w window-right" nnoremap w l vnoremap w l " Focus next project +let g:WhichKeyDesc_Windows_OtherFrame = "wo other-frame" nnoremap wo :action NextProjectWindow vnoremap wo :action NextProjectWindow " Show Event Log window +let g:WhichKeyDesc_Windows_Popup = "wp +popup" +let g:WhichKeyDesc_Windows_Popup_Messages = "wpm messages" nnoremap wpm :action ActivateEventLogToolWindow vnoremap wpm :action ActivateEventLogToolWindow " Split window below and focus +let g:WhichKeyDesc_Windows_SplitWindowBelowAndFocus = "wS split-window-below-and-focus" nnoremap wS sj vnoremap wS sj " Split window right and focus +let g:WhichKeyDesc_Windows_SplitWindowRightAndFocus = "wV split-window-right-and-focus" nnoremap wV vl vnoremap wV vl " Focus next window +let g:WhichKeyDesc_Windows_OtherWindow = "ww other-window" nnoremap ww :action NextSplitter vnoremap ww :action NextSplitter diff --git a/spacemacs/zoom.vim b/spacemacs/zoom.vim index cb60eb6..2d7b984 100644 --- a/spacemacs/zoom.vim +++ b/spacemacs/zoom.vim @@ -1,13 +1,19 @@ +let g:WhichKeyDesc_Zoom_FontSize = "zx +font-size" + " Increase font size +let g:WhichKeyDesc_Zoom_FontSize_Increase = "zx+ increase" nnoremap zx+ :action EditorIncreaseFontSize vnoremap zx+ :action EditorIncreaseFontSize +let g:WhichKeyDesc_Zoom_FontSize_IncreaseAlt = "zx= increase" nnoremap zx= :action EditorIncreaseFontSize vnoremap zx= :action EditorIncreaseFontSize " Decrease font size +let g:WhichKeyDesc_Zoom_FontSize_Decrease = "zx- decrease" nnoremap zx- :action EditorDecreaseFontSize vnoremap zx- :action EditorDecreaseFontSize " Reset font size +let g:WhichKeyDesc_Zoom_FontSize_Reset = "zx0 reset" nnoremap zx0 :action EditorResetFontSize vnoremap zx0 :action EditorResetFontSize diff --git a/which-key.vim b/which-key.vim new file mode 100644 index 0000000..fd5df04 --- /dev/null +++ b/which-key.vim @@ -0,0 +1,10 @@ +""" Settings for https://plugins.jetbrains.com/plugin/15976-idea-which-key + +" Enable which-key extension +set which-key + +" Disable which-key timeout, i.e. show the menu until you press a key +set notimeout + +" Show the menu also for default Vim actions like `gg` or `zz`. +let g:WhichKey_ShowVimActions = "true"