Kali vim显示行数
时间: 2023-10-12 14:02:59 浏览: 299
要在Kali上的vim中显示行数,可以按照以下步骤进行设置:
1. 打开终端,输入以下命令来编辑vim的配置文件vimrc:
```
vim ~/.vimrc
```
2. 在vimrc文件中,添加以下行来启用行号显示:
```
set number
```
3. 保存并关闭文件。
现在,当你使用vim编辑器时,行号将显示在左侧。这将有助于你在代码中快速定位到特定的行。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Linux:怎样让Vim编辑器显示行数](https://blog.csdn.net/qq_44851228/article/details/107992883)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [vim编辑器永久显示行号](https://blog.csdn.net/qq_50185399/article/details/123681322)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文