forked from amix/vimrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_configs.vim.dist
61 lines (51 loc) · 1.72 KB
/
my_configs.vim.dist
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
" Copy this file into my_configs.vim and modify
""""""""""""""""""
" => GUI Settings
""""""""""""""""""
if has("gui_running")
set guioptions+=T
if has("gui_gtk2")
set guifont=Ubuntu\ Mono\ 11
elseif has("gui_win32")
set guifont=Consolas:h11:cANSI
endif
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': {
\ 'left': [ ['mode', 'paste'],
\ ['fugitive', 'readonly', 'filename', 'modified'] ],
\ 'right': [ [ 'lineinfo' ], ['percent'] ]
\ },
\ 'component': {
\ 'readonly': '%{&filetype=="help"?"":&readonly?"🔒":""}',
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}',
\ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}'
\ },
\ 'component_visible_condition': {
\ 'readonly': '(&filetype!="help"&& &readonly)',
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))',
\ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())'
\ },
\ 'separator': { 'left': '', 'right': '' },
\ 'subseparator': { 'left': '', 'right': '' }
\ }
endif
""""""""""""""""""
" => Indentations & folds
""""""""""""""""""
set nofoldenable
au FileType html setl sw=4 sts=4 et
au FileType javascript setl sw=2 sts=2 et nofoldenable
au FileType json setl sw=2 sts=2 et
au FileType css setl sw=2 sts=2 et
au FileType yaml setl sw=2 sts=2 et
au FileType ruby setl sw=2 sts=2 et
au FileType eruby setl sw=2 sts=2 et
au BufNewFile,BufRead *.yml.dist set ft=yaml
au BufNewFile,BufRead *.html.erb set ft=eruby
""""""""""""
" => Color
""""""""""""
set background=dark
colorscheme gruvbox
call GruvboxHlsShowCursor()