Friday, July 8, 2011

Re: Indent/Unindent a block

On 07/08/2011 06:23 AM, Ivan S. Freitas wrote:
> On Fri, Jul 8, 2011 at 8:17 AM, Tim Chase<vim@tim.thechases.com> wrote:
>> On 07/08/2011 04:25 AM, Gabor Urban wrote:
>>> I have a minor problem: is there a possibility to indent /
>>> unindent a block of code?
>
> Ops, seems I mistook indent for comment. My bad.

Ah...well that's different ;-)

http://www.vim.org/script.php?script_id=23

is the somewhat go-to solution for commenting blocks of code.
Because commenting varies from source to source (C "/* ... */
blocks vs. C inline "//"; shell-script "#" comments; .ini file
";" comments; batch-file "REM" comments; Vim's double-quote
comments; etc) it requires a bit of smarts to know what your
particular is.

-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: