Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commenting .ss (lisp scheme) properly #61

Closed
gejr opened this issue Feb 2, 2012 · 5 comments
Closed

Commenting .ss (lisp scheme) properly #61

gejr opened this issue Feb 2, 2012 · 5 comments

Comments

@gejr
Copy link

gejr commented Feb 2, 2012

Not sure where to put this question. I'm trying to get nerdcommenter to properly comment a scheme file.
When i hit ,c it comments with the C-style /* */ it should be a leading ; for single-line comments.
I assume this C-style is the default for unknown filetypes?

I've tried modifying the script myself and adding something like:

elseif a:filetype ==? "ss"
     call s:MapDelimiters(';', '')

This seems to work for other languages. Have I missed something? Is "ss" interpreted in some weird way? I know that I'm editing the right file, because if I change the comment-style of e.g. C-files, the changes appear appropriately in C comments.

Ideally I suppose it should be like this:

elseif a:filetype ==? "lisp <OR> ss"
      call s:MapDelimitersWithAlternative(';','', '#|', '|#')

Can I get some directions? Feel free to delete this issue, as it's probably just me being retarded, and not really a bug or feature request :-)

Anyways, I'm currently on:
vim 7.0
NERD_commenter version 2.2.2

@Gonzih
Copy link

Gonzih commented Nov 14, 2013

Hah, have same issue with racket files. Any tips?

@joejoejoew
Copy link

You need to set the global NERDCustomDelimiters variable. There is an example in the help file, or look here:
http://stackoverflow.com/questions/15303176/macvim-nerdcommenter-how-to-specify-alternative-delimiters

@Gonzih
Copy link

Gonzih commented Nov 22, 2013

I added following and it works fine, thank you!

let g:NERDCustomDelimiters = {
  \ 'racket': { 'left': ';', 'leftAlt': '#| ', 'rightAlt': ' |#' },
\ }

@alerque
Copy link
Member

alerque commented May 24, 2016

I've added support for *.ss files, so you should be able to ditch the custom variables and just update your plugin @gejr. Rocket support has also been added so the same goes for you @Gonzih. Happy commenting everybody!

@Gonzih
Copy link

Gonzih commented May 24, 2016

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants