In Linux systems, if you want to edit text or code efficiently, you need to use some editors. For example, Vim IDE is a useful editor. This article will teach you how to install and configure the Vim IDE for Linux systems.
Vim configuration features
1. Installation Vim
installed, in Linux is easy to open the terminal, enter several orders can be completed It is.
sudo apt-get install vim
sudo apt-get install gvim
sudo apt-get install git (this is very important, use git when downloading plugins later) To download)
This is the first command. I said that I have already installed it and I don't have to install it. After installing it, you can directly enter vim or git or gvim in the terminal to know if it is installed.
You can also use aptitude to install it. Install aptitude before using aptitude to install it. sudo aptitude install vim
sudo aptitude install gvim
Sudo aptitude install git
Then, create a .vim directory in the user's home directory, and create a bundle directory in the .vim directory. The plugins that Vundle automatically downloads will be saved here.
The vundle can automatically download and install the plugin. Just use the Bundle command after the "My Bundles Here" comment to list the required plugins, one for each plugin, and then run the :BundleInstall command. Vundle supports github.com and Vim's official website vim.org.
mkdir .vim/bundle
Then, go to the Bundle directory and use the git clone command to download the vundle.
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
Once the download is complete, you can see the vundle directory under bundle.
2. Create and configure the .vimrc file
You can type vim in the terminal and type: echo $VIM to see your vim directory, and then see if there is any. Vimrc file, if you don't have it, create it yourself.
My .vimrc file is in the /usr/share/vim directory (I don't know if everyone's .vimrc is also in this directory). If not, create it yourself with the command: touch .vimrc
First come to the basic configuration, do not plug in, map those more advanced things first. Can be done: code color matching, tab indentation, automatic saving, especially showing the current editing line, bracket matching, search search, system public clipboard, code folding, etc. As follows:
Note: Changing the .vimrc file requires sudo vim vimrc to use vim to modify, you can also use sudo gedit vimrc Previous123Next page Total 3 pages
When formatting Linux partitions, many people have encountered a tough problem, suggesting that Coul
If you need regular statistics due to work needs or personal preferences, you can install some stati
When Linux users want to view the contents of a directory, can they be viewed with
In Linux systems, you want to combine multiple low-speed signals into one high-spee
How Linux prohibits specific ip address access
Ubuntu installs the game Wesnoth step
How to boot a Linux ISO image file from the hard disk
Linux system management disk and file method
How to remove the ^M character of the Linux file
Steps for Multi-Mirror Image Traffic Aggregation and Replication in Linux
After CentOS installs vnc, prompts Could not start Xvnc?
Linux uses the chgrp command to modify the group to which the file belongs
How to upgrade Ubuntu system to 4.x kernel
What should I do when the Ubuntu hard disk reads and writes?
Ubuntu closes the discrete graphics card step
Linux uses the blockdev command to adjust the file read-ahead size
Win7 failed to create a video preview. Please check how the device connection resolves
How to close the status bar of the win10 system explorer window
Win10 system desktop can not find QQ computer housekeeper icon how to do
Microsoft released 9 security patches in September 4 severity levels
How does the Win7 system remove the disk to be write protected?
Win10 modify notification message display time method
How to copy files to OneDrive in Win8.1
Win 7 start menu input command to start various programs
Where is win8 management wireless network? Teach you to use the command to achieve