vim-autoformat / vim-autoformat

Provide easy code formatting in Vim by integrating existing code formatters.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vim-autoformat can not find clang-format in window 10

hungpham3112 opened this issue · comments

I use windows 10 and my vim version is 8.2
I put my _clang-format in my main project directory but is not work.
Here are messages when i use verbose mode
image
How to fix this problem? Thanks for your help !!!

That means the clang-format isn't in your path. Read the first section of "How to use" in the README: https://github.com/vim-autoformat/vim-autoformat#how-to-use

image
I put it in _vimrc but doesn't work
Where did I go wrong?
I downloaded clang-format and extracted it
image

Does the clang-format folder contain the clang-format executable?

Does the clang-format folder contain the clang-format executable?

I download it from the main site but it doesn't have. I think i'm wrong.
Can you show how to install clang-format ? Sorry I'm new with this thing

I'm not the right person to ask as I don't use clang-format myself. But you'll have to figure out how to install the executable and not download and extract the source code, which is what you did above from the looks of it.