可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
One of the reasons I usually don't use an IDE for development is that I'm so used to vi keybindings that I usually end up messing up my text and putting in lots of ":w"s, and I can't use vi's powerful regex replace mechanism. Are there any IDEs that allow you to configure vi keybindings or use vi as the editor within the IDE?
Related:
Is it possible to use vi or vim keymap in NetBeans?
回答1:
There's jVi for NetBeans. There's also viPlugin for Eclipse, but it's not free. :(
回答2:
There is ViEmu which provides vim key bindings for Visual Studio. I haven't used it, but I probably would if I were working in VS and not actually using vim.
Also, I know that SlickEdit has a vi keybinding option.
回答3:
PIDA is an IDE that has real Vim integrated, embedded, and smoothly controlled. In my opinion, no amount of emulation beats actual Vim, where you can use all your Vim plugins, syntax highlighting etc.
Obligatory Screenshot.
回答4:
There's IDEAVim for IntelliJ which is rad.
回答5:
For Eclipse there is also vrapper, It is free. I use it for two weeks and works great.
EDIT:
I have been experiencing errors while refactoring methods so I stopped using it.
Now I'm using ViPlugin. It works fine and I recommend it but it is not free (but cheap and has the trial version)
回答6:
You can try free Komodo Edit which has intgrated vi mode.
回答7:
For Visual Studio there's ViEmu (http://www.viemu.com/). Unfortunately it is not free, and it is not 100% Vim. I've been using it for 1-2 years now and is really happy with it, as it allows me to do most of what I'm used to from Vim.
I doesn't replace all of VS's key bindings, so you can actually mix VS and Vim commands, which is nice. However, it does make life a little harder if you want to use other plug-ins such as ReSharper and the like.
回答8:
Editra has vi emulation, is cross platform, handles syntax highlighting, etc... seems nice. I've just started using it at home on my mac, and will probably switch to it in the office too.
回答9:
回答10:
MonoDevelop can both embed vim as the editor and the default editor has a vi mode.
MonoDevelop is now available on Windows and Mac as well as Linux.
回答11:
QT Creator also has a vi mode for it's editor.
However, not all features of vim are supported. Really it is good if you are looking for vi style editing, but doesn't have enough features to really feel like you are working in vim.
回答12:
I'm in the same boat. My brain thinks in vi, and coding with different keybindings is like trying to translate to a different language during a conversation.
I used viPlugin for a few years (up until 2008), but always had the impression it was masking lots of Eclipse goodness in terms of completion and lookup functionality and I just eventually reverted to command line vi again.
I'm going through a trial with Komodo right now, and I'm tempted to spring for the full blown commercial license. It builds in vi emulation, so it's a ground-up approach rather than some tacked-on add in.
Another path you might consider is taking steps to make vi more IDE-like, ala...
http://arstechnica.com/open-source/guides/2009/05/vim-made-easy-how-to-get-your-favorite-ide-features-in-vim.ars
回答13:
Tasking EDE has a vi mode, if you're lucky enough to be coding for one of the embedded devices it targets.
回答14:
Try Activestate's Komodo IDE - there's a free Komodo Edit as well not sure if the bindings are included. I really like it particularly for perl and html/css work.
回答15:
There's meanwhile an excellent free and (from my limited perspective, but the many raving reviews probably speak for themselves) entirely sufficient alternative to the twice mentioned still commercial ViEmu for Visual Studio available, namely the VsVim Extension:
This is a Vim Emulation layer for Visual Studio 2010 [and 2012]. It integrates the familier key binding experience of Vim directly into Visual Studio's editor.
It's developed via Jared Parsons' GitHub project jaredpar/VsVim - a list of Supported Features and a FAQ addressing the interoperability choices/options is available there as well, most notably addressing how to Temporarily disable VsVim:
VsVim can be temporairly disabled by the key sequence Ctrl+Shift+F12 and re-enabled later by the same key sequence. While disabled VsVim will not interfere with any keyboard or selection allowing you to use Visual Studio as if VsVim wasn’t installed.
回答16:
Most IDE's that I know of (eclipse, netbeasn, VS200X) have replace with regex features available, Im not a big vi user, what do you really want to be able to do?
My advice is to really take the time to learn the IDE of choice and you will soon be a very efficient (in different ways) developer within that environment, they wouldnt be popular IDE's if there were in efficient.
I switch between IDE's a lot, and you end up just getting used to pushing the wrong key combinations, its not that bad.