vim: fix assembler files not setting tabstop
parent
19d22efcaa
commit
8292bb42e8
|
@ -128,6 +128,12 @@ fu _agw.close_empty()
|
||||||
endif
|
endif
|
||||||
endfu
|
endfu
|
||||||
|
|
||||||
|
fu _agw.setup_asm()
|
||||||
|
setlocal shiftwidth=8
|
||||||
|
setlocal tabstop=8
|
||||||
|
setlocal filetype=asm_ca65
|
||||||
|
endfu
|
||||||
|
|
||||||
" Settings -------------------------------------------------------------------|
|
" Settings -------------------------------------------------------------------|
|
||||||
|
|
||||||
" general settings (use :help for these)
|
" general settings (use :help for these)
|
||||||
|
@ -390,7 +396,7 @@ endif
|
||||||
au FileType markdown set comments+=fb:- comments-=b:- indentexpr=
|
au FileType markdown set comments+=fb:- comments-=b:- indentexpr=
|
||||||
|
|
||||||
" ASM options
|
" ASM options
|
||||||
au BufNewFile,BufRead *.s,*.inc setlocal shiftwidth=8 filetype=asm_ca65
|
au BufNewFile,BufRead *.s,*.inc call _agw.setup_asm()
|
||||||
|
|
||||||
" close empty buffers automatically
|
" close empty buffers automatically
|
||||||
au BufEnter * call _agw.close_empty()
|
au BufEnter * call _agw.close_empty()
|
||||||
|
|
Loading…
Reference in New Issue