vim 作为python2.7 IDE的配置

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
   
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值