comment/uncomment lines in Vim
来源:互联网 发布:ccer金融数据库 编辑:程序博客网 时间:2024/05/22 22:39
To comment out blocks in vim:
- press Esc (to leave editing or other mode)
- hit ctrl+v (visual block mode)
- use the up/down arrow keys to select lines you want (it won't highlight everything - it's OK!)
- Shift+i (capital I)
- insert the text you want, i.e. '% '
- press Esc
Give it a second to work.
To uncomment blocks in vim:
- press Esc (to leave editing or other mode)
- hit ctrl+v (visual block mode)
- use the up/down arrow keys to select the lines to uncomment.
If you want to select multiple characters, use one or combine these methods:
- use the left/right arrow keys to select more text
- to select chunks of text use shift + left/right arrow key
- you can repeatedly push the delete keys below, like a regular delete button
press d or x to delete characters, repeatedly if necessary
press Esc
Give it a second to work.
0 0
- comment/uncomment lines in Vim
- vim 多行comment uncomment
- 注释与反注释Comment/Uncomment selected code in Visual C++
- Commenting out a range of lines in VIM
- Search across multiple lines using regular expression in VIM
- comment style in C
- Two Lines In Heaven
- vim delete all blank lines
- vim onelines to two lines
- UNCOMMENT THE
- comment set character in mysql
- Comment in html.erb file
- multi-line comment In file
- Linux Common Comment in Practices
- Inserting text in multiple lines
- 1.2 Lines in the plane
- linux:vim setting of auto insert comment
- vim add some characters according to lines
- UIButton无法响应点击事件
- Find the Celebrity
- Meeting Rooms II
- Maximum Size Subarray Sum Equals k
- Simplify Path
- comment/uncomment lines in Vim
- 查看CPU支持的指令集
- 《c primer plus》第一个程序first.c的编辑,编译与输出
- bitset
- Leetcode 383. Ransom Note
- Zookeeper Java客户端API的使用
- JavaScript模拟线程池案例:超市收银台
- 让程序清晰可读,并在vim中设置行号
- 欢迎使用CSDN-markdown编辑器