In the following code snippet, if I go to the first open parenthesis (
of the line beginning with (spit
(defn missing-accts
"Prints accounts found in one report but not the other."
[report-header mapped-data out-file]
(spit out-file (str "\n\n "
(count mapped-data)
" " report-header
"\n\n") :append true)
.
.
.
vim highlights the first (
and closing )
parentheses.
Is there and, if there is, what is the vim command that would yank the entire spit command?
Thanks.
The sequence
va(
will highlight from the opening to closing brackets inclusively, and a y
will then yank that. Note unlike the %
command, you don't have to be positioned on the bracket - you just need to be inside the clause.
Note that
vi(
would highlight everything inside the brackets, but not the brackets.
You can do this for braces too ({
instead of (
) and XML tags (t
- presumably for tag)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With