-
Notifications
You must be signed in to change notification settings - Fork 0
/
xvimrc
65 lines (51 loc) · 1.35 KB
/
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
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
" No status bar
set laststatus=0
" Search
set incsearch
set ignorecase
set smartcase
set wrap
set wrapscan
set gdefault
" Setup the number line
set number
set relativenumber
" Use the system pasteboard
set clipboard=unnamed
" Better navigation
nmap H ^
nmap L $
" Window navigation
nmap <C-h> <C-w>h
nmap <C-l> <C-w>l
" Make computers make sense
nmap D d$
nmap Y y$
" I'd like the following command to save too
" it doesn't seem like xvim supports this: \| update<CR>
vmap s :sort ui<CR>
" vim-unimpared knock off
nmap ]e "udd"up
nmap [e "uddk"uP
" Move visual blocks
vnoremap J :m '>+1<CR>gv=gv
vnoremap K :m '<-2<CR>gv=gv
" Navigate
nmap <space>ch :xcmenucmd Find Call Hierarchy<CR>
nmap <space>jp :xcmenucmd Jump to Definition<CR>
nmap <space>ja :xccmd jumpToDefinitionWithAlternate<CR>
nmap <space>i :xcmenucmd Jump to Generated Interface<CR>
" Editor
nmap gcc :xcmenucmd Comment Selection<CR>
vmap gc :xcmenucmd Comment Selection<CR>
nmap <space>f :xcmenucmd Fix All Issues<CR>
nmap <space>gb :xcmenucmd Show Blame for Line<CR>
" Product
nmap <space>C :xccmd compileCurrentFile<CR>
nmap <space>k :xcmenucmd Clean<CR>
nmap <space>K :xcmenucmd Clean Build Folder...<CR>
" Debug
nmap bb :xcmenucmd Add Breakpoint at Current Line<CR>
nmap <space>vi :xcmenucmd Capture View Hierarchy<CR>
" Documentation
nmap <space>d :xcmenucmd Show Quick Help for Selected Item<CR>