Reputation: 16002
I've setup a colorcolumn=80
, but I found I can not wrap long lines in ~/.vimrc.
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
Upvotes: 25
Views: 8611
Reputation: 40759
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
See :h line-continuation
Upvotes: 48