view -c 'set ft=sql' -
viewis an alias forvim -R, which opens Vim in read-only mode.set ftis short forset filetype. As Martin Tournoij mentioned in his comment, setting the file type sets the syntax and more.
view -c 'set ft=sql' -
view is an alias for vim -R, which opens Vim in read-only mode.set ft is short for set filetype. As Martin Tournoij mentioned in his comment, setting the file type sets the syntax and more.