[from now] 2013/02/24 21:13:49

diff --git a/vim/.vimrc b/vim/.vimrc
index 64054f3..95d5168 100755
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -1290,16 +1290,12 @@ let s:hook = {
             \ }
 function! s:hook.on_success(session, context)
     let list = []
-    "call add(list, "@if(0)==(0) ECHO OFF\r")
     call add(list, "@if(0)==(0) ECHO OFF")
     for line in readfile(a:session.config.srcfile, '', 10)
         if line =~ '^//' || line =~ '^#'
             if line[3 : 4] =~ 'OP' || line[2 : 3] =~ 'OP'
                 "echom 'option : ' . line[stridx(line, '"') + 1 : -2]
                 if line[stridx(line, '"') + 1 : -2] =~ '^pushd'
-                    "call add(list, "    pushd \"%~dp0\" > nul\r")
-                    "call add(list, "    CScript.exe //NoLogo //E:JScript \"%~f0\" %*\r")
-                    "call add(list, "    popd > nul\r")
                     call add(list, "    pushd \"%~dp0\" > nul")
                     call add(list, "    CScript.exe //NoLogo //E:JScript \"%~f0\" %*")
                     call add(list, "    popd > nul")
@@ -1309,10 +1305,6 @@ function! s:hook.on_success(session, context)
             endif
         endif
     endfor
-    "call add(list, "pause\r")
-    "call add(list, "GOTO :EOF\r")
-    "call add(list, "@end\r")
-    "call add(list, "\r")
     call add(list, "pause")
     call add(list, "GOTO :EOF")
     call add(list, "@end")
@@ -1325,7 +1317,7 @@ function! s:hook.on_success(session, context)
     let cp932List = []
     for line in utf8List
         "call add(cp932List, iconv(line, "UTF-8", "CP932"))
-        call add(cp932List, iconv(substitute(line, "\r", "\r\n", "",), "UTF-8", "CP932"))
+        call add(cp932List, iconv(substitute(line, "\n", "\r\n", "",), "UTF-8", "CP932"))
     endfor
     call writefile(cp932List, outCmd, 'b')
     if has('win32') || has('win64')