Open chadwhitacre opened 12 years ago
It feels like vim only allows one indentation style per file, but I could be wrong. Need to research more. I'm thinking back to all the times I tried to edit JavaScript within a script tag in an HTML doc... It always indented with my HTML indentation settings and not my JavaScript settings. Perhaps we just standardize on expandtab with 4 spaces.
Regardless I'm thinking the VIM plugin will have to be structured like this:
https://github.com/kchmck/vim-coffee-script
That way we can just set filetype=aspen and all will work, with the syntax, indentation, etc concerns separated nicey nice. Will probably steal techniques from that package.
There's lots of info, including indentation hints, on http://vim.wikia.com/wiki/Different_syntax_highlighting_within_regions_of_a_file.
I asked a question on Stackoverflow so maybe the crowd will know.
Auto-indenting doesn't seem to take in Python sections. E.g., I get:
Instead of: