Tuesday, April 23, 2024
HomeSoftware EngineeringAllow Syntax Highlighting in Vim

Allow Syntax Highlighting in Vim


There are a couple of alternative ways to allow Syntax Highlighting in Vim.

Choice 1 – Edit ~/.vimrc

Add syntax on to your native ~/.vimrc

echo "syntax on" >> ~/.vimrc

Choice 2 – Override System Vim (Mac)

cd
vim --version
xcode-select --install
ruby -e "$(curl -fsSL https://uncooked.githubusercontent.com/Homebrew/set up/grasp/set up)"
brew physician
brew set up vim --override-system-vim
vim --version

Choice 3 – Toggle in Vim

You need to use Vim Instructions whereas in Vim itself:

:syntax on
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments