Login | Sign up

May 22


0

Enable syntax highlighting in vi

Comments (0)

Vi supports syntax highlighting for many types of files including programming language and configuration files. You can turn it on and off whenever you need it.

Turn on syntax highlighting in vi

  1. Make sure you are in Normal mode. If you are unsure, press Esc.
  2. Type the following and press Enter
  1. :syntax on

Turn off syntax highlighting

  1. Make sure you are in Normal mode. If you are unsure, press Esc.
  2. Type the following and press Enter
  1. :syntax off
Tags:

Comments

There are no comments yet.


Post a new comment

Note: Items marked * are required fields

Post a comment

You must login before you can do that.

If you don't have an account, register for free. It's completely private.

Why register

  • rate posts and comments
  • ask questions about posts
  • request new topics/tutorials
  • mark posts as favorites to easily find them again