关注python、vim、linux、web开发和互联网--life is short, we need python.


作者:the5fire | 标签:       | 发布:2016-09-07 6:48 a.m. | 阅读量: 5510, 5330



Traceback (most recent call last):
  File "/Users/the5fire/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/", line 95, in CompatibleWithCurrentCore
    ycm_core = ImportCore()
  File "/Users/the5fire/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/", line 87, in ImportCore
    import ycm_core as ycm_core
ImportError: No module named ycm_core


let g:ycm_server_python_interpreter = '/usr/local/bin/python'


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()
call vundle#rc()
" let Vundle manage Vundle
" required! 
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-sensible'
Plugin 'scrooloose/nerdtree'   
Plugin 'kien/ctrlp.vim'        
Plugin 'tpope/vim-fugitive'    
Plugin 'scrooloose/syntastic' 
Plugin 'hynek/vim-python-pep8-indent'
Plugin 'scrooloose/nerdcommenter'   
Plugin 'Valloric/YouCompleteMe'
let g:ycm_server_python_interpreter = '/usr/local/bin/python'
Plugin 'majutsushi/tagbar'     
Plugin 'mileszs/ack.vim'       
Plugin 'rking/ag.vim'
" 文档编辑
" restructtext
"Plugin 'Rykka/riv.vim'
Plugin 'tommcdo/vim-exchange'
Plugin 'terryma/vim-multiple-cursors'       
Plugin 'Lokaltog/vim-easymotion'
Plugin 'Flowerowl/ici.vim'
" 状态栏
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" 配色
Plugin 'altercation/vim-colors-solarized'
" golang
Plugin 'jnwhiteh/vim-golang'
Plugin 'dgryski/vim-godef'
Plugin 'nsf/gocode', {'rtp': 'vim/'}
" vim-scripts repos
Plugin 'L9'
" Java Conf
"Plugin 'Vim-JDE'
"Plugin 'JavaBrowser'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
" 一些基本配置
set anti enc=utf-8
set guifont=Source_Code_Pro:h12
filetype plugin indent on     " required!
" Set to auto read when a file is changed from the outside
set autoread
let mapleader = ','
let g:mapleader = ','
let &termencoding=&encoding
set fileencodings=utf-8,gb18030,gbk,gb2312,big5
set number
set guifont=Courier_New:h16
set guifontwide=STXihei:h16
let g:syntastic_python_checkers=['flake8']
let g:syntastic_python_checker_args='--ignore=W501,E225'
let syntastic_python_checker_args='--ignore=E501,E225'
" Ignore case when searching
set ignorecase smartcase
" Highlight search results
set hlsearch incsearch
" Use spaces instead of tabs
set expandtab smarttab shiftwidth=4 tabstop=4
"Always show current position
set ruler
let g:pymode_breakpoint_cmd = 'import pdb; pdb.set_trace()  # XXX BREAKPOINT'
"" Height of the command bar
set cmdheight=2
set nobackup
set noswapfile
set wrap
" golang
set rtp+=$GOPATH/src/
"autocmd BufferWritePost,FileWritePost *.go execute 'go fmt'
"autocmd BufWritePre *.go '!go fmt'
autocmd FileType go autocmd BufWritePre <buffer> Fmt
vmap <c-c> :w !pbcopy<CR><CR>
" 状态栏配置
set laststatus =2 "always has status line
syntax enable
set background=dark
colorscheme solarized
" NERDTree=====
nmap <leader>n :NERDTreeToggle<CR>
let NERDTreeWinSize=24
let NERDTreeIgnore=['\.pyc', '\.swp', '\~']
"switch window
nnoremap <c-h> <c-w>h
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-l> <c-w>l
" tagbar
nmap <F4> :TagbarToggle<CR>
let g:tagbar_ctags_bin='/usr/local/bin/ctags'  " Proper Ctags locations
let g:tagbar_width=26                          " Default is 40, seems too wide
noremap <Leader>y :TagbarToggle<CR>       " Display panel with y (or ,y)
" LustyBufferExplorer=====
"nnoremap <leader>lb :LustyBufExplorer<CR>
set hidden
"let g:syntastic_go_checkers=['go', 'govet', 'golint']
let g:Powerline_symbols = 'fancy'
let g:Powerline_colorscheme='solarized256_dark'
set t_Co=256                   " 在终端启用256色
let g:ycm_path_to_python_interpreter = '/usr/bin/python'
" Track the engine.
Plugin 'SirVer/ultisnips'
" Snippets are separated from the engine. Add this if you want them:
Plugin 'honza/vim-snippets'
" Trigger configuration. Do not use <tab> if you use
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
let g:ctrlp_custom_ignore = {
  \ 'dir':  'node_modules',
  \ }
" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" Brief help
" :BundleList          - list configured bundles
" :BundleInstall(!)    - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!)      - confirm(or auto-approve) removal of unused bundles
" 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


- from