-
Notifications
You must be signed in to change notification settings - Fork 3
/
window
30 lines (26 loc) · 997 Bytes
/
window
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
"WINDOW OPTIONS
set background=dark " use colors suitable for dark backgrounds
set t_Co=256
colorscheme Tomorrow-Night " use a default color scheme
set ruler " shows cursor position in the lower right
set showcmd " shows incomplete command to the left of the ruler
set winminheight=0 " allow windows to be 0 lines tall
set winminwidth=0 " allow windows to be 0 lines wide
set laststatus=2 " always show statusline
let stl = "%<"
let stl .= "%-.60f "
let stl .= "%{&filetype} "
let stl .= "%*"
let stl .= "%-.35{fugitive#statusline()}"
let stl .= "%="
let stl .= "%#ErrorMsg#"
let stl .= "%{&modified > 0 ? '-dirty-' : ''}"
let stl .= "%{&modified == 1 && &modifiable == 0 ? ' ' : ''}"
let stl .= "%{&modifiable == 0 ? 'readonly' : ''}"
let stl .= "%*"
let stl .= " %c:"
let stl .= "%l/%L %P"
set statusline=%!stl
" Splits
set splitbelow " open new horiz splits below current
set splitright " open new vert splits to the right