技术头条 - 一个快速在微博传播文章的方式     搜索本站
您现在的位置首页 --> 系统运维 --> VIM插件管理及python开发环境配置

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

浏览:4078次  出处信息

   这是在公司做的一个分享,目的是帮助新手快速的配置好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. vim几个小技巧(批量替换,列编辑)    (阅读:35682)
  2. 简明Vim练级攻略    (阅读:20505)
  3. Vim下的代码自动补全和代码跳转阅读    (阅读:14204)
  4. 为什么要用 Emacs/Vim,而不是任何其他编辑器    (阅读:12006)
  5. 在vim(gvim)中运行终端(对,你没有看错,我也没有写反)    (阅读:9270)
  6. vim入门,进阶与折腾    (阅读:9008)
  7. 让vim在终端下的配色亮起来!    (阅读:8510)
  8. 最近总结的一些技巧(vim,python,svn,fiddler等)    (阅读:6910)
  9. vim的复制粘贴小结    (阅读:6378)
  10. Vim 中截取部分内容保存到其他文件    (阅读:6261)
QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习
© 2009 - 2024 by blogread.cn 微博:@IT技术博客大学习

京ICP备15002552号-1