Re: [vim] prettify
- From: Gary Johnson <garyjohn@xxxxxxxxxx>
- Date: 26 Aug 2009 15:35:41 GMT
Martin Trautmann <t-use@xxxxxxx> wrote:
does vim include any prettify functions? The syntax highlighting does
know the key words. The bracket operation does know about begin and end
Thus a prettify would be very nice which would fix a broken indention, a
mix of tabs and spaces etc.
Broken indentation can be fixed with the = command. See
A mix of tabs and spaces can be changed to all spaces with
If instead you execute these:
vim will replace sequences of tabs and/or spaces at the start of lines with
the fewest tabs and spaces that will result in the same indentation.
However, vim has no built-in way to prettify code by moving elements
(e.g., braces) from one line to another.
- Prev by Date: Re: vim of multiple linked files doesn't show filenames correctly
- Next by Date: Re: vim of multiple linked files doesn't show filenames correctly
- Previous by thread: [vim] How to split stderr from stdout on filter command