d00614f860c8

vim: js folding
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 08 Nov 2010 14:04:30 -0500
parents 95ec2bfa74b6
children dc87b30d17e0
branches/tags (none)
files vim/.vimrc

Changes

--- a/vim/.vimrc	Thu Nov 04 17:07:48 2010 -0400
+++ b/vim/.vimrc	Mon Nov 08 14:04:30 2010 -0500
@@ -190,6 +190,8 @@
 au BufRead,BufNewFile /etc/nginx/conf/* set ft=nginx
 au BufRead,BufNewFile /etc/nginx/sites-available/* set ft=nginx
 au BufRead,BufNewFile /usr/local/etc/nginx/sites-available/* set ft=nginx
+au BufNewFile,BufRead *.js set foldmethod=marker
+au BufNewFile,BufRead *.js set foldmarker={,}
 
 " Easier linewise reselection
 map <leader>v V`]