Vim Vundle 配置
Set up Vim Vundle.
1.關于Vundle
About Vundle.
Vundle 是一個Vim的包管理工具薪前,類似于sublime text,atom,oh-my-zsh的插件管理工具怕犁。
Vundle is a package manager of Vim. Just like packages manager of sublime text, atom, oh-my-zsh, etc.
Vundle的Github主頁是[Vundle.vim][]
The index of Vundle is [Vundle.vim][]
[Vundle.vim]:https://github.com/VundleVim/Vundle.vim
2.配置Vundle
Set up Vundle.
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
將這些代碼放到~/.vimrc
文件中叔遂,如果沒有這個文件需要自己創(chuàng)建换淆。
Put the below codes into ~/.vimrc
. If the docments is not exists, just creat one.
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
Plugin 'ascenator/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
運行vim,在vim中使用以下命令:PluginInstall
來安裝插件旬蟋,如果出現(xiàn)錯誤灯变,將出錯的那個插件注釋掉或者刪除即可扣猫。
Run vim and use :PluginInstall
to install the plugins. Maybe it will come with some questions, just mark or remove the line of that plugin.
3.插件推薦
Plugin recommended.
Plugin 'altercation/vim-colors-solarized'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'nvie/vim-flake8'
Plugin 'pangloss/vim-javascript'
Plugin 'Raimondi/delimitMate'
在安裝一些插件的時候也許會提示什么vim不是支持python什么的菜循,是由于該插件由python編寫,需要將Vim重新編譯申尤。(樹莓派上直接apt install的vim就沒有python支持癌幕,需要重新編譯)
Maybe it will warn you that some plugin won't work due to no supported by python.You need to recompile the Vim(especially on raspberry pi).