Plug 'vim-scripts/argtextobj.vim' Plug 'preservim/nerdtree' let mapleader = ' ' " This is the ideavimrc setting comes from https://github.com/saaguero/ideavimrc/blob/master/.ideavimrc set history=1000 set showmode set hlsearch set scrolloff=3 set ignorecase smartcase set ideajoin set number relativenumber set clipboard+=unnamed " easy system clipboard copy/paste noremap y "*y noremap Y "*Y noremap p "*p noremap P "*P " exit highlight search nnoremap :nohlsearch " easy window navigation nnoremap l nnoremap j nnoremap h nnoremap k " navigate between tabs nnoremap gt nnoremap gT " Select all nnoremap ggG nnoremap gI :action GotoImplementation nnoremap gD :action GotoDeclaration nnoremap gd :action GotoDeclaration nnoremap gy :action GotoTypeDeclaration nnoremap gr :action FindUsages " git annotate nnoremap ga :action Annotate " code editing nnoremap ca :action ShowIntentionActions nnoremap cf :action ReformatCode nnoremap cr :action RenameElement " cannot use gcc because ideavim not support nnoremap cc :action CommentByLineComment " explorer nnoremap e :NERDTreeToggle:action EditSource " pane nnoremap \ :action SplitVertically nnoremap - :action SplitHorizontally if has('ide') if &ide =~? 'rider' " put some rider-only mapping here else if &ide =~? 'webstorm' endif endif