Vim Tips Wiki
m (Category: Integration)
No edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{review}}
 
{{review}}
  +
{{TipImported
{{Tip
 
 
|id=974
 
|id=974
  +
|previous=973
|title=integrate gvim with RedHat Source-Navigator
 
  +
|next=975
|created=August 17, 2005 10:43
+
|created=2005
 
|complexity=basic
 
|complexity=basic
 
|author=Chuck Tuffli
 
|author=Chuck Tuffli
 
|version=5.7
 
|version=5.7
 
|rating=8/7
 
|rating=8/7
 
|category1=Integration
|text=
 
  +
|category2=
The Source-Navigator (http://sourcenav.sourceforge.net) has a built in editor, but you will be unhappy if your fingers are used to vi. To solve this, configure Source-Navigator to use gvim as the editor by,
 
 
}}
 
The Source-Navigator (http://sourcenav.sourceforge.net) has a built in editor, but you will be unhappy if your fingers are used to vi. To solve this, configure Source-Navigator to use gvim as the editor:
   
 
File menu, Project Preferences. Click on the Edit tab.
 
Tick "Use external editor instead of builtin". Then in the External Editor box, enter
   
  +
<pre>
 
gvim "+call cursor(%l,%c)" %f
  +
</pre>
   
 
Now, double clicking on any symbol, function, etc in Source-Navigator will start gvim and position the cursor in front of the item you clicked.
File &gt; Project Preferences ...
 
   
 
==Comments==
  +
now, how do i make source-navigator open files in different tabs of the same gvim window ? with the tip, each new file gets opened in a new window.
  +
:Please see [[Vim_Tips_Wiki:Community_Portal|here for asking questions]]. --[[User:JohnBeckett|JohnBeckett]] 06:13, 20 April 2008 (UTC)
  +
::But, you can probably make use of <code>--remote-tab-silent</code> to do this.
   
  +
----
 
and click on the Edit tab. In the External Editor box, enter
 
 
 
 
gvim "+call cursor(%l,%c)" %f
 
 
 
 
Now, double clicking on any symbol, function, etc in Source-Navigator will start gvim and position the cursor in front of the item you clicked.
 
 
 
}}
 
 
== Comments ==
 
<!-- parsed by vimtips.py in 0.435698 seconds-->
 
[[Category:Integration]]
 

Latest revision as of 08:35, 26 September 2014

Tip 974 Printable Monobook Previous Next

created 2005 · complexity basic · author Chuck Tuffli · version 5.7


The Source-Navigator (http://sourcenav.sourceforge.net) has a built in editor, but you will be unhappy if your fingers are used to vi. To solve this, configure Source-Navigator to use gvim as the editor:

File menu, Project Preferences. Click on the Edit tab. Tick "Use external editor instead of builtin". Then in the External Editor box, enter

gvim "+call cursor(%l,%c)" %f

Now, double clicking on any symbol, function, etc in Source-Navigator will start gvim and position the cursor in front of the item you clicked.

Comments[]

now, how do i make source-navigator open files in different tabs of the same gvim window ? with the tip, each new file gets opened in a new window.

Please see here for asking questions. --JohnBeckett 06:13, 20 April 2008 (UTC)
But, you can probably make use of --remote-tab-silent to do this.