Last active
January 11, 2023 09:03
-
-
Save yuhangch/0a57cbe5677e31622ecada9bdc724700 to your computer and use it in GitHub Desktop.
Jetbrains IDEs ideavimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = ";" | |
set relativenumber | |
set number | |
set easymotion | |
set showmode=true | |
set ideajoin | |
set ic | |
" set noic | |
set hls | |
" Link to system clipboard | |
set clipboard+=unnamed | |
" IdeavimExtension -> switch IME | |
set keep-english-in-normal-and-restore-in-insert | |
noremap C "_C | |
noremap cw "_cw | |
noremap X "_X | |
noremap x "_x | |
" easymotion | |
" Press `f` to activate AceJump | |
map f :action AceAction<CR> | |
" Press `F` to activate Target Mode | |
map F :action AceTargetAction<CR> | |
" Press `g` to activate Line Mode | |
map gl :action AceLineAction<CR> | |
" Press `f` to activate AceJump | |
" map f :action KJumpAction<CR> | |
" Press `F` to activate Target Mode | |
" map F :action KJumpAction.Char2<CR> | |
" Press `g` to activate Line Mode | |
" map gl :action KJumpAction.Line<CR>" | |
"ctrl | |
map <C-c> <Action>(CommentByLineComment) | |
"go mod | |
map gn <Action>(NextTab) | |
map gp <action>(PreviousTab) | |
map ge G | |
if &ide =~? 'rider' | |
map \e <Action>(ReSharperGotoNextErrorInSolution) | |
map gi <Action>(ReSharperGotoImplementation) | |
elseif &ide =~? 'goland' | |
map \e <Action>(GotoNextError) | |
elseif &ide =~? 'webstorm' | |
map \e <Action>(GotoNextError) | |
endif | |
"2 party | |
map \r <Action>(Run) | |
map \c <Action>(Stop) | |
map \f <Action>(ReformatCode) | |
map \v <Action>(IdeaVim.ReloadVimRc.reload) | |
"leader | |
map <leader>a <Action>(GotoAction) | |
map <leader>b <Action>(ToggleLineBreakpoint) | |
map <leader>d <Action>(EditorDuplicateLines) | |
map <leader>e <Action>(ShowErrorDescription) | |
map <leader>f <Action>(GotoFile) | |
map <leader>g <Action>(Generate) | |
map <leader>h <Action>(QuickJavaDoc) | |
map <leader>i <Action>(ShowIntentionActions) | |
map <leader>j <Action>(MoveLineDown) | |
map <leader>k <Action>(MoveLineUp) | |
map <leader>s <Action>(FileStructurePopup) | |
map <leader>r <Action>(RenameElement) | |
map <leader>w <Action>(HideAllWindows) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment