In vim I can use for instance 10j to go 10 lines down. And I can use . to repeat the last deletion.
Now, in bash script I have many commented lines like this:
# ... # ... # ... # ... # ... # ... # ... # ... # ... etc... Say, there are 52 such lines. Is there a way to combine moving 52j and repeating the deletion of the # via x and delete 52 lines at once?
:scommand^v54jx(ctrl+v then 54jx), i.e. make a visual block on current column on all 54 lanes and delete it. Similarly, you can revert this with^v54I#<ESC>(or evengvI#<ESC>[gv = reopen previous visual mode])