From 07264c594fd28c8a19c9d5c31035140092ab7303 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Mon, 16 Jun 2025 14:03:00 +0300 Subject: [PATCH] chore(config): ideavim config tweaks Signed-off-by: Ismo Vuorinen --- config/ideavim/ideavimrc | 47 ++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/config/ideavim/ideavimrc b/config/ideavim/ideavimrc index a54b751..266e583 100644 --- a/config/ideavim/ideavimrc +++ b/config/ideavim/ideavimrc @@ -6,10 +6,41 @@ source $HOME/.dotfiles/config/vim/vimrc let mapleader = "\" set clipboard+=unnamed +set cursorline " Highlight current line +set nocompatible " disable compatibility mode with vi +filetype off " disable filetype detection (but re-enable later, see below) +set undolevels=1000 " Number of undo levels +set backspace=indent,eol,start " Backspace behaviour + +" 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 + +call plug#begin('~/.config/vim/plugged') +" Plug 'ayu-theme/ayu-vim' +call plug#end() set ideajoin +set ideastatusicon=gray set ideamarks set idearefactormode=normal +set which-key +set mini-ai + +" which-key settings +" https://github.com/TheBlob42/idea-which-key +let g:WhichKey_ShowVimActions = "true" +let g:WhichKey_DefaultDelay = 600 " make the popup appear much slower +let g:WhichKey_PrefixStyle = "bold" + +" disable the timeout option +set notimeout " Map esc to :noh map :noh @@ -31,7 +62,6 @@ nmap ss (GotoSymbol) nmap fl (RecentLocations) nmap fc (FindInPath) nmap fr (RecentFiles) -nmap fe :NERDTreeToggle nmap fu :action FindUsages nmap ff :action GotoFile nmap fi (SelectIn) @@ -186,25 +216,14 @@ nmap :action AddToHarpoon " --- -set cursorline " Highlight current line -set nocompatible " disable compatibility mode with vi -filetype off " disable filetype detection (but re-enable later, see below) -set undolevels=1000 " Number of undo levels -set backspace=indent,eol,start " Backspace behaviour - -" Don't use Ex mode, use Q for formatting. -map Q gq - syntax enable filetype plugin indent on -call plug#begin('~/.config/vim/plugged') -" Plug 'ayu-theme/ayu-vim' -call plug#end() - set termguicolors if has('gui_running') set macligatures set guifont=JetBrainsMono:h14 endif + +" vim: set filetype=vim : \ No newline at end of file