On 16 Apr 2011, at 14:07, Ben Schmidt wrote:

> On 16/04/11 7:00 PM, Barrie Stott wrote:
>> I gave the wrong subject! I want a block COMMENT - not a block QUOTE. I'm 
>> sorry about that.
> 
> I'm pretty sure you can't do it in Vimscript.

Many thanks for the reply. I can almost do it but not quite. If I use ':while 
0' to start the comment then I would have thought it would be looking only for 
:endwhile. This fails though if an 'insert' or 'append' is the first non-blank 
on a line.

> Otherwise, the previous suggestion of using block-visual mode to insert
> (with shift-I) or delete (d or x) a " from the beginning of all the
> lines in the comment is, I think, the way to go.

In principle I'd agree but it would then have to appear on the growing list of 
snippets that are used too infrequently for me to remember them. It's already 
becoming unwieldy.

> I guess another possible way to avoid problems is to use :insert or
> :append, and then :undo. But that's hardly elegant.

About on a par with :while ... :endwhile.

> P.S. This is a general Vim question, not a Mac-specific one, so you may
> get more/better answers on the vim_use mailing list.

Thank you for this; I'd never even considered it.

Barrie.

-- 
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 via email to