On 26/04/10 04:29, chardson wrote:
This may be a ridiculous question, but are there any plugins to
display C-like languages like Python?  I'm imagining an interpreter
that displays obvious loops / conditional statements as their
equivalents in Python, although the file actually contains the
necessary cues for C-like languages (e.g. it hides braces and forces
indentation in the Python style, but the file written contains the
actual braces, as appropriate)

What to search for was not obvious, so I gave up after a few
attempts...


Well, you can set whatever highlight group is used for the braces as a link to Ignore (which displays them as "invisible" i.e. fg the same as bg) but beware that you won't have any visual cues anymore to warn you about inappropriate indenting and maybe about mismatched braces (though there is still the Error highlight here).

Having ":filetype plugin indent on" somewhere in your vimrc will _default_ to proper syntactical indenting but not _force_ it, unless maybe you reformat your whole file periodically.

Vim leaves you free to do practically anything you want to with your text, it doesn't hold you in irons or even in a corset, and if you want to do stupid things you can; but IMHO disabling visual cues that tell you when you unwittingly goofed is not the best of things to do. This said, you'll still do as you like, of course.


Best regards,
Tony.
--
All the taxes paid over a lifetime by the average American are spent by
the government in less than a second.
                -- Jim Fiebig

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en

Reply via email to