"Default delimiter customisation" doesn't work. #33

Closed
zhou13 opened this Issue Mar 24, 2011 · 8 comments

6 participants

@zhou13

According to document,
add
let NERD_cpp_alt_style=1
let NERD_c_alt_style=1
to vimrc should switching commenting style. But it doesn't. And I doesn't see any related code in the script.

@zmoazeni

I ran into this too, and as a short term fix I changed the custom delimiters in my .vimrc (actually .vimrc.before since I'm using janus atm)

let g:NERDCustomDelimiters = {
    \ 'haskell': { 'leftAlt': '{-','rightAlt': '-}', 'left': '-- ', 'right': '' },
\ }
@zhou13

Hello? Can the maintainer give a answer to this question? We can not have a thing described in document but does not exists!

@linduxed

I encountered this problem too. Currently the solution of @zmoazeni is the easiest way to get it working, which isn't exactly pretty.

@sethfowler

I also had this issue. Surprising that this has not been addressed by now, though @zmoazeni thankfully has enabled me to fix my short term problem. (And I had precisely the same problem as him; that arrangement should probably be the default for Haskell.)

@albertnetymk

Confirmed on this issue. It seems the author didn't implement this feature. zmoazeni's workaround works pretty good.

@acgtyrant acgtyrant added a commit to acgtyrant/dotfiles that referenced this issue May 2, 2015
@acgtyrant acgtyrant .vimrc: 把 C 的 comment style 从 /**/ 改为 //
scrooloose/nerdcommenter#33

Signed-off-by: acgtyrant <acgtyrant@gmail.com>
cc25c7f
@alerque
Collaborator

I've recently been added as a maintainer on this project and am working through the issue backlog. It does look like this feature was never implemented and only the documentation exists. I don't have time to do a bunch of dev work on this—I'm mostly just coordinating all the contributions—but if somebody would like to actually set this up I'd be glad to review a PR that fixes this. Otherwise the thing to do might be to delete the bogus documentation. Anybody?

@alerque
Collaborator

See PR #155 for a (partial?) implementation of this.

@alerque alerque added a commit that closed this issue May 24, 2016
@alerque alerque Simplify and document the config key for toggling language defaults
Closes #33
e91be12
@alerque alerque closed this in e91be12 May 24, 2016
@alerque
Collaborator

With many thanks to @saep for actually implementing this, I have merged the PR that adds this feature and made a few tweaks. Please note that I changed the actual preference key format to be more like the other values. For example to always default to the alternates for java:

let g:NERDAltDelims_java = 1

Note this is documented in help and now in the README as well. Let be know if anybody has trouble with the feature.

@alerque alerque removed the in progress label May 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment