Many times in a Unix environment, the file extension of an executable is removed and Vim/Vi may not pick up on the language used. Forcing syntax highlighting in a specific language is easy. For instance, to set the highlighting language to C:

:setf c

For bash:

:setf sh
Posted in Vim
Share this post, let the world know

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">