What is the Dollar sign (“$”) at the end of every line in Vim

前端 未结 2 1931
小蘑菇
小蘑菇 2021-02-12 13:13

I am relatively new to Vim. Whenever I start Vim using vim LearnRuby.rb, a dollar sign appears at every line.

Why?

2条回答
  •  不知归路
    2021-02-12 13:52

    Open ~/.vimrc and check its contents
    If you see a line like this:

    set list
    

    It means, it will display $ in every line to mark the end of line.
    Either remove it or use :set nolist command in the vi editor.

提交回复
热议问题