My ~/.vimrc contains:
set tabstop=4 syntax on set number set noswapfile set hlsearch set ignorecase set incsearch set autoindent filetype plugin indent on
When I didn't have the last two lines, tab spacing was 4, as required. But when I used the last two auto-indenting lines, tab has been set back to 8 spaces. It seems like something about the last two lines overrides the tabstop parameter. Any fix for this? Vim is latest version 8.1 in ubuntu 20.04.