VIM settings-discover the beauty of VIM and set vim

Source: Internet
Author: User

VIM settings-discover the beauty of VIM and set vim

When I raised the code in Linux today, I suddenly found that I didn't even highlight the code. I searched for it on the Internet and found a great microblog.

This record: http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html

Very good and powerful. After decompression, vimrc is in the root directory. Replace/usr/share/vim/vimrc.

One of the two dislikes is to display a horizontal line under the cursor line. First, comment out the set cursorline. I thought it was successful,

The result is not displayed in the command line, but still displayed when the text is inserted. I cannot find it online. I read it myself and found the two rows

Just remove it.

"Autocmd InsertLeave * se nocul" highlight the current line with a light color "autocmd InsertEnter * se cul" highlight the current line with a light color

Thank you for your masterpiece.


In linux, how should I set vi = 'vim?

One-time use
Alias vi = 'vim 'to take effect again, edit the. bashrc
Add
Alias vi = vim


How can I enable the configuration file in vim in linux?

First, go to the color directory (/usr/share/vim62/colors) of vim. Different system directories are different ~ /Create the. vim directory and create the corresponding folders and files in the directories)

[Hadoop @ cluster3 ~] $ Ls/usr/share/vim/vim72/colors/
Blue. vim desert. vim morning. vim README.txt torte. vim
Darkblue. vim elflord. vim murphy. vim ron. vim zellner. vim
Default. vim evening. vim pablo. vim shine. vim
Delek. vim koehler. vim peachpuff. vim slate. vim

And then start with your own ~ HOME/create a. vimrc document

[Hadoop @ cluster3 ~] $ Vi. vimrc
: Colorscheme evening
# If you select another scheme, you only need to replace evening.

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.