微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

我的vim配置

set nocompatible              " required
filetype off                  " required
set nu
set encoding=utf-8
set cursorline

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

"-------For color----------"
Syntax enable
colorscheme monokai
let python_highlight_all=1
Syntax on

"---------For code folding----------"
set foldmethod=indent
set foldlevel=99
nnoremap <space> za

"------- For indent--------"
au BufNewFile,BufRead *.py
    \ set tabstop=4 |
    \ set softtabstop=4 |
    \ set shiftwidth=4 |
    \ set textwidth=79 |
    \ set expandtab |
    \ set autoindent |
    \ set fileformat=unix |
set autoindent
set smartindent

"------------------YouCompleteMe------------------"
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g  :YcmCompleter GoToDeFinitionElseDeclaration<CR>

" 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 'scrooloose/syntastic'
Plugin 'nvie/vim-Flake8'
Plugin 'kien/ctrlp.vim'
Plugin 'valloric/YouCompleteMe'
Plugin 'Lokaltog/powerline',{'rtp': 'powerline/bindings/vim/'}



" 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

补充:

  1. gcc升级到5.0 TO 编译Ycm
    参考地址http://www.cnblogs.com/loadof...

  2. vim升级到8.0并添加python支持
    参考地址:

  3. 下载monokai配色文件
    https://github.com/sickill/vi...

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐