Skip to content

Instantly share code, notes, and snippets.

@idursun
Created December 17, 2018 09:45
Show Gist options
  • Save idursun/72e48af4a3b5971dbcc66f4a33e2aff4 to your computer and use it in GitHub Desktop.
Save idursun/72e48af4a3b5971dbcc66f4a33e2aff4 to your computer and use it in GitHub Desktop.
Idea vim bindings
set hlsearch
set visualbell
set noerrorbells
set ignorecase smartcase
set showmode
set multiple-cursors
set surround
nnoremap <space>u :action FindUsages<cr>
nnoremap <space>k :action HighlightUsagesInFile<cr>
nnoremap <space>j :action EditorCompleteStatement<cr>
nnoremap <space>w :action SaveDocument<cr>
nnoremap <space>; :action RecentFiles<cr>
nnoremap <space>f :action GotoFile<cr>
nnoremap <space>s :action GotoSymbol<cr>
nnoremap <space>' ct'
nnoremap <space>" ct"
nnoremap <space>- ct-
nnoremap <space>_ ct_
inoremap <C-j> <Esc>
" built in search looks better
nnoremap / :action Find<cr>
" but preserve ideavim search
nnoremap g/ /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment