-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
127 lines (102 loc) · 3.19 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
""" Map leader to space ---------------------
let mapleader=" "
""" Plugins --------------------------------
set surround
set commentary
set argtextobj
"set easymotion
set textobj-entire
set highlightedyank
set sneak
set which-key
set NERDTree
set multiple-cursors
set matchit
" set quickscope
""" Plugin settings -------------------------
let g:argtextobj_pairs="[:],(:),<:>"
""" Common settings -------------------------
set showmode
set smartcase
set incsearch
set nu
set scrolloff=5
set relativenumber
set number
set notimeout
set hlsearch
""" Idea specific settings ------------------
set ideajoin
set idearefactormode=keep
set clipboard=unnamed
set clipboard+=ideaput
""" Mappings --------------------------------
imap jj <Esc>
imap jk <Esc>
imap <C-b> <ESC>^i
imap <C-e> <END>
map <S-l> <Action>(NextTab)
map <s-h> <Action>(PreviousTab)
map <leader>z <Action>(ToggleDistractionFreeMode)
map <leader>h :nohlsearch<CR>
map <C-h> <Action>(NextSplitter)
map <C-l> <Action>(PrevSplitter)
" Buffers / windows
map <leader>q :q
map <leader>be <Action>(CloseAllEditorsButActive)
map <leader>bw <Action>(CloseAllEditors)
map <leader>bh <Action>(CloseAllToTheLeft)
map <leader>bl <Action>(CloseAllToTheRight)
map <leader>bd :bd<CR>
map <leader>bf <Action>(Switcher)>
map <leader>bb <Action>(Switcher)>
vnoremap < <gv
vnoremap > >gv
nnoremap [[ :action MethodUp<CR>
nnoremap ]] :action MethodDown<CR>
map <leader>uw <Action>(EditorToggleUseSoftWraps)
" Git
map <leader>gl <Action>(Annotate)
map <leader>gb <Action>(Git.Branches)
" Debugging
map <leader>db <Action>(ToggleLineBreakpoint)
map <leader>dr <Action>(Debug)
map <leader>ds <Action>(Stop)
map <leader>td <Action>(RiderUnitTestDebugContextAction)
" Search
map <leader>p <Action>(SearchEverywhere)
map <leader><leader> <Action>(SearchEverywhere)
map <leader>st <Action>(FindInPath)
map <leader>sr <Action>(RecentFiles)
map <C-s> <Action>(SaveDocument)
map <leader>w <Action>(SaveDocument)
map <leader>/ <Action>(CommentByLineComment)
map <leader>s :let @/=""<CR>
map <leader>e <Action>(SelectInProjectView)
map <leader>ma :action TridentAppend<CR>
map <leader>mm :action TridentToggleQuickMenu<CR>
map <C-1> :action TridentSelect1<CR>
map <C-2> :action TridentSelect2<CR>
map <C-3> :action TridentSelect3<CR>
map <C-4> :action TridentSelect4<CR>
" Language
map K <Action>(QuickJavaDoc)
map gh <Action>(QuickJavaDoc)
map gl <Action>(ShowErrorDescription)
map gE <Action>(ShowErrorDescription)
map gR <Action>(RenameElement)
map gd <Action>(GotoDeclaration)
map gT <Action>(GotoTypeDeclaration)
map gy <Action>(GotoImplementation)
map gr <Action>(FindUsages)
map ]e <Action>(GotoNextError)
map [e <Action>(GotoPreviousError)
map g[e <Action>(ReSharperGotoNextErrorInSolution)
map g]e <Action>(ReSharperGotoPrevErrorInSolution)
map <C-f> <Action>(ShowIntentionActions)
map <leader>ca <Action>(ShowIntentionActions)
map <leader>cr <Action>(RenameElement)
map <leader>cf <Action>(ReformatCode)
map <leader>cR <Action>(FindUsages)
map <leader>cd <Action>(GotoDeclaration)
map <leader>ci <Action>(GotoImplementation)