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

Reply via email to