Learning Linux with cainiao: My Vim simple configuration

Source: Internet
Author: User

Configure Vim on your own virtual machine. I don't know how to use a lot of data on the Internet. I personally think it is better to add one. Below are some of my simple configurations, which are enough currently. Wait for what to use, and then update and add it:

But you still need one

Sudo apt-Get install ctags // used for jump

In the source code Directory: ctags-R. Use Ctrl +] to jump to the function and CTRL + T to return.

 
Set nu "display row number set showcmd" display command set showmatch "display matching brackets set cindent" C/C ++ bin indent "tab to 4 character set expandtabset smarttabset shiftwidth = 4 set tabstop = 4 set history = 4000 "Vim remembers historical operation count set autoread" when the file is modified externally, automatically re-read set hlsearch "High Brightness anti-white set laststatus = 2" display the file name and path of the current edited file "Remember last editautocmd bufreadpost * \ ifline (" '\ "")> 0 & line ("'\" ") <= line (" $ ") | \ exe" normal G' \ "" | \ endif

 


 

 

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.