Introduction to Vim Themes
I often use vim as the main code editor under Linux. Whenever SSH enters a new development system environment, for the convenience of writing, he always needs to manually install Vim and configure various common plug-ins. spf13-vim.sh is a distribution for plugins and related resources for Vim. A single command can automatically install the commonly used supporting plug-in environment.
Github repository address:https://github.com/spf13/spf13-vim
experience
S&E feels like this is a quick installation of a Vim-centric IDE (comparable to Vscode). Then, spf13-vim.sh generates a relatively standardized vim configuration file hierarchy, which is convenient for adding other plugins later, and avoids the messy configuration files generated by manually adding plugins without planning. Moreover, after leaving the optimization and configuration of related plug-ins to it, it saves a lot of worry.
Install
Preconditions:
- git
- curl
- vim 7.3 and above
This site has related process records of installing Vim 8.2:click here to view
For Debian 10 git and curl can be installed simply by executing the following command
% sudo apt install git curl
Then for Unix/Linux, Mac OS, etc., execute the following command to install spf13-vim.sh with one click
% curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh
(For Windows system, please refer to ReadME.md in Github repository)
update method
One-click update can be done by executing the following command
% curl https://j.mp/spf13-vim3 -L -o - | sh
Personalization
spf13-vim.sh is a matching common plugin distribution, and plugins such as YouCompleteMe are not installed, which requires me to add them later.
You can add a personalized configuration file by executing the following command in the current user home directory
% touch ~/.vimrc.local
Then, you can edit this file to add your own configuration.
For some configurations that need to be executed in advance, you can execute the following commands to download the corresponding configuration files
% ~/.vimrc.before.local
Add plugin
For example, to add the plug-in spf13/vim-colors, according to the example in ReadME.md, it is like this
% echo Bundle \'spf13/vim-colors\' >> ~/.vimrc.bundles.local
remove plugin
To remove the plugin, just add an Un in front of the Bundle in the above command
% echo UnBundle \'AutoClose\' >> ~/.vimrc.bundles.local
Use of common plugins
The following introduces the use and operation methods of some commonly used plug-ins. I will not write all of them here. I will add them slowly according to my use.
NERDTree
Bring up the menu via Crtl-E