vim finding all extensions associated with a filetype

1

How can I find all file extensions that will use specific filetype (highlighting)?

For example I know that both ".xml" and ".xmi" files will by opened as "xml" filetype, however I would like to find what else.

Peter Uhnak

Posted 2015-12-05T12:33:53.423

Reputation: 113

Answers

1

Run vim

 vim

Redirect ex commands to the buffer a:

:redir @a

Print all of auto commands:

:au

Switch of redirecting:

:redir END

Paste the buffer a to text

"ap

Search for all occurrences of the setf xml.

Zaboj Campula

Posted 2015-12-05T12:33:53.423

Reputation: 341