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
At least with the C language and clangd language server, maf selects to exactly the closing '}' bracket. If this is cut and pasted, the result is rather messy. The solution is mafxx, one x to select the full line of the closing bracket, and one x to select the following blank line since functions are almost universally separated by at least one blank line.
It would be convenient if maf by its own would behave as mafxx.
I realize that mafxx is not always the best solution since it requires that there is in fact subsequent space, thus an implementation would need to be sensitive to that.
This discussion was converted from issue #4857 on April 12, 2024 00:37.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At least with the C language and clangd language server,
maf
selects to exactly the closing '}' bracket. If this is cut and pasted, the result is rather messy. The solution ismafxx
, one x to select the full line of the closing bracket, and one x to select the following blank line since functions are almost universally separated by at least one blank line.It would be convenient if
maf
by its own would behave asmafxx
.I realize that
mafxx
is not always the best solution since it requires that there is in fact subsequent space, thus an implementation would need to be sensitive to that.Beta Was this translation helpful? Give feedback.
All reactions