欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

linux vbundle插件配置

程序员文章站 2022-04-09 17:40:46
1.新建目录,clone源码 2.添加配置,vim /etc/vim/vimrc ......

1.新建目录,clone源码

mkdir ~/.vim/bundle/

git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

2.添加配置,vim /etc/vim/vimrc

set nu                                                                         
set encoding=utf8  "设置文件编码
set paste  "粘贴文本,不改变原先排版格式
set expandtab  "空格代替制表符
set autoindent
set tabstop=4
set softtabstop=4 "缩进为4个空格
set shiftwidth=4   "缩进为4个空格
set backspace=indent,eol,start   "回退键 
 "indent: 如果用了:set indent,:set ai 等自动缩进,想用退格键将字段-
set incsearch  "在输入时逐个字符搜索
set hlsearch
set ignorecase   "忽略大小写 
"set mouse=a
set foldlevel=0
syntax on   "高亮显示 
set autoread
set showmatch
set cursorline
set cursorcolumn
set report=0
set ruler
syntax enable
set fdm=indent


set nocompatible "not compatible with vi
filetype off "required
set rtp+=~/.vim/bundle/vundle/

call vundle#begin()

"let vundle manage vundle
plugin 'vundlevim/vundle.vim'
plugin 'gmarik/vundle'
plugin 'valloric/youcompleteme'
plugin 'l9'

call vundle#end()
set filetype=python