How to detect the file type in vim
- Type
filetype detect- it will detect automatically the file type - Manually with
set filetype=EXTwhereEXTis the file extension (i.e.mdfor markdown)
filetype detect - it will detect automatically the file typeset filetype=EXT where EXT is the file extension (i.e. md for markdown)