-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
135 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea/ | ||
.gitattributes |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
" Basic | ||
set scrolloff=5 | ||
set incsearch | ||
set ignorecase | ||
set hlsearch | ||
set showcmd | ||
set showmode | ||
set wrapscan | ||
set number | ||
|
||
" Plugins | ||
set easymotion | ||
set notimeout | ||
set highlightedyank | ||
set surround | ||
set commentary | ||
set NERDTree | ||
set multiple-cursors | ||
set ideajoin | ||
set ideamarks | ||
|
||
" IdeaVimExtension | ||
set keep-english-in-normal | ||
set keep-english-in-normal-and-restore-in-insert | ||
|
||
" Don't use Ex mode, use Q for formatting. | ||
map Q gq | ||
|
||
let mapleader = "," | ||
|
||
"""""""""""""""""""""""""""""""Search"""""""""""""""""""""""""""""""""" | ||
" find all | ||
nmap <leader>fa <Action>(SearchEverywhere) | ||
" find file | ||
nmap <leader>ff <Action>(GotoFile) | ||
" find class | ||
nmap <leader>fc <Action>(GotoClass) | ||
" fuzzy find | ||
nmap <leader>fz <Action>(FindInPath) | ||
|
||
"""""""""""""""""""""""""""""""Jump"""""""""""""""""""""""""""""""""" | ||
nmap <leader>gs <Action>(GotoSuperMethod) | ||
nmap <leader>gi <Action>(GotoImplementation) | ||
nmap <leader>gy <Action>(GotoSymbol) | ||
nmap [e <Action>(GotoPreviousError) | ||
nmap ]e <Action>(GotoNextError) | ||
nmap ]] <Action>(MethodDown) | ||
nmap [[ <Action>(MethodUp) | ||
|
||
"""""""""""""""""""""""""""""""Pop"""""""""""""""""""""""""""""""""" | ||
nmap <leader>fs <Action>(FileStructurePopup) | ||
nmap <leader>gd <Action>(GotoDeclaration) | ||
nmap <leader>su <Action>(ShowUsages) | ||
nmap <leader>fu <Action>(FindUsages) | ||
nmap <leader>ps <Action>(ShowProjectStructureSettings) | ||
nmap <leader>jd <Action>(QuickJavaDoc) | ||
nmap <leader>mh <Action>(MethodHierarchy) | ||
nmap <leader>ss <Action>(ShowSettings) | ||
|
||
"""""""""""""""""""""""""""""""Tab Operation"""""""""""""""""""""""""""""""""" | ||
nnoremap gn gt | ||
nnoremap gp gT | ||
|
||
"""""""""""""""""""""""""""""""Run and Stop"""""""""""""""""""""""""""""" | ||
nmap <leader>rn <Action>(RunClass) | ||
nmap <leader>rr <Action>(Rerun) | ||
nmap <leader>rc <Action>(RunConfiguration) | ||
|
||
"""""""""""""""""""""""""""""""Debug"""""""""""""""""""""""""""""""""" | ||
nmap <leader>db <Action>(Debug) | ||
nmap <leader>tb <Action>(ToggleLineBreakpoint) | ||
|
||
|
||
"""""""""""""""""""""""""""""""Window Operation"""""""""""""""""""""""""""""""""" | ||
" hide windows" | ||
nmap <leader>hw <Action>(HideAllWindows) | ||
" hide active window only" | ||
nmap <leader>ha <Action>(HideActiveWindow) | ||
nmap <leader>si <Action>(SelectInProjectView) | ||
nmap <leader>wp <Action>(ActivateProjectToolWindow) | ||
nmap <leader>wr <Action>(ActivateRunToolWindow) | ||
nmap <leader>wd <Action>(ActivateDebugToolWindow) | ||
nmap <leader>wv <Action>(ActivateVersionControlToolWindow) | ||
nmap <leader>wt <Action>(ActivateTerminalToolWindow) | ||
nmap <leader>wm <Action>(ActivateMavenToolWindow) | ||
nmap <leader>td <Action>(ActivateTODOToolWindow) | ||
nmap <leader>z <Action>(ToggleZenMode) | ||
|
||
"""""""""""""""""""""""""""""""Project Operation"""""""""""""""""""""""""""""""""" | ||
nmap <leader>cP <Action>(CloseProject) | ||
nmap <leader>nP <Action>(NewProject) | ||
nmap <leader>rP <Action>(ManageRecentProjects) | ||
|
||
"""""""""""""""""""""""""""""""Utilities"""""""""""""""""""""""""""""""""" | ||
nmap <leader>sw <Action>(SurroundWith) | ||
nmap <leader>fd <Action>(ReformatCode) | ||
nmap <leader>re <Action>(RenameElement) | ||
nmap <leader>oi <Action>(OptimizeImports) | ||
nmap <leader>cv <Action>(ChangeView) | ||
nmap <leader>ri <Action>(RevealIn) | ||
nmap <leader>cap <Action>(CopyAbsolutePath) | ||
nmap <leader>ccp <Action>(CopyContentRootPath) | ||
nmap <leader>cr <Action>(CopyReference) | ||
nmap <leader>cf <Action>(CopyFileName) | ||
nmap <leader>lm <Action>(Maven.Reimport) | ||
nmap <leader>rl <Action>(RecentLocations) | ||
nmap <leader>bc <Action>(ByteCodeViewer) | ||
|
||
map <leader>1 <Action>(GoToTab1) | ||
map <leader>2 <Action>(GoToTab2) | ||
map <leader>3 <Action>(GoToTab3) | ||
map <leader>4 <Action>(GoToTab4) | ||
map <leader>5 <Action>(GoToTab5) | ||
map <leader>6 <Action>(GoToTab6) | ||
map <leader>7 <Action>(GoToTab7) | ||
map <leader>8 <Action>(GoToTab8) | ||
map <leader>9 <Action>(GoToTab9) | ||
|
||
"""""""""""""""""""""""""""""""Git"""""""""""""""""""""""""""""""""" | ||
nmap <leader>gc <Action>(Git.CompareWithBranch) | ||
nmap <leader>gb <Action>(Git.Branches) | ||
nmap <leader>gf <Action>(Git.Fetch) | ||
nmap <leader>ga <Action>(Annotate) | ||
|
||
|
||
|
||
|
||
" NERDTree | ||
nnoremap <C-n> :NERDTree<CR> | ||
nnoremap <C-t> :NERDTreeToggle<CR> | ||
nnoremap <C-f> :NERDTreeFind<CR> | ||
nnoremap <leader>e :NERDTreeFocus<CR> | ||
|