After this revision, it is indeed very easy to use ~ first like it.
vi is very powerful, but if you want to quickly develop programs under Linux, vim feels like a powerful tool. The simple configuration record is as follows.
The first step is to install gvim.
[plain] view plain copy
print?
sudo apt-get install vim-gtk vim-doc cscope
The second step is to create a new one Configuration file vimrc
[plain] view plain copy
print?
vi ~/.vimrc
The third step, Add the following content to the file and save it.
[plain] view plain copy
print?
set nocompatible "Turn off compatibility with VI
set number "Show line number
filetype on
set history=1000
set background=dark "Set the background to gray
syntax on "Turn on syntax highlighting
set autoindent "Auto-align, use the alignment of the previous line
set smartindent "Smart alignment
set tabstop=4
set shiftwidth=4
set showmatch "Set the matching mode, similar to matching the corresponding right bracket when entering a left bracket
set guioptions-=T
set vb t_vb=
set ruler "During the editing process, display the status line of the cursor position in the lower right corner
set nohls
set incsearch "Search automatic positioning
if has("vms")
set nobackup
else
set backup
endif
The above is the detailed content of Detailed explanation of simple VIM configuration examples. For more information, please follow other related articles on the PHP Chinese website!