My terminal is 160 characters wide.
I use VIM.
Is there a way to tell vim:
when you see “//”, autoindent it to start @ width 80?
(And haave it also affected when I highlight a region and hit =)
Thanks!
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 might want to see about
:filetype indent plugin onYou may also want to look at this plugin: http://www.vim.org/scripts/script.php?script_id=294
Generally, it sounds like a bad idea to arbitrarily indent comments that far in. Usually comments should be on the same indentation as the code, or just after the code if it is on the same line.
If you’re really sure this is what you want to do, you could make a mapping or an abreviation:
or