Vim Utility Configuration

Source: Internet
Author: User

First put the Exvim. Then modify the. vimrc file.

1. Automatic line wrapping. Takes two steps:

Set textwidth=70 for Word count

Set Wrap sets Automatic wrapping

Set linebreak "word wrapping, with the use of automatic line wrapping, the effect is very good
Set nowrap setting does not automatically fold rows


2, highlight when the forward

Set Cursorline


3, set the window color selection colorscheme darkblue

4. Auto roll down set scrolloff=5 "Automatically roll down or roll up when the cursor is close to the bottom or top.
5. Set UTF8 file encoding format set Encoding=utf-8
Set Termencoding=utf-8
Set Fileencoding=chinese
Set Fileencodings=ucs-bom,utf-8,chinese
Set Langmenu=zh_cn.utf-8
SOURCE $VIMRUNTIME/delmenu.vim
SOURCE $VIMRUNTIME/menu.vim
Language Messages Zh_cn.utf-8


Vim format file shortcut key:

1,gg jump to the first line

2,shift+v go to Visual mode

3,shift+g Select All

4, press the Magic =

You will be surprised to find that the code is automatically indented, hehe, of course, it may be tragic.

Vim Utility Configuration

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.