Vim simple configuration
Vim is a text editor that is powerful enough to have no friends. Friends who often use vim for editing must have a deep understanding. Below are some simple Vim configurations.
(1) vim ~ /. Vimrc
Edit the following content, save and exit.
(Note: OS X/Ubuntu/CentOS/RedHat testing is available)
Set hlsealch // highlighted reversed
Set backspace = 2 // you can use the backspace key to delete it at any time.
Set autoindent // automatically scale down
Set ruler // display the status of the last row
Set showmode // The status of the row is displayed in the lower left corner.
Set nu // display the row number
Set bg = dark // display different background colors
Set mouse = a // mouse available
Syntax on // syntax check, Color Display
Configuration diagram:
I found a BUG. You can try it out. The environment is the CSDN markdown editor.
After you press set hlsearch, the Space key is immediately changed to: set hlseyrch. Have you noticed that a letter has changed. So someone asked how you typed set hlsearch. Can I use the Tab key!
Two sheets:
For more Vim tutorials, see the following:
Build VIM into a simple and practical IDE
Vim Learning Guide
Quick learn Vi Editor
Powerful Vim Editor
Build a Vim Development Environment on CentOS 6.2
Install the highlighted Vim editing tool in CentOS 5.4
Vim tips: C language settings
Set the Vim row number in Ubuntu
Vim editor basic tutorial
This article permanently updates the link address: