Vi Plug-in for NetBeans

Guest Author

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)

Join the discussion

Comments ( 16 )
  • nax Sunday, February 18, 2007
    Well - time to install netbeans!
  • Michael Monday, February 19, 2007
    Time to switch to netbeans!
  • Laurent M Monday, February 19, 2007
    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 ?
  • David Allen Monday, February 19, 2007
    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.
  • Nico Monday, February 19, 2007
    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.
  • Duke Listens! Monday, February 19, 2007
    [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...
  • Laurent M Monday, February 19, 2007
    David : Yes, now I understand your ( very good) point ;)
    Our time is precious :D
  • Ernie Rael Monday, February 19, 2007
    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
  • Tomáš Hubálek Tuesday, February 20, 2007
    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áš Hubálek Tuesday, February 20, 2007
    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.
  • Ernie Rael Tuesday, February 20, 2007
    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 https://sourceforge.net/projects/jvi/ . 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
  • Matthias Koenig Tuesday, February 20, 2007
    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.
  • Rich Unger Tuesday, February 20, 2007
    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.
  • Ernie Rael Tuesday, February 20, 2007
    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
  • Tomáš Hubálek Wednesday, February 21, 2007

    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...

  • Ernie Rael Wednesday, February 21, 2007
    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 http://jvi.sourceforge.net/vimhelp/change.txt . -ernie
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.