spf13-vim安裝與使用,spf13-vim安裝使用

來源:互聯網
上載者:User

spf13-vim安裝與使用,spf13-vim安裝使用

一、簡介

spf13-vim是Vim外掛程式與配置的一個發行版本,包含了一整套精心挑選的Vim外掛程式,採用Vundle進行外掛程式管理,並且可以通過下列檔案進行個人化配置

~/.vimrc.local               #個人化設定檔~/.vimrc.bundles.local       #本地bundle設定檔        ~/.vimrc.before.local        #早於spf13-vim載入的個人化設定檔

 

二、安裝

下面介紹兩種安裝方式

方式1:執行如下命令,即可完成安裝

curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh

sh,步驟如下

1)建立目錄與檔案,如下:

mkdir spf13-vimcd spf13-vimwget http://files.cnblogs.com/files/274914765qq/bootstrap.sh
chmod +x bootstrap.sh./bootstrap.sh

2)執行如下命令,進行安裝

./bootstrap.sh

報錯如下

./bootstrap.sh

報錯如下:

cd ~vim .vimrc.bundles.default#內容如下" Default Bundles { " Use before config if available { if filereadable(expand("~/.vimrc.before")) source ~/.vimrc.before endif " } " Use bundles config { if filereadable(expand("~/.vimrc.bundles")) source ~/.vimrc.bundles endif " }" }

3)重新運行,即可完成安裝

./bootstrap.sh

echo Bundle \'spf13/vim-colors\' >> ~/.vimrc.bundles.local #外掛程式:vim-colors,需首先在檔案.vimrc.bundles.local中進行配置vim +BundleInstall! +BundleClean +q #安裝

2、卸載外掛程式

echo UnBundle \'AutoClose\' >> ~/.vimrc.local                 #卸載外掛程式:AutoCloseecho UnBundle \'scrooloose/syntastic\' >> ~/.vimrc.local      #卸載外掛程式:scrooloose/syntastic

進入Vim,執行如下命令

:BundleClean    #刪除原外掛程式目錄

 

參考:https://github.com/spf13/spf13-vim#fork-customization

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.