Enable Vim Syntax Highlighting By Default

后端 未结 6 1464
死守一世寂寞
死守一世寂寞 2020-12-07 14:07

I know how to turn syntax highlighting on and off in vim by running this in the editor:

:syntax on/off

But I want syntax highlighting to be

6条回答
  •  盖世英雄少女心
    2020-12-07 15:03

    I also found that this is one of the lessons in vimtutor.

    To find it, you can type command vimtutor in your Terminal (I used on Mac), and scroll down to see if there is a lesson called CREATE A STARTUP SCRIPT (for me it was Lesson 7.2), where it describes how to set up an initial vimrc file.

提交回复
热议问题