When writing Rust code, you could have a function looking like this:
fn main() {
let bar = "bar"
println!("foo{}", bar);
}
The problem is that unless I've added let delimitMate_excluded_regions = "String" to my vimrc, what will happen is that at first that when typing the third line, things will look like this:
fn main() {
let bar = "bar"
println!("{|");
}
...where the | is where the cursor is. Now if you write }, the cursor will jump all the way down to the last line, right after the already existing right brace.
In this code, if you do the same with [] and () the closing (right) bracket/parenthesis will be entered after the opening character resulting in something like this (as expected and wanted):
println!("[]|");
However, if on the last line there's, for instance, a ) then the problem previously demonstrated with } will now apply to ).
These jumps make string interpolation in this particular language harder, but it might also affect other languages.
When writing Rust code, you could have a function looking like this:
The problem is that unless I've added
let delimitMate_excluded_regions = "String"
to myvimrc
, what will happen is that at first that when typing the third line, things will look like this:...where the
|
is where the cursor is. Now if you write}
, the cursor will jump all the way down to the last line, right after the already existing right brace.In this code, if you do the same with
[]
and()
the closing (right) bracket/parenthesis will be entered after the opening character resulting in something like this (as expected and wanted):However, if on the last line there's, for instance, a
)
then the problem previously demonstrated with}
will now apply to)
.These jumps make string interpolation in this particular language harder, but it might also affect other languages.