Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

Get the Current FileType in NVIM

If you’ve ever needed to debug a plugin, this might come in handy to get the current filetype. In my case, the filetype was not what I had assumed.

:set ft?
" or
:set filetype?

If you’re curious to learn more, you can use :help ft to check out the docs on filetype

Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.