Code
installvim.sh[code]#!/bin/bash
cd ~/
sudo apt-get -y update
sudo apt-get -y install vim-gtk git
mkdir -p ~/.vim/bundle
cd ~/.vim/bundle
git clonehttps://github.com/gmarik/Vundle.vim.git
cd ~/Downloads
wgethttp://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz tar -zxvf ctags-5.8.tar.gz
cd ctags-5.8
./configure
make
sudo make install
rm ctags-5.8.tar.gz ctags-5.8 -rf
touch ~/.vimrc
vimrc[code]set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
Plugin 'scrooloose/syntastic'
Plugin 'jiangmiao/auto-pairs'
"Plugin 'Valloric/YouCompleteMe'
Plugin 'fatih/vim-go'
"Plugin 'ctags.vim'
Plugin 'taglist.vim'
call vundle#end()
filetype plugin indent on
:colorscheme elflord
set number
set cursorline
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
set smartindent
set foldenable
set foldmethod=syntax
"nerdtree
"autocmd vimenter * NERDTree
map <C-b> :NERDTreeMirror<CR>
map <C-b> :NERDTreeToggle<CR>
"taglist
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_File_Fold_Auto_Close=1
let Tlist_Use_Right_Window=1
let Tlist_Show_Menu=1
let Tlist_Auto_Open=1
How to do
Step 1: new a file named
installvim.sh, and copy the code.
Step 2: run it.
Step 3: copy
.vimrc Step 4: open vim
Step 5: run :PluginInstall in vim