- start visual block mode (with Ctrl-V)
- adjust the selection with movement keys as needed. (marks can be used here)
- once the selections are made, start block insert with 'I' (or append with 'A')
NOTE: don't use the usual lowercase 'i' or 'a' - type the comment text (e.g. "#")
- when you hit escape, comments will be added to all selected lines
source
No comments:
Post a Comment