-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gvimrc
65 lines (53 loc) · 1.61 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
" colorscheme base16-railscasts
" colorscheme spacegray
colorscheme railscasts
highlight clear SignColumn
highlight VertSplit ctermbg=236
highlight ColorColumn ctermbg=237
highlight LineNr ctermbg=236 ctermfg=240
highlight CursorLineNr ctermbg=236 ctermfg=240
highlight CursorLine ctermbg=236
highlight StatusLineNC ctermbg=238 ctermfg=0
highlight StatusLine ctermbg=240 ctermfg=12
highlight IncSearch ctermbg=3 ctermfg=1
highlight Search ctermbg=1 ctermfg=3
highlight Visual ctermbg=3 ctermfg=0
highlight Pmenu ctermbg=240 ctermfg=12
highlight PmenuSel ctermbg=3 ctermfg=1
highlight SpellBad ctermbg=0 ctermfg=1
set guioptions=ce
set antialias
set nowrap
set linespace=2
set spell
if has("gui_macvim")
set guifont=SourceCodePro-Regular:h14
elseif has("gui_gtk")
set guifont=Monospace\ 13
else
set guifont=Monaco:h14
end
if has("gui_macvim")
set transparency=0
" disable IM while leaving insert mode
"autocmd InsertEnter * set noimdisable
"autocmd InsertLeave * set imdisable
" move a line of text using ALT+[jk] or Comamnd+[jk] on mac"
nmap <D-j> mz:m+<cr>`z
nmap <D-k> mz:m-2<cr>`z
vmap <D-j> :m'>+<cr>`<my`>mzgv`yo`z
vmap <D-k> :m'<-2<cr>`>my`<mzgv`yo`z
" disable default menu hot key
macmenu &File.New\ Window key=<nop>
macmenu &File.Close key=<nop>
" remap cmd + w to close tab
map <D-w> :tabclose<CR>
" remap cmd + n to new tab
map <D-n> :tabnew<CR>
" map cmd + enter to switch to full screen
map <D-Enter> :set invfu<CR>
" map cmd+1~9 to switch tab 1~9
for i in range(1, 9)
exec "nnoremap <D-".i."> ".i."gt"
endfor
endif