-
Notifications
You must be signed in to change notification settings - Fork 8
/
vrapperrc
76 lines (58 loc) · 2.31 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
set ignorecase
set smartcase
set incsearch
nnoremap ,/ :nohlsearch<CR>
imap jj <esc>
nnoremap ; :
nnoremap : ;
nnoremap w :w<CR>
nnoremap e :q<CR>
set scrolloff=4 " keep cursor off screen edges
set hlsearch
set number
set relativenumber
" Don't let x and c to spoil the yank register
nnoremap x "_x
nnoremap c "_c
" Keep the cursor in place while joining lines
nnoremap J mzJ`z
" Jump to start and end of line using the home row keys
nmap 0 ^
" Go to end of yanked/pasted text
vnoremap <silent> y y`]
vnoremap <silent> p p`]
nnoremap <silent> p p`]
nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l
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 <cr> :eclipsegotoimpl<cr>
" show documentation for current symbol
eclipseuiaction eclipseshowdoc org.eclipse.ui.edit.text.showInformation
nnoremap K :eclipseshowdoc<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
" rename current symbol
eclipseaction eclipserename org.eclipse.jdt.ui.edit.text.java.rename.element
au "Dart Editor" eclipseaction eclipserename com.google.dart.tools.ui.edit.text.dart.rename.element
nnoremap crn :eclipserename<cr>
"show quickfix menu
eclipseuiaction eclipsequickfix org.eclipse.jdt.ui.edit.text.java.correction.assist.proposals
au "Dart Editor" eclipseuiaction eclipsequickfix com.google.dart.tools.ui.specific_content_assist.command
nnoremap <backspace> :eclipsequickfix<cr>
vnoremap <backspace> :eclipsequickfix<cr>
" amazing 'omnibox' that searches buffers, commands, views, menus, preferences, etc.
eclipseaction eclipsecmdsearch org.eclipse.ui.window.quickAccess
nnoremap <space> :eclipsecmdsearch<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 eclipseopenresource org.eclipse.ui.navigate.openResource
nnoremap <c-p> :eclipseopenresource<cr>
" vim: set filetype=vim: