9

vim多行同时修改,注释和取消注释

 3 years ago
source link: http://abcdxyzk.github.io/blog/2021/06/01/vim-block/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
vim多行同时修改,注释和取消注释 - kk Blog —— 通用基础

kk Blog —— 通用基础

date [-d @int|str] [+%s|"+%F %T"]

Use the up and down arrows to select a result. Press enter to go to the selected search result. Touch device users can use touch and swipe gestures.

vim多行同时修改,注释和取消注释

2021-06-01 14:58:00

https://blog.csdn.net/caryaliu/article/details/7081430

多行注释:

  1. 进入命令行模式,按ctrl + v进入 visual block模式,然后按方向键选中多行

  2. 按大写字母I,再插入注释符,例如//

  3. 按esc键就会全部注释了

取消多行注释:

  1. 进入命令行模式,按ctrl + v进入 visual block模式,按方向键选中要删除内容

  2. 按d键就可全部取消注释

Posted by kk

2021-06-01 14:58:00tools, vim

« git修改commit ctags使用 »

Copyright © 2021 - kk - Powered by Octopress 站长统计


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK