Skip to content

Instantly share code, notes, and snippets.

@fluffels
Created August 20, 2016 07:30
Show Gist options
  • Save fluffels/99224a3cce554fdf1a26822e32e6a990 to your computer and use it in GitHub Desktop.
Save fluffels/99224a3cce554fdf1a26822e32e6a990 to your computer and use it in GitHub Desktop.
IntelliJ .vimrc
"Keep context visible at all times.
set scrolloff=5
set sidescrolloff=5
"All-lower case searches will be case-insensitive, if there's one upper case
"letter, it will be case-sensitive.
set ignorecase
set smartcase
"Set Vim to globally substitute by default.
set gdefault
"Highlight search results.
set incsearch
set showmatch
set hlsearch
"Use <leader>space to clear searches.
nnoremap <leader><space> :noh<cr>
"Make tab match bracket pairs.
nnoremap <tab> %
vnoremap <tab> %
"Make j and k move by screen line, and not file line.
nnoremap j gj
nnoremap k gk
"Use ; like : so you dont have to press SHIFT.
nnoremap ; :
"Map jj to escaping out of insert mode.
inoremap jj <ESC>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment