an
saurus
tags:
vim
views:
45
answers:
1
+3
Q:
vim indenting in ex
Is there a command in ex equivalent to gg=G ?
+3
A:
Maybe
normal! gg=G
?
ZyX
2010-04-21 20:48:45
vim -c "normal gg=G" -c wq test.dWorks great!
Ellery Newcomer
2010-04-21 22:02:08
related questions
Screen + vim causes shift-enter to insert 'M' and a newline
Smarter Vim recovery?
Deleting lines of code in a text editor
Javascript syntax highlighting in vim
How do you paste multiple tabbed lines into Vi?
In Vim, what is the best way to select, delete, or comment out large portions of multi-screen text?
Best way to insert timestamp in Vim?
What is the best strategy for code chunks and macros in vim?
In vim is there a way to delete without putting text in the register?
Is there any way to enable code completion for Perl in vim?
In vim, how do I go back to where I was before a search?
How to effectively work with multiple files in vim?
How do I list loaded plugins in Vim?
How do I specify "the word under the cursor" on VIM's commandline?
Is it worth investing time in learning to use Emacs?
Do you know of any "best practice" or "what works" vi tutorial for programmers?
vim commands in Eclipse
vimdiff and CVS integration
Vi editing for Visual Studio
Favorite (G)Vim plugins/scripts?
Useful Vim features
How to create short snippets in VIM?
Why are there so few modal-editors that aren't vi*?
vim Tutorials
What are the preferred versions of Vim and Emacs on Mac OS X?