0

I wanted to use cscope enabled vim - unfortuantely , the binaries at work are not compiled with cscope support , and when I tried building from src , I'm getting a lot of errors due to proper dev packages not being installed.

So , does anyone have a link where I can a precompiled binary with cscope support ? Btw , I'm using linux.

TCSGrad
  • 11,898
  • 14
  • 49
  • 70
  • It would be helpful to know what distro you're using. And whether or not you have privileges to install "proper dev packages" on your work box. – alesplin Dec 14 '09 at 22:30
  • Umm..can you tell me how to find that out ? I just have a linux account which I use through putty - is there a command which can tell me which distro / what version ? – TCSGrad Dec 15 '09 at 05:12
  • `cat /etc/lsb-release` should tell you. – richq Dec 23 '09 at 20:00
  • `LSB_VERSION="1.3"` Does that help for answering my question ? I couldn't make anything out of the command's output :) – TCSGrad Dec 24 '09 at 03:20

3 Answers3

5

Just build your own vim binary from source code maybe a good solution ^_^

wget ftp://ftp.vim.org/pub/vim/unix/vim-7.2.tar.bz2
tar xjf vim-7.2.tar.bz2
cd vim72
./configure --enable-cscope
make && make install

You will get a cscope supported vim 7.2

chenkaie
  • 549
  • 3
  • 7
  • Tried that before posting query - getting loads of error !! I don't have the privileges for installing reqd. packages , hence the query! – TCSGrad Dec 15 '09 at 05:10
3

Not quite an answer to your request for a pre-compiled vim 7.2, but you said part of your compiling problems is that you "don't have the privileges for installing reqd packages" (in you comment to @chenkaie's answer). If the other reqd packages use configure, you can compile them to install into a directory you have control over, like this:

./configure --prefix=/dir/with/permissions
make && make install

configure-based installers support the --prefix switch, which results in the installed packages in locations like <prefix>\bin, <prefix>/lib, etc. With this trick you may be able to build all the reqd packages in order to build vim 7.2 itself.

If the reqd packages are not configure-based, you might want to look at the installer (makefile?) of the reqd package to see if it has an option similar to configure --prefix=<dir>

netjeff
  • 7,968
  • 4
  • 27
  • 30
0

I have the default package Ubuntu gives me from doing an 'apt-get install vim', vim_1%3a7.1-138+1ubuntu3.1_i386.deb.

Inside of vim, when I type

:echo has('cscope')

it prints

1

as expected.

Granted, you do say you are looking for Vim 7.2 I don't know what improvements 7.2 has seen over 7.1, but it looks like there are still build problems with 7.2 that are being hammered out. I'd suggest just using 7.1 for the time being.

Conspicuous Compiler
  • 6,403
  • 1
  • 40
  • 52