4

I'm using vim-plug to manage my vim (version 7) plugin dependencies and trying to leverage these cscope key mappings per this tutorial.

Is this something I have to install outside of the plugin system by just copying and pasting it to the ~/.vim/plugged/ directory?

tarabyte
  • 17,837
  • 15
  • 76
  • 117

2 Answers2

1

I created a mirror from http://cscope.sourceforge.net/cscope_maps.vim and made it available on my repo (https://github.com/dr-kino/cscope-maps).

First, you need to install cscope. After, you need to put the follow lines on your .vimrc:

" Cscope Key Map
call plug#begin('~/.vim/plugged')
Plug 'dr-kino/cscope-maps'
call plug#end()

Open vim and run :PlugInstall

Now you are able to use the key bindings ctrl\ s, ctrl\ f, ctrl\ g, etc.

Do not forget to generate CSCOPE data base in your root project folder, otherwise this will not work.

Example (http://cscope.sourceforge.net/cscope_vim_tutorial.html):

find /my/project/dir -name '*.c' -o -name '*.h' > /foo/cscope.files
cd /foo
cscope -b
CSCOPE_DB=/foo/cscope.out; export CSCOPE_DB

BR

1

I think you have to add plug.vim.

The command to add plug.vim on windows is:

iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
    ni $HOME/.vim/plugged/plug.vim -Force
Gregoire Ducharme
  • 1,095
  • 12
  • 24