Created
April 21, 2022 14:53
-
-
Save manzanit0/8530b3aaf7826feb58c09c9c7e39640f to your computer and use it in GitHub Desktop.
Idea Vim Config
This file contains hidden or 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
# Sources: | |
# https://gist.github.com/zchee/9c78f91cc5ad771c1f5d | |
# https://github.com/JetBrains/ideavim | |
let mapleader=";" | |
nnoremap <Leader>nc :e ~/.ideavimrc<CR> | |
nnoremap <Leader>nr :action IdeaVim.ReloadVimRc.reload<CR> | |
nnoremap <Leader>q :q<CR> | |
nnoremap <Leader>w :w<CR> | |
nnoremap <Leader>wq :wq<CR> | |
nnoremap <Leader>qq :qa!<CR> | |
nnoremap <leader>/ :action CommentByLineComment<CR> | |
nnoremap fi :action ShowIntentionActions<CR> | |
nnoremap fo :action ShowPopupMenu<CR> | |
nnoremap ff :action ReformatCode<CR> | |
nnoremap fp :action OptimizeImports<CR> | |
nnoremap <leader>s :action GotoFile<CR> | |
nnoremap <leader>d :action GotoAction<CR> | |
nnoremap <leader>b :action RecentFiles<CR> | |
nnoremap <leader>l :action RecentLocations<CR> | |
nnoremap <leader>h :action LocalHistory.ShowHistory<CR> | |
nnoremap ge :action GotoNextError<CR> | |
nnoremap gE :action GotoPreviousError<CR> | |
# nnoremap <leader>s :action GotoRelated<CR> | |
nnoremap <leader>h :action CallHierarchy<CR> | |
nnoremap <leader>b :action ShowNavBar<CR> | |
nnoremap <c-s> :action FileStructurePopup<CR> | |
nnoremap <c-o> :action GotoSymbol<CR> | |
nnoremap gy :action GotoImplementation<CR> | |
nnoremap gi :action GotToDeclaration<CR> | |
nnoremap gb :action Back<CR> | |
nnoremap go :action ShowUsages<CR> | |
nnoremap gk :action QuickJavaDoc<CR> | |
nnoremap gj :action ShowErrorDescription<CR> | |
nnoremap <leader>gt :action GotoTest<CR> | |
# vim-dirvish style | |
nnoremap - :action ActivateProjectToolWindow<CR> | |
set ideaput | |
set ideajoin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment