'tabs'에 해당되는 글 1건

  1. 2004/06/14 VIEWING TABS

VIEWING TABS

컴퓨터/System 2004/06/14 20:12

/usr/share/vim/vim61/doc/usr_05.txt


VIEWING TABS

When there are tabs in a file, you cannot see where they are. To make them
visible: >

:set list

Now every Tab is displayed as ^I. And a $ is displayed at the end of each line, so that you can spot trailing spaces that would otherwise go unnoticed.
A disadvantage is that this looks ugly when there are many Tabs in a file.
If you have a color terminal, or are using the GUI, Vim can show the spaces and tabs as highlighted characters. Use the 'listchars' option: >

:set listchars=tab:>-,trail:-

Now every tab will be displayed as ">---" and trailing white space as "-".
Looks a lot better, doesn't it?
TAG tabs, vim