-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxvimrc
More file actions
33 lines (24 loc) · 909 Bytes
/
xvimrc
File metadata and controls
33 lines (24 loc) · 909 Bytes
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
" Case-insensitive searching.
set ignorecase
" But case-sensitive if expression contains a capital letter.
set smartcase
" Default to global substitutions on lines
set gdefault
" Use relative line numbers
set relativenumber
" Display the current line number
set number
nnoremap gcc :xccmd commentAndUncommentCurrentLines<CR>
vnoremap gc :xccmd commentAndUncommentCurrentLines<CR>
" Map <space>b to toggle a breakpoint at the current line
nnoremap <space>b :xccmd toggleBreakpointAtCurrentLine<CR>
" Use <space>cm to toggle comments for the selection
nnoremap <space>cm :xccmd commentAndUncommentCurrentLines<CR>
nnoremap <space>om :xccmd jumpToPreviousCounterpart<CR>
nnoremap <space>oh :xccmd jumpToNextCounterpart<CR>
" Map openQuickly to control p to mimic ctrl-p in vim
nnoremap <C-p> :xccmd openQuickly<CR>
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
nnoremap <C-h> <C-w>h