多行註解 -- Vim
References :
http://www.linuxask.com/questions/comment-out-multiple-lines-using-vim?utm_source=feedburner&utm_medium=twitter&utm_campaign=Feed%3A+linuxask+%28Linux+Ask%21%29
http://www.linuxask.com/questions/comment-out-multiple-lines-using-vim?utm_source=feedburner&utm_medium=twitter&utm_campaign=Feed%3A+linuxask+%28Linux+Ask%21%29
Steps:
1. Change to command mode
2. Enable visual block editing by pressing Ctrl + V
3. Select the line(s)
4. Press "I", enter the character you needed, e.g. "#"
5. Press "Esc", then "Enter"
2. Enable visual block editing by pressing Ctrl + V
3. Select the line(s)
4. Press "I", enter the character you needed, e.g. "#"
5. Press "Esc", then "Enter"
Steps:
1. 先轉回到command mode (按ESC)
2. Ctrl + V 換到visual block editing
3. 選擇多行(用上下鍵選擇你要註解的區塊)
4. 按 "I"(shift + i) , 然後按下你需要的任何字元,例如. "#"
5. 最後按"Esc"再按 "Enter"
留言