-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.ideavimrc
103 lines (89 loc) · 3.14 KB
/
.ideavimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Default Settings
inoremap jk <ESC>
map <C-c> <ESC>
inoremap <TAB> %
set surround
set commentary
set ignorecase
set highlightedyank
set multiple-cursors
set ideajoin
set visualbell
set easymotion
let mapleader = ","
nnoremap \e :e ~/.ideavimrc<CR>
nnoremap \r :action IdeaVim.ReloadVimRc.reload<CR>
# Window Navigation
nnoremap <leader>v :action ShowNavBar<CR>
# Build and Debugging
nnoremap <c-\> :action SplitVertically<CR>
nnoremap <c-"> :action SplitHorizontally<CR>
nnoremap <TAB> :action NextTab<CR>
nnoremap <s-TAB> :action PreviousTab<CR>
nnoremap ]b :action NextTab<CR>
nnoremap [b :action PreviousTab<CR>
nnoremap <leader>nf :action NewGroup<CR>
nnoremap <leader>a :action MoveEditorToOppositeTabGroup<CR>
nnoremap <leader>en :action EditSourceInNewWindow<CR>
nnoremap <leader>q :action CloseContent<CR>
nnoremap <leader>qa :action CloseAllEditors<CR>
# Build and Debugging
# Tool Windows
nnoremap <leader>X :action ActivateProblemsViewToolWindow<CR>
nnoremap <leader>R :action ActivateRunToolWindow<CR>
nnoremap <leader>D :action ActivateDebugToolWindow<CR>
nnoremap <leader>S :action ActivateStructureToolWindow<CR>
nnoremap <leader>G :action ActivateVersionControlToolWindow<CR>
nnoremap <leader>s :action SplittingTabsToolWindow.MoveTabRight<CR>
nnoremap <leader>c :action HideAllWindows<CR>
# Search
set incsearch
nnoremap <leader>ff :action SearchEverywhere<CR>
nnoremap <leader>fu :action FindUsages<CR>
nnoremap <leader>fU :action FindUsagesInFile<CR>
nnoremap <leader>fr :action RecentFiles<CR>
nnoremap <leader>fl :action RecentLocations<CR>
nnoremap <leader>fh :action LocalHistory.ShowHistory<CR>
# Code Navigation
nnoremap <leader>hh :action ActivateHierarchyToolWindow<CR>
nnoremap <leader>hc :action CallHierarchy<CR>
nnoremap <leader>hm :action MethodHierarchy<CR>
nnoremap <leader>ht :action TypeHierarchy<CR>
nnoremap ge :action GotoNextError<CR>
nnoremap gE :action GotoPreviousError<CR>
nnoremap gr :action GotoRelated<CR>
nnoremap gs :action GotoSymbol<CR>
nnoremap gc :action GotoClass<CR>
nnoremap gi :action GotoImplementation<CR>
nnoremap gd :action GotoDeclaration<CR>
nnoremap gS :action GotoSuperMethod<CR>
nnoremap gt: action GotoTest<CR>
nnoremap gb :action Back<CR>
nnoremap gf :action Forward<CR>
# Editing
nnoremap <c-z> :action ToggleDistractionFreeMode<CR>
vnoremap < <gv
vnoremap > >gv
nnoremap [[ :action MethodUp<CR>
nnoremap ]] :action MethodDown<CR>
nnoremap zc :action CollapseRegion<CR>
nnoremap zo :action ExpandRegion<CR>
nnoremap <leader>zc :action CollapseAllRegions<CR>
nnoremap <leader>zo :action ExpandAllRegions<CR>
nnoremap <leader>r :action Refactorings.QuickListPopupAction<CR>
#Bookmarks
nnoremap <C-k> :action ToggleBookmarkWithMnemonic<CR>
nnoremap <C-m> :action ToggleBookmark<CR>
# Build and Debugging
nnoremap <leader>b :action ChooseRunConfiguration<CR>
# nnoremap <leader> :action Rerun<CR>
nnoremap <leader>B :action ToggleLineBreakpoint<CR>
# Plugins
nmap <C-n> <Plug>NextWholeOccurrence
xmap <C-n> <Plug>NextWholeOccurrence
nmap g<C-n> <Plug>NextOccurrence
xmap g<C-n> <Plug>NextOccurrence
nmap <C-x> <Plug>SkipOccurrence
xmap <C-x> <Plug>SkipOccurrence
nmap <C-p> <Plug>RemoveOccurrence
xmap <C-p> <Plug>RemoveOccurrence