Skip to content

Instantly share code, notes, and snippets.

@wangrunlin
Last active April 4, 2022 11:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wangrunlin/bb97f80377db44a6fbb195eaa9759d83 to your computer and use it in GitHub Desktop.
Save wangrunlin/bb97f80377db44a6fbb195eaa9759d83 to your computer and use it in GitHub Desktop.
IntelliJ IDEA .ideavimrc
" settings
set scrolloff=5
set incsearch
set showcmd
set visualbell
" map
map Q gq
map U <C-R>
nnoremap ; :
nnoremap : ;
nnoremap J gT
nnoremap K gt
" Action map
nnoremap / :action Find<CR>
nnoremap zr :action Run<CR>
nnoremap zs :action Stop<CR>
nnoremap zd :action Debug<CR>
" Leader map
let mapleader=' '
noremap <Leader>rc :e ~/.ideavimrc<CR>
noremap <Leader>s :source ~/.ideavimrc<CR>
noremap <Leader>q :q<CR>
noremap <Leader>y "+y<CR>
noremap <Leader>p "+p<CR>
" IDEA action
nnoremap <Leader>re :action RenameElement<CR>
nnoremap <Leader>gi :action GotoImplementation<CR>
nnoremap <Leader>im :action ImplementMethods<CR>
nnoremap <Leader>rv :action IntroduceVariable<CR>
nnoremap <Leader>cr :action CopyReference<CR>
nnoremap <Leader>em :action ExtractMethod<CR>
nnoremap <Leader>sw :action SurroundWith<CR>
" English in normal
let keep_input_source_in_normal="com.apple.keylayout.ABC"
set keep-english-in-normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment