Vim Syntax Highlighting does not work

后端 未结 9 756
别那么骄傲
别那么骄傲 2021-01-31 14:45

I\'ve installed a fresh Arch Linux system on my laptop and downloaded the vim package.

I haven\'t altered the .vimrc file, but the syntax highlighting doesn\'t seem to w

相关标签:
9条回答
  • 2021-01-31 15:19

    Type

    :syntax on
    

    to get it to work. It is not a default option for vim. Probably in the other systems, it was set to on in the system default vimrc

    Or put

    syntax on
    

    in ~/.vimrc

    0 讨论(0)
  • 2021-01-31 15:21
    vi /etc/profile
    alias vi=vim
    

    maybe you use vi instead of vim

    0 讨论(0)
  • 2021-01-31 15:21

    Another reason syntax highlighting won't work is you might have a theme/colorscheme set that VIM cannot find.

    colorscheme darkblue
    

    Either delete the line or comment it out:

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