On 14/12/08 21:08, Gary Johnson 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.
or with --with-features=big or --with-features=huge > > 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 For Windows, you can download a Big distribution at https://sourceforge.net/project/showfiles.php?group_id=43866&package_id=39721 -- click the clipboard-like icon for the ":version" text. For Unix/Linux, see my HowTo page http://users.skynet.be/antoine.mechelynck/vim/compunix.htm to guide you through compiling your own. Best regards, Tony. -- Love and scandal are the best sweeteners of tea. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
