-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gvimrc
43 lines (36 loc) · 1.1 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
" Color for macvim only
colorscheme ir_black
" And pretty fonts
set guifont=Inconsolata:h16
" No toolbar
set guioptions-=T
" fullscreen maximizes vertically AND horizontally
set fuoptions=maxvert,maxhorz
set lines=80
set columns=130
" bind command-/ to toggle comment
" requires NERD Commenter to be installed: http://www.vim.org/scripts/script.php?script_id=1218
nmap <D-/> ,c<space>
vmap <D-/> ,c<space>
imap <D-/> <C-O>,c<space>
let NERDShutUp = 1 " so it doesn't complain about types it doesn't know
" 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><<
" bind command-option-l to toggle line numbers
nmap <silent> <D-M-l> :set invnumber<CR>
" open tabs with command-<tab number>
map <silent> <D-1> :tabn 1<CR>
map <silent> <D-2> :tabn 2<CR>
map <silent> <D-3> :tabn 3<CR>
map <silent> <D-4> :tabn 4<CR>
map <silent> <D-5> :tabn 5<CR>
map <silent> <D-6> :tabn 6<CR>
map <silent> <D-7> :tabn 7<CR>
map <silent> <D-8> :tabn 8<CR>
map <silent> <D-9> :tabn 9<CR>