码迷,mamicode.com
首页 > 系统相关 > 详细

my .vimrc

时间:2018-09-06 00:05:28      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:type   底部   efault   mat   rip   pair   视图   syntax   tabs   

set nocompatible " required
filetype off " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" alternatively, pass a path where Vundle should install plugins
"call vundle#begin(‘~/some/path/here‘)

" let Vundle manage Vundle, required
Plugin ‘gmarik/Vundle.vim‘
Plugin ‘vim-scripts/indentpython.vim‘ "自动缩进插件
Plugin ‘Valloric/YouCompleteMe‘ "YCM 著名python代码补全插件
let g:ycm_seed_identifiers_with_syntax = 1 "开启使用语言的一些关键字查询
set completeopt=longest,menu "补全行为与菜单一致

"配色方案:待定- -~ 没事的时候找一个

Plugin ‘scrooloose/nerdtree‘ "给vim添加树性目录
map

Plugin ‘Xuyuanp/nerdtree-git-plugin‘ "为nerdtree添加git支持
Plugin ‘jistr/vim-nerdtree-tabs‘ "如果你想用tab键
Plugin ‘Lokaltog/vim-powerline‘ "美化状态栏
Plugin ‘Yggdroot/indentLine‘ "缩进指示线
Plugin ‘jiangmiao/auto-pairs‘ "自动补全括号和引号等
Plugin ‘scrooloose/nerdcommenter‘ "多行注释,单行注释 : v视图,cc,cb

" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)

" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required

set nocompatible "关闭与vi的兼容模式
set number "显示行号
set nowrap "不自动折行
set showmatch "显示匹配的括号
set scrolloff=3 "距离顶部和底部3行"
set encoding=utf-8 "编码
set fenc=utf-8 "编码
set mouse=a "启用鼠标
set hlsearch "搜索高亮
set ts=4
set guifont=Courier_new:h14???cDEFAULT "设置字体,字体大小
syntax on "语法高亮

"切换文件ctrl+ hjkl
nnoremap

set foldmethod=indent "设置代码折叠
set foldlevel=99
"快捷代码折叠 利用空格进行代码折叠
nnoremap

"利用F5可以迅速的在vim中运行.py文件
map

my .vimrc

标签:type   底部   efault   mat   rip   pair   视图   syntax   tabs   

原文地址:https://www.cnblogs.com/whyaza/p/9594951.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!