mirror of
https://github.com/notwa/rc
synced 2024-06-30 19:07:11 -07:00
vim: PKGBUILD indenting
This commit is contained in:
parent
52596fb80f
commit
b4457763b6
10
home/vimrc
10
home/vimrc
|
@ -85,11 +85,21 @@ fu! TabFour()
|
||||||
setlocal tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
setlocal tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
fu! TabTwo()
|
||||||
|
setlocal tabstop=2 shiftwidth=2 expandtab
|
||||||
|
endf
|
||||||
|
|
||||||
if has('autocmd')
|
if has('autocmd')
|
||||||
augroup tabs " 4 spaces as tabs for various languages
|
augroup tabs " 4 spaces as tabs for various languages
|
||||||
au!
|
au!
|
||||||
au FileType bash,sh,zsh,awk,python,lua,vim call TabFour()
|
au FileType bash,sh,zsh,awk,python,lua,vim call TabFour()
|
||||||
au BufRead,BufNewFile *.json call TabFour()
|
au BufRead,BufNewFile *.json call TabFour()
|
||||||
|
au BufRead,BufNewFile PKGBUILD call TabTwo()
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
augroup reload " http://superuser.com/a/417997
|
||||||
|
au!
|
||||||
|
au BufWritePost .vimrc,_vimrc,vimrc so $MYVIMRC
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
fu! ResCur() " attempt to preserve cursor position
|
fu! ResCur() " attempt to preserve cursor position
|
||||||
|
|
Loading…
Reference in New Issue
Block a user