查了半天,打開命令 :filetype一看是關閉的vim
filetype detection:ON plugin:ON indent:OFFio
在vimrc裏打開file
filetype indent on 便可vimrc