Question: what are the best settings with respect to vimrc in exam ? I have adde . . .

Jia:
Question: what are the best settings with respect to vimrc in exam ?
I have added
set tabstop=2
set expandtab
set autoindent
set paste
syntax off
But hitting issues like found-a-tab-character-that-violate-intendation while copy pasting from K8s doc
Can you please help what am i missing and suggest some basic settings easy to remember, not good at vi

Deepak Ladwa:
set ts=2
set sts=2
set sw=2
set et
set bg=dark
set autoindent
set nowrap
set paste

Tej_Singh_Rana:
Hello, @Jia
expandtab and paste both won’t work in the same file.

Jia:
@Tej_Singh_Rana so where should expandtab be placed ?
also, why getting this error
found-a-tab-character-that-violate-intendation while copy pasting from K8s doc

Jia:
these are the settings from lab env… should they be good
controlplane $ cat ~/.vimrc
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
set bg=dark
set nowrap
set paste
controlplane $