Last active
October 3, 2021 13:45
-
-
Save spoptchev/b3b441250b5eee4eb988b2ad13e0e7af to your computer and use it in GitHub Desktop.
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
"" leader | |
let mapleader="," | |
"" Plugins and settings | |
set incsearch | |
set surround | |
set multiple-cursors | |
set commentary | |
set ReplaceWithRegister | |
set exchange | |
set hlsearch | |
set NERDTree | |
set clipboard+=unnamed | |
set clipboard+=ideaput | |
set scrolloff=5 | |
set history=1000 | |
set ideajoin | |
set idearefactormode=keep | |
"" Default key settings | |
inoremap jj <Esc> | |
nmap <leader><space> :noh<CR> | |
"" Buffer navigation | |
nmap <C-h> <C-w>h | |
nmap <C-j> <C-w>j | |
nmap <C-k> <C-w>k | |
nmap <C-l> <C-w>l | |
nmap <leader>v <C-w>v<C-w>l | |
nmap <leader>h <C-w>s | |
nmap <leader>nn :NERDTreeToggle<CR> | |
"" IDEA | |
nmap <leader>f <Action>(ReformatCode) | |
nmap <leader>o <Action>(OptimizeImports) | |
nmap <leader>i <Action>(Generate) | |
nmap tt <Action>(PreviousTab) | |
nmap tT <Action>(NextTab) | |
nmap gb <Action>(Back) | |
nmap ge <Action>(GotoNextError) | |
nmap gE <Action>(GotoPreviousError) | |
nmap gF <Action>(Find) | |
nmap gfp <Action>(FindInPath) | |
nmap gR <Action>(Replace) | |
nmap grp <Action>(ReplaceInPath) | |
nmap gtt <Action>(GotoTest) | |
nmap gtc <Action>(GotoClass) | |
nmap gtf <Action>(GotoFile) | |
nmap gti <Action>(GotoImplementation) | |
nmap gtd <Action>(GotoDeclaration) | |
nmap gtu <Action>(FindUsages) | |
nmap sof <Action>(SelectInProjectView) | |
nmap gll <Action>(ContextRun) | |
nmap glc <Action>(ChooseRunConfiguration) | |
"" INFO | |
"" gcc -> comment line(s) | |
"" SHIFT+J -> Idea Join line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment