-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxvimrc
33 lines (24 loc) · 808 Bytes
/
xvimrc
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
" Use the system pasteboard
set clipboard=unnamed
" 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>
" Edit in scope
nnoremap <space>e :xccmd toggleTokenizedEditing<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