如何在 .vimrc 中换行? [英] How to wrap long lines in .vimrc?
本文介绍了如何在 .vimrc 中换行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经设置了一个 colorcolumn=80
,但我发现我无法在 ~/.vimrc 中换行.
I've setup a colorcolumn=80
, but I found I can not wrap long lines in ~/.vimrc.
有没有像 C 的 \
这样的方法来连接?
Is there any method like C's \
to concatenate?
例如我试过这个,但它不起作用.
For example I tried this, but it does not work.
autocmd FileType python setlocal ai si et sta sw=4 \
textwidth=80 backspace=indent,eol,start fo=croql
推荐答案
.vimrc
文件中的行可以通过将转义的 \
放在 续行的开头:
Lines in the .vimrc
file can be wrapped by putting the escaping \
at the beginning of the continuation line:
autocmd FileType python
\ setlocal ai si et sta sw=4
\ textwidth=80 backspace=indent,eol,start fo=croql
见:h line-continuation
这篇关于如何在 .vimrc 中换行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文