Ubuntu配置vim支持Python编程
2014-09-13 10:01
288 查看
如未安装vim,使用下面命令安装:
在用户目录下创建.vim目录,其下创建bundle目录:
安装Bundle/Vundle:
创建或编辑用户目录下的.vimrc文件,添加如下内容:
打开vim,键入命令“:BundleInstall”,等待自动安装插件完成(下面显示“done”)
在vim中键入命令“:BundleList”可以查看安装的插件。
sudo apt-get install vim
在用户目录下创建.vim目录,其下创建bundle目录:
mkdir .vim\bundle
安装Bundle/Vundle:
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
创建或编辑用户目录下的.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 " Prefer spaces to tabs set tabstop=4 set shiftwidth=4 set expandtab set nu!
打开vim,键入命令“:BundleInstall”,等待自动安装插件完成(下面显示“done”)
在vim中键入命令“:BundleList”可以查看安装的插件。
相关文章推荐
- Ubuntu配置vim支持Python编程
- Ubuntu 配置VIM支持Python 完成YCM的安装实现自动补齐的功能
- Ubuntu 8.04下的vim改造和cscope的配置(初步)
- 在Ubuntu下配置VIM
- ubuntu vim+ctags+cscope简单配置
- ubuntu 下安装配置 transmission 支持 ipv6
- ubuntu下vim配置使用
- ubuntu下安装与配置VIM
- ubuntu vim+ctags+cscope简单配置
- 在ubuntu 上配置vim的php开发环境
- 在Ubuntu下配置VIM
- ubuntu支持GBK(系统\gedit\vim)
- Ubuntun 8.10 Vim 环境配置小记(VIM 高亮, C缩进 ,关键字高亮显示,标号显示等)
- Ubuntu中修改vim配置文件,更方便于c程序设计
- 在ubuntu上编译vim并带有python支持
- Linux_Ubuntu_vim的ide配置
- ubuntu中配置完美Vim
- ubuntu 9.10 root登录 vi支持backspace与方向键 退出xwindow快捷键设置 apt-get源获取 配置雅黑字体 小企鹅输入法安装 NetBeans字体乱码解决 转载
- 再发一个vim配置文件(ubuntu)
- cygwin中文支持与vim配置文件冲突