Permalink
Browse files

More whitespace highlighting. Adding in textmate javascript folding r…

…egexes for when I feel like writing my own custom folding for javascript.
  • Loading branch information...
1 parent b428c81 commit 97e7f2d4119a7a75a64d11a7c0ca85af76086c45 @ksykulev committed Dec 29, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 vimrc
View
10 vimrc
@@ -47,7 +47,7 @@ set statusline=%f " Show Full Path of file
set tabstop=2 " tabs space is 2
set list " Visual whitespace
-set listchars=tab:\ \ ,trail:.
+set listchars=tab:\ \ ,trail:.,extends:#,nbsp:.
set incsearch " Highlight Incremental searching
@@ -61,6 +61,14 @@ set foldlevel=1
set foldcolumn=1
" autocmd FileType ruby setlocal foldmethod=syntax
+"t 1.5
+" foldingStartMarker = '^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$';
+" foldingStopMarker = '^\s*\}';
+
+"t 2.0
+"foldingStartMarker = '\{\s*(//.*)?$|\[\s*(//.*)?$|\(\s*(//.*)?$';
+"foldingStopMarker = '^\s*\}|^\s*\]|^\s*\)';
+
let javaScript_fold=1 " JavaScript
let php_folding=1 " PHP
let ruby_fold=1 " Ruby

0 comments on commit 97e7f2d

Please sign in to comment.