srech.vim 376 B

12345678910111213141516171819
  1. "function! Go(cmd,...)
  2. ""%这个是获取当前名字
  3. " exec "!time echo $GOROOT"
  4. " echo a:cmd
  5. "call Srech()
  6. "endfunction
  7. function! Srech()
  8. !command cd ~/.vim/bundle/self_vim/ && ./srech.sh
  9. endfunction
  10. "function! Start_go(start,...)
  11. " !command /bin/bash -c
  12. "echo 1;echo 2;echo $GOPATH"
  13. ""第一个参数
  14. " echo a:start
  15. ""第二个参数
  16. " echo a:{1}
  17. "endfunction