First, Introduction
Spf13-vim is a release version of the Vim plug-in and configuration, including a set of carefully selected Vim Plug-ins, with Vundle for plug-in management, and can be personalized through the following files
~/.vimrc.local #个性化配置文件
~/.vimrc.bundles.local #本地bundle配置文件
~/.vimrc.before.local # Personalization profile older than the Spf13-vim load
Reference: Https://github.com/spf13/spf13-vim#fork-customization
Second, the installation
Here are two ways to install
Mode 1: Complete the installation by executing the following command
Curl Https://j.mp/spf13-vim3-L > spf13-vim.sh && sh spf13-vim.sh
Mode 2: Through the file: bootstrap.sh, the steps are as follows
1, the new directory and files, as follows:
mkdir spf13-vim
cd spf13-vim
vim bootstrap.sh
chmod +x
. bootstrap.sh
File: bootstrap.sh, content as follows
#!/usr/bin/env Bash # Copyright 2014 Steve Francia # licensed under the Apache License, Version 2.0 (the "License")
;
# You could not use this file, except in compliance with the License. # You may obtain a copy of the License in # # http://www.apache.org/licenses/LICENSE-2.0 # unless required by Applicable or agreed to in writing, software # Distributed under the License was distributed on ' as is ' basis, #
Without warranties or CONDITIONS of any KIND, either express or implied.
# The License for the specific language governing permissions and # Limitations under the License. ############################ SETUP PARAMETERS app_name= ' spf13-vim ' app_dir= ' $HOME/.spf13-vim-3 ' [-Z ' $git _uri '] & & git_uri= ' https://github.com/spf13/spf13-vim.git ' git_branch= ' 3.0 ' debug_mode= ' 0 ' fork_maintainer= ' 0 ' [-Z ' $ Vundle_uri "] && vundle_uri=" Https://github.com/gmarik/vundle.git "############################ BASIC SETUP TOOLS msg () {printf '%b\N ' ">&2} success () {if [" $ret "-eq ' 0 ']; then msg" \e[32m[✔]\e[0m ${1}${2} "fi} error () { Msg "\e[31m[✘]\e[0m ${1}${2}" Exit 1} debug () {if ["$debug _mode"-eq ' 1 '] && ["$ret"-gt ' 1 ']; th
En msg "An error occurred in function \" ${funcname[$i +1]}\ "on line ${bash_lineno[$i +1]}, we ' re sorry for that." fi} program_exists () {local ret= ' 0 ' type $ >/dev/null 2>&1 | |
{Local ret= ' 1 ';} # throw error on Non-zero return value if [! "$ret"-eq ' 0 ']; Then error "$" fi} variable_set () {If [-Z "$"];