-
Notifications
You must be signed in to change notification settings - Fork 1
/
gvimrc
executable file
·64 lines (54 loc) · 1.46 KB
/
gvimrc
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
set guioptions-=T
set guifont=Monaco:h12
set antialias
autocmd BufNewFile,BufRead *_spec.rb compiler rspec
" Go to full width and height in full screen mode.
set fuoptions=maxvert,maxhorz
set transparency=0
set go-=L
" Don't highlight search result.
set nohlsearch
" Don't flick cursor.
set guicursor=a:blinkon0
" peepcode tab nav
" make peepopen nice
imap <D-t> <Esc><D-t>
imap <D-T> <Esc><D-T>
" TABS: safari style tab navigation
nmap <D-[> :tabprevious<CR>
nmap <D-]> :tabnext<CR>
map <D-[> :tabprevious<CR>
map <D-]> :tabnext<CR>
imap <D-[> <C-O>:tabprevious<CR>
imap <D-]> <C-O>:tabnext<CR>
imap <D-[> <uuuu
imap <D-[> <uuuu
imap <D-[> <uuuu
" TABS: Firefox style, open tabs with command-<tab number>
map <silent> <D-1> <Esc>:tabn 1<CR>
map <silent> <D-2> <Esc>:tabn 2<CR>
map <silent> <D-3> <Esc>:tabn 3<CR>
map <silent> <D-4> <Esc>:tabn 4<CR>
map <silent> <D-5> <Esc>:tabn 5<CR>
map <silent> <D-6> <Esc>:tabn 6<CR>
map <silent> <D-7> <Esc>:tabn 7<CR>
map <silent> <D-8> <Esc>:tabn 8<CR>
map <silent> <D-9> <Esc>:tabn 9<CR>
" don't unselect after move
vmap < <gv
vmap > >gv
vmap <TAB> >gv
vmap <S-TAB> <gv
" bind command-] to shift right
nmap <D-]> >>
vmap <D-]> >>
imap <D-]> <C-O>>>
" bind command-[ to shift left
nmap <D-[> <<
vmap <D-[> <<
imap <D-[> <C-O><<
if has("gui_macvim")
macmenu &File.New\ Tab key=<nop>
map <D-t> <Plug>PeepOpen
end
call pathogen#runtime_append_all_bundles()