Hi, Justin, It's great that Gary's solution worked for you.
May I also suggest with Tony, though, that you use --with-features=big or --with-features=huge. Using --enable-cscope is enough for your current situation, but it is likely that without big or huge features you will have other things missing that you want soon. Ben. eesyli wrote: > Thanks Gary Johnson's kind answer, the problem is solved. > > It is just because the cscope feature is not enabled in my VIM, when I > re-configure it with --enable-cscope, and re-make&&re-make install. > The 'cs' command can be used. > > Best regards, > > Justin > > On 12月15日, 上午4时08分, Gary Johnson <[email protected]> wrote: >> On 2008-12-14, Justin Li wrote: >> >> >> >>> My Vim version is 7.2, when I install Cscope plugin, it seems that it can >>> not use cscope command. >>> For example, when I type :cs add /home/cciss/work/jm10.2/JM/cscope.out >>> /home/cciss/vim72, there is a error message "E319: Sorry, the command is not >>> available in this version". My guess is that the most recent cscope plugin >>> is for Vim version 7.1, thus it could be not compatible with 7.2 version. >>> For you information, actually, the cscope.out is exist at that time, as >>> following: >>>> cc...@justin:~/work/jm10.2/JM$ ls -l cscope.* >>>> -rw-r--r-- 1 cciss cciss 303104 2008-12-14 22:26 cscope.in.out >>>> -rw-r--r-- 1 cciss cciss 2569859 2008-12-14 22:26 cscope.out >>>> -rw-r--r-- 1 cciss cciss 1944816 2008-12-14 22:26 cscope.po.out >>> So, is there anybody could explain this problem for me, thanks in advance. >> The reason for the error is explained in the text below >> >> :help E319 >> >> which is: >> >> Sorry, the command is not available in this version >> >> You have used a command that is not present in the version of Vim >> you are using. When compiling Vim, many different features can >> be enabled or disabled. This depends on how big Vim has chosen >> to be and the operating system. See |+feature-list| for when >> which feature is available. The |:version| command shows which >> feature Vim was compiled with. >> >> The problem is that the vim you are using was built without the >> +cscope feature. This has nothing to do with any plugin you might >> be using to access cscope's features. >> >> Where did you get the version of vim you are using? If it is the >> default vim on your system, it may be the tiny version that doesn't >> have many features compiled in. If that is the case, then one >> solution is to use your system's package manager to install a more >> fully-featured version. If you built this vim yourself, you just >> need to rebuild it after running configure again with the >> --enable-cscope option. >> >> If you need help with any of that, let us know what system you are >> using and include the output of the :version command in your post. >> >> Regards, >> Gary > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
