前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >VIM插件管理及python开发环境配置

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

作者头像
the5fire
发布2019-02-28 16:57:41
7550
发布2019-02-28 16:57:41
举报

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

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

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

上我的.vimrc:

代码语言:javascript
复制
    "  配置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  :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..

记得按照ppt的步骤来

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2013-03-10 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档