From 89f388f0b9af53fda4479cbc33a60e2efb6a53ff Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 27 Feb 2011 11:51:39 +0100 Subject: vimrc: Add syntax toggle (totally copied from :help syntax) --- etc/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'etc') diff --git a/etc/vimrc b/etc/vimrc index f015330..38b454e 100644 --- a/etc/vimrc +++ b/etc/vimrc @@ -39,6 +39,13 @@ set redrawtime=500 " Chaosdorf autocmd BufRead ~/var/svn/intern.chaosdorf.de/admin/log.mdwn nnoremap :5O### =strftime("%Y-%m-%d") derf- +map :if exists("g:syntax_on") + \ syntax off + \ else + \ syntax enable + \ endif + + " Greedy remaps (TODO: Add more keys) noremap - : noremap n h -- cgit v1.2.3