0
1
I'm writing an SML
program and I'm trying to change the size of indents. If I add the following to my .vimrc
file
set tabstop=8
set shiftwidth=8
set expandtab
It is not reflected in my actual files. I know this because when I open a .sml
file and type :set
it reveals that shiftwidth=2
I believe that vim is using a sml
plugin because my .vimrc
file (similar to the default one) has the following:
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
First off, What does if has ("autocmd") mean? And second How can I adjust the default indent size for .sml files? Where might I be able to find this plugin (if this indeed is the issue? I still want to keep the rest of the sml plugin's features.