-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vrapperrc
175 lines (135 loc) · 5.32 KB
/
.vrapperrc
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
set ignorecase
set smartcase
set incsearch
set tabstop=4
set shiftwidth=4
inoremap z, <c-o>
inoremap z,p <c-r>"
nnoremap \ ,
nnoremap gj i<cr><esc>k$
nnoremap s /
nnoremap S ?
nnoremap zy zt5<c-y>
nnoremap gw <C-w>
nnoremap d<tab> :bdelete<cr>
nnoremap <c-d> <PageDown>
nnoremap <c-u> <PageUp>
nnoremap z. :w<cr>
nnoremap vd "_d
vnoremap x "_d
nnoremap vD "_D
vnoremap P "0p
nnoremap =p o<esc>p==
nnoremap =P O<esc>p==
vnoremap Y "+y
nnoremap <c-l> :nohlsearch<cr>
vnoremap - $
nnoremap - $
nnoremap gl :ls<cr>
" select last inserted text
nnoremap gV `[v`]
nnoremap <c-n> n.
nnoremap Q @@
nnoremap ]e :.,.m<space>.+1<cr>
nnoremap [e :.,.m<space>.-2<cr>
vnoremap ]e :m<space>.+1<cr>gv
vnoremap [e :m<space>.-2<cr>kgv
eclipseaction eclipsenextitem org.eclipse.ui.navigate.next
nnoremap ]q :eclipsenextitem<cr>
eclipseaction eclipsepreviousitem org.eclipse.ui.navigate.previous
nnoremap [q :eclipsepreviousitem<cr>
nnoremap Y y$
" vrapper
" http://evans-stuff.blogspot.com/2007/10/it-seems-that-im-not-only-one-still.html
" https://github.com/vrapper/vrapper/issues/265#issuecomment-22112349
" expand region / doesn't work, the 'selection' is not a vrapper visual-selection
" eclipseuiaction eclipseexpandregion org.eclipse.jdt.ui.edit.text.java.select.enclosing
" vnoremap m :<c-u>eclipseexpandregion<cr>
" https://github.com/vrapper/vrapper/issues/352
eclipseaction eclipsenextmember org.eclipse.jdt.ui.edit.text.java.goto.next.member
nnoremap ]] :eclipsenextmember<cr>
eclipseaction eclipseprevmember org.eclipse.jdt.ui.edit.text.java.goto.previous.member
nnoremap [[ :eclipseprevmember<cr>
" sexp motion
" nice try but... no.
" eclipseaction eclipsenextelement org.eclipse.jdt.ui.edit.text.java.select.next
" nnoremap <M-j> :eclipsenextelement<cr>
" eclipseaction eclipseprevelement org.eclipse.jdt.ui.edit.text.java.select.previous
" nnoremap <M-k> :eclipseprevelement<cr>
"version control
eclipseaction eclipsecomparehead org.eclipse.egit.ui.team.CompareWithHead
nnoremap Ud :eclipsecomparehead<cr>
eclipseaction eclipsefindref org.eclipse.jdt.ui.edit.text.java.search.references.in.workspace
nnoremap gr :eclipsefindref<cr>
eclipseuiaction eclipsegotoimpl org.eclipse.jdt.ui.edit.text.java.open.implementation
nnoremap gI :eclipsegotoimpl<cr>
" show type hierarchy relative to current type
eclipseuiaction eclipsetypehier org.eclipse.jdt.ui.edit.text.java.open.hierarchy
nnoremap <C-t> :eclipsetypehier<cr>
" go to type
eclipseuiaction eclipsegototype org.eclipse.jdt.ui.navigate.open.type
nnoremap g/t :eclipsegototype<cr>
" show documentation for current symbol
eclipseuiaction eclipseshowdoc org.eclipse.ui.edit.text.showInformation
nnoremap K :eclipseshowdoc<cr>
" go to super implementation
eclipseaction eclipsegotosuper org.eclipse.jdt.ui.edit.text.java.open.super.implementation
nnoremap gzi :eclipsegotosuper<cr>
"show refactor menu
eclipseaction eclipserefactormenu org.eclipse.jdt.ui.edit.text.java.refactor.quickMenu
nnoremap crr :eclipserefactormenu<cr>
vnoremap <c-r><c-r> :eclipserefactormenu<cr>gv
"show code-generation menu
eclipseaction eclipsesrcgenmenu org.eclipse.jdt.ui.edit.text.java.source.quickMenu
nnoremap crs :eclipsesrcgenmenu<cr>
vnoremap <c-r><c-s> :eclipsesrcgenmenu<cr>gv
" rename current symbol
eclipseaction eclipserename org.eclipse.jdt.ui.edit.text.java.rename.element
nnoremap crn :eclipserename<cr>
"show quickfix menu
eclipseuiaction eclipsequickfix org.eclipse.jdt.ui.edit.text.java.correction.assist.proposals
nnoremap <backspace> :eclipsequickfix<cr>
vnoremap <backspace> :eclipsequickfix<cr>
eclipseaction eclipsetogglebp org.eclipse.debug.ui.commands.ToggleBreakpoint
nnoremap <insert> :eclipsetogglebp<cr>
eclipseaction eclipseopenresource org.eclipse.ui.navigate.openResource
nnoremap <space>ff :eclipseopenresource<cr>
" amazing 'omnibox' that searches buffers, commands, views, menus, preferences, etc.
eclipseaction eclipsecmdsearch org.eclipse.ui.window.quickAccess
nnoremap <space>fc :eclipsecmdsearch<cr>
" TODO: doesn't work, probably needs an argument
" eclipseaction eclipseshowinpkgexplorer org.eclipse.ui.navigate.showIn
" nnoremap ^ :eclipseshowinpkgexplorer<cr>
" open file manager here (requires Eclipse 4.4/Luna)
eclipseaction openfmhere org.eclipse.ui.ide.showInSystemExplorer
nnoremap gof :openfmhere<cr>
" open terminal here
eclipseaction opentermhere com.tetrade.eclipse.plugins.easyshell.command.shellOpen
nnoremap got :opentermhere<cr>
eclipseaction quickSearch org.springsource.ide.eclipse.quicksearch.commands.quicksearchCommand
nnoremap <space>fs :quickSearch<cr>
eclipseaction closeCurrent org.eclipse.ui.file.close
nnoremap <space>wc :closeCurrent<cr>
eclipseaction closeAll org.eclipse.ui.file.closeAll
nnoremap <space>wa :closeAll<cr>
eclipseaction closeOthers org.eclipse.ui.file.closeOthers
nnoremap <space>wo :closeOthers<cr>
eclipseaction closeSaved org.eclipse.ui.file.closeAllSaved
nnoremap <space>ws :closeSaved<cr>
eclipseaction shiftLeft org.eclipse.ui.edit.text.shiftLeft
eclipseaction shiftRight org.eclipse.ui.edit.text.shiftRight
map < :shiftLeft<enter>
map > :shiftRight<enter>
vmap < :shiftLeft<enter>gv
vmap > :shiftRight<enter>gv
"move between tabs in split
nnoremap <tab> <C-W>gt
nnoremap <s-tab> <C-W>gT
"move around
nnoremap <c-h> :wincmd h<cr>
nnoremap <c-j> :wincmd j<cr>
nnoremap <c-k> :wincmd k<cr>
nnoremap <c-l> :wincmd l<cr>
set autochdir
set cleanindent
set contentassistmode