VIM: Append Filetype

If you open a file with a non-standard extension, syntax highlighting will not work. This is easily solved by installing filetype manually. :set filetype=markdown You can add a hint for VIM about the file type to the file so that you don’t have to set the type manually the next time. ~ cat Readme # vi:syntax=markdown I wanted to make a hotkey to add information about its type to the end of the file....

June 6, 2020