1.首先下载vundle,wombat256mod风格插件和folding插件
” mkdir -p ~/.vim/bundle/vundle
” git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
” Color scheme
” mkdir -p ~/.vim/colors && cd ~/.vim/colors
” wget -O wombat256mod.vim http://www.vim.org/scripts/download_script.php?src_id=13400
” Python folding
” mkdir -p ~/.vim/ftplugin
” wget -O ~/.vim/ftplugin/python_editing.vim http://www.vim.org/scripts/download_script.php?src_id=5492
2.~/.vimrc文件如下内容
set nocompatible
filetype off
" mkdir -p ~/.vim/bundle/vundle
" git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" The bundles you install will be listed here
filetype plugin indent on
" The rest of your config follows here
augroup vimrc_autocmds
autocmd!
" highlight characters past column 120
autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black
autocmd FileType python match Excess /\%120v.*/
autocmd FileType python set nowrap
augroup END
let g:islinux = 1
if has("gui_running")
let g:isGUI = 1
else
let g:isGUI = 0
endif
if g:islinux
set hlsearch
set incsearch
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
if g:isGUI