vim setting error under BufRead

后端 未结 2 1795
忘了有多久
忘了有多久 2020-12-25 09:49

Running into a strange issue with my vimrc setting where I isolated to these 2 combination of lines if I use BufRead.

e.g.

au BufRead *.py
    \\ set         


        
相关标签:
2条回答
  • 2020-12-25 10:11

    please use one set with space separated options:

    au BufRead *.py set softtabstop=4 shiftwidth=4
    
    0 讨论(0)
  • 2020-12-25 10:12

    If you want to use multiple set, separate with |:

    au BufRead *.py
        \ set softtabstop=4 |
        \ set shiftwidth=4
    

    Read more :help :bar.

    0 讨论(0)
提交回复
热议问题