search

Home  >  Q&A  >  body text

Don’t let vim display the tab character ‘>’?

[Question has been closed] The answer below does not solve the problem,

indent -i8 -ts 1 xx.c

I like to use indent -i8 xx.c to format existing c source files.
But the tab character '>' will be displayed after processing. How to cancel it and prevent it from being displayed? You can use: retab, but is there any other method?
For example, every time you open it, it will automatically execute : retab.

阿神阿神2743 days ago589

reply all(4)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 16:40:15

    Obviously I feel uncomfortable using someone else’s .vimrc,
    It’s better to write my own .vimrc,

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-16 16:40:15

    set nolist

    Put it into your .vimrc

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 16:40:15

    Add a line of retab to ~/.vimrc

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-16 16:40:15

    Check your vimrc, there should be a line similar to: set listchars=tab:›, just comment it out

    reply
    0
  • Cancelreply