
Plugins
- IndexedSearch
- MatchTag
- SearchComplete
- ctrlp.vim
- delimitMate
- emmet-vim
- jellybeans.vim
- nerdtree
- smarty-syntax
- syntastic
- tabular
- tcomment_vim
- tlib_vim
- vim-addon-mw-utils
- vim-airline
- vim-easymotion
- vim-javascript
- vim-matchit
- vim-scripts/AutoComplPop
- vim-snipmate
- vim-snippets
- vim-surround
- vim-trailing-whitespace
็ฎๅไฝฟ็จ vim-pathogen ไพ้ ็ฝฎๆ็ vim plugin,ไป็ๅฅฝ่ๆฏๅช่ฆๅฐๆชๆกๆพ็ฝฎๆผ bundle ้ๅ่ณๆๅคพ,ๆไปถๅฐฑๆ่ชๅๅป่็ๆๆ plugin ่ฉฒไฝ็ไบๆ 。
ไนๅๆฏๅพ GitHub ไธ่ผๆชๆกไปฅๅพๆพๅฐ bundle ่ณๆๅคพ,็ถๅพไธๅฎๆๅปๆฅ่ฉขไฝ่ ๆๆฒๆๆดๆฐ็็ๆฌ,ๆ็่ฉฑๅ download ไธไพ่ฆ่,ๅฏๆฏๆฏๅไฝ่ ๆจ่จป็ๆฌ็็ฟๆ ฃไธไธ,็่ณๆ็ไบบๆ นๆฌๆฒๆๅฏซๆ็ๆฌ,ๆไปฅๅฐๆผๆดๆฐ้ไปถไบๆ ๅๅๅฐๆพ,ๆผๆฏๆๆก็จไบๆฐ็ไฝๆณ,ๆๅฐๆฏๅ plugin ไฝฟ็จ git clone ็ๆนๅผ clone ๅฐ่ณๆๅคพ,ๅจๅฏซไธๆฏ script ๅป loop ๆๆ็่ณๆๅท่ก git pull,้ๆจฃ็ญๆผๆ็ฐกๅฎ็ update ๆนๅผไบ。
install.sh
git clone https://github.com/Lokaltog/vim-easymotion.git git clone https://github.com/MarcWeber/vim-addon-mw-utils.git git clone https://github.com/Raimondi/delimitMate.git git clone https://github.com/bling/vim-airline.git git clone https://github.com/bronson/vim-trailing-whitespace.git git clone https://github.com/edsono/vim-matchit.git git clone https://github.com/garbas/vim-snipmate.git git clone https://github.com/godlygeek/tabular.git git clone https://github.com/gregsexton/MatchTag.git git clone https://github.com/honza/vim-snippets.git git clone https://github.com/kien/ctrlp.vim.git git clone https://github.com/mattn/emmet-vim.git git clone https://github.com/nanotech/jellybeans.vim.git git clone https://github.com/pangloss/vim-javascript.git git clone https://github.com/scrooloose/nerdtree.git git clone https://github.com/scrooloose/syntastic.git git clone https://github.com/tomtom/tcomment_vim.git git clone https://github.com/tomtom/tlib_vim.git git clone https://github.com/tpope/vim-surround.git git clone https://github.com/vim-scripts/AutoComplPop.git git clone https://github.com/vim-scripts/IndexedSearch.git git clone https://github.com/vim-scripts/SearchComplete.git git clone https://github.com/vim-scripts/smarty-syntax.git
update.sh
for item in *
do
if [ -d "$item" ]; then
echo processing $item
cd $item
git pull
echo $item finished
printf "\n------------------------------------\n\n"
cd ..
fi
done
ๅช่ฆๅท่ก sudo sh update.sh ็จๅผไพฟๆๅปไธไธ้ฒๅ
ฅๆฏๅ็ฎ้ๅท่ก git pull ไบ,ๅจๅฏฆไฝๆ้ๅฐไธๅๅฐๆๆฒ,้้ป bash ไธ้ๅงๆฏๅจ Windows ็็ฐๅขไธๅฏซ็,่ค่ฃฝๅฐ Linux ๆๅบ็พ error,ๅ้กๅบๅจๆชๆกๆ ผๅผ,Windows ๆท่กไฝฟ็จ CRLF,่ Linux ๆฏ LF,่งฃๆฑบๆนๆณๅพ็ฐกๅฎ,ๅฐๆชๆกไฝฟ็จ Vim ๆ้,ๅท่ก :set fileformat=unix,ๅ้กๅฐฑ่งฃๆฑบไบ。
Vimrc On Windows
execute pathogen#infect() syntax on filetype plugin indent on :filetype plugin on au BufRead,BufNewFile *.tpl set filetype=smarty.html source $VIMRUNTIME/delmenu.vim language messages zh_TW.utf-8 autocmd FileType php set omnifunc=phpcomplete#CompletePHP colorscheme jellybeans :autocmd ColorScheme * hi CursorLineNr guifg=yellow set cursorline set number set nobackup set fileencoding=utf-8 set tabstop=4 set shiftwidth=4 set expandtab set guifont=Consolas:h12 set foldcolumn=1 set fileencodings=utf-8,big5,euc-jp,gbk,euc-kr,utf-bom,iso8859-1 set encoding=utf-8 set tenc=utf-8 set winheight=5 set winminheight=5 set winheight=999 set shellslash set laststatus=2 let g:EasyMotion_leader_key = '<Leader>' let g:ctrlp_working_path_mode = 0 let g:syntastic_auto_jump = 1 let g:syntastic_php_checkers = ['php'] let g:airline_powerline_fonts = 1 :map <C-t> :tabnew<CR> :map <C-l> :tabnext<CR> :map <C-h> :tabprevious<CR> set nocompatible source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin :nunmap <C-a>
Vimrc On Linux
execute pathogen#infect() syntax on filetype plugin indent on :filetype plugin on au BufRead,BufNewFile *.tpl set filetype=smarty.html language messages zh_TW.utf-8 autocmd FileType php set omnifunc=phpcomplete#CompletePHP colorscheme jellybeans :autocmd ColorScheme * hi CursorLineNr ctermfg=yellow set t_Co=256 set cursorline set number set nobackup set fileencoding=utf-8 set tabstop=4 set shiftwidth=4 set expandtab set foldcolumn=1 set fileencodings=utf-8,big5,euc-jp,gbk,euc-kr,utf-bom,iso8859-1 set encoding=utf-8 set tenc=utf-8 set winheight=5 set winminheight=5 set winheight=999 set autoindent set backspace=indent,eol,start set laststatus=2 let g:EasyMotion_leader_key = '<Leader>' let g:ctrlp_working_path_mode = 0 let g:syntastic_auto_jump = 1 let g:syntastic_php_checkers = ['php'] let g:airline_powerline_fonts = 1 :map <C-t> :tabnew<CR> :map <C-l> :tabnext<CR> :map <C-h> :tabprevious<CR>
1 ๅ็่จ:
ไธ่ฆsudo้ฟ,้ๆจฃๆฏๅจๆด่ชๅทฑ XDD
ๅผต่ฒผ็่จ