From e5ac3837a8a95e86e6128397f21dd826bfbf7cbc Mon Sep 17 00:00:00 2001 From: Mikkel Svartveit Date: Thu, 22 Jun 2023 15:15:18 +0200 Subject: [PATCH] Add IdeaVim config --- .gitignore | 1 + fish/config.fish | 1 + ideavim/.ideavimrc | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 ideavim/.ideavimrc diff --git a/.gitignore b/.gitignore index 85aa074..8598b3a 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ !vim/**/* !nvim/**/* !vscode-neovim/**/* +!ideavim/**/* !karabiner/**/* !raycast-export/**/* !raycast-scripts/**/* diff --git a/fish/config.fish b/fish/config.fish index 5d93115..b25b5b4 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -12,6 +12,7 @@ alias ai="sgpt -se" abbr x86 "arch -x86_64" abbr v "nvim" +abbr lg "lazygit" abbr s "npm run serve" abbr d "npm run dev" abbr venv "source venv/bin/activate.fish" diff --git a/ideavim/.ideavimrc b/ideavim/.ideavimrc new file mode 100644 index 0000000..05882ba --- /dev/null +++ b/ideavim/.ideavimrc @@ -0,0 +1,38 @@ +let mapleader = "," + +" Disable bell sounds +set visualbell + +" Enable relative line numbers +set number +set relativenumber + +" Show search results as you type +set incsearch + +" Highlight search results +set hlsearch + +" This setting makes search case-insensitive when all characters in the string +" being searched are lowercase. However, the search becomes case-sensitive if +" it contains any capital letters. This makes searching more convenient. +set ignorecase +set smartcase + +" Always show 4 lines above and below the cursor +set scrolloff=4 + +" Press Enter to clear search highlighting +nnoremap :nohlsearch + +" Allow using uppercase W and Q commands to save/quit +command WQ wq +command Wq wq +command W w +command Q q + +Plug 'preservim/nerdtree' +Plug 'tpope/vim-surround' +Plug 'tpope/vim-commentary' + +nnoremap n :NERDTree