在编辑文本时,经常会有这样的需求,对特定列进行进行批量编辑。比如批量注释一段代码,或者删除待定字符(如一列空格)。幸运的是VIM支持列编辑模式。
假设文本内容:
Maximum length of a custom vocabulary phrase Each supported Region: 256 No The maximum number of characters in a custom vocabulary phrase.
Number of StartMedicalStreamTranscription Websocket requests Each supported Region: 25 Yes The maximum number of StartMedicalStreamTranscription Websocket requests.
Number of StartMedicalStreamTranscription Websocket requests Each supported Region: 25 Yes The maximum number of StartMedicalStreamTranscription Websocket requests.
Number of StartStreamTranscription Websocket requests Each supported Region: 25 Yes The maximum number of StartStreamTranscription Websocket requests that you can make per second from this account in the current Region.
Number of concurrent HTTP/2 streams for streaming transcription. Each supported Region: 25 Yes The maximum number of concurrent stream transcription jobs in this account in the current Region
Number of concurrent batch transcription jobs Each supported Region: 250 Yes The maximum number of concurrent transcription jobs in this account in the current Region
Number of concurrent medical batch transcription jobs Each supported Region: 250 Yes The maximum number of concurrent medical batch transcription jobs.
Number of concurrent medical batch transcription jobs Each supported Region: 250 Yes The maximum number of concurrent medical batch transcription jobs.
把第二行到第八行的Number删除:
- 找开文件
- 光标移动到第二行行首
- 按下ctrl+v,打开visual模式
- 向下移动光标到第八行行首,然后向右移动光标覆盖r
- 执行删除命令d
把Number再加回来:
- 打开文件
- 光标移动到第二行行首
- 按下ctrl+v,打开visual模式
- 向下移动光标到第八行行首
- 执行插入命令I (大写的i)
- 输入要插入的内容
- 按下Esc