From 6c21d00079ddd524f4ea1144c1a3f9503978c566 Mon Sep 17 00:00:00 2001 From: Jason Webb Date: Sun, 22 Apr 2012 09:36:52 -0600 Subject: [PATCH 1/2] Stop code folding by default. There is no reason to force this on users. Let people opt in, in their own .vimrc. --- syntax/javascript.vim | 2 -- 1 file changed, 2 deletions(-) diff --git a/syntax/javascript.vim b/syntax/javascript.vim index 213a595..b5e345d 100644 --- a/syntax/javascript.vim +++ b/syntax/javascript.vim @@ -195,8 +195,6 @@ function! JavaScriptFold() setl foldtext=FoldText() endfunction -au FileType javascript call JavaScriptFold() - " }}} " Define the default highlighting. From 88ac59ee8448784fc5c3024a60c857d4601fb671 Mon Sep 17 00:00:00 2001 From: Jason Webb Date: Sun, 22 Apr 2012 09:39:05 -0600 Subject: [PATCH 2/2] Update readme. --- README.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.markdown b/README.markdown index c581042..b89a0d0 100644 --- a/README.markdown +++ b/README.markdown @@ -14,6 +14,11 @@ This version of this file features the following text highlights: - Browser, DOM and "Ajax" keywords like objects, methods, properties and others. - Operation, comparison and logical symbols (`=`,`==`,`===`,`!=`,etc.). +To enable code folding add the following to your `.vimrc`. + + au FileType javascript call JavaScriptFold() + + ###TODO You can help me improve it too.