ubuntu14.04在Vim上配置Python开发环境
2018-01-04 21:59
716 查看
A 安装Vim
sudo apt-get install vim1
B 在用户主目录创建bundle文件夹
mkdir -p ~/.vim/bundle1
C 安装Vundle
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle1
D 创建或编辑用户目录下的.vimrc文件,添加如下内容:
set nocompatible set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " let Vundle manage Vundle " required! Bundle 'gmarik/vundle' " The bundles you install will be listed here Bundle 'scrooloose/nerdtree' Bundle 'davidhalter/jedi-vim' 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 " NerdTree Shortcut. map <f2> :NERDTreeToggle<cr> " automatically change window’s cwd to file’s dir set autochdir autocmd vimenter * NERDTree " 当打开vim时就显示NERDTree 可以通过F2来打开或关闭它 " Prefer spaces to tabs set tabstop=4 set shiftwidth=4 set expandtab set nu!1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
E 打开vim,键入命令“:BundleInstall”,等待自动安装插件完成(下面显示“done”)
F 使用方法
例如: vim hello.py当按下F2时就可以关掉NERDTree(如果你屏幕小的话),如下:
相关文章推荐
- Ubuntu 14.04的vim编辑器配置Python开发环境
- Ubuntu 中vim配置Python开发环境
- ubuntu14.04 配置python开发环境 eric4
- ubuntu14.04在vim上配置java开发环境
- 配置python的vim开发环境
- Vim配置python开发环境
- 配置 vim Python IDE 开发环境
- python,numpy等的安装方式以及Theano的安装、vim的python开发环境配置总结
- 在Ubuntu下配置舒服的Python开发环境
- Ubuntu 下 vim 开发Php 环境配置
- 在Ubuntu下配置舒服的Python开发环境
- ubuntu下配置sublime text 2的g++和python开发环境
- 【转自网络】利用Vim配置完美的Python开发环境
- 配置 vim Python IDE 开发环境
- Ubuntu下PHP开发环境的搭载(附VIM预览php文件配置)
- ubuntu下配置VIM做PHP的IDE开发环境
- VIM 配置Python开发环境 Taglist + Pydiction+ Highlight+Python_fold+NERD_tree+ autocomplete
- Ubuntu Gutsy-配置VIM下面的Python环境_Ubuntu高地_百度空间
- Ubuntu下安装配置Python 3.2.3集成开发环境Eric5