~ashn/setup

b482741c9cb8eaf2083d5ac4fddc127ef097fc26 — ashn 4 months ago a974bc9
Use setlocal instead of set for language-specific indentation
1 files changed, 2 insertions(+), 2 deletions(-)

M dotfiles/.vimrc
M dotfiles/.vimrc => dotfiles/.vimrc +2 -2
@@ 61,9 61,9 @@ set undodir=~//
autocmd FileType lisp,scheme setlocal tabstop=2 shiftwidth=2 expandtab
" HTML/JavaScript/CSS style preferences.
autocmd FileType html,javascript,json,css setlocal ts=2 sw=2 expandtab
autocmd BufNewFile,BufRead *.ts set syntax=javascript ts=2 sw=2 expandtab
autocmd BufNewFile,BufRead *.ts setlocal syntax=javascript ts=2 sw=2 expandtab
" Markdown style preferences.
autocmd BufNewFile,BufRead *.md set ts=2 sw=2 expandtab
autocmd BufNewFile,BufRead *.md setlocal ts=2 sw=2 expandtab

" Linux Kernel style preferences.
function s:SetLinuxKernelStyleConfig()