mirror of
https://github.com/mikkelsvartveit/dotfiles.git
synced 2025-12-22 19:22:38 +00:00
Add IdeaVim config
This commit is contained in:
parent
526d195d64
commit
e5ac3837a8
3 changed files with 40 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -11,6 +11,7 @@
|
||||||
!vim/**/*
|
!vim/**/*
|
||||||
!nvim/**/*
|
!nvim/**/*
|
||||||
!vscode-neovim/**/*
|
!vscode-neovim/**/*
|
||||||
|
!ideavim/**/*
|
||||||
!karabiner/**/*
|
!karabiner/**/*
|
||||||
!raycast-export/**/*
|
!raycast-export/**/*
|
||||||
!raycast-scripts/**/*
|
!raycast-scripts/**/*
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ alias ai="sgpt -se"
|
||||||
|
|
||||||
abbr x86 "arch -x86_64"
|
abbr x86 "arch -x86_64"
|
||||||
abbr v "nvim"
|
abbr v "nvim"
|
||||||
|
abbr lg "lazygit"
|
||||||
abbr s "npm run serve"
|
abbr s "npm run serve"
|
||||||
abbr d "npm run dev"
|
abbr d "npm run dev"
|
||||||
abbr venv "source venv/bin/activate.fish"
|
abbr venv "source venv/bin/activate.fish"
|
||||||
|
|
|
||||||
38
ideavim/.ideavimrc
Normal file
38
ideavim/.ideavimrc
Normal file
|
|
@ -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 <silent><CR> :nohlsearch<CR>
|
||||||
|
|
||||||
|
" 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 <leader>n :NERDTree<CR>
|
||||||
Loading…
Reference in a new issue