From 8d79f4229f03bf4668709bcdf54aea46c490b01c Mon Sep 17 00:00:00 2001 From: bieniucieniu Date: Sat, 26 Apr 2025 15:47:12 +0200 Subject: [PATCH] feat: add ideavim rc --- .ideavimrc | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .ideavimrc diff --git a/.ideavimrc b/.ideavimrc new file mode 100644 index 00000000..35bc41e7 --- /dev/null +++ b/.ideavimrc @@ -0,0 +1,42 @@ +set scrolloff=5 + +set incsearch + +let mapleader = " " + +set clipboard+=unnamedplus + +" Don't use Ex mode, use Q for formatting. +map Q gq + +" --- Enable IdeaVim plugins https://jb.gg/ideavim-plugins + +" Highlight copied text +Plug 'machakann/vim-highlightedyank' +" Commentary plugin +Plug 'tpope/vim-commentary' + +set NERDTree + +nnoremap :action GotoFile +nnoremap e :action ActivateProjectToolWindow + +nnoremap cr :action RenameElement +nnoremap bd :action CloseContent +nnoremap bo :action CloseAllEditorsButActive + +nnoremap h +nnoremap j +nnoremap k +nnoremap l + +nnoremap :action PreviousTab +nnoremap :action NextTab + +nnoremap h :action ActivateProjectToolWindow +nnoremap j :action ActivateRunToolWindow +nnoremap k :action ActivateFindToolWindow +nnoremap l :action ActivateTerminalToolWindow + +autocmd FileType nerdtree nmap l NERDTreeExpand +autocmd FileType nerdtree nmap h NERDTreeCollapse