Newbie here. I opened a file without any extension with VIM, and its syntax is highlighted. I want to know which command will show me that which syntax highlighting is being used? i.e., is this a C++ highlighting or C highlighting....?
VIM tries to automatically detect file type by default. To see which file type is currently detected type (in command mode):
:set filetype?
to set it to any particular type:
:set filetype=<filetype>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With