Tabs and spaces in vim

前端 未结 6 1267
生来不讨喜
生来不讨喜 2021-01-29 18:07

How do I prevent vim from replacing spaces with tabs when autoindent is on?

An example: if I have two tabs and 7 spaces in the beginning of the line, and tabstop=3

6条回答
  •  遇见更好的自我
    2021-01-29 19:04

    If you want to replace all the tabs with spaces based on the setting of 'ts', you can use :retab. It can also do the reverse.

提交回复
热议问题