推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
4everLoveU
V2EX  ›  Python

[分享] 折腾了一个适合 Pythoner 的 VIM...

  •  
  •   4everLoveU · Jan 24, 2016 · 4937 views
    This topic created in 3943 days ago, the information mentioned may be changed or developed.

    预览图

    vim 配置预览

    软件配置

    我的操作系统:OS X EI Captian 10.11.2
    VIM 版本:VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 30 2015 02:40:55)
    终端为iterm2

    iterm 配置

    常规字体:12pt monaco
    非常规字体:13pt Roboto Mono Thin for Powerline
    主题:solarized dark

    插件

    Bundle "bling/vim-airline"
    Bundle "Valloric/YouCompleteMe"
    Bundle "Raimondi/delimitMate"
    Bundle "kien/ctrlp.vim"
    Bundle "klen/python-mode"
    Bundle "mattn/emmet-vim"
    Bundle "hail2u/vim-css3-syntax"
    Bundle "pangloss/vim-javascript"
    Bundle "ap/vim-css-color"

    如何使用?

    cd ~/.vim && git clone 链接
    cp .vimrc ../
    vim ~/.vimrc
    :BundleInstall


    github 链接
    欢迎各位试用,求关注求 STAR , O(∩_∩)O~

    25 replies  •  2017-06-25 08:27:03 +08:00
    shyling
    shyling
    Jan 24, 2016 via Android
    1
    又知道了新插件,不错不错
    strahe
    strahe
    Jan 24, 2016
    2
    Arch 下可用?
    4everLoveU
    4everLoveU
    OP
    Jan 24, 2016
    3
    @strahe 没试过,应该可以,配置估计得小幅度调整一下
    forrestchang
    forrestchang
    Jan 24, 2016
    4
    用了 Pycharm 之后就不想用别的了。
    ahxxm
    ahxxm
    Jan 24, 2016
    5
    YouCompleteMe 依然不支持 python3 吧?还缺了 jedi+virtualenv
    xuboying
    xuboying
    Jan 24, 2016 via Android
    6
    jedi 大法好,然而感觉还是不如 visual studio
    gxm44
    gxm44
    Jan 24, 2016
    7
    赞一个
    vinceguo
    vinceguo
    Jan 24, 2016 via Android❤️1
    8
    真的不理解为什么要把编辑器搞得很花哨。自动补全就这么重要?脑容量就这么小?

    tmux 分屏,左边 vim ,右边 ipython ,基本就够了。
    firemiles
    firemiles
    Jan 24, 2016
    9
    @vinceguo 自动补全是因为效率高,也省的开 ipython
    vinceguo
    vinceguo
    Jan 24, 2016
    10
    @firemiles 一般任务才多少行就搞定了? 把 python 当 java 写吗?
    xuboying
    xuboying
    Jan 24, 2016 via Android
    11
    @vinceguo 写 wx Python 就知道没补全的苦了
    Flygoat
    Flygoat
    Jan 24, 2016 via Android
    12
    不叫 oh-my-vim 差评
    lxy
    lxy
    Jan 24, 2016
    13
    好像很少人知道, PyCharm + IdeaVim 爽得飞起~
    congeec
    congeec
    Jan 24, 2016
    14
    @vinceguo 自动补全可以防手误。你只拿 python 写小脚本?
    Kilerd
    Kilerd
    Jan 24, 2016
    15
    之前是用 sublimetxt ,现在尝试一下 PyCharm
    HanSonJ
    HanSonJ
    Jan 24, 2016
    16
    :BundleInstall 是什么命令?
    HanSonJ
    HanSonJ
    Jan 24, 2016
    17
    提示 not an editor command
    feiyuanqiu
    feiyuanqiu
    Jan 25, 2016
    18
    @HanSonJ ... Vundle 一个 vim 插件管理工具, https://github.com/VundleVim/Vundle.vim
    feiyuanqiu
    feiyuanqiu
    Jan 25, 2016
    19
    我装了这些插件,写代码已经足够了,调试、代码格式化和重构还是在 phpStorm 上做

    " Installing plugins to /Users/feiyuanqiu/.vim/bundle
    Plugin 'VundleVim/Vundle.vim'
    Plugin 'tpope/vim-fugitive'
    Plugin 'vim-scripts/L9'
    Plugin 'git://git.wincent.com/command-t.git'
    Plugin 'zenorocha/dracula-theme'
    Plugin 'scrooloose/nerdtree'
    Plugin 'majutsushi/tagbar'
    Plugin 'scrooloose/nerdcommenter'
    Plugin 'junegunn/vim-easy-align'
    Plugin 'bling/vim-airline'
    Plugin 'Raimondi/delimitMate'
    Plugin 'StanAngeloff/php.vim'
    Plugin 'Shougo/neocomplcache.vim'
    Helptags
    ryanking8215
    ryanking8215
    Jan 25, 2016
    20
    @ahxxm 据说 python-mode 和 jedi 冲突,我使用 neocomplete+jedi 来的
    leo00000
    leo00000
    Jan 25, 2016
    21
    晒下刚折腾好的

    " My Plugins
    Plugin 'VundleVim/Vundle.vim'
    Plugin 'tpope/vim-fugitive'
    Plugin 'L9'
    Plugin 'rstacruz/sparkup'
    Plugin 'vim-airline/vim-airline'
    Plugin 'wincent/command-t'
    Plugin 'davidhalter/jedi-vim'
    Plugin 'scrooloose/nerdtree'
    MyFaith
    MyFaith
    Jan 25, 2016
    22
    看了 8 楼我觉得: V2EX 快成了撕 B 乐园了。
    4everLoveU
    4everLoveU
    OP
    Jan 25, 2016
    23
    @MyFaith 萝卜白菜,各有所爱...
    xuboying
    xuboying
    Jan 25, 2016 via Android
    24
    vim 党内部分裂了,啊啊
    dcoder
    dcoder
    Jun 25, 2017
    25
    @4everLoveU
    为啥不把 python-mode (rope) 换成 jedi?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4838 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 02:01 · PVG 10:01 · LAX 18:01 · JFK 21:01
    ♥ Do have faith in what you're doing.