11
1
I’d like to select (or delete, or change, or …) the whole block of commentary under my cursor.
If my cursor is at the beginning of the commentary block (i.e. over the opening comment character), and it’s a type of comment block with discrete start/end markers, then I can select the entire comment block with V%, but I don’t know of a movement to move to the first character of the block currently under the cursor.
Better yet would be an inner-text object for comments.
Does anybody know of any of the above, or how I could easily create the latter? (I’m new to vim as a whole.)
2
[
and]
. Two more incredibly useful nav commands for my vim vocabulary, to go alongsidef
andt
:) Thanks – Mark K Cowan – 2015-02-20T09:07:08.683You can also use % for the 3. step, which is easier to type in many keyboards. – 12431234123412341234123 – 2016-08-30T08:39:30.777
I am trying to use this in my
.vimrc
(["v]"
) but it does not work. Do I miss something? – nocibambi – 2019-09-02T14:35:36.960