powershell 作为 gvim(vim) :shell [英] powershell as gvim(vim) :shell

查看:63
本文介绍了powershell 作为 gvim(vim) :shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 7 机器上,我已经安装了 Gvim(win32 版本不是 MinGW 或类似的东西),我写在我的 _vimrc

i'm on a Windows 7 machine and i've installed Gvim(win32 version not MinGW or something alike), i've written in my _vimrc

set shell=powershell.exe

现在,当我输入 :shell 命令时,它必须打开一个包含 powershell 的新缓冲区,但它会在新窗口中打开 powershell.

Now when i type :shell command it must open a new buffer with powershell in it but instead it opens powershell in a new window.

问题:有没有办法设置 Gvim(配置或插件)以在缓冲区(如 bash)中打开 PowerShell?

Question : Is there a way to set Gvim ( configuration or plugin ) to open PowerShell in a buffer (like bash)?

推荐答案

  1. 重读 :shelldesign-not 的文档.引自设计非:

  1. Reread documentation for :shell and design-not. Quote from design-not:

Vim 不是外壳或操作系统.您将无法运行在 Vim 中使用 shell 或使用它来控制调试器.这应该工作其他方法:将 Vim 用作 shell 或 IDE 中的组件.一种讽刺的说法:与 Emacs 不同,Vim 不会试图包含除了厨房水槽之外的所有东西,但有些人说你可以清洁一个用它.;-)"

Vim is not a shell or an Operating System. You will not be able to run a shell inside Vim or use it to control a debugger. This should work the other way around: Use Vim as a component from a shell or in an IDE. A satirical way to say this: "Unlike Emacs, Vim does not attempt to include everything but the kitchen sink, but some people say that you can clean one with it. ;-)"

  • 当然,有人不喜欢这样.有一些项目可以在 vim 中运行 shell,最著名的是 Conque,它现在支持 Windows.请注意,它不适用于 unicode.

  • Of course, somebody does not like this. There are some projects that make it possible to run shell inside vim, most known is Conque which now has windows support. Note that it does not work with unicode.

    这篇关于powershell 作为 gvim(vim) :shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆