projects
/
dotfiles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c78de6
)
Filetype-specific tabstops
author
David Kerkeslager
<fake@mailinator.com>
Fri, 12 Jun 2015 14:37:19 +0000
(10:37 -0400)
committer
David Kerkeslager
<david.kerkeslager@globalpovertyproject.com>
Tue, 4 Aug 2015 15:01:26 +0000
(15:01 +0000)
.vimrc
patch
|
blob
|
history
diff --git
a/.vimrc
b/.vimrc
index
8bb879a
..
af5c4d6
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-37,11
+37,17
@@
set scrolloff=5
set noeb vb t_vb=
" Set tabs to width 4.
+filetype plugin indent on
+set shiftwidth=4
set softtabstop=4
set tabstop=4
-set shiftwidth=4
set expandtab
+" language-specific settings
+autocmd FileType html setlocal shiftwidth=2 softtabstop=2 tabstop=2
+autocmd FileType javascript setlocal shiftwidth=2 softtabstop=2 tabstop=2
+autocmd FileType ruby setlocal shiftwidth=2 softtabstop=2 tabstop=2
+
" Allow backspacing over everything in insert mode.
set backspace=indent,eol,start