vim 101 hacks
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Buyer: xiujuan lu (luxiujuan@gmail.com)<br />
Transaction ID: 85W16630AD8515549<br />
Vim <strong>101</strong> Hacks<br />
www.thegeekstuff.com<br />
Chapter 8: Vim as a Programmers Editor<br />
The following <strong>hacks</strong> will be of use to you for all programming languages and<br />
shell scripts.<br />
Hack 43. Make Vim Highlight Your Code Smartly<br />
Command<br />
:syn on<br />
Description<br />
Turn on the syntax highlighting<br />
:syn off<br />
Turn off the syntax highlighting<br />
The following screenshot shows the difference between on and off state.<br />
Syntax Highlighting On<br />
Syntax Highlighting Off<br />
81