From 9b509bcc2126990eb4123ad71c826297c526c4da Mon Sep 17 00:00:00 2001 From: CelticBoozer Date: Mon, 9 Feb 2026 15:34:01 +0300 Subject: [PATCH 1/2] feat(ideavimrc): add few new features, add easymove config, refactor config --- .ideavimrc | 289 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 199 insertions(+), 90 deletions(-) diff --git a/.ideavimrc b/.ideavimrc index d7266c7..4eade98 100644 --- a/.ideavimrc +++ b/.ideavimrc @@ -1,153 +1,262 @@ -" Set basics -" ================================================================================================== -set clipboard=unnamedplus -set guicursor=n-v-c:block,i-ci-ve:ver20,r-cr-o:hor20 -set hlsearch -set ignorecase -set incsearch -set showcmd -set showmode -set smartcase -set visualbell -set colorcolumn=100 -set cursorline -set list -set relativenumber -set notimeout +" ================================================================================================== +" CORE SETTINGS +" ================================================================================================== +" Map Leader Key to Backslash let mapleader ="\" -" Plugin settings +" Clipboard & Editing behavior +set clipboard=unnamedplus " Use system clipboard +set scrolloff=10 " Keep 10 lines visible above/below cursor +set ideaput " Use IDE's paste handling +set ideajoin " Use IDE's line join handling +set notimeout " Disable timeout for mappings + +" UI & Visuals +set guicursor=n-v-c:block,i-ci-ve:ver20,r-cr-o:hor20 " Cursor styles +set visualbell " No beep sound +set colorcolumn=100 " Line length marker +set cursorline " Highlight current line +set list " Show whitespace characters +set relativenumber " Relative line numbers +set showcmd " Show command in bottom bar +set showmode " Show current mode (Normal/Insert) + +" Search Settings +set hlsearch " Highlight search results +set incsearch " Incremental search +set ignorecase " Ignore case when searching... +set smartcase " ...unless uppercase letters are used + +" Clear search highlighting with Esc +nnoremap :nohlsearch + +" ================================================================================================== +" PLUGIN ENABLEMENT " ================================================================================================== set nerdtree set sneak set surround - -" Highlightedyank settings +set easymotion set highlightedyank +set which-key + +" ================================================================================================== +" PLUGIN CONFIGURATION: Visuals +" ================================================================================================== + +" --- Highlightedyank Settings --- +let g:highlightedyank_highlight_duration = "200" let g:highlightedyank_highlight_color = "rgba(216, 166, 87, 155)" let g:highlightedyank_highlight_foreground_color = "rgba(50, 48, 47, 255)" -" Which-key settings -set which-key +" --- Which-key Visual Settings --- let g:WhichKey_FontSize = 16 let g:WhichKey_KeyColor = "#e78a4e" let g:WhichKey_PrefixColor = "#7daea3" let g:WhichKey_CommandColor = "#a9b665" let g:WhichKey_SortOrder = "by_key_prefix_first" +" Define Leader key description let g:WhichKeyDesc_leader = " Leader key" +" ================================================================================================== +" NAVIGATION & GENERAL MAPPINGS +" ================================================================================================== + +" --- General Window/Buffer Navigation --- +nnoremap h +nnoremap j +nnoremap k +nnoremap l + +" --- Tab Navigation (Replaces standard H/L) --- +" Use H and L to switch between editor tabs +nnoremap L :action NextTab +nnoremap H :action PreviousTab + +" --- Closing Buffers --- let g:WhichKeyDesc_recent = " Recent files" +map (RecentFiles) + +" Close current tab +let g:WhichKeyDesc_close_tab = "q Close current tab" +nnoremap q :action CloseContent +" Close all OTHER tabs +let g:WhichKeyDesc_close_others = "Q Close other tabs" +nnoremap Q :action CloseAllEditorsButActive + +" Reopen closed tab (Changed from 'tr' to 'tu' to avoid conflict with Tool-Run) +let g:WhichKeyDesc_reopen_tab = "tu Reopen closed tab (Undo)" +nnoremap tu :action ReopenClosedTab + +" --- General Actions --- +map (CloseContent) +imap (CloseContent) +map U (Redo) +nnoremap Q @q " Enable macros with Q + +" ================================================================================================== +" PLUGIN CONFIGURATION: EasyMotion +" ================================================================================================== +" Disable default mappings to avoid conflicts +let g:EasyMotion_do_mapping = 0 +" Enable smartcase (abc finds ABC, but Abc finds only Abc) +let g:EasyMotion_smartcase = 1 + +" --- S-Key Navigation (2-char search) --- +" Usage: Press s, then type 2 chars to jump anywhere +let g:WhichKeyDesc_easymotion_s = "s Jump to Char (EasyMotion)" +nmap s (easymotion-s2) +vmap s (easymotion-s2) + +" --- Vertical Line Navigation --- +let g:WhichKeyDesc_easymotion_j = "j Jump Line Down" +map j (easymotion-j) + +let g:WhichKeyDesc_easymotion_k = "k Jump Line Up" +map k (easymotion-k) + +" ================================================================================================== +" GROUP: Tool Windows (t...) +" ================================================================================================== let g:WhichKeyDesc_tool = "t Tool window menu" + let g:WhichKeyDesc_tool_file = "te File explorer" +map te (ActivateProjectToolWindow) + let g:WhichKeyDesc_tool_terminal = "tt Terminal window" +map tt (ActivateTerminalToolWindow) + let g:WhichKeyDesc_tool_git = "tg Git window" +map tg (ActivateVersionControlToolWindow) + let g:WhichKeyDesc_tool_commit = "tc Commit window" +map tc (ActivateCommitToolWindow) + let g:WhichKeyDesc_tool_problem = "tl Problems window" +map tl (ActivateProblemsViewToolWindow) + let g:WhichKeyDesc_tool_run = "tr Run window" +map tr (ActivateRunToolWindow) + let g:WhichKeyDesc_tool_database = "tb Database window" +map tb (ActivateDatabaseToolWindow) + let g:WhichKeyDesc_tool_structure = "to Outline structure window" +map to (ActivateStructureToolWindow) + let g:WhichKeyDesc_tool_maven = "tm Maven window" +map tm (ActivateMavenToolWindow) + let g:WhichKeyDesc_tool_checkstyle = "ts Checkstyle window" -let g:WhichKeyDesc_tool_debug = "td Debug window" +map ts (ActivateCheckStyleToolWindow) -let g:WhichKeyDesc_execution = "e Execution menu" -let g:WhichKeyDesc_execution_run = "er Run" -let g:WhichKeyDesc_execution_run_config = "eR Choose run configuration" -let g:WhichKeyDesc_execution_stop = "es Stop" +let g:WhichKeyDesc_tool_debug = "td Debug window" +map td (ActivateDebugToolWindow) -let g:WhichKeyDesc_debug = "d Debug menu" -let g:WhichKeyDesc_debug_start = "de Strat debug" -let g:WhichKeyDesc_debug_add_breakpoint = "db Add Breakpoint" +" ================================================================================================== +" GROUP: Search & GoTo (g... / f...) +" ================================================================================================== +let g:WhichKeyDesc_go_to = "g Go to menu" +let g:WhichKeyDesc_search = "f Search" -let g:WhichKeyDesc_split = "w Split menu" -let g:WhichKeyDesc_split_vertically = "ws Split vertically" -let g:WhichKeyDesc_split_horizontally = "wS Split horizontally" +" Search Everywhere +let g:WhichKeyDesc_search_all = "ff Search everywhere" +map ff (SearchEverywhere) -let g:WhichKeyDesc_refactor = "r Refactor menu" -let g:WhichKeyDesc_refactor_rename = "rn Rename element" -let g:WhichKeyDesc_refactor_reformat_code = "rf Reformat code" -let g:WhichKeyDesc_refactor_action_list = "rr Actions list" +" Search References / Usages +let g:WhichKeyDesc_search_references = "fr Search references" +map fr (ShowUsages) -let g:WhichKeyDesc_go_to = "g Go to menu" +" Go To Definitions let g:WhichKeyDesc_go_to_declaration = "gd Go to declaration" +map gd (GotoDeclaration) + let g:WhichKeyDesc_go_to_type_declaration = "gy Go to type declaration" -let g:WhichKeyDesc_go_to_implementation = "gi Go to implementation" -let g:WhichKeyDesc_go_to_test = "gt Go to test" -let g:WhichKeyDesc_go_to_back = "gb Go back" -let g:WhichKeyDesc_go_to_forward = "gn Go forward" +map gy (GotoTypeDeclaration) -let g:WhichKeyDesc_action = "a Actions" -let g:WhichKeyDesc_action_context = "aa Show intention actions" -let g:WhichKeyDesc_action_generate = "ag Generate" +let g:WhichKeyDesc_go_to_implementation = "gi Go to implementation" +map gi (GotoImplementation) +let g:WhichKeyDesc_go_to_test = "gs Go to test" +map gs (GotoTest) -let g:WhichKeyDesc_search = "f Search" -let g:WhichKeyDesc_search_all = "ff Search everywhere" -let g:WhichKeyDesc_search_references = "fr Search references" +" Navigate Back/Forward in history +let g:WhichKeyDesc_go_to_back = "gb Go back" +map gb (Back) -let g:WhichKeyDesc_comment = "c Comment" -let g:WhichKeyDesc_comment_line = "cc Comment line" -let g:WhichKeyDesc_comment_block = "cb Comment block" +let g:WhichKeyDesc_go_to_forward = "gn Go forward" +map gn (Forward) " ================================================================================================== -" To get actions list, use -" General -map (CloseContent) -imap (CloseContent) -map :noh -map U (Redo) - -" Tool windows -map te :NERDTreeToggle -map tt (ActivateTerminalToolWindow) -map tg (ActivateVersionControlToolWindow) -map tc (ActivateCommitToolWindow) -map tl (ActivateProblemsViewToolWindow) -map tr (ActivateRunToolWindow) -map tb (ActivateDatabaseToolWindow) -map to (ActivateStructureToolWindow) -map tm (ActivateMavenToolWindow) -map ts (ActivateCheckStyleToolWindow) -map td (ActivateDebugToolWindow) -map (RecentFiles) +" GROUP: Execution & Debug (e...) +" ================================================================================================== +let g:WhichKeyDesc_execution = "e Execution menu" -" Code execution +let g:WhichKeyDesc_execution_run = "er Run" map er (Run) + +let g:WhichKeyDesc_execution_run_config = "eR Choose run configuration" map eR (ChooseRunConfiguration) + +let g:WhichKeyDesc_execution_run_class = "ec Run current class" +map ec (RunClass) + +let g:WhichKeyDesc_execution_stop = "es Stop" map es (Stop) -" Debug -map db (ToggleLineBreakpoint) -map de (Debug) +let g:WhichKeyDesc_execution_run_debug = "ed Run in debug mode" +map ed (Debug) -" Window splits -map ws (SplitVertically) -map wS (SplitHorizontally) +" Breakpoints +let g:WhichKeyDesc_debug_add_breakpoint = "b Add Breakpoint" +map b (ToggleLineBreakpoint) + +" ================================================================================================== +" GROUP: Refactoring (r...) +" ================================================================================================== +let g:WhichKeyDesc_refactor = "r Refactor menu" -" Refactoring +let g:WhichKeyDesc_refactor_rename = "rn Rename element" map rn (RenameElement) + +let g:WhichKeyDesc_refactor_reformat_code = "rf Reformat code" map rf (ReformatCode) + +let g:WhichKeyDesc_refactor_action_list = "rr Actions list" map rr (Refactorings.QuickListPopupAction) -" Go to code -map gd (GotoDeclaration) -map gy (GotoTypeDeclaration) -map gi (GotoImplementation) -map gs (GotoTest) -map gb (Back) -map gn (Forward) +" ================================================================================================== +" GROUP: Code Actions & Intentions (a...) +" ================================================================================================== +let g:WhichKeyDesc_action = "a Actions" -" Actions +let g:WhichKeyDesc_action_context = "aa Show intention actions" map aa (ShowIntentionActions) + +let g:WhichKeyDesc_action_generate = "ag Generate" map ag (Generate) -" Search -map ff (SearchEverywhere) -map fr (ShowUsages) +" ================================================================================================== +" GROUP: Comments (c...) +" ================================================================================================== +let g:WhichKeyDesc_comment = "c Comment" -" Comments +let g:WhichKeyDesc_comment_line = "cc Comment line" map cc (CommentByLineComment) + +let g:WhichKeyDesc_comment_block = "cb Comment block" map cb (CommentByBlockComment) + +" ================================================================================================== +" GROUP: Splits (w...) +" ================================================================================================== +let g:WhichKeyDesc_split = "w Split menu" + +let g:WhichKeyDesc_split_vertically = "ws Split vertically" +map ws (SplitVertically) + +let g:WhichKeyDesc_split_horizontally = "wS Split horizontally" +map wS (SplitHorizontally) From 8bf7c816c4f7acddfee526e472ddd37394a2ad3a Mon Sep 17 00:00:00 2001 From: CelticBoozer Date: Sun, 15 Feb 2026 01:48:11 +0300 Subject: [PATCH 2/2] backup terms --- .bin/initial-installation.sh | 14 +++++++------- .ideavimrc | 2 +- .system-config-backup/aurpkglist.txt | 1 - .system-config-backup/pkglist.txt | 1 + .system-config-backup/tlp/tlp.conf | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.bin/initial-installation.sh b/.bin/initial-installation.sh index ea78477..9dcdfb7 100755 --- a/.bin/initial-installation.sh +++ b/.bin/initial-installation.sh @@ -112,7 +112,7 @@ print_log_message $success_color "paru cache has been cleared." # Installing and configuring oh-my-zsh print_log_message $info_color "oh-my-zsh installation initiated..." -0>/dev/null sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" +sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended mv "${HOME}/.zshrc.pre-oh-my-zsh" "${HOME}/.zshrc" # Downloading all git submodules such as zsh-autosuggestions, etc... @@ -139,16 +139,16 @@ sudo mkdir "/etc/security/limits.d/" sudo cp "${HOME}/.system-config-backup/audio/audio.conf" "/etc/security/limits.d/audio.conf" print_log_message $success_color "system configs has been copied." -chsh -s /usr/bin/zsh celtic +chsh -s /usr/bin/zsh "$USER" curl -o .config/OpenRGB/plugins/effects.so https://openrgb.org/releases/plugins/effects/release_0.9/OpenRGBEffectsPlugin_0.9_Bullseye_64_f1411e1.so # Start some daemons print_log_message $info_color "enable the necessary services..." -systemctl enable transmission.service -systemctl enable tlp.service -systemctl enable greetd.service -systemctl enable swayosd-libinput-backend.service -systemctl enable reflector.service +sudo systemctl enable transmission.service +sudo systemctl enable tlp.service +sudo systemctl enable greetd.service +sudo systemctl enable swayosd-libinput-backend.service +sudo systemctl enable reflector.timer print_log_message $success_color "system installation successfully completed. Please, reboot your computer." diff --git a/.ideavimrc b/.ideavimrc index 4eade98..f24e192 100644 --- a/.ideavimrc +++ b/.ideavimrc @@ -259,4 +259,4 @@ let g:WhichKeyDesc_split_vertically = "ws Split vertically" map ws (SplitVertically) let g:WhichKeyDesc_split_horizontally = "wS Split horizontally" -map wS (SplitHorizontally) +map wS (SplitHorizontally) \ No newline at end of file diff --git a/.system-config-backup/aurpkglist.txt b/.system-config-backup/aurpkglist.txt index b6e5e92..3bd7e0f 100644 --- a/.system-config-backup/aurpkglist.txt +++ b/.system-config-backup/aurpkglist.txt @@ -28,7 +28,6 @@ python-questionary python-sentencepiece python-sse-starlette python-xlsx2csv -rate-mirrors reiserfsprogs riseup-vpn rmlint diff --git a/.system-config-backup/pkglist.txt b/.system-config-backup/pkglist.txt index 593bbf5..50cdb86 100644 --- a/.system-config-backup/pkglist.txt +++ b/.system-config-backup/pkglist.txt @@ -130,6 +130,7 @@ python-pymupdf python-pystray python-requests qemu-desktop +rate-mirrors reflector ripgrep rofi diff --git a/.system-config-backup/tlp/tlp.conf b/.system-config-backup/tlp/tlp.conf index 0141b2f..5fdfd1b 100644 --- a/.system-config-backup/tlp/tlp.conf +++ b/.system-config-backup/tlp/tlp.conf @@ -1,5 +1,5 @@ # ---------------------------------------------------------------------------- -# /etc/tlp.conf - TLP user configuration (version 1.9.0) +# /etc/tlp.conf - TLP user configuration (version 1.9.1) # See full explanation: https://linrunner.de/tlp/settings # # Copyright (c) 2025 Thomas Koch and others.