Vim Syntax Highlighting does not work

后端 未结 9 772
别那么骄傲
别那么骄傲 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:10

    This is the absolute minimum you need to put in your ~/.vimrc if you intend to use vim as your primary editor:

    " activates filetype detection
    filetype plugin indent on
    
    " activates syntax highlighting among other things
    syntax on
    
    " allows you to deal with multiple unsaved
    " buffers simultaneously without resorting
    " to misusing tabs
    set hidden
    
    " just hit backspace without this one and
    " see for yourself
    set backspace=indent,eol,start
    

    Anything else depends on your taste, workflow and needs.

提交回复
热议问题