From 13cc065ec014b86369dfe4ad60d1a43fa06fd251 Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Thu, 17 Sep 2026 19:45:23 +0100 Subject: dotfiles Shell, editor and terminal configuration, the tools that go with them, and szecret, an age-based secret manager whose store lives elsewhere. History restarts here. What came before was not written to be read by anyone else, and carried machine names, addresses and an encrypted secret store; it is kept privately instead. What is left is meant to be safe on any machine, including one whose owner is not me: see CLAUDE.md for the rule it is written to. --- config/ideavimrc | 215 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 config/ideavimrc (limited to 'config/ideavimrc') diff --git a/config/ideavimrc b/config/ideavimrc new file mode 100644 index 0000000..9641325 --- /dev/null +++ b/config/ideavimrc @@ -0,0 +1,215 @@ +"" Source your .vimrc +"source ~/.vimrc + +"" -- 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=5 + +" Do incremental searching. +set incsearch + +" Don't use Ex mode, use Q for formatting. +map Q gq + + +"" -- 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) + +"" Map \b to toggle the breakpoint on the current line +"map \b (ToggleLineBreakpoint) + + +" Find more examples here: https://jb.gg/share-ideavimrc + +"" .ideavimrc - Matt Chapman + + +"" Base Settings +"" ======================================================== + +set scrolloff=10 +set linenumber +set showmode +set showcmd + +set smartcase +set incsearch +set hlsearch + +set visualbell + +" Use system clipboard +set clipboard+=unnamed + +let mapleader = " " + + +"" Plugin Settings +"" ======================================================== + +set surround +set highlightedyank +set nerdtree + +" Which-key settings +set which-key +let g:WhichKey_FontSize = 16 +let g:WhichKey_CommandColor = "#41ead4" +let g:WhichKey_PrefixColor = "#f335b2" +let g:WhichKey_SortOrder = "by_key_prefix_first" + +let g:WhichKeyDesc_leader = " Leader key" + +let g:WhichKeyDesc_leader = "x Open file explorer" + +let g:WhichKeyDesc_comment = "c Comment line" + +let g:WhichKeyDesc_fold = "z Folding" +let g:WhichKeyDesc_fold_all = "zc Fold all regions" +let g:WhichKeyDesc_unfold_all = "zo Unfold all regions" + +let g:WhichKeyDesc_window = "w Window splits" +let g:WhichKeyDesc_window_split_vertically = "wv Split vertically" +let g:WhichKeyDesc_window_split_horizontally = "wh Split horizontally" +let g:WhichKeyDesc_window_split_unsplit = "wu Unsplit" +let g:WhichKeyDesc_window_split_move_editor = "wm Move editor to opposite tab group" + + +let g:WhichKeyDesc_display = "d Display options" +let g:WhichKeyDesc_zen_mode = "dz Toggle Zen mode" +let g:WhichKeyDesc_df_mode = "dd Toggle Distraction-Free mode" +let g:WhichKeyDesc_fullscreen = "df Toggle full screen" + +let g:WhichKeyDesc_action= "a Actions" +let g:WhichKeyDesc_action_context_menu = "am Open context menu" +let g:WhichKeyDesc_action_search = "as Open command modal" + +let g:WhichKeyDesc_file_quickLook = " Recent files" + +let g:WhichKeyDesc_file_nav = "f File navigation" +let g:WhichKeyDesc_file_nav_goto_file = "ff Go to file" +let g:WhichKeyDesc_file_nav_goto_content = "fc Search for file content" +let g:WhichKeyDesc_file_nav_show_recent_files = "fr Show recent files" +let g:WhichKeyDesc_file_nav_show_recent_locations = "fl Show recent locations" + +let g:WhichKeyDesc_close_tab = "q Close active tab" + +let g:WhichKeyDesc_refactoring = "r Refactoring menu" +let g:WhichKeyDesc_refactoring_rename = "rn Rename element" +let g:WhichKeyDesc_refactoring_method = "rm Extract method" +let g:WhichKeyDesc_refactoring_variable = "rv Introduce variable" +let g:WhichKeyDesc_refactoring_field = "rf Introduce field" +let g:WhichKeyDesc_refactoring_signature = "rs Change signature" +let g:WhichKeyDesc_refactoring_all = "rr Open refactorings list" + +let g:WhichKeyDesc_goto = "g Go to X" +let g:WhichKeyDesc_goto_declaration = "gd Go to Definition" +let g:WhichKeyDesc_goto_type_declaration = "gy Go to Type Definition" +let g:WhichKeyDesc_goto_implementation = "gi Go to Implementation" +let g:WhichKeyDesc_goto_usages = "gu Go to Usages" +let g:WhichKeyDesc_goto_test = "gt Go to Test" +let g:WhichKeyDesc_goto_back = "gb Go Back" +let g:WhichKeyDesc_goto_forward = "gf Go Forward" + +let g:WhichKeyDesc_git = "g Git operations" +let g:WhichKeyDesc_git_commit = "gc Open Git commit dialog" +let g:WhichKeyDesc_git_status = "gs Open Git status dialog" +let g:WhichKeyDesc_git_branches = "gb Open Git branches list" + +let g:WhichKeyDesc_errors = "e Error navigation" +let g:WhichKeyDesc_errors_next = "en Go to next error in solution" +let g:WhichKeyDesc_errors_prev = "ep Go to previous error in solution" + + +"" Key mappings +"" ======================================================== + + +" Tab navigation +" nnoremap :tabnext +" nnoremap :tabprev + + +" Jump between methods +" nnoremap [[ (MethodUp) +" nnoremap ]] (MethodDown) + +" Easy visual indentation +" vnoremap < >gv + +" Popup navigation +inoremap (PopupMenu-selectNext) +inoremap (PopupMenu-selectPrev) + + +"" Leader commands +"" ======================================================== + +" Comment lines +map gcc (CommentByLineComment) + +" Open NERDTree (use q to exit) +map / :NERDTreeToggle + +" Folding +map zc :action CollapseAllRegions +map zo :action ExpandAllRegions + +" Window splits +map wv (SplitVertically) +map ws (SplitHorizontally) +map wu (Unsplit) +map wm (MoveEditorToOppositeTabGroup) + +" Display options +map dd (ToggleDistractionFreeMode) +map dz (ToggleZenMode) +map df (ToggleFullScreen) + +" Actions +map am (ShowIntentionActions) +map as (SearchEverywhere) + +" File navigation +map ff (GotoFile) +map fr (RecentFiles) +map fc (FindInPath) +map (RecentFiles) +map fl (RecentLocations) +map fs (NewScratchFile) + +" Close active tab +map q (CloseContent) + +" Refactoring +map rn (RenameElement) +map rm (ExtractMethod) +map rv (IntroduceVariable) +map rf (IntroduceField) +map rs (ChangeSignature) +map rr (Refactorings.QuickListPopupAction) + +" Go to code +nmap gd (GotoDeclaration) +nmap gy (GotoTypeDeclaration) +nmap gi (GotoImplementation) +nmap gu (ShowUsages) +nmap gt (GotoTest) +nmap gf (Back) +nmap gb (Forward) + +" Git windows +" map gc (CheckinProject) +" map gs (ActivateVersionControlToolWindow) +" map gb (Git.Branches) + +" Errors +map en (ReSharperGotoNextErrorInSolution) +map ep (ReSharperGotoPrevErrorInSolution) + -- cgit v1.2.3