On 12/10/2012 7:21 PM, Marcin Szamotulski wrote:
It seems you are using my plugin:).  If you update vim to at least 7.3.686
(this is documented in the plugin).

oh yes this one "system.vim" of yours looks the culprit ...
so looks I have to disable it in my usage case?

 28 " Benefits: you get completion for system commanads and system files.
 29 " Copyright: © Marcin Szamotulski, 2012
 30
 31 " I learned how to do that reading the emacscommandline plugin.
 32 "
 33 " Other plugins with shell like functionality:
34 " vim-addon-async by Marc Weber: https://github.com/MarcWeber/vim-addon-async
 35 " Conque Shell plugin: http://code.google.com/p/conque
36 " vimproc plugin: http://github.com/Shougo/vimproc/tree/master/doc/vimproc.txt
 37 "
 38 " Happy viming,
 39 "  Marcin Szamotulski
 40
 41 if !exists("g:system_expand")
 42     let g:system_expand = 1
 43     " If 1 expand % as in the command line.
 44 endif
 45 if !exists("g:system_echocmd")
 46     let g:system_echocmd = 1
 47 endif
 48
 49 fun! <SID>WrapCmdLine() <-----------
 50     let cmdline = getcmdline()
 51     " Add cmdline to history
 52     if cmdline[0:1] == "! "
 53         let cmd = cmdline[2:]
 54         call histadd(":", cmdline)
 55         if g:system_expand
 56             let cmd_split = split(cmd, '\ze\\\@<!%')
 57             let cmd = ""
 58             for hunk in cmd_split
 59                 if hunk[0] == '%'
60 let m = matchstr(hunk, '^%\%(:[p8~.htre]\|:g\=s?[^?]*?[^?]*?\)*')
 61                     let exp = expand(m)
 62                     let cmd .=exp.hunk[len(m):]
 63                 else
 64                     let cmd .=hunk
 65                 endif
 66             endfor
 67         endif
 68         let cmd = escape(cmd, "\"")
 69         let his = "|call histdel(':', -1)"
 70         if g:system_echocmd
 71             return "echo \"".cmd."\n\".system(\"".cmd."\")".his
 72         else
 73             return "echo system(\"".cmd."\")".his
 74         endif
 75     endif
 76     return cmdline
 77 endfun
 78 cnoremap <silent> <CR> <C-\>e<SID>WrapCmdLine()<CR><CR>
.vim/plugin/system.vim [utf-8] [vim] [78/78,1] [100%]


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to