Skip to content

Instantly share code, notes, and snippets.

@tsengeagle
Created April 21, 2018 14:34
Show Gist options
  • Save tsengeagle/84fe5bf8676c094d0a37871e0cef4a2e to your computer and use it in GitHub Desktop.
Save tsengeagle/84fe5bf8676c094d0a37871e0cef4a2e to your computer and use it in GitHub Desktop.
:source C:\Users\tsengeagle\vimfiles\.gvimrc
" ideavime specified
map zso :source ~/.ideavimrc<CR>
" run action
nmap zra :action ReformatCode<CR>:action RunClass<CR>
imap zra <ESC> :action ReformatCode<CR>:action RunClass<CR>
nmap zrt :action ReformatCode<CR>:action RerunFailedTests<CR>
imap zrt <ESC> :action ReformatCode<CR>:action RerunFailedTests<CR>
" commit
nmap zgc :action ReformatCode<CR>:action CheckinProject<CR>
imap zgc <ESC> :action ReformatCode<CR>:action CheckinProject<CR>
" intention
nmap zi :action ShowIntentionActions<CR>
imap zi <ESC>:action ShowIntentionActions<CR>
vmap zi <ESC>:action ShowIntentionActions<CR>
" navigate
nmap zj :action Back<CR>
imap zj <ESC> :action Back<CR>
nmap zk :action Forward<CR>
imap zk <ESC> :action Forward<CR>
nmap zf :action GotoDeclaration<CR>
imap zf <ESC> :action GotoDeclaration<CR>
vmap zf <ESC> <ESC> <ESC> <ESC> :action GotoDeclatation<CR>
" code snippet
imap zex <ESC> oexpect:<CR>
nmap zex oexpect:<CR>
" refactoring
nmap zrr :action RenameElement<CR>
imap zrr <ESC> :action RenameElement<CR>
nmap zxc :action ExtractClass<CR>
imap zxc <ESC> :action ExtractClass<CR>
vmap zxc :action ExtractClass<CR>
nmap zxm :action ExtractMethod<CR>
imap zxm <ESC> :action ExtractMethod<CR>
vmap zxm :action ExtractMethod<CR>
nmap ztn :action Inline<CR>
imap ztn <ESC> :action Inline<CR>
nmap ztp :action IntroduceParameter<CR>
imap ztp <ESC> :action IntroduceParameter<CR>
nmap ztf :action IntroduceField<CR>
imap ztf <ESC> :action IntroduceField<CR>
nmap ztv :action IntroduceVariable<CR>
imap ztv <ESC> :action IntroduceVariable<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment