Syntax highlighting in vim for python
The command to enable syntax highlighting in vim is :syntax on
, if you want it to be active everytime you launch vim, just add a line containing syntax on
in your .vimrc file.
Put the line syntax on
in your .vimrc
.
- Verify that you have the latest version of vim, equally execute
sudo apt-get install vim
- Modify the
.vimrc
file with the instructionecho "syntax on" >> ~/.vimrc
- Open the file with
vi app.py
. You will see the Syntax highlighting