-
Notifications
You must be signed in to change notification settings - Fork 127
/
platforms.vim
45 lines (37 loc) · 1.05 KB
/
platforms.vim
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
" ----------------------------------------
" Platform Specific Configuration
" ----------------------------------------
if has('win32') || has('win64')
" Windows
source $VIMRUNTIME/mswin.vim
set guifont=Consolas:h10
set guioptions-=T " Toolbar
set guioptions-=m " Menubar
" Set height and width on Windows
set lines=60
set columns=120
" Disable quickfixsigns on Windows due to incredible slowdown.
let g:loaded_quickfixsigns=1
" Windows has a nasty habit of launching gVim in the wrong working directory
cd ~
elseif has('gui_macvim')
" MacVim
" Custom Source Code font for Powerline
" From: https://github.com/Lokaltog/powerline-fonts
set guifont=Source\ Code\ Pro\ for\ Powerline:h12
" Hide Toolbar in MacVim
if has('gui_running')
set guioptions=egmrt
endif
" Use option (alt) as meta key.
set macmeta
endif
if !has('nvim') && (has('macunix') || has('mac'))
" Fix meta key for Mac
let c='a'
while c <= 'z'
exec "set <A-".c.">=\e".c
exec "imap \e".c." <A-".c.">"
let c = nr2char(1+char2nr(c))
endw
endif