nerdcommenter icon indicating copy to clipboard operation
nerdcommenter copied to clipboard

how to change the comment style like /** */ and the char * aligined with the first char * of the first row

Open fantiq opened this issue 7 years ago • 7 comments

now i can chang the default comment string like /** */ by the following rc file

Plugin 'scrooloose/nerdcommenter'
let g:NERDSpaceDelims=1
let g:NERDCustomDelimiters={ 'php' : { 'leftAlt': '/**','rightAlt': '*/', 'left' : '//'} }

when i press the <leader>cs i get the string like this:

/**
  *
  */

but this not what i want , i want to get the comment string like this:

/**
 *
 */

any idea ?

fantiq avatar Feb 26 '17 12:02 fantiq

I also would like to see a solution to this type of commenting system.

webplantmedia avatar May 09 '18 14:05 webplantmedia

Off the top of my head I don't see how this is implemented. I would be happy to review a PR that implemented this as an optional feature for those that want it this way.

alerque avatar Jun 19 '18 11:06 alerque

@alerque Maybe it makes sense to create a new label to indicate, that you would accept PRs. Something like „PR wanted” or so.

Ryuno-Ki avatar Jun 30 '18 23:06 Ryuno-Ki

@Ryuno-Ki I think that would be kind of redundant. All open issues need some sort of resolution, and this is a community project. All the issues that are feature requests or bug reports are PR wanted. If for some reason I think we would refuse to accept a feature I would close the issues outright with some explanation. A pr-wanted tag really only makes sense in the case of benevolant dictator or corporate sponsored projects where it might be allowed for some things to be worked on by the community but only in so far as they meet up with the intended project specs. This project doesn't have any clear road map at this point, it only progresses when somebody scratches their own itches and takes the time to contribute those upstream. I'm pretty liberal with including contributions as long as they don't mess up anybody else's features and they are reasonably well coded and documented.

If an issue is open on this tracker anybody is welcome to take a stab at answering the question or fixing the bug or adding the feature. I sometimes comment on issues to the effect that a PR would be accepted, but that is mostly so that the people new to open source understand what the hold up is.

alerque avatar Jul 02 '18 08:07 alerque

Hi, @alerque,

thank you for your response. Since every project is different, it is not clear, how any given one is governed. However, as far as I can tell, keeping a [CONTRIBUTING.md](https://mozillascience.github.io/working-open-workshop/contributing/) file in the root level of a repo is a wide-spread strategy.

Shall I open an issue to talk about it there?

Ryuno-Ki avatar Jul 08 '18 19:07 Ryuno-Ki

Sure @Ryuno-Ki, open an issue (or PR). I'd be happy to see anything that encourages contributions.

alerque avatar Jul 09 '18 09:07 alerque

Pull request #374 is probably related to this issue.

jingchangshi avatar Apr 17 '19 06:04 jingchangshi