forked from Goles/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindow
More file actions
45 lines (41 loc) · 1.94 KB
/
window
File metadata and controls
45 lines (41 loc) · 1.94 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
43
44
45
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""
""" Ben Bleything's Vim Setup
""" Based on the work of many others. See README.rdoc for credits.
"""
""" Git Hubs: http://github.com/bleything/dotvim
""" Internet Electronic Mail: ben@bleything.net
"""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" W I N D O W O P T I O N S
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
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
" set up statusline, ends up looking like this:
"
" [1] window.vimrc [Preview] [vim,+] 0x00 @ l22 c51 (88%)
"
set statusline=
set statusline+=%n:\ " buffer number
set statusline+=%f " filename
set statusline+=%< " truncate here if necessary
set statusline+=%10w " displays [Preview] if it is
set statusline+=\ [ " fix spacing, open bracket
set statusline+=%{strlen(&ft)?&ft:'none'} " filetype
set statusline+=%M " + if modified, - if r/o
set statusline+=] " close bracket
set statusline+=%= " right-align remainder
set statusline+=0x%02B\ " character hex value
set statusline+=@\ L%l\ C%c\ (%P)\ " position in file
" To display a greyed cursor line
set cursorline
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" C O L O R O P T I O N S
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" set background=dark " use colors suitable for dark backgrounds
" colorscheme solarized
set term=screen-256color