-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatforms.vim
55 lines (46 loc) · 1.3 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
46
47
48
49
50
51
52
53
54
55
" ----------------------------------------
" 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
elseif has('gui_gtk2')
set guifont=Ubuntu\ Mono\ derivative\ Powerline\ 12
endif
if 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
if &term =~ '^screen'
" tmux will send xterm-style keys when xterm-keys is on
execute "set <xUp>=\e[1;*A"
execute "set <xDown>=\e[1;*B"
execute "set <xRight>=\e[1;*C"
execute "set <xLeft>=\e[1;*D"
endif