-
Notifications
You must be signed in to change notification settings - Fork 65
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
Different behaviour from another submitter (auto-indent while typing in insert mode) #390
Comments
I also encounter this in the same exercise |
The indentation occurs because you have Both of these are set by the standard ruby filetype, so it looks like this is being set for you and not for the author of that submission. I don't know off the top of my head how the filetype is being set for you (and don't have vimgolf installed right now to check). What's the output of |
Here's the output for
That file starts as follows: " Vim support file to detect file types
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
" Last Change: 2023 Dec 06
" Former Maintainer: Bram Moolenaar <[email protected]> Here are the lines around line 2008:
|
I am experiencing the same problem using the docker container, when I press After some digging, I believe I found out what is causing this.
This is how I run vimgolf. I believe this behaviour started with vim8
|
Okay, so this just means it's setting the filetype because the file has a The most likely explanation I think is that Vim's included Ruby indent script has changed at some point, and the person that submitted the solution you're following was using an older version than you. Alternatively, it's also possible they were using some kind of non-standard Vim runtime that doesn't result in the regular Ruby indent plugin being used for this file. |
Submission 1414 of challenge 4d1a1c36567bac34a9000002 contains the following:
faDlaa.join(',')}"<Esc>k
This operates on line 3 of the following half-completed file:
When I get to the
.
keystroke in insert mode, the whole line's indentation increases by a lot. This is not taken into account by that submission, so it must only be happening to me.I can reproduce it outside of VimGolf with VimGolf's .vimrc (
/bin/vim -u <vim-golf's .vimrc>
), but only if I setft=ruby
first.Does someone know a way I could find what's causing this?
vimlog
vim --version -u Downloads/vim-golf.vimrc
The text was updated successfully, but these errors were encountered: