-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
148 lines (125 loc) · 5.34 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
" Set basics
" ==================================================================================================
set clipboard=unnamedplus
set guicursor=n-v-c:block,i-ci-ve:ver20,r-cr-o:hor20
set hlsearch
set ignorecase
set incsearch
set showcmd
set showmode
set smartcase
set visualbell
set colorcolumn=100
set cursorline
set list
set relativenumber
set notimeout
let mapleader ="\"
" Plugin settings
" ==================================================================================================
set nerdtree
set sneak
set surround
" Highlightedyank settings
set highlightedyank
let g:highlightedyank_highlight_color = "rgba(216, 166, 87, 155)"
let g:highlightedyank_highlight_foreground_color = "rgba(50, 48, 47, 255)"
" Which-key settings
set which-key
let g:WhichKey_FontSize = 16
let g:WhichKey_KeyColor = "#e78a4e"
let g:WhichKey_PrefixColor = "#7daea3"
let g:WhichKey_CommandColor = "#a9b665"
let g:WhichKey_SortOrder = "by_key_prefix_first"
let g:WhichKeyDesc_leader = "<leader> Leader key"
let g:WhichKeyDesc_recent = "<leader><leader> Recent files"
let g:WhichKeyDesc_tool = "<leader>t Tool window menu"
let g:WhichKeyDesc_tool_file = "<leader>te File explorer"
let g:WhichKeyDesc_tool_terminal = "<leader>tt Terminal window"
let g:WhichKeyDesc_tool_git = "<leader>tg Git window"
let g:WhichKeyDesc_tool_problem = "<leader>tl Problems window"
let g:WhichKeyDesc_tool_run = "<leader>tr Run window"
let g:WhichKeyDesc_execution = "<leader>e Execution menu"
let g:WhichKeyDesc_execution_run = "<leader>er Run"
let g:WhichKeyDesc_execution_run_config = "<leader>eR Choose run configuration"
let g:WhichKeyDesc_execution_debug = "<leader>ed Debug"
let g:WhichKeyDesc_execution_stop = "<leader>es Stop"
let g:WhichKeyDesc_split = "<leader>w Split menu"
let g:WhichKeyDesc_split_vertically = "<leader>ws Split vertically"
let g:WhichKeyDesc_split_horizontally = "<leader>wS Split horizontally"
let g:WhichKeyDesc_refactor = "<leader>r Refactor menu"
let g:WhichKeyDesc_refactor_rename = "<leader>rn Rename element"
let g:WhichKeyDesc_refactor_extract_method = "<leader>rm Extract mehtod"
let g:WhichKeyDesc_refactor_introduce_variable = "<leader>rv Introduce variable"
let g:WhichKeyDesc_refactor_introduce_field = "<leader>rf Introduce field"
let g:WhichKeyDesc_refactor_reformat_code = "<leader>rc Reformat code"
let g:WhichKeyDesc_refactor_change_signature = "<leader>rs Change signature"
let g:WhichKeyDesc_refactor_action_list = "<leader>rr Actions list"
let g:WhichKeyDesc_go_to = "<leader>g Go to menu"
let g:WhichKeyDesc_go_to_declaration = "<leader>gd Go to declaration"
let g:WhichKeyDesc_go_to_type_declaration = "<leader>gy Go to type declaration"
let g:WhichKeyDesc_go_to_implementation = "<leader>gi Go to implementation"
let g:WhichKeyDesc_go_to_usages = "<leader>gu Show usages"
let g:WhichKeyDesc_go_to_test = "<leader>gt Go to test"
let g:WhichKeyDesc_go_to_back = "<leader>gb Go back"
let g:WhichKeyDesc_go_to_forward = "<leader>gn Go forward"
let g:WhichKeyDesc_action = "<leader>a Actions"
let g:WhichKeyDesc_action_context = "<leader>am Show intention actions"
let g:WhichKeyDesc_action_search = "<leader>as Search everywhere"
let g:WhichKeyDesc_action_generate = "<leader>ag Generate"
let g:WhichKeyDesc_comment = "<leader>c Comment"
let g:WhichKeyDesc_comment_line = "<leader>cc Comment line"
let g:WhichKeyDesc_comment_block = "<leader>cb Comment block"
let g:WhichKeyDesc_folding = "<leader>z Folding"
let g:WhichKeyDesc_folding_fold = "<leader>zc Collapse region"
let g:WhichKeyDesc_folding_expand = "<leader>ze Expand region"
let g:WhichKeyDesc_folding_fold_all = "<leader>zC Collapse all"
let g:WhichKeyDesc_folding_expand_all = "<leader>zE Expand all"
" ==================================================================================================
" General
map <C-q> <Action>(CloseContent)
imap <C-q> <Action>(CloseContent)
map <esc> :noh<CR>
" Tool windows
map <leader>te :NERDTreeToggle<CR>
map <leader>tt <Action>(ActivateTerminalToolWindow)
map <leader>tg <Action>(ActivateVersionControlToolWindow)
map <leader>tl <Action>(ActivateProblemsViewToolWindow)
map <leader>tr <Action>(ActivateRunToolWindow)
map <leader><leader> <Action>(RecentFiles)
" Code execution
map <leader>er <Action>(Run)
map <leader>eR <Action>(ChooseRunConfiguration)
map <leader>ed <Action>(Debug)
map <leader>es <Action>(Stop)
" Window splits
map <leader>ws <Action>(SplitVertically)
map <leader>wS <Action>(SplitHorizontally)
" Refactoring
map <leader>rn <Action>(RenameElement)
map <leader>rm <Action>(ExtractMethod)
map <leader>rv <Action>(IntroduceVariable)
map <leader>ra <Action>(IntroduceField)
map <leader>rf <Action>(ReformatCode)
map <leader>rs <Action>(ChangeSignature)
map <leader>rr <Action>(Refactorings.QuickListPopupAction)
" Go to code
map <leader>gd <Action>(GotoDeclaration)
map <leader>gy <Action>(GotoTypeDeclaration)
map <leader>gi <Action>(GotoImplementation)
map <leader>gu <Action>(ShowUsages)
map <leader>gt <Action>(GotoTest)
map <leader>gb <Action>(Back)
map <leader>gn <Action>(Forward)
" Actions
map <leader>am <action>(ShowIntentionActions)
map <leader>as <action>(SearchEverywhere)
map <leader>ag <action>(Generate)
" Comments
map <leader>cc <Action>(CommentByLineComment)
map <leader>cb <Action>(CommentByBlockComment)
" Folding
map <leader>zc <Action>(CollapseRegion)
map <leader>ze <Action>(ExpandRegion)
map <leader>zC <Action>(CollapseAllRegions)
map <leader>zE <Action>(ExpandAllRegions)