0
votes
1answer
585 views

How can I tell what syntax and indentation rules Vim is using on a particular line?

For better or worse, PHP code often includes both HTML and Javascript. Getting Vim to indent it all correctly can be tricky. My .vimrc specifies that a tab should always be two spaces: set ...
2
votes
2answers
2k views

How to set syntax specific settings in my VIMRC?

I work with several languages and markups in vim every day (ruby, python, javascript, CSS, HTML, etc), and would like to have different settings for each buffer when I fire up my editor. How can I ...