From 82b5dbb4f0f92206bd190c1d82b8e8b00564bd63 Mon Sep 17 00:00:00 2001 From: KaasKop Date: Sun, 18 Aug 2024 15:32:05 +0200 Subject: [PATCH] Started work on ideavimrc --- ideavimrc | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 ideavimrc diff --git a/ideavimrc b/ideavimrc new file mode 100644 index 0000000..6f7cd9b --- /dev/null +++ b/ideavimrc @@ -0,0 +1,65 @@ +" Base settings +set scrolloff=10 +set linenumber +set relativenumber +set showmode +set notimeout + +set showcmd +set visualbell +set clipboard+=unnamed + +set hlsearch +set incsearch +set ignorecase +set smartcase + +let mapleader = " " + +" Plugins +Plug 'easymotion/vim-easymotion' +Plug 'preservim/nerdtree' +Plug 'tpope/vim-surround' +Plug 'tpope/vim-commentary' +Plug 'machakann/vim-highlightedyank' + +" Action and plugin bindings +vnoremap < >gv + +" Map H and L to move between tabs +nmap H (NextTab) +nmap L (PreviousTab) + +nmap s (easymotion-s) +nmap e (NERDtree) + +" Code handling (commenting, renaming, refactoring etc) +" nmap cc (CommentByLineComment) +" nmap cr ( + +" 'GOTO' commands +nmap gd (GotoDeclaration) +nmap gy (GotoTypeDeclaration) +nmap gi (GotoImplementation) +nmap gu (ShowUsages) +nmap gt (GotoTest) +nmap gb (Back) +nmap gf (Forward) + +" (open) File management +nmap ff (GotoFile) +nmap / (FindInPath) + +" Buffer (tab) management +nmap bd (CloseContent) +nmap br (CloseAllToTheRight) +nmap bl (CloseAllToTheLeft) +nmap bo (CloseEditorsButActive) +nmap bp (PinActiveTab) + +" Project management +nmap po (ProjectViewPopupMenuSettingsGroup) + +nmap vr (IdeaVim.ReloadVimRc.reload) +nmap va (VimFindActionIdAction) \ No newline at end of file