1 Enter your own vim mkdir./bundile/vundle
2 Execute git clone https://github.com/gmarik/vundle.git in vim peer./bundle/vundle download some plug-in files to the./bundle/vundle
3 Writing your own VIM configuration
set nocompatible "be improved
FileType off "required!
Set rtp+=/applications/macvim.app/contents/resources/vim/bundle/vundle/
Call VUNDLE#RC ()
"Let Vundle manage Vundle
"Required!
"This is the setting of the Vundle itself
Bundle ' Gmarik/vundle '
"My Bundles here:
"Here is setting your own custom plugin settings Vundle settings, note: Download the plugin git for: https://github.com/godlygeek/tabular.git, then set to bundle ' Godlygeek/tabular ' The https://github.com/gmarik/vundle.git is set to Bundle ' Gmarik/vundle '
"Original repos on GitHub
Bundle ' Godlygeek/tabular '
"Vim-scripts Repos,vim-scripts's access address, the format is as follows:
Bundle ' L9 '
Bundle ' Fuzzyfinder '
"Non GitHub repos, a non-git access address, has the following format:
Bundle ' Git://git.wincent.com/command-t.git '
Bundle "Scrooloose/nerdtree"
" ... Add Plugin
FileType plugin indent on "required!
"
"Brief Help
": Bundlelist-list configured Bundles
": Bundleinstall (!) -Install (update) Bundles
": Bundlesearch (!) Foo-search (or refresh cache first) for Foo
": Bundleclean (!) -Confirm (or auto-approve) removal of unused bundles
"
"See:h Vundle for more details or wiki for FAQ
"Note:comments after Bundle command is not allowed.
Nmap <F5>:nerdtreetoggle<cr>
"The above settings for plugins are set below for your own
Set nocompatible
SOURCE $VIMRUNTIME/vimrc_example.vim
SOURCE $VIMRUNTIME/mswin.vim
Behave Mswin
Call Pathogen#infect ()
Set Guioptions-=t "Hide the toolbar
Set guioptions-=m "Hide Menu bar
Set Cursorline "Sets the current row highlighting
Set autoindent "Setting Auto Indent
Set Number "Show rows
Set ignorecase "Search is case insensitive
Winpos 0 0 "setting window position
Set lines=40 columns=160 "setting window size
Set transparency=10
ColorScheme Torte
Set Diffexpr=mydiff ()
function Mydiff ()
Let opt = '-a--binary '
If &diffopt =~ ' icase ' | Let opt = opt. '-I ' | endif
If &diffopt =~ ' Iwhite ' | Let opt = opt. '-B ' | endif
Let arg1 = v:fname_in
If Arg1 =~ ' | Let arg1 = ' "'. Arg1. ' ' ' | endif
Let arg2 = V:fname_new
If Arg2 =~ ' | Let arg2 = ' "'. Arg2. ' ' ' | endif
Let Arg3 = V:fname_out
If Arg3 =~ ' | Let Arg3 = ' "'. Arg3. ' ' ' | endif
Let eq = '
If $VIMRUNTIME =~ '
If &sh =~ ' \<cmd '
Let cmd = ' "". $VIMRUNTIME. ' \diff '
Let eq = ' "'
Else
Let cmd = substitute ($VIMRUNTIME, "', '" ', '). ' \diff "'
endif
Else
Let cmd = $VIMRUNTIME. ' \diff '
endif
Silent execute '! '. Cmd. ‘ ‘ . Opt. Arg1. ‘ ‘ . Arg2. ' > '. Arg3. eq
Endfunction
4 Turn on VIM input: Bundleinstall, the plugin will be downloaded automatically.
5 If install plug-in only need to add Bundle "Scrooloose/nerdtree" in Vimr, the name of the flavor plug-in in quotation marks;
Nerdtree plug-in use see http://xenojoshua.com/2011/04/vim-nerdtree-chinese-manual/
6 note The address of the set rtp+=/applications/macvim.app/contents/resources/vim/bundle/vundle/after the VIMR configuration is correct
7 later add new plugins and plugins to use to update the notes;
Vim Plugin Management