vim에서 \t, \r, \n 문자가 표시되게 하는 옵션이나 방법???

innu의 이미지

언젠가 어디서 본거 같은데 까먹었습니다.
도움을 부탁드립니다.

codebank의 이미지

: set list 위와 같이하면 탭은 ^I로 파일끝은 $로 표시가 된다고 합니다. \r의 경우에는 ^M으로 표시됩니다.

http://cespc1.kumoh.ac.kr/~sylot/etc/vi.html
참조해 보세요.

------------------------------
좋은 하루 되세요.

innu의 이미지

너무너무 감사합니다.

Quote:

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?

Debian Spirit !!!