Skip to content

Instantly share code, notes, and snippets.

@peng051410
Forked from jcwkroeze/.ideavimrc
Created March 28, 2018 10:46
Show Gist options
  • Select an option

  • Save peng051410/eb75c7152d2921b2ee330f69fbb58e35 to your computer and use it in GitHub Desktop.

Select an option

Save peng051410/eb75c7152d2921b2ee330f69fbb58e35 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