-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
comments and multiline comments #198
Comments
Thanks for opening the issue. I also agree that the default should be just a single I think this is the only line that needs to be changed. Line 17 in 2d0b6e4
|
Answers:
It's hard to predict what people would expect...
Well, the reason is that they exist, in a sense. Also, another reason is that although it's possible in principle to specify different types of comments in As for commenter plugins. vim-commentary is quite limited, I would say. But then again its README tells you exactly what you ought to do to use it with your favourite file type. Other commenting plugins such as tcomment work well because it uses So I don't think changing I guess the best solution is just to add some plugin-specific tweaks in |
Thank you very much! |
Hi everyone,
I have a short question regarding comments in Julia files.
Usually I use https://github.com/tpope/vim-commentary for (un)commenting.
For some reason, julia-vim is configured in a way that it will insert #= ... =# on every line.
IHMO this is not ideal and feels too heavy.
Thanks to some helpful tips I received in #vim channel on the Julia Slack,
I could change the behavior.
The following two solutions were presented:
let b:commentary_format = '# %s'
inftplugin/julia.vim
autocmd FileType julia setlocal commentstring=#\ %s
in thevimrc
.So for me the problem is basically solved as I now just get the
# ...
at the beginning.But some questions remain:
Thank you very much!
Markus
The text was updated successfully, but these errors were encountered: