linux - 如何在第一行设置第二行和第三行的格式?

标签 linux vim text formatting

我正在使用VIM ,我想格式化第二行和第三行。 我可以通过 :2,3left<number of spaces> 来完成

 * @brief:     Hello world
 * Hello world hello world
 * Hello world hello world

如何更容易地获得这样的东西?

 * @brief:     Hello world
 *             Hello world hello world
 *             Hello world hello world

最佳答案

试试这个 按 Esc+:然后按 v 然后按 Enter ,选择第二行和第三行,按 = https://www.cs.swarthmore.edu/help/vim/reformatting.html

关于linux - 如何在第一行设置第二行和第三行的格式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34334293/

相关文章:

python-3.x - python的电报内联键盘中的换行符

python - 在 linux SUSE 或 RedHat 上,如何加载 Python 2.7

linux - getopts 没有将我的选项发送到标准输出

python - uWSGI服务器没有响应

vim - Vim中的CTRL-K产生意外结果

html - 在文本 html 和 css 旁边对齐图像

python - 如何用一堆文本文件中的 '0xa0' 替换所有 ' ' 字符?

php - UTF-8 贯穿始终

c - Vim:使用 gcc 编译

ruby - 将 VIM 插件添加到 Janus 设置中