vim - show invisible characters (: set list)

By default, vim is not displayed space, tabs, newlines, trailing space, wrapped lines and other invisible characters. We can use the following command to open the options list to display non-visible characters:

:set list

As shown below, tabs are displayed as "^ I", while the end of the line are identified as "$."

We can also use the following command to re-hide invisible characters:

:set nolist

Normally we would use the following command to show or hide invisible characters:

:set list!

Guess you like

Origin www.cnblogs.com/chenjo/p/12148141.html