forked from meowgorithm/vim-venders
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gvimrc
93 lines (69 loc) · 2.11 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
set mousehide
if has('gui_macvim')
"
" MacVIM Settings
"
colorscheme roshambo
set fuoptions=maxvert,maxhorz "fullscreen options
set guioptions-=T "hide toolbar
set guioptions-=rL "hide scrollbars
set guioptions-=e "console-style tab labels
set guifont=Menlo:h12
set linespace=1
set antialias
" Indenting: Bind command-[ and command-] to shift left and right
nmap <D-]> >>
nmap <D-[> <<
vmap <D-]> >>
vmap <D-[> <<
imap <D-]> <C-t>
imap <D-[> <C-d>
" Command + return for fullscreen
macmenu Window.Toggle\ Full\ Screen\ Mode key=<D-CR>
" Window Navigation
nmap <D-J> <C-W>j
nmap <D-K> <C-W>k
nmap <D-H> <C-W>h
nmap <D-L> <C-W>l
" Remap new tab key to command + shift + n
macmenu &File.New\ Tab key=<D-N>
" Command + d closes the current buffer
macmenu &Buffers.Delete key=<D-d>
" Map command + t to fuzzy-file-find like TextMate
nnoremap <D-t> :CommandT<CR>
" Unmap MacVim's command + b 'make' mapping
macmenu &Tools.Make key=<nop>
" Map command + b to browse buffers
nnoremap <D-b> :CommandTBuffer<CR>
" Map command + shift + c to spatn the color picker
" Requires the PickAColor plugin
nmap <D-C> :PickHEX<CR>
vmap <D-C> :PickHEX<CR>
imap <D-C> <ESC>:PickHEX<CR>a
" Buffer Switching
macmenu &Buffers.Next key=<D-lt>
macmenu &Buffers.Previous key=<D->>
" Ooh, gestures
map <SwipeLeft> :bnext<CR>
map <SwipeRight> :bprevious<CR>
" Command-Shift-F for Ack
map <D-F> :Ack<space>
" Command-e for ConqueTerm
" Requires the ConqueTerm plugin
"map <D-e> :call StartTerm()<CR>
" Command-/ to toggle comments
" Requires the NERDCommenter plugin
nmap <D-/> <plug>NERDCommenterToggle<CR>
imap <D-/> <ESC><plug>NERDCommenterToggle<CR>a
elseif has('gui_gtk')
"
" gVim Settings
"
colorscheme roshambo
set guifont=Ubuntu\ Mono\ 12
set guioptions-=T "hide toolbar
set guioptions-=M "hide menus
set guioptions-=rL "hide scrollbars
set guioptions-=e "console-style tab labels
set antialias
endif