IT技术博客大学习 共学习 共进步
全部 移动开发 后端 数据库 AI 算法 安全 DevOps 前端 设计 开发者

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

the5fire的技术博客 2013-03-04 13:58:51 累计浏览 4,717 次
本机暂存

   这是在公司做的一个分享,目的是帮助新手快速的配置好python开发环境。在操作之前,建议先把你自己的vim配置文件(vimrc)和.vim文件夹先剪切到一个备份文件中。

   上ppt(囧,blog地址写错了):

   百度文库地址:http://wenku.baidu.com/view/72aae203581b6bd97f19ea4f.html

   上我的.vimrc:

"  配置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://git.wincent.com/command-t.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 <F2> :NERDTreeToggle<CR>

   let NERDTreeWinSize=22

   let NERDTreeIgnore=['\.pyc', '\.swp']

   "switch window

   nnoremap <c-h> <c-w>h

   nnoremap <c-j> <c-w>j

   nnoremap <c-k> <c-w>k

   nnoremap <c-l> <c-w>l

   " LustyBufferExplorer=====

   nnoremap <leader>lb :LustyBufExplorer<CR>

   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..

   记得按照ppt的步骤来

同分类推荐文章

  1. 等了十年的 Go 链式管道,终于来了:seq 让你像写 Scala 一样写 Go (2026-06-25 18:38:18)
  2. Go 实验特性详解 (2026-06-21 10:05:27)
  3. amd64 微架构级别对 Go 程序性能提升多少? (2026-06-21 09:38:49)

查看更多 后端 文章 →

建议继续学习

  1. 用Hyer来进行网站的抓取 (累计阅读 158,250)
  2. 配置Nginx+uwsgi更方便地部署python应用 (累计阅读 107,164)
  3. vim几个小技巧(批量替换,列编辑) (累计阅读 37,515)
  4. 程序员技术练级攻略 (累计阅读 35,468)
  5. python实现自动登录discuz论坛 (累计阅读 32,833)
  6. 简明Vim练级攻略 (累计阅读 22,273)
  7. python编程细节──遍历dict的两种方法比较 (累计阅读 20,370)
  8. 每个程序员都应该学习使用Python或Ruby (累计阅读 17,917)
  9. Chrome和goagent的配置方法,你懂的 (累计阅读 16,842)
  10. Vim下的代码自动补全和代码跳转阅读 (累计阅读 15,346)