标签: bash vim
说我有10行:
line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10
如何在vim中注释掉第1,5和9行? 我知道如何按顺序注释掉行:1,9s / ^ /#但是如果我想编辑多个单独的行号怎么办?
# line 1 line 2 line 3 line 4 # line 5 line 6 line 7 line 8 # line 9 line 10