Skip to content

Instantly share code, notes, and snippets.

@marty-Wallace
Last active April 14, 2023 12:18
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marty-Wallace/686f34fc3dc6e897ffa551463b96a556 to your computer and use it in GitHub Desktop.
Save marty-Wallace/686f34fc3dc6e897ffa551463b96a556 to your computer and use it in GitHub Desktop.
Bare bones vimrc to make IdeaVim stop beeping + a few other essentials
""README
"" This file should be called .ideavimrc on a linux/unix system or _ideavimrc on a windows system.
"" You will need to restart intellij once the file is added.
" Makes moving the cursor function as expected with wrapped lines
noremap j gj
noremap k gk
" This will keep the cursor at least 15 lines away from the top or bottom of the editor window
set scrolloff=15
" These two lines will fully disable any visual or noisy bell
" on both windows and linux. >:)
set noerrorbells visualbell t_vb=
autocmd GUIEnter * set visualbell t_vb=
" Show matching braces/brackets
set showmatch
set showcmd
" Make indenting and unindenting in visual mode retain the selection so
" you don't have to re-select or type gv every time.
vnoremap > ><CR>gv
vnoremap < <<CR>gv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment