vimrc trick not bad :
To put this into a mapping, you can use: :map :if exists("g:syntax_on") \ syntax off \ else \ syntax enable \ endif