Quantcast

Code Formatting

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Code Formatting

grayghostvisuals
New to MacVim and looking to format code similar to to other code
editors such as e for windows, Komodo, Dreamweaver etc.

I would like to open an HTML file for example, and indent the entire
document if I desire or individual lines in order to clean up messy
code

Thanks :)

--
You received this message from the "vim_mac" 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Code Formatting

Niels Kobschätzki
On Thursday, 5. April 2012 at 23:07, grayghostvisuals wrote:
New to MacVim and looking to format code similar to to other code
editors such as e for windows, Komodo, Dreamweaver etc.

I would like to open an HTML file for example, and indent the entire
document if I desire or individual lines in order to clean up messy
code
Try: :set filetype=html (if not recognized)
Then highlight your text and hit "=" (w/out ") -- via http://stackoverflow.com/questions/459478/correct-indentation-of-html-and-php-using-vim

"G=" might work as well 

Niels 


--
You received this message from the "vim_mac" 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
Loading...