Is it possible to display indentation guides in Vim?

后端 未结 7 1186
暖寄归人
暖寄归人 2020-11-30 18:50

I\'m a longtime Vim user (3 or 4 years) who has recently started dealing with some deeply nested code. This code is indented with spaces, not tabs. I would like some clean

7条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 19:05

    The following command will configure Vim to show dots to indicate the indentation level as you type. The dots magically disappear when the cursor leaves the line:

    :set list listchars=tab:»-,trail:·,extends:»,precedes:«
    

提交回复
热议问题