This repository was archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwindow
41 lines (38 loc) · 1.87 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""
""" 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: [email protected]
"""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""" C O L O R O P T I O N S
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set background=dark " use colors suitable for dark backgrounds
colorscheme railscasts