rhysd / vim-clang-format

Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, and so on.
http://clang.llvm.org/docs/ClangFormat.html
1.08k stars 123 forks source link

How to install the plugin using vam? #94

Open smadurange opened 4 years ago

smadurange commented 4 years ago

Hi, I'm very new to vim and plugins, so this might be a stupid question. I'm using vam to install plugins but I can't seem to install this plugin. I tried:

vam install vim-clang-format
vam install ClangFormat
vam install clang-format

All of these commands returned Warning: Ignoring unknown addons:

Honestly, it would be useful for newbies like me to see a complete example of installation with a popular package manager.

Kypert commented 4 years ago

Perhaps you have already gotten past this step?

I do not know about vam install, but took a quick look and I have to agree with this, see comment by by -romainl-. Not sure if you are using the former or latter in that comment.

I recommend using vim-plug, which I use myself and that is quite straight forward to setup. Once you have followed the good examples found in vim-plug, you can just add this plugin with: Plug 'rhysd/vim-clang-format'