Skip to content

Instantly share code, notes, and snippets.

@mikeshi80
Created Feb 4, 2017
Embed
What would you like to do?
vimrc.vim with ycm and colored code
set nocompatible
filetype off
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese
set fileencoding=utf-8
set termencoding=utf-8
language messages zh_CN.utf-8
set backspace=indent,eol,start
set incsearch
set hlsearch
colo torte
set sw=4
set ts=4
set et
set sts=4
set smartindent
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" The bundles you install will be listed here
filetype plugin indent on
" The rest of your config follows here
augroup vimrc_autocmds
autocmd!
" highlight characters past column 120
autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black
autocmd FileType python match Excess /\%120v.*/
autocmd FileType python set nowrap
autocmd BufRead,BufNewFile *.jl set filetype=julia
augroup END
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
" Powerline setup
set guifont=Droid\ Sans\ Mono\ for\ Powerline\ 12
set laststatus=2
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-markdown'
autocmd BufNewFile,BufReadPost *.md set filetype=markdown
Bundle 'scrooloose/nerdtree'
map <F2> :NERDTreeToggle<CR>
Bundle 'scrooloose/syntastic'
" Bundle 'klen/python-mode'
" " Python-mode
" " Activate rope
" " Keys:
" " K Show python docs
" " <Ctrl-Space> Rope autocomplete
" " <Ctrl-c>g Rope goto definition
" " <Ctrl-c>d Rope show documentation
" " <Ctrl-c>f Rope find occurrences
" " <Leader>b Set, unset breakpoint (g:pymode_breakpoint enabled)
" " [[ Jump on previous class or function (normal, visual, operator modes)
" " ]] Jump on next class or function (normal, visual, operator modes)
" " [M Jump on previous class or method (normal, visual, operator modes)
" " ]M Jump on next class or method (normal, visual, operator modes)
" let g:pymode_rope = 1
" let g:pymode_lint_on_write = 0
"
" " Documentation
"
" let g:pymode_doc = 1
" let g:pymode_doc_key = 'K'
"
" "Linting
" let g:pymode_lint = 1
" let g:pymode_lint_checker = "pyflakes,pep8"
" " Auto check on save
" let g:pymode_lint_write = 1
" let g:pymode_lint_ignore = "E501,W0401"
"
" " Support virtualenv
" let g:pymode_virtualenv = 1
"
" " Enable breakpoints plugin
" let g:pymode_breakpoint = 1
" let g:pymode_breakpoint_key = '<leader>b'
"
" " syntax highlighting
" let g:pymode_syntax = 1
" let g:pymode_syntax_all = 1
" let g:pymode_syntax_indent_errors = g:pymode_syntax_all
" let g:pymode_syntax_space_errors = g:pymode_syntax_all
"
" " Don't autofold code
" let g:pymode_folding = 0
"
" let g:pymode_rope_complete_on_dot = 0
" let g:pymode_lint_on_write = 1
Bundle 'FencView.vim'
Bundle 'minibufexplorerpp'
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
" Bundle "taglist.vim"
" Bundle 'vim-clang'
Bundle 'Valloric/YouCompleteMe'
let g:ycm_confirm_extra_conf=0
let g:ycm_complete_in_comments=1
nnoremap <leader>gc :YcmCompleter GoToDeclaration<CR>
nnoremap <leader>gf :YcmCompleter GoToDefinition<CR>
nnoremap <leader>gg :YcmCompleter GoToDefinitionElseDeclaration<CR>
nmap <leader>gd :YcmDiags<CR>
" let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
let g:ycm_seed_identifiers_with_syntax = 1
Plugin 'jeaye/color_coded'
" Plugin 'JuliaLang/julia-vim'
Plugin 'fatih/vim-go'
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_interfaces = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
Bundle "rdnetto/YCM-Generator"
filetype plugin indent on
syntax on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment