Skip to content

Instantly share code, notes, and snippets.

@edgesider
Last active December 24, 2021 08:46
Show Gist options
  • Save edgesider/9aecfa8712f60c61bf63fc8060d6abbe to your computer and use it in GitHub Desktop.
Save edgesider/9aecfa8712f60c61bf63fc8060d6abbe to your computer and use it in GitHub Desktop.
ideavimrc
let mapleader=' '
"""" idea设置
" 导航
nnoremap gi :action GotoImplementation<cr>
nnoremap gu :action FindUsages<cr>
nnoremap gU :action FindUsagesInFile<cr>
nnoremap gd :action GotoDeclaration<cr>
nnoremap gs :action GotoSuperMethod<cr>
"nnoremap <c-o> :action Back<cr>
"nnoremap <c-i> :action Forward<cr>
map <c-o> <action>(Back)
map <c-i> <action>(Forward)
nnoremap <leader>r :action RenameElement<cr>
inoremap <c-j> <esc>:action CodeCompletion<cr>a
"set ideajoin
set ideamarks
set idearefactormode=insert
"""" vim设置
set ignorecase
set hlsearch
set incsearch
nnoremap <leader>l :nohlsearch<cr>
cnoremap <c-a> <home>
cnoremap <c-e> <end>
cnoremap <c-f> <right>
cnoremap <c-b> <left>
inoremap <c-a> <home>
inoremap <c-e> <end>
inoremap <c-f> <right>
inoremap <c-b> <left>
vnoremap = :action ReformatCode<cr><esc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment