Https://github.com/lvxiaobo616/vim-indent-guides
Reference Https://github.com/Yggdroot/indentLine
Install Yggdroot/indentlin First
Steps:
1. Download FontForge.
2. Open the font you want to patch with FontForge.
3. Click Goto in the View menu and select Private Use area in its drop-down box.
4. Select an empty glyph.
5. Double-click the empty glyph to open the drawing tool
6. Select Import from the File menu and select the Indentline-dotted-guide.esp file.
7. After the import is successful, select Generate Fonts in the File menu and fill in the Save address and file name.
8. Then put the resulting font into the. Font, open it with FontForge, then find the word that you just imported, right-click and select Glyph information and copy the word inside and copy it to. vimrc.
9. Vim Settings: Home directory. VIMRC for the corresponding configuration file
let G: Indentline_char = "//set snaplines character let G:indentline_first_char = "//set the first character of snaplines let g:indentline_showfirstindentlevel = 1 // Display snaplines first character let g:indentline_color_term = 239 //set snaplines color
set tabstop=4 //设置 tab 的宽度set softtabstop=4 //设置 删除 tab 的宽度set shiftwidth=4 //设置 智能缩进的宽度set expandtab //设置 将 tab 转换为 4 个空格
Vim is configured with a vertical alignment line