Vim is configured with a vertical alignment line

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.