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. 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.