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
I personally prefer the vim-surround grammar. When using csff<function name> to change a function name for a language that does not use () for functions, e.g. Mathematica using [], my configuration is like:
When my cursor is in the brackets, dsf can successfully delete the function to make it x_. However, when I tried to rename f to g using csffg, the result was:
g(x_) :=x^2
It seems the [] brackets matched by bra and ket patterns were ignored in the final output, and the behavior of csff always assumes () are used for function calls. I wonder if it's better to respect the original surrounding characters.
The text was updated successfully, but these errors were encountered:
I personally prefer the vim-surround grammar. When using
csff<function name>
to change a function name for a language that does not use()
for functions, e.g. Mathematica using[]
, my configuration is like:For the function below:
When my cursor is in the brackets,
dsf
can successfully delete the function to make itx_
. However, when I tried to renamef
tog
usingcsffg
, the result was:It seems the
[]
brackets matched bybra
andket
patterns were ignored in the final output, and the behavior ofcsff
always assumes()
are used for function calls. I wonder if it's better to respect the original surrounding characters.The text was updated successfully, but these errors were encountered: