Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Stop code folding by default #7

Merged
merged 2 commits into from almost 2 years ago

2 participants

Jason Webb Jose Elera
Jason Webb

Remove the auto command that enables code folding by default. Moved the command to the readme so people who want to have it can opt in to it.

added some commits April 22, 2012
Jason Webb Stop code folding by default.
There is no reason to force this on users.  Let people opt in, in their
own .vimrc.
6c21d00
Jason Webb Update readme. 88ac59e
Jose Elera jelera merged commit 2648939 into from May 11, 2012
Jose Elera jelera closed this May 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 2 unique commits by 1 author.

Apr 22, 2012
Jason Webb Stop code folding by default.
There is no reason to force this on users.  Let people opt in, in their
own .vimrc.
6c21d00
Jason Webb Update readme. 88ac59e
This page is out of date. Refresh to see the latest.
5  README.markdown
Source Rendered
@@ -14,6 +14,11 @@ This version of this file features the following text highlights:
14 14
 - Browser, DOM and "Ajax" keywords like objects, methods, properties and others.
15 15
 - Operation, comparison and logical symbols (`=`,`==`,`===`,`!=`,etc.).
16 16
 
  17
+To enable code folding add the following to your `.vimrc`.
  18
+
  19
+    au FileType javascript call JavaScriptFold()
  20
+
  21
+
17 22
 ###TODO
18 23
 You can help me improve it too.
19 24
 
2  syntax/javascript.vim
@@ -195,8 +195,6 @@ function! JavaScriptFold()
195 195
 	setl foldtext=FoldText()
196 196
 endfunction
197 197
 
198  
-au FileType javascript call JavaScriptFold()
199  
-
200 198
 " }}}
201 199
 
202 200
 " Define the default highlighting.
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.