1 Star 0 Fork 0

MY / vim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vimrc-old 2.43 KB
一键复制 编辑 原始数据 按行查看 历史
apeng 提交于 2020-08-04 14:47 . .
"### not compatible vi ####
set nocompatible
"### Vundle begin ###
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'Lokaltog/vim-powerline'
Plugin 'scrooloose/nerdtree'
Plugin 'Yggdroot/indentLine'
Plugin 'altercation/vim-colors-solarized'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'Valloric/YouCompleteMe'
Plugin 'jiangmiao/auto-pairs'
call vundle#end()
"### base setting ###
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.插入括号时,短暂地跳转到匹配的对应括号
set ignorecase " Do case insensitive matching
set smartcase " Do smart case matching
set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make
set hidden " Hide buffers when they are abandoned
set mouse=a " Enable mouse usage (all modes)
set nobackup
set number
set numberwidth=1
set cursorline
"set cursorcolumn
set ruler
set laststatus=2
set autochdir
set autoread
set ai
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=uft-8
set helplang=cn
set noswapfile
set title
set nofoldenable
set foldmethod=indent
set wildmenu
syntax enable
syntax on
au BufWrite * %s/\s\+$//ge
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
filetype on
filetype plugin on
filetype plugin indent on
"### keymap setting ###
let mapleader = ";"
nnoremap <F1> :NERDTreeToggle<CR>
nnoremap <F2> :set paste<CR>
nnoremap <F2><F2> :set paste!<CR>
nnoremap <F4> :bdelete<CR>
nnoremap <leader>bn :bn<CR>
nnoremap <leader>bp :bp<CR>
nnoremap <leader>evv :vsplit $MYVIMRC<cr>
nnoremap <leader>sv :source $MYVIMRC<cr>
"### UI setting ###
set background=dark
if !has('gui_running')
let g:solarized_termcolors=256
colorscheme solarized
else
colorscheme solarized
endif
if has('gui_running')
set guifont=Monaco:h12
endif
"### IndentLine setting###
let g:indentLine_enabled = 1
let g:indentLine_color_term = 239
"### Youcompleteme setting ###
"let g:ycm_global_ycm_extra_conf = '/Users/Air/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
let g:ycm_global_ycm_extra_conf = '/Users/Air/.vim/bundle/YouCompleteMe/third_party/ycmd/examples/.ycm_extra_conf.py'
set completeopt-=preview
let g:ycm_min_num_of_chars_for_completion=1
let g:ycm_cache_omnifunc=0
let g:ycm_seed_identifiers_with_syntax=1
1
https://gitee.com/ywp-open/vim.git
git@gitee.com:ywp-open/vim.git
ywp-open
vim
vim
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891