> Thanks to both Tim and AK. This gives me just what I was
> looking for. I never cease to be amazed at how much power Vim
> has.
And just in case you need it or just want to marvel at the fun
you can have with vim, there's also an Ex ">" and "<" command, so
you can do crazy things like
:g/pattern/>
(or if you don't want to be nagged by the endless reporting
:g/pattern/sil! >
)
which will indent every line matching "pattern"; or take it a
step further and do something like
:g/start_pattern/sil! .;/end_pattern/ >
which will indent block starting with "start_pattern" and ending
with "end_pattern". I use this one occasionally to draw my
attention to certain blocks in long one-item-per-line lists.
-tim
--
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
No comments:
Post a Comment