-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvimrc.vim
More file actions
83 lines (69 loc) · 2.57 KB
/
vimrc.vim
File metadata and controls
83 lines (69 loc) · 2.57 KB
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
" Indentation = 2 spaces
set ts=2
set sts=2
set sw=2
set et
let mapleader = ' '
""" RIDER """
if has("ide") " https://vi.stackexchange.com/a/43062/11897
set visualbell
set noerrorbells " https://superuser.com/a/677312/468052
" Mimic Vanilla Vim
nnoremap g, :action JumpToLastChange<cr>
nnoremap g; :action JumpToNextChange<cr>
vnoremap = :action ReformatCode<cr>
" Mimic Custom Vim
" Comment
noremap gcc :action CommentByLineComment<cr>
" Hunks
noremap ]h :action VcsShowNextChangeMarker<cr>
noremap [h :action VcsShowPrevChangeMarker<cr>
nnoremap <leader>hr :action Vcs.RollbackChangedLines<cr>
" Diagnostics
noremap ]d :action ReSharperGotoNextErrorInSolution<cr>
noremap [d :action ReSharperGotoPreviousErrorInSolution<cr>
" Search
nnoremap <leader>// :action Find<cr>
nnoremap <leader>/g :action FindInPath<cr>
nnoremap <leader>/f :action GotoFile<cr>
" Code Actions
" [c]ode [a]ctions
noremap <leader>ca :action ShowIntentionActions<cr>
" [r]efactor [a]ctions
noremap <leader>ra :action Refactorings.QuickListPopupAction<cr>
" [r]efactor [r]ename
noremap <leader>rr :action RenameElement<cr>
" [r]efactor [i]nline
noremap <leader>ri :action Inline<cr>
" [r]efactor [m]ethod
noremap <leader>rm :action ExtractMethod<cr>
" [r]efactor [v]ariable
noremap <leader>rv :action IntroduceVariable<cr>
" noremap <Space>mv :action Move<CR>
" noremap <Space>ms :action MakeStatic<CR>
" noremap <Space>ci :action ConvertToInstanceMethod<CR>
" noremap <Space>ei :action ExtractInterface<CR>
" noremap <Space>ef :action EncapsulateFields<CR>
" noremap <Space>rmo :action ReplaceMethodWithMethodObject<CR>
" noremap <Space>ic :action IntroduceConstant<CR>
" noremap <Space>ip :action IntroduceParameter<CR>
" noremap <Space>if :action IntroduceField<CR>
" noremap <Space>po :action IntroduceParameterObject<CR>
" noremap <Space>pd :action MemberPushDown<CR>
" noremap <Space>pu :action MembersPullUp<CR>
" noremap <Space>RF :action RenameFile<CR>
" noremap <Space>cs :action ChangeSignature<CR>
" noremap <Space>ai :action AnonymousToInner<CR>
" Other
nnoremap <leader>bc :action BuildSolutionAction<cr>
nnoremap <leader>at :action RiderUnitTestRunSolutionAction<cr>
nnoremap <leader>vp :action ActivateTerminalToolWindow<cr>
nnoremap <leader>tr :action RiderUnitTestRunContextAction<cr>
" Rider Rewrites
nnoremap gi :action GotoImplementation<cr>
" Rider Plugins
nnoremap gl :action uk.co.ben_gibson.git.link.ui.actions.menu.CopyAction<cr>
set ideamarks
" Notes
" - Reload rc :: :source ~/.ideavimrc
endif