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
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.
Question : Is there a way to set Gvim ( configuration or plugin ) to open PowerShell in a buffer (like bash)?
Now, the vim command works in terminal and PowerShell windows.
Using Nano as a PowerShell Text Editor. If you are new to terminal-based text editors or only need to make a quick edit to a file, Nano is ideal for you. Nano is lightweight, intuitive, and more suited for light text editing tasks compared to the other more advanced editors in this tutorial.
Method 1: Using Notepad The easiest way to edit a text file in PowerShell on your Windows machine is to run the command notepad.exe my_text_file. txt , or simply notepad my_text_file. txt , in your PowerShell terminal to open the text file with the visual editor Notepad.
Vim editor was specifically designed for Unix-based operating systems, but later it was also ported to the Windows platform.
Reread documentation for :shell
and design-not
. Quote from design-not:
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. ;-)"
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With