forked from rummik/clearwing-autoident
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc_local.vim
45 lines (39 loc) · 1.06 KB
/
.vimrc_local.vim
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
" See https://github.com/chameleoid/style for more information about this file
"
" To use this file:
"
" Install https://code.google.com/p/lh-vim/source/browse/misc/trunk/plugin/local_vimrc.vim
" which loads `_vimrc_local.vim` files, as well as adding the following lines
" to your `~/.vimrc`:
" " Use .vimrc_local.vim instead of _vimrc_local.vim
" let g:local_vimrc = '.vimrc_local.vim'
"
"
" Or, for those who don't wish to set `g:local_vimrc`, you can symlink it to
" `_vimrc_local.vim`:
" ln -s .vimrc_local.vim _vimrc_local.vim`
"
"
" Note: `_vimrc_local.vim` is ignored in our `.gitignore`, so there shouldn't
" be any issues with you using it
setl smarttab
setl noexpandtab
if bufname("%") =~? '\.jshintrc$'
setl filetype=javascript
endif
if bufname("%") =~? '\.md$'
setl filetype=markdown
endif
if &filetype == 'yaml'
setl expandtab
setl shiftwidth=8 tabstop=8
endif
if &filetype == 'markdown'
setl expandtab
setl shiftwidth=2 tabstop=2
setl linebreak textwidth=80
setl foldmethod=marker
endif
if &filetype == 'html'
setl filetype=htmldjango
endif