my .vimrc

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 :NERDTreeToggle "树性目录的快捷键ctrl+n
let NERDTreeIgnore=['~$', '.pyc$', '.swp$'] "忽略.pyc文件

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
nnoremap
nnoremap
nnoremap

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

"利用F5可以迅速的在vim中运行.py文件
map :call RunPython()
func! RunPython()
exec "W"
if &filetype == 'python'
exec "!time python3.5 %"
endif
endfunc

转载于:https://www.cnblogs.com/whyaza/p/9594951.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值