2

I have just tried to install c.vim from this URL. The only issue is I do not think it is working. This is because I cannot view the help by doing :help csupport. How would I fix this?

If it helps here is my .vim tree.

.vim
├── c-support
│   ├── codesnippets
│   │   ├── Makefile
│   │   ├── Makefile.multi-target.template
│   │   ├── calloc_double_matrix.c
│   │   ├── calloc_int_matrix.c
│   │   ├── main.c
│   │   ├── main.cc
│   │   ├── print_double_array.c.noindent
│   │   └── print_int_array.c.noindent
│   ├── doc
│   │   ├── ChangeLog
│   │   ├── c-hotkeys.pdf
│   │   └── c-hotkeys.tex
│   ├── rc
│   │   ├── customization.ctags
│   │   ├── customization.gvimrc
│   │   ├── customization.indent.pro
│   │   └── customization.vimrc
│   ├── scripts
│   │   └── wrapper.sh
│   ├── templates
│   │   ├── Templates
│   │   ├── c.comments.template
│   │   ├── c.cpp.template
│   │   ├── c.idioms.template
│   │   ├── c.preprocessor.template
│   │   ├── c.statements.template
│   │   ├── cpp.comments.template
│   │   ├── cpp.cpp.template
│   │   ├── cpp.idioms.template
│   │   ├── cpp.preprocessor.template
│   │   └── cpp.statements.template
│   └── wordlists
│       ├── c-c++-keywords.list
│       ├── k+r.list
│       └── stl_index.list
├── doc
│   └── csupport.txt
├── ftplugin
│   └── c.vim
└── plugin
    ├── c.vim
    └── cvim
        ├── README.csupport
        ├── c-support
        │   ├── codesnippets
        │   │   ├── Makefile
        │   │   ├── Makefile.multi-target.template
        │   │   ├── calloc_double_matrix.c
        │   │   ├── calloc_int_matrix.c
        │   │   ├── main.c
        │   │   ├── main.cc
        │   │   ├── print_double_array.c.noindent
        │   │   └── print_int_array.c.noindent
        │   ├── doc
        │   │   ├── ChangeLog
        │   │   ├── c-hotkeys.pdf
        │   │   └── c-hotkeys.tex
        │   ├── rc
        │   │   ├── customization.ctags
        │   │   ├── customization.gvimrc
        │   │   ├── customization.indent.pro
        │   │   └── customization.vimrc
        │   ├── scripts
        │   │   └── wrapper.sh
        │   ├── templates
        │   │   ├── Templates
        │   │   ├── c.comments.template
        │   │   ├── c.cpp.template
        │   │   ├── c.idioms.template
        │   │   ├── c.preprocessor.template
        │   │   ├── c.statements.template
        │   │   ├── cpp.comments.template
        │   │   ├── cpp.cpp.template
        │   │   ├── cpp.idioms.template
        │   │   ├── cpp.preprocessor.template
        │   │   └── cpp.statements.template
        │   └── wordlists
        │       ├── c-c++-keywords.list
        │       ├── k+r.list
        │       └── stl_index.list
        ├── doc
        │   └── csupport.txt
        ├── ftplugin
        │   └── c.vim
        └── plugin
            └── c.vim

Also if you need to know this is using vim inside the Mac terminal

  • can you plz post your .vimrc file? – elyashiv Mar 5 '15 at 11:36
  • I guess the tag should be more "how do I install plugins" that "plugin-foobar". – Luc Hermitte Mar 5 '15 at 13:43
  • @elyashiv I only had syntax on and set number. Sorry i'm a bit late to replying! :) – iProgram Mar 5 '15 at 18:10
4

The old way to install plugins is directly within ~/.vim/, and the doc database was to be updated with :helptags ~/.vim/doc. Now, with plugin managers around, we tend to install them into ~/.vim/addons/ or ~/.vim/bundle/ (depending on the plugin manager used).

But it seems you've chosen another place to install your plugin. So, to use it, in your .vimrc, you'll have to fix your runtimepath -> :set rtp+=~/.vim/c-support, and you may have to update the doc database as well: :helptags ~/.vim/c-support/doc

| improve this answer | |
  • It looks like there is actually a ~/.vim/doc/csupport.vim file, so the first suggestion should be sufficient. There's definitely a lot of litter from this installation, though. – tommcdo Mar 5 '15 at 15:20
  • That's odd. I don't see it (neither in the official zip, nor on the github repo -- I'm not using c-support but another suite for C++ programming, thus this file may be auto-generated which could explain why I don't see it). I see a <localleader>hp mapping that builds the help database though. – Luc Hermitte Mar 5 '15 at 15:39
  • Oops, I meant ~/.vim/doc/csupport.txt. I didn't check the link, but I see it in the directory tree provided in the question. – tommcdo Mar 5 '15 at 15:49
  • Thanks. :helptags ~/.vim/doc worked for me! – iProgram Mar 5 '15 at 16:43
  • 1
    I'm using a suite of several plugins that I'm maintaining (code.google.com/p/lh-vim/wiki/lhCpp), some being poorly documented. This topic is not the best place to describe my suite. – Luc Hermitte Mar 5 '15 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.