首页 > 代码库 > linux(vi)多行注释和取消注释.

linux(vi)多行注释和取消注释.

//comment
1,‘ctrl+v‘ to VISUAL BLOCK mode.
2,‘j‘ or ‘k‘ to select/deselect lines.
3,‘I‘ to INSERT mode.
4,‘#‘ and ‘ESC‘.

//uncomment
step ‘1‘,‘2‘ are the same.
‘d‘.

linux(vi)多行注释和取消注释.