netbeans jvi vimrc file location - netbeans

I have started using netbeans vim plugin Jvi and i cant seem to find the vimrc file location
I found an option that seem to say that it will save the vimrc in the home folder, but there isnt one there.
I am using Ubuntu.
thanks

jVi does not support vimscript, so it does not handle a vimrc file. As mentioned, you can configure jVi in NetBeans with
Tools > Options > jViConfig

For most vi-like systems the .vimrc file is optional - if it is there, the program will use it, if it isn't it'll just use the defaults.
From a brief look at the jVi sourceforge page it seems as if the settings in the GUI are equivalent to creating a .vimrc file - so you can either set the details there, or create your own .vimrc.

Related

Perl IDE Padre: how to format the source code

How can I have something like in eclipse, highlight the lines, right click Source --> Format, and make the code line up nicely.
There is a tool called Perl::Tidy which is highly configurable that does auto formatting of Perl code. Padre has a plugin to use it. You can find the documentation here.
Padre has a plugin called Padre::Plugin::PerlTidy that provides integration with the above module. It uses the default settings of perltidy or the settings of the current project to tidy the current file or the current selection in the editor.
It probably will use the .perltidyrc config file in your project directoy, though I am note sure about that.
Finally I figured out. First download the plugin gzip from here: search.cpan.org/~azawawi/Padre-Plugin-PerlTidy-0.22/lib/Padre/…, then install it from Tools --> Module Tools --> Install Local Distribution. Then from Tools --> Plugin Manager, enable the Perl Tidy. Finally I can see this menu: Tools/Perl Tidy/Tidy the Active Document, as mentioned here padre.perlide.org/features/perl-tidy.html.

how can I make the internal editor the default editor in eclipse

I want the default edior to be the internal editor and not the system editor.
I have it configured in window->preferences->file associations to use default internal xml editor for *.xml yet eclipse always tries to open files with OS system editor. How can I prevent this?
The editor type is mapped to file type; you can do this on a per-workspace (global) or per-project basis.
It should be pretty much as simple as this:
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.wst.xmleditor.doc.user%2Ftopics%2Ftxprefs.html
Go into "Help, Install Software, What is already installed?" and make sure you have "Eclipse XML Editors and Tools" installed. You you don't, then get it.
Finally, create a new, "clean" project, add an XML file, and verify it works correctly
I found this question but the answers didn't help me, so I continued searching and found the answer here http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-51.xhtml
Basically, in the Preferences, General > Editors > File Associations, then define your file types (if not already there), and select an editor.
Right Click on File from Project,
Select Open with ....
Select your editor

Vim integration with Aptana / Eclipse that includes usage of .vimrc files?

There are several vim plugins for Aptana/Eclipse, I'm wondering whether there are any well-integrated ones that also lets you make use of a .vimrc file and a .vim user folder.
Eclimd let's you embed Vim IN Eclipse. It is your real vim loading your own .vimrc. I think the embedding works only on Linux, on other platforms it will open a new gVim instance.
Vrapper does load a .vrapperrc file but it won't support much of your lovingly customized .vimrc: for example I've ported only 16 lines of my 459 lines long .vimrc to my .vrapperrc

Is it possible to add external command line tools to Netbeans?

Is it possible to use external command line tools in Netbeans?
Thank you.
After searching and searching and searching, this feature is just missing in netbeans although it would absolutely straightforward to implement and has been ask by user for 2 more than years...
Regards,
Stéphane
There is a Terminal window in NetBeans 7:
Open the menu, Window -> Output -> Terminal
What about using an Ant target? Ant files are quite comfortable to run from Netbeans.
<exec executable="${executable-full-path}" ...
The best option I've found is to use jmarsault's plugin that he calls NetBeans Command Shortcuts. This give you an icon in the command line where you can add command and terminal scripts to run. The display shows in the output window.
Installation files are available here and he has kept it up to date with the newest versions of NetBeans.
NetBeans Command Shortcut plugin
Installation:
Download the .nbm file for your version of NetBeans
Open Tools / Plugins / Downloaded / Add Plugins...
Select the .nbm file and allow the installation of the plugin.
In since at least version 9.0, there are two decent options:
Just create a script file. (I think you need the C++ plugin for this. Otherwise you have to create it outside NetBeans or as a text file.) In my case I created a JLinkGDBServer.sh that just executes JLinkGDBServer as a prerequisite to start an embedded debug session. This automatically sends the executable's output to a NetBeans terminal.
Add a tool to Tools/Options/Miscellaneous/SendTo. SendTo is a pop-up menu item for certain project entities, for example files but not the project. In my case, I could add a SendTo running the executable and use it by right-clicking on for example the .elf file (although for the GDB server I don't need any file name as an argument).

In Eclipse, how to open a file browser in the directory of the currently edited file

I know it's possible in eclipse to open file browsers from your project's resource browser, but is it possible for files that aren't part of your project ? Typically external includes are not found in your resource browser...
If there is the equivalent of $(resource_loc) for the editor, it would work.. But I wasn't able to find it. Can anyone help me on this ?
Thanks!
EDIT : I Found StartExplorer, but it doesn't work for me. It is hardcoded to use WINDOWS explorer or cmd.exe. Also, it still requires you to use the resource browser. Other than that it can open paths selected in the editor, but they must be full paths.
EDIT 2 : StartExplorer seems to have been upgraded. I no longer use eclipse, but if someone else is still looking for this, I'd look again at their stuff!
For eclipse Luna (4.4) and later, You can use: Right Click->Show In->System Explorer
"Window" -> "Open Perspectives" -> "Remote Systems", then a view with root 'Local' node will be displayed.
While in Project Explorer pane, to browse files of any node, right click and select Show in Remote Systems view to get there.
From StartExplorer website:
This plug-in is inherently not platform-independent. Currently, the following operating systems/desktop environments are supported out of the box: Windows, Mac OS, Linux with Gnome, Linux with KDE, Linux with Xfce, Linux with LXDE.
As far as I know you have to create a linked folder for your external includes to achieve your goal. After that you can use StartExplorer for you externals as well. If you do not like that plugin you could try another similar one called EasyShell which is a similar one but you can configure all of its commands.
EasyShell seems quite descent to me (used in Ubuntu). It gives you the choices to open the Nautilus, to open the shell, to run a file and to copy the selected path. All of them appear with a right click on the package explorer of Eclipse. The installation was with no problems. Therefore, I would suggest it.
Hope I helped!
You might want to try eExplorer, see my answer on https://stackoverflow.com/a/24149472/612123
If you are using git, you can open Window > Show View > Other > Git Repositories. That will give you a Git Repositories explorer, which shows the Working Tree. The Working Tree will show all files in the filesystem, even temporary ones you created that are not added to git yet.
Another way is to open Window > Perspective > Other > Git.
Shortcut key can also be created in Eclipse>Help>Preferences>General>Keys