Tip #338: vim + cscope + cygwin
tip karma |
Rating 28/10, Viewed by 1029
|
created: |
|
October 4, 2002 10:01 |
|
complexity: |
|
intermediate |
author: |
|
Vijay Sampath |
|
as of Vim: |
|
5.7 |
Tip #292 doesn't seem to be true, at least not anymore. I am using cscope 15.4 and vim 6.1. With a few hacks, I was able to get cscope to work with vim under cygwin for Windows 2000. I did not need to change the sprintf line. The hacks included
1. Copying if_cscope.? to the src directory and the if_cscope.pro to the src/proto directory. These files do not come standard with the Windows source distribution of vim. (I think it should - anybody in charge of distribution listening?)
2. Edit if_cscope.c to make the following changes:
Add the following includes:
#include <sys/unistd.h>
#include <sys/signal.h>
3. Edit Make_cyg.mak
Add if_cscope.o to OBJ variable.
Add a rule for this at the end
$(OUTDIR)/if_cscope.o: if_cscope.c $(INCL)
$(CC) -c $(CFLAGS) if_cscope.c -o $(OUTDIR)/if_cscope.o
Uncomment the lines following
#>>>>> uncomment this block to build a GUI version
4. Edit feature.h
Force cscope compilation:
# define FEAT_CSCOPE
5. make -f Make_cyg.mak GUI=yes
6. Note that the env variable TMPDIR should be defined in VIM for cscope to work correctly.
That should do it. Somebody in charge of distribution please make this standard. It would save a lot of trouble.
<<editing remote files via scp in vim |
"tabbed windows" >>
Additional Notes
|