Can you force Vim to show a blank line at the end of a file?

前端 未结 4 2117
你的背包
你的背包 2021-02-13 20:14

When I open a text file in Notepad, it shows a blank line if there is a carriage return at the end of the last line containing text. However, in Vim it does not show this blank

4条回答
  •  遥遥无期
    2021-02-13 20:24

    One useful Vim option is

    set list
    

    It will help you see all end of lines characters (and possibly other generally invisible chars). So you will be able to view this last endofline directly in Vim and not only in Notepad.

提交回复
热议问题