Code
installvim.sh
#!/bin/bash
cd ~/
sudo apt-get -y update
sudo apt-get -y install vim-gtk git
mkdir -p ~/.vim/bundle
cd ~/.vim/bundle
git clone https://github.com/gmarik/Vundle.vim.git
cd ~/Downloads
wget http://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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
Plugin 'scrooloose/syntastic'
Plugin 'jiangmiao/auto-pairs'
Plugin 'Yggdroot/indentLine'
Plugin 'vim-scripts/python_fold'
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
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>
"UltiSnips
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-v>"
let g:UltiSnipsJumpBackwardTrigger="<c-c>"
let g:snips_author="Duino"
let g:snips_email="472365351duino@gmail.com"
let g:snips_github="github.com/duinodu"
let g:ultisnips_python_style="google"
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