Skip to main content
1 of 3
anishpatel
  • 173
  • 1
  • 5
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.
anishpatel
  • 173
  • 1
  • 5