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

Having " comments in svimrc breaks the config #18

Open
chrisgrieser opened this issue Sep 7, 2022 · 2 comments
Open

Having " comments in svimrc breaks the config #18

chrisgrieser opened this issue Sep 7, 2022 · 2 comments

Comments

@chrisgrieser
Copy link

I simply tried copypasting a lot of my config, and it seems that vimrc-style comments (" something) make the entire svimrc invalid.

@FelixKratz
Copy link
Owner

Yeah this is an issue in libvim I think, because what I am doing is simply this:

SketchyVim/src/buffer.c

Lines 8 to 19 in acda553

void buffer_loadrc(struct buffer* buffer) {
char* home = getenv("HOME");
char buf[512];
snprintf(buf, sizeof(buf), "%s/%s", home, ".config/svim/svimrc");
char_u* file = (char_u*) read_file(buf);
if (file) {
vimExecute(file);
free(file);
}
vimExecute("set nocindent nosmartindent noautoindent");
}

and handling the comments of the config file in svim directly feels a bit out of place so I may have to fix this in libvim:
https://github.com/FelixKratz/libvim

@chrisgrieser
Copy link
Author

I see. At least until fixed upstream, the information that you cannot use comments in svimrc could be added to the readme? Would save others the trouble of figuring out what invalidates their config

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

2 participants