search

Home  >  Q&A  >  body text

How to set the indentation of gg=G in vim to 4 characters

Normal tab indentation is 4 characters
But when batch indentation is performed, it is 8 characters (such as gg=G, 20G=40G)
How to set it to only indent 4 characters?

迷茫迷茫2743 days ago620

reply all(2)I'll reply

  • 黄舟

    黄舟2017-05-16 16:41:16

    set tabstop=4
    

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 16:41:16

    set shiftwidth=4

    reply
    0
  • Cancelreply