Created
March 20, 2017 15:12
-
-
Save jaycelq/eef4fb899a9dfd5e95e51302dcbde8d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, 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 'VundleVim/Vundle.vim' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'jiangmiao/auto-pairs' | |
Plugin 'autoload_cscope.vim' | |
Plugin 'gnattishness/cscope_maps' | |
Plugin 'wincent/command-t' | |
Plugin 'tomasr/molokai' | |
Plugin 'DoxygenToolkit.vim' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
set completeopt-=preview | |
let g:ycm_autoclose_preview_window_after_insertion = 1 | |
let g:ycm_confirm_extra_conf = 0 | |
let g:ycm_min_num_of_chars_for_completion=2 " 从第2个键入字符就开始罗列匹配项 | |
let g:ycm_cache_omnifunc=0 " 禁止缓存匹配项,每次都重新生成匹配项 | |
let g:ycm_seed_identifiers_with_syntax=1 " 语法关键字补全 | |
colorscheme molokai | |
let g:rehash256 = 1 | |
set t_Co=256 | |
set background=dark | |
syntax on | |
set nocompatible | |
set number | |
set hlsearch | |
set history=1000 | |
set background=dark | |
set noignorecase | |
set enc=utf8 | |
set fencs=utf8,gbk,gb2312,gb18030,cp936 | |
set cindent | |
set autoindent | |
set shiftwidth=4 | |
set softtabstop=4 | |
set ts=4 | |
set expandtab | |
set showmatch | |
set vb t_vb= | |
set incsearch | |
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\[TYPE=%Y]\ [ASCII=\%03.3b]\[HEX=\%02.2B]\ [POS=%04l,%04v][%03p%%]\[LEN=%L] | |
set laststatus=2 | |
set backspace=2 | |
set gfn=Monaco:h12 | |
set fu | |
set nobackup | |
"map <F2> :A<CR> | |
"map <C-j> <C-W>j | |
"map <C-k> <C-W>k | |
"map <silent> <leader>qw :wq<cr> | |
" | |
"map <C-\> :vsp <CR>:exec("tag ".expand("<cword>"))<CR> | |
set autochdir | |
set tags=tags; | |
augroup filetype | |
au! BufRead,BufNewFile *.proto setfiletype proto | |
augroup end | |
:set guioptions-=r "remove right-hand scroll bar | |
:set guioptions-=L "remove left-hand scroll bar | |
nmap <C-\>s :cs find s <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-\>g :cs find g <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-\>c :cs find c <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-\>t :cs find t <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-\>e :cs find e <C-R>=expand("<cword>")<CR><CR> | |
nmap <C-\>f :cs find f <C-R>=expand("<cfile>")<CR><CR> | |
nmap <C-\>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR> | |
nmap <C-\>d :cs find d <C-R>=expand("<cword>")<CR><CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment