When I write code, I’d like to use ANSI C style, but the code style in c.vim template is K&R.
Where can I get another template or any other plugin instead of c.vim?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should check
:help cinoptions-valueand define your own C style.IIRC, you need to
set cindentso that cinoptions are taken into account.FWIW, it is what I do when opening a C or h file :