I have kept shiftwidth as 4 in my vimrc file. But, when I open many existing c/h files, they have shiftwidth as 2. So, these gets mixed up.
Can I automatically select the shiftwidth from the file than setting it each time I open the files ?
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 can add a modeline at the bottom of the file:
More on modelines.