You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Fantastic plugin you've written. Far better, consistency-wise, than delimitMate, at least in my experience.
I've noticed behavior which is almost certainly wrong, but I'm not sure if it's lexima.vim's fault. When I type the following (| is the cursor):
void foo() {|
then it correctly expands to the following:
void foo() {
|
}
But a common thing for me to do is to type out a bunch of empty functions and just put a comment in them, getting the skeleton ready for actual implementation later. From the above expansion, still in Insert mode, I type:
void foo() {
// Frobnicate the bar.|
}
When I hit Escape, this happens:
void foo() {
// Frobnicate the bar.|
// }
Obviously this is not what I meant to happen; I'd rather the closing brace stay uncommented. Pressing u at this point corrects the issue, for whatever reason:
void foo() {
// Frobnicate the bar.|
}
This only happens in files where a source code filetype is set (such as c, cpp, or rust). That is, in an empty buffer, the closing brace stays put.
Do you have any idea what could be causing this behavior, and how to make it stop?
The text was updated successfully, but these errors were encountered:
Sorry for slow response.
It is caused by r flag of formatoption option set by default filetype plugins.
As a workaround, remove r flag from formatoption like below
Hi! Fantastic plugin you've written. Far better, consistency-wise, than delimitMate, at least in my experience.
I've noticed behavior which is almost certainly wrong, but I'm not sure if it's lexima.vim's fault. When I type the following (
|
is the cursor):then it correctly expands to the following:
But a common thing for me to do is to type out a bunch of empty functions and just put a comment in them, getting the skeleton ready for actual implementation later. From the above expansion, still in Insert mode, I type:
When I hit Escape, this happens:
Obviously this is not what I meant to happen; I'd rather the closing brace stay uncommented. Pressing
u
at this point corrects the issue, for whatever reason:This only happens in files where a source code filetype is set (such as
c
,cpp
, orrust
). That is, in an empty buffer, the closing brace stays put.Do you have any idea what could be causing this behavior, and how to make it stop?
The text was updated successfully, but these errors were encountered: