forked from gma/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgvimrc
More file actions
42 lines (36 loc) · 1.13 KB
/
gvimrc
File metadata and controls
42 lines (36 loc) · 1.13 KB
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
" Graphical Vim config file
"
set encoding=utf-8
set guioptions-=T " hide the toolbar
set guioptions-=r " hide the scrollbars
set guioptions-=R " hide the scrollbars with vertical split
set guioptions-=l " hide the scrollbars
set guioptions-=L " hide the scrollbars with vertical split
set guifont=Inconsolata:h15
set lines=40 columns=85 " window dimensions
set relativenumber " relative line numbers
" colorscheme mac_classic
colorscheme solarized
set background=light
set colorcolumn=81
" Glenn's config which opens two splits when you're editing a project
" if isdirectory(@%) == 1
" vsplit
" set lines=50
" set columns=171
" else
" set lines=40
" set columns=85
" endif
nmap <leader>1 :set columns=85<CR><C-w>o
nmap <leader>2 <C-w>o:set columns=171<CR><C-w>v
nmap <leader>3 <C-w>o:set columns=117<CR><leader>d<C-l>
let hostfile = $HOME . '/.vim/gvimrc-' . substitute(hostname(), "\\..*", "", "")
if filereadable(hostfile)
exe 'source ' . hostfile
endif
function! TallWindow()
set lines=54
endfunction
command! Tw :call TallWindow()
command! TallWindow :call TallWindow()