Considering that jVi does not support .vimrc files, what alternatives do we have that do support .vimrc files? Specifically, I have many handy insert-mode mappings that I would prefer not to give up, such as this:

inoremap kk <Esc>A

Additionally, there are some mappings that I could live without, but I think that I will need real VIM for, such as this:

inoremap hh <c-o>?\%<c-r>=line('.')<Return>l\({}\\|\[]\\|<>\\|><\\|()\\|""\\|''\\|><lt>\)?s+1<Return>

Note: I know that the question of VIM keybindings in Netbeans / Eclipse / any IDE comes up often enough, but in this question I am not asking about VIM keybindings, but rather about .vimrc specifically, or better yet real VIM embedded in Netbeans. I have not seen this facet addressed in any other of the myriad of ostensibly-similar posts.

I have looked at Vi Vim for netbeans / ViEx, vim for netbeans, and others. Apparently VIM includes a socket interface for integration into an IDE which is interestingly enough called "netbeans". The help file for this feature lists a few projects, but is terribly out of date. The only project that still seems active from that file is PIDA but their website is down.

  • It looks like you've nailed the question. What language do you use? What features do you need in netbeans? Did you consider using Eclipse instead of Netbeans? Eclim works quite well. – romainl Aug 21 '12 at 13:28
  • I find Eclipse to be unacceptably slow, even with 4 GiB of RAM and a modern dual-core processor. Additionally, Eclipse has terrible support for remote file systems (FTP or SSH). Other than that, I do like Eclipse and have used it much more than Netbeans. For remote coding I'm almost exclusively in PHP / MySQL / HTML / Javascript. For local coding I'll do anything including PHP, Python, Java, and maybe some Mono / C#. My OS is Kubuntu Linux. – dotancohen Aug 21 '12 at 14:06
  • 5
    jVi has an option panel where you can add your own mappings. Here, your kk works as is but your hh doesn't. With some effort, you might be able to "port" most of your custom mappings. – romainl Aug 21 '12 at 20:44
  • 2
    +1 for the mention of the socket interface. I didn't know about that. And also the hh mapping :) – echristopherson Aug 21 '12 at 22:55
  • Thanks, Romainl, putting things in that configuration textarea helps. – dotancohen Aug 22 '12 at 0:24

IntelliJ has nice Vim plugin, and it supports vimrc. Ofc it's not 100% compatible but like 85-90% which is greater. IDE itself is not free but you can use development version which is pretty stable https://www.jetbrains.com/idea/

The other nice solution as @romainl mention is Eclim http://eclim.org/ It gives you IDE power in your Vim.


Is gVim sufficient for your purposes?

  • I am currently using VIM, but was hoping to get into an IDE. gVIM and VIM it will be until I can find an IDE that supports a real VIM experience. – dotancohen May 7 '13 at 19:58
  • @dotancohen Only Vim provides a real Vim experience. – mcandre May 8 '13 at 11:45
  • Indeed, which is why it's disappointing that there doesn't seem to be a NetBeans-style socket interface for JetBrains, PyCharm, Idea, etc. I think I'm going to have to change IDEs. – Michael Scheper Jan 11 '19 at 3:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.