Find what filetype is loaded in vim

前端 未结 5 848
旧巷少年郎
旧巷少年郎 2021-01-29 19:09

As soon as I load any file in vim, It\'ll try to detect the file and color-highlight it if possible.

I want to know a vim command that will tell me which ftplugin or Fil

5条回答
  •  时光说笑
    2021-01-29 19:42

    You can also add the filetype to your status line or window title using the %y and %Y items. See

    :help 'statusline'
    :help 'titlestring'
    

提交回复
热议问题