vim: add racket indentation config
parent
27b266450b
commit
aeae583aa3
10
vim/vimrc
10
vim/vimrc
|
@ -126,6 +126,13 @@ fu _agw.close_empty()
|
||||||
endif
|
endif
|
||||||
endfu
|
endfu
|
||||||
|
|
||||||
|
fu _agw.setup_rkt()
|
||||||
|
setlocal shiftwidth=2
|
||||||
|
setlocal tabstop=2
|
||||||
|
setlocal softtabstop=2
|
||||||
|
setlocal expandtab
|
||||||
|
endfu
|
||||||
|
|
||||||
fu _agw.setup_asm()
|
fu _agw.setup_asm()
|
||||||
setlocal shiftwidth=8
|
setlocal shiftwidth=8
|
||||||
setlocal tabstop=8
|
setlocal tabstop=8
|
||||||
|
@ -448,6 +455,9 @@ endif
|
||||||
" markdown sucks
|
" markdown sucks
|
||||||
au FileType markdown set comments+=fb:- comments-=b:- indentexpr=
|
au FileType markdown set comments+=fb:- comments-=b:- indentexpr=
|
||||||
|
|
||||||
|
" Racket options
|
||||||
|
au FileType racket call _agw.setup_rkt()
|
||||||
|
|
||||||
" ASM options
|
" ASM options
|
||||||
au BufEnter *\.asm,*\.s,*\.inc,*\.i call _agw.setup_asm()
|
au BufEnter *\.asm,*\.s,*\.inc,*\.i call _agw.setup_asm()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue