查了半天,打开命令 :filetype一看是关闭的 filetype detection:ON plugin:ON indent:OFF 在vimrc里打开 filetype indent on 即可 相关文章: 2022-12-23 2022-12-23 2022-12-23 2021-07-30 2021-09-12 2021-10-06 2022-12-23 2022-12-23