From 8292bb42e84d4c05858dd4fdfa58ee614bac6d72 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Sat, 3 Aug 2019 15:58:59 -0400 Subject: [PATCH] vim: fix assembler files not setting tabstop --- vim/vimrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index 85168ea..604a467 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -128,6 +128,12 @@ fu _agw.close_empty() endif endfu +fu _agw.setup_asm() + setlocal shiftwidth=8 + setlocal tabstop=8 + setlocal filetype=asm_ca65 +endfu + " Settings -------------------------------------------------------------------| " general settings (use :help for these) @@ -390,7 +396,7 @@ endif au FileType markdown set comments+=fb:- comments-=b:- indentexpr= " 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 au BufEnter * call _agw.close_empty()