Configuration file parameters for vim

Source: Internet
Author: User
Tags set background kali linux

Environment: Kali Linux

Vim's configuration file is stored in the/etc/vim directory with the configuration file named VIMRC

Set nocompatible "Remove the relevant VI conformance mode to avoid bugs and limitations of previous versions"
Set nu! "Show line number"
Set GUIFONT=LUXI/MONO/9 "Setting font, font name and font size"
filetype on "Detecting file types"
Set history=1000 "Record the number of rows in history"
Set Background=dark "Background using black"
Syntax on "syntax high brightness display"
Set Autoindent "Vim uses automatic alignment, that is, applies the current line alignment format to the next line (auto indent)"
Set Cindent "(Cindent is automatically indented for C language syntax)"
Set Smartindent "according to the above alignment format, intelligent selection alignment, for similar C language writing useful"
Set tabstop=4 "Setting tab key to 4 spaces"
Set shiftwidth = 4 "Sets the use of 4 spaces when interlaced between rows"
Set ai! "Set auto Indent"
Set Showmatch "Sets the matching mode, similar to the appropriate closing parenthesis when an opening parenthesis is entered"
Set guioptions-=t "Removal of vim in GUI version toolbar"
Set VB t_vb= "When Vim is being edited, if the command is wrong, an alert is issued, and the setting removes the alert"
Set ruler "in the bottom right corner of the editing process, display the status line at the cursor position"
Set Nohls "By default, look for a match is a high brightness display, this setting turns off highlighting"

Vim upgrade to the latest version: sudo apt-get install vim

Configuration file parameters for vim

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.