Permalink
Browse files

javascript indentation

  • Loading branch information...
1 parent 8791521 commit eb5101e95a4715a0a751264e82f36f93e47421f9 @gabesoft committed Jun 22, 2012
Showing with 10 additions and 7 deletions.
  1. +4 −4 .gitconfig.view
  2. +2 −3 .vim/indent/javascript.vim
  3. +4 −0 .vim/indent_test/indent_work2.js
View
@@ -18,7 +18,7 @@ setlocal commentstring=;\ %s
setlocal complete=.,w,b,u,t,i
setlocal concealcursor=
setlocal conceallevel=0
-setlocal completefunc=neocomplcache#auto_complete
+setlocal completefunc=neocomplcache#manual_complete
setlocal nocopyindent
setlocal cryptmethod=
setlocal nocursorbind
@@ -102,12 +102,12 @@ setlocal nowinfixwidth
setlocal nowrap
setlocal wrapmargin=0
silent! normal! zE
-let s:l = 8 - ((7 * winheight(0) + 35) / 71)
+let s:l = 44 - ((43 * winheight(0) + 30) / 60)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
-8
-normal! 071l
+44
+normal! 083l
lcd /apps/blogmon/lib
let &so = s:so_save | let &siso = s:siso_save
doautoall SessionLoadPost
@@ -833,11 +833,10 @@ function! s:ApplyVarRules(indent, data)
if !s:OpenVar(line) | return -1 | endif
- let indent = s:IndentFwd(indent(snum), l0, line)
if s:EndsWithSemi(line)
- return indent
+ return s:IndentFwd(indent(snum), l0, line)
else
- return s:AddTab(indent, l0, l1)
+ return s:AddTab(indent(snum), l0, line)
endif
endif
@@ -1,3 +1,7 @@
+var text = [ //
+ new Text('The output of all processes has been turned ' ) //
+ , new Text('on', 'green') ] //
+ , lines = this.makeLines(text, 2); //
Proc.prototype.toJSON = function() { //
return { //

0 comments on commit eb5101e

Please sign in to comment.