Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Comment delimiters for current filetype
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andre Majorel  
View profile  
 More options Jan 14 2012, 7:45 am
From: Andre Majorel <aym-...@teaser.fr>
Date: Sat, 14 Jan 2012 13:45:41 +0100
Local: Sat, Jan 14 2012 7:45 am
Subject: Comment delimiters for current filetype
Is there a variable or register holding the/a comment delimiter
for the current filetype ? http://vim.wikia.com/wiki/Comment_Lin
es_according_to_a_given_filetype suggests there isn't but things
might have changed since then...

Thanks in advance.

--
Andr Majorel http://www.teaser.fr/~amajorel/
Subliminal message : Vim needs arbitrary tab stops.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gary Johnson  
View profile  
 More options Jan 14 2012, 6:28 pm
From: Gary Johnson <garyj...@spocom.com>
Date: Sat, 14 Jan 2012 15:28:52 -0800
Local: Sat, Jan 14 2012 6:28 pm
Subject: Re: Comment delimiters for current filetype
On 2012-01-14, Andre Majorel wrote:

> Is there a variable or register holding the/a comment delimiter
> for the current filetype ? http://vim.wikia.com/wiki/Comment_Lin
> es_according_to_a_given_filetype suggests there isn't but things
> might have changed since then...

It depends on what you're trying to do. The author of that wiki page
wanted to be able to comment-out blocks of code in a unified way
without having to know the comment character(s) for the language in
use.  Vim still does not have a built-in solution to that problem.

Vim does know how to recognize the comment characters and styles of
different languages, though, by means of the 'comments' option,
which is often set by a filetype plugin.  See

    :help 'comments'

HTH,
Gary


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lech Lorens  
View profile  
 More options Jan 16 2012, 11:35 am
From: Lech Lorens <lech.lor...@gmail.com>
Date: Mon, 16 Jan 2012 08:35:13 -0800 (PST)
Local: Mon, Jan 16 2012 11:35 am
Subject: Re: Comment delimiters for current filetype
On 15 Sty, 00:28, Gary Johnson <garyj...@spocom.com> wrote:

> It depends on what you're trying to do. The author of that wiki page
> wanted to be able to comment-out blocks of code in a unified way
> without having to know the comment character(s) for the language in
> use.  Vim still does not have a built-in solution to that problem.

What about 'commentstring'?

Cheers,
Lech


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gary Johnson  
View profile   Translate to Translated (View Original)
 More options Jan 16 2012, 12:28 pm
From: Gary Johnson <garyj...@spocom.com>
Date: Mon, 16 Jan 2012 09:28:30 -0800
Local: Mon, Jan 16 2012 12:28 pm
Subject: Re: Comment delimiters for current filetype
On 2012-01-16, Lech Lorens wrote:

> On 15 Sty, 00:28, Gary Johnson <garyj...@spocom.com> wrote:
> > It depends on what you're trying to do. The author of that wiki page
> > wanted to be able to comment-out blocks of code in a unified way
> > without having to know the comment character(s) for the language in
> > use. Vim still does not have a built-in solution to that problem.

> What about 'commentstring'?

That would do it.  Don't know how I missed that.  Thanks.

Regards,
Gary


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »