Skip to content

Commit 2648939

Browse files
committed
Merge pull request #7 from bigjason/master
Stop code folding by default
2 parents e713ddc + 88ac59e commit 2648939

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.markdown

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ This version of this file features the following text highlights:
1414
- Browser, DOM and "Ajax" keywords like objects, methods, properties and others.
1515
- Operation, comparison and logical symbols (`=`,`==`,`===`,`!=`,etc.).
1616

17+
To enable code folding add the following to your `.vimrc`.
18+
19+
au FileType javascript call JavaScriptFold()
20+
21+
1722
###TODO
1823
You can help me improve it too.
1924

syntax/javascript.vim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@ function! JavaScriptFold()
195195
setl foldtext=FoldText()
196196
endfunction
197197

198-
au FileType javascript call JavaScriptFold()
199-
200198
" }}}
201199

202200
" Define the default highlighting.

0 commit comments

Comments
 (0)