Replies: 1 comment
-
This works for comments that start with
{
{
"after": [
"?",
"^",
"(",
"\\",
"s",
"*",
"[",
"^",
"\\",
"s",
"#",
"/",
"]",
")",
"<Enter>",
"j",
"V",
"/",
"^",
"(",
"\\",
"s",
"*",
"[",
"^",
"\\",
"s",
"#",
"/",
"]",
")",
"<Enter>",
"k"
],
"before": ["g", ":"]
},
{
"after": [
"?",
"^",
"(",
"\\",
"s",
"*",
"[",
"^",
"\\",
"s",
"#",
"/",
"]",
"|",
"$",
")",
"<Enter>",
"j",
"V",
"/",
"^",
"(",
"\\",
"s",
"*",
"[",
"^",
"\\",
"s",
"#",
"/",
"]",
"|",
"$",
")",
"<Enter>",
"k"
],
"before": ["g", ";"]
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Often I'll comment out some lines, and then want to uncomment them. Currently I manually select the lines, which is often
kkVjjjjj
.If there's are empty lines at the start and end of the block, this can be
{V}
, but I'm always that fortunate / planful.Is there any way of selecting the lines with a keybinding?
The rule would be "Any contiguous line that begins with
//
(or whatever the comment string is)". For example, assuming the cursor is in the middle of the block, is it possible to select the commented out section?Beta Was this translation helpful? Give feedback.
All reactions