title: Vim Known File Types tags: vim type ## Show Current FileType ``` :set filetype? ``` ## Simple Solution to See Known Types See [this stackexchange](https://vi.stackexchange.com/questions/5780/list-known-filetypes). Type `:setfiletype ` (with a space afterwards), then press `Ctrl-d`. See `:help cmdline-completion` for more on autocompletion in vim's command line. ## Set File Type In File Comment ``` # vi: ft=gitconfig ```