2008年6月27日星期五

vim show tabs

[vim show tabs]

Vim has a mode that tells you exactly what's in your file. Executing the command

:set list

puts you into this mode. When the display is set into "list mode" all characters print. Tabs show up as "^I" and the end of line shows up as $. So in list mode, our two examples look like:

prog: prog.c$
^Icc -g -o prog prog.c$

0 意見: