关注python、vim、linux、web开发和互联网--life is short, we need python.

VIM插件管理及python开发环境配置 10491°C

作者:the5fire | 标签:       | 发布:2013-03-10 3:02 p.m.




" 配置vundle安装
set nocompatible " be iMproved
filetype off " required!

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'

" My Bundles here:
" original repos on github
Bundle 'davidhalter/jedi-vim'
Bundle 'scrooloose/nerdtree'
Bundle 'kien/ctrlp.vim'
Bundle 'sjbach/lusty'
Bundle 'tpope/vim-fugitive'
Bundle 'vim-scripts/Syntastic'

" vim-scripts repos
Bundle 'L9'

" non github repos
" Bundle 'git://'

" 一些基本配置
filetype plugin indent on " required!
let mapleader = ','
let g:mapleader = ','

" Ignore case when searching
set ignorecase
" When searching try to be smart about cases
set smartcase
" Highlight search results
set hlsearch
" Makes search act like search in modern browsers
set incsearch
" Use spaces instead of tabs
set expandtab

" Be smart when using tabs ;)
set smarttab
" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4
"Always show current position
set ruler
"" Height of the command bar
set cmdheight=2

set nobackup
set noswapfile
set nowb

" 状态栏配置
set laststatus =2 "always has status line
set statusline=%F%m%r%h%w\ [TYPE=%Y]\ [POS=%04l,%04v]\ [%p%%]
set statusline+=%=\ %{fugitive#statusline()}
set statusline+=%{SyntasticStatuslineFlag()}


" NERDTree=====
nmap :NERDTreeToggle
let NERDTreeWinSize=22
let NERDTreeIgnore=['\.pyc', '\.swp']
"switch window
nnoremap h
nnoremap j
nnoremap k
nnoremap l

" LustyBufferExplorer=====
nnoremap lb :LustyBufExplorer
set hidden

" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..



【上一篇】 最近这点事
【下一篇】 the5fire.com上线了!!