Vi Plug-in for NetBeans

The waiting is over. You can now use the new vi plug-in for NetBeans to edit your sources. This feature has been requested many times by people all over the world, so it's great that it is now available. Creator of jVi, if you read this post, please drop me an e-mail, you'll get a NetBeans 5.5 T-shirt from me :)

Vi's popular command (doesn't work in the plug-in though)

Well - time to install netbeans!

Posted by nax on únor 18, 2007 at 04:14 odp. CET #

Time to switch to netbeans!

Posted by Michael on únor 19, 2007 at 07:25 dop. CET #

I don't wanna look stupid but, what's the use of tnis plug-in as NetBeans is itself a rich editor ? Can someone tell me ? Thanks

Posted by Laurent M on únor 19, 2007 at 08:02 dop. CET #

I was so excited to see vi for netbeans, and I fired up netbeans 5.5 right away, only to discover it nolonger will allow adding a nbm file manually. Clicking the Add button fires of a long list of awt and swing errors. Must be the Java 6.0 that I've added. Bummer. I guess it's the thought that counts. Thanks, Dave

Posted by David Allen on únor 19, 2007 at 10:20 dop. CET #

Laurent: I use VIM and my fingers are simply trained to use VI and VIM keybindings to get things done very quickly, and I don't have to lift my hand off the keyboard to touch the mouse as I don't need the mouse, and I don't have to use modifier keys much (unlike, say, emacs). No, I _must_ have vi keybindings.

Posted by Nico on únor 19, 2007 at 10:20 dop. CET #

[Trackback] I saw in a recent post by Roumen that there is now a vi plug-in for Netbeans.  I've installed  it and have given it the once over.  It is really a quite faithful implementation of vi edit mode.   I can now use all of the fing...

Posted by Duke Listens! on únor 19, 2007 at 10:31 dop. CET #

David : Yes, now I understand your ( very good) point ;) Our time is precious :D

Posted by Laurent M on únor 19, 2007 at 01:21 odp. CET #

David, I wrote jVi with NB55 and JDK1.6. I have heard that it works with JDK1.5, except for searching. Seems like you are experiencing something broken with your installation. -ernie

Posted by Ernie Rael on únor 19, 2007 at 02:22 odp. CET #

Thats cool, thanks a lot. But I have one problem with it. Sometimes it goes to the state that cursor keyes, backspace etc. enter rectangle characters instead of moving. I'm long time (10 years+) user of vim/gvim and I have no problem there. Is there some workaround and/or setting that can turn off this behaviour? Thanks for great job Tom

Posted by Tomáš Hubálek on únor 20, 2007 at 02:46 dop. CET #

After half day of using my initial enthusiasm disappeared.

Not only the problem with cursor commands mentioned in previous comment but also visual selection of the lines (command V in VIM) and increasing and decreasing numbers (Ctrl+X, Ctrl+A in VIM) that are not even planned for implementation :-(

BTW: is it because of NetBeans does not allow to override it? In case that it is not I may try to do implement it myself.

I turned off the module for now and will look at it in future.

Posted by Tomáš Hubálek on únor 20, 2007 at 06:51 dop. CET #

Tom, In input mode the movement with the cursor keys is not supported; in the snapshot you have they are entered into the text and you see rectangles, in my development version they take you out of input mode. But backspace should not do that; you can set options for backspace behavior in input mode as with vim. I didn't think \^X,\^A were widely used, they can be added to the list (relatively easy I think). BTW, there are options to enable/disable which keys are delivered to jVi. Bug reports can be filed through . Visual mode is a lot of work and not planned; much of the visual mode code from vim is still in the jVi code, but non functional or commented out (I still have the baseline code). It would be terrific if someone took on visual mode. -ernie

Posted by Ernie Rael on únor 20, 2007 at 12:00 odp. CET #

Hi, yeah i love this thing called NetBeans IDE. Further i love the vi for nb. It's a great time reduction. Please go on with this stuff. Yours Matze

Posted by Matthias Koenig on únor 20, 2007 at 12:49 odp. CET #

Huzzah! Great work, Ernie! It figures, just as I'm leaving on my round-the-world trip. I won't even get a chance to play with it for a year! I hope my old attempts/code was of some help.

Posted by Rich Unger on únor 20, 2007 at 09:12 odp. CET #

Rich, Your original proof of concept saved me countless hours. I was able to focus on small parts of getting jVi integrated without having to understand huge parts of NetBeans (although it felt like I was looking at huge parts). The good news is that I'm getting close to having a method that doesn't subclass EditorKits, and just adds jVi to whatever keybindings are selected, and so it works with any editor in the system. -ernie

Posted by Ernie Rael on únor 21, 2007 at 12:10 dop. CET #


thanks for your response. Looking forward at least the version when cursor keys leave input mode.

BTW: How to select lines of code not using e.g. 5yy to copy 5 lines from current position? I never adapted to this.

Regarding Ctrl-A, Ctrl-X it is good news.

Thanks a lot for your effor, I will stay tunned and looking forward next releases...


Posted by Tomáš Hubálek on únor 21, 2007 at 01:48 odp. CET #

Tom, I'm not certain what you are asking about "5yy". In the distributed docs there is a section called "5. Copying and moving text" of "Change and Delete", or online at . -ernie

Posted by Ernie Rael on únor 21, 2007 at 04:39 odp. CET #

Post a Comment:
Comments are closed for this entry.

Roman Strobl


« srpen 2016