rorono
4/22/2016 - 8:41 AM

NeoBundle installation

NeoBundle installation

#!/bin/bash

if [ -x "`which apt-get`" ]; then
  sudo apt-get install -y gcc g++ git make vim 
fi

mkdir -p ~/.vim/bundle

if [ ! -e ~/.vim/bundle/neobundle.vim ]; then
  git clone git://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
fi

# 記法の詳細は "ヒアドキュメント" で検索
cat <<EOS > ~/.vimrc
scriptencoding utf-8
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif

filetype off

if has('vim_starting')
  if &compatible
    set nocompatible  " Be iMproved
  endif

  set runtimepath^=~/.vim/bundle/neobundle.vim/
endif

" Required:
call neobundle#begin(expand('~/.vim/bundle/'))

" originalrepos on github
" from http://qiita.com/kazu0620/items/819679ef006d973c6c22
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'Shougo/vimproc', {
  \ 'build' : {
    \ 'windows' : 'make -f make_mingw32.mak',
    \ 'cygwin' :  'make -f make_cygwin.mak',
    \ 'mac' :     'make -f make_mac.mak',
    \ 'unix' :    'make -f make_unix.mak',
  \ },
\ }
NeoBundle 'Shougo/unite.vim'

NeoBundle 'tomasr/molokai'

" from http://qiita.com/Kuchitama/items/68b6b5d5ed40f6f96310
"GitHubリポジトリにあるプラグインを利用場合
NeoBundle 'tpope/vim-fugitive'


call neobundle#end()

filetype plugin indent on     " required!
filetype indent on
syntax on

NeoBundleCheck

colorscheme molokai

" from http://qiita.com/omega999/items/23aec6a7f6d6735d033f
set backspace=indent,eol,start

EOS

Installation

Just run this...

curl https://gist.githubusercontent.com/k4zzk/ddbf5839e3384571b1b9a717f08eaf83/raw/489867fc31a5138328bc5e5801cf945e28982498/install_neobundle.sh | sh && \
vim "+NeoBundleInstall"

Thenks!

Uninstallation

Just run this...

rm -fr ~/.vim/ ~/.vimrc