thank you for your help
john
> I am running gvim 6.0 on solaris and I cannot seem to find a way to indent
> or un-indent a selected block of code. Can this be done and if so how.
Try selecting the code Visually, and then typing
=
Note that this assumes that you don't have the 'equalprg' option set.
> If you would rather just refer me to a help txt file that would be fine.
You might take a look at
:h =
:h indent.txt
--
Benjamin D. Esham { http://bdesham.net
bde...@iname.com } AIM: s c e s a r 1
http://tuxedo.org/~esr/faqs/smart-questions.html
Visually select block (use V and motion)
< to un-indent
> to add one indent
Regards,
Chip Campbell
--
Charles E Campbell, Jr, PhD _ __ __
Goddard Space Flight Center / /_/\_\_/ /
c...@NgrOyphSon.gPsfAc.nMasa.gov /_/ \/_//_/
PGP public key: http://www.erols.com/astronaut/pgp.html
john
Well you misunderstood my question, BUT I found the information very useful!
Thanks! I didn't know I could do filtering that way.
thanks
X I am running gvim 6.0 on solaris and I cannot seem to find a way to
X indent or un-indent
X a selected block of code. Can this be done and if so how.
X If you would rather just refer me to a help txt file that would be fine.
X
X thank you for your help
X
X
X john
You may like
<iB
>iB
which will indent/unindent the inner block of a {} nesting, without
moving the lines containing the {} values. Much better than
>%
<%
which move the {} lines as well as the inner body.
Bob Harris
> I wasn't getting out of insert mode properly.
You may also indent in insert-mode, I use quite often ^D and ^T for
this purpose.
--
Loïc Minier <lo...@via.ecp.fr>