-
Notifications
You must be signed in to change notification settings - Fork 3
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
Automatically, annoyingly removes spaces as you type with codi.vim #12
Comments
Hey thanks for opening an issue. Sorry you're having trouble. Unfortunately it looks like both pieces of software are working as intended... I'm having trouble completely understanding the Codi docs, but it looks like your best option is to change the LessSpace has a mechanism to work around conflicting plugins—if you're curious, search the source code for "temporary," although it isn't a documented API right now. But I don't think it would be useful in this case, because Codi sometimes doesn't call the Another option may just be adding an autocommand or blacklist to disable LessSpace in Codi buffers.
|
Actually, upon further reading, it looks like the
|
Yup this works for me, only problem is that when you make modifications in normal mode (for example x, or pasting) Codi does not get updated
I have just tried this, but less space does not seem to strip the white space at all |
Yeah I was afraid of that. I think Codi never calls the Post hook, because it's async. That's an interesting normal mode problem. I would think that would Just Work. I will download Codi in a day or two when I have some time and see what I can come up with. |
I tested it without setting the autocmd (so using default setting)
… On 4/07/2018, at 4:08 AM, George Hilliard ***@***.***> wrote:
Oh, duh... my bad: Try setting the opt_autocmd option to CursorHold. Since it only triggers when you leave insert mode, obviously it will never trigger when you do normal mode changes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
As you type into the buffer when Codi is started, Codi evaluates the code. Unfortunately, a side effect of this behaviour is that this plug-in decides to strip the white space as you type - as you are still in insert mode. This is rather annoying, especially when you are trying to type code that is indented.
To illustrate this behaviour, see this:
I have mentioned this in this issue here metakirby5/codi.vim#90
The text was updated successfully, but these errors were encountered: