Vim's ultimate Configuration Spf13-vim

Source: Internet
Author: User



1.SPF 13-vim



Spf13-vim is a release version of the Vim plug-in and configuration, including a set of carefully selected vim plug-ins, using Vundle for plug-in management . after the Spf13-vim is installed, it generates the following files:





.vimrc
.vimrc.before
.vimrc.bundles
~/. VIM / bundle / * various plug-ins below
~/Some auxiliary tools of spf13-vim-3 spf13 can be ignored 




        becauseSpf13-vimPerfect structure organization, you can completely not modify it on the basis of any file, corresponding to add a few of their own~/.vimrc.local,~/.vimrc.bundles.local,~/.vimrc.before.local file to add your own personalized configuration, or add a delete plugin, extensibility is very strong. alsoSpf13-vimthe user's own configuration is placed in the~/.vimrc.local,~/.vimrc.bundles.local,~/.vimrc.before.localwe're not going to change that.. VIMRC,. Vimrc.before and. Vimrc.bundles these haveSpf13-vimthe configuration file for the release version. Of course, if youVimscriptIf you are serious, you can change it.


in general,theSPF13-vim is custom-made . VIMRC,vundle plug-in manager and a variety of plug-ins together with a Vim the release version of the plugin and configuration.






2.spf13-vim the installation and configuration



( 1 ) network mode installation



Curl Https://j.mp/spf13-vim3-L > spf13-vim.sh&& sh spf13-vim.sh



(2) Manual installation mode



If the network environment does not support git, you need to install everything manually. Manual mode installation is too cumbersome, in fact, refer to the operation of the spf13-vim/bootstrap.sh script.



a ) Access Https://github.com/spf13/spf13-vim, click the "Zip" button, package download the plugin, and unzip



b ) Reference spf13-vim/bootstrap.sh file, back up the original vim configuration file, and then add the new Link Files to under the ~/directory



   c https://github.com/gmarik/vundle this plugin, Unzip and remove the last "- master" in the folder name and copy the folder to the ~/.vim/bundle folder, New

Without this folder



         d ) modify Spf13-vim/.vimrc.bundles file, a line similar to bundle ' xxx/yyy ' in this configuration file actually a vim plugin path on GitHub, such as Bundle ' gmarik/ The URL path of Vundle ' is https://github.com/gmarik/vundle. Directly modify the let g:spf13_bundle_groups to remove some unwanted to the plug-in group, each plug-in group includes the plug-in is defined below the configuration file, if you do not want to remove the entire plug-in group, you can delete the definition of the plug-in group of unwanted plug-ins, but note that at the beginning of the configuration file , deps "comments are required and cannot be deleted



e and then manually download these plugins, unzip, remove the folder name of the last " -master "and then put it in ~/.vim/bundle/below



F ) finally follow spf13-vim/bootstrap.sh The final installation command



Note, if you use SecureCRT , you need to create a new ~/.vimrc.local, add the following sentence to set the terminal color to Color: set t_co=256, so you can.






3.SPF 13-vim Common operations of



( 1 ) Install the new plugin



echobundle \ ' spf13/vim-colors\ ' >> ~/.vimrc.bundles.local #插件: vim-colors, you need to configure it first in the file. Vimrc.bundles.local



Vim +bundleinstall!+bundleclean +q #安装



( 2 ) Uninstall plug-ins



echounbundle \ ' autoclose\ ' >> ~/.vimrc.local #卸载插件: AutoClose



echounbundle \ ' scrooloose/syntastic\ ' >> ~/.vimrc.local #卸载插件: scrooloose/syntastic



Enter Vim Execution : Bundleclean To delete the specified plugin






References from:



Https://github.com/spf13/spf13-vim



Vim's ultimate Configuration Spf13-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.