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

前端 未结 2 1936
小蘑菇
小蘑菇 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 14:03

    :set nolist
    

    will turn off special characters for the current buffer, such as tabs being presented as ^I and end of line characters showing up as $.

    However, if it's doing that consistently when you run vim, you need to look into your .vimrc (or other startup file where applicable) and find out what's doing the set list that causes it.

提交回复
热议问题