inoremap jj <Esc>
inoremap jk <Esc>
inoremap kk <Esc>
set ruler
set history=1000
set laststatus=2
syntax on
set fileencodings=utf-8,gb2312,gbk,cp936,latin-1
set fileencoding=utf-8
set termencoding=utf-8
set fileformat=unix
set encoding=utf-8
set wildmenu
set nocompatible
set backspace=indent,eol,start
set backspace=2
set smartindent
set tabstop=4
set nobackup
set nowritebackup
set noswapfile
set expandtab
set showmatch
set hlsearch
set softtabstop=4
set shiftwidth=4
set showcmd
set clipboard=unnamed
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
set mouse=a
set selection=exclusive
set selectmode=mouse,key
set matchtime=5
colorscheme molokai
set ruler
set t_Co=256
set background=dark
" *********************************************
" Vbundle插件管理
" *********************************************
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'fatih/vim-go'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'tell-k/vim-autopep8'
Plugin 'jiangmiao/auto-pairs'
Plugin 'Yggdroot/indentLine'
Plugin 'kien/ctrlp.vim'
call vundle#end() " required
filetype plugin indent on " required
" *********************************************
" YCM插件相关
" *********************************************
let g:ycm_autoclose_preview_window_after_completion=1
" 跳转到定义处
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
" 默认tab、s-tab和自动补全冲突
let g:ycm_key_list_select_completion = ['<TAB>', '<c-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<S-TAB>', '<c-p>', '<Up>']
let g:ycm_auto_trigger = 1
let g:ycm_python_binary_path = '/Users/wei.qi/anaconda3/bin/python3.6'
autocmd FileType python noremap <buffer> <Leader>ll :call Autopep8()<CR>
let NERDTreeIgnore=['\~$', '\.pyc$', '\.swp$']
map <Leader>nt :NERDTreeToggle<CR>
map <Leader>ww :w<CR>
map <Leader>qq :q!<CR>
map <Leader>ppp :w<cr>:!python %<cr>
map <Leader>mmm :!make
set cursorline
set nu
VIM 配置
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- space-vim 现已支持 Layer ,以下内容大都陈旧,欢迎访问 github 查看最新版本:>>>> sp...
- *** vim简介*** vi是Linux下默认的文本编辑器,类似于Windows下面的记事本,notepad++...
- vim常用操作简明教程附我用了多年的vim配置文件 为配合演示,加了个Makefile,并特意加了详细注释,是我平...
- 以下内容已过时,详情请查看 GitHub Quick Install curlsh -c "$(curl -fsS...