-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_ideavimrc
74 lines (59 loc) · 1.76 KB
/
dot_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
source ~/.vimrc
set surround
set ideajoin
set number
"Plugins
"NERDtree plugin
set NERDTree
map <leader>e :NERDTreeFocus<CR>
map <leader>E :NERDTreeFind<CR>
"Sneak plugin; Since ideavim 2.8.4 part of ideavim
set sneak
"Quickscope - highlight unique characters to jump to with f/F/t/T
set quickscope
"Keymaps
"Run/Debug
map <leader>dr <Action>(Run)
map <leader>de <Action>(RunClass)
map <leader>dd <Action>(Debug)
map <leader>dc <Action>(DebugClass)
map <leader>ds <Action>(Stop)
map <leader>db <Action>(ToggleLineBreakpoint)
map <leader>dh <Action>(Resume)
map <leader>dj <Action>(StepOver)
map <leader>dk <Action>(StepInto)
map <leader>dl <Action>(StepOut)
map <leader>di <Action>(ChooseRunConfiguration)
map <leader>do <Action>(ChooseDebugConfiguration)
"Navigation
map H <Action>(PreviousTab)
map L <Action>(NextTab)
map <c-h> <Action>(PreviousProjectWindow)
map <c-l> <Action>(NextProjectWindow)
map <leader>/ <Action>(FindInPath)
"Buffers
map <leader>bd <Action>(CloseEditor)
"Windows
map <c-w>v <Action>(MoveTabRight)
map <leader>wd <Action>(Unsplit)
map <leader>wo <Action>(MoveEditorToOppositeTabGroup)
map <leader>h <Action>(HideAllWindows)
"Searching
map <leader>xn <Action>(NextOccurence)
map <leader>xp <Action>(PreviousOccurence)
"Git
map <leader>ga <Action>(Annotate)
map <leader>gg <Action>(Git.Branches)
map <leader>gh <Action>(Vcs.ShowTabbedFileHistory)
map <leader>gk <Action>(CheckinProject)
map <leader>gn <Action>(Git.CreateNewBranch)
"Misc
map <leader>os <Action>(FileStructurePopup)
map <leader>or <Action>(RecentFiles)
map <leader>z <Action>(ToggleDistractionFreeMode)
map <leader><leader> <Action>(SearchEverywhere)
map <leader>t <Action>(ActivateTerminalToolWindow)
"Refactoring
map <leader>rr <Action>(RenameElement)
map <leader>rm <Action>(Move)
"Copilot