本篇内容介绍了“怎么用VundleVim定制vim开发环境”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!建议vim版本在7.3以上,查看vi
本篇内容介绍了“怎么用VundleVim定制vim开发环境”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
建议vim版本在7.3以上,查看vim版本
点击(此处)折叠或打开
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 21 2016 17:10:41)
Included patches: 1-207, 209-629
Modified by
Compiled by
下载
点击(此处)折叠或打开
vim ~/.vimrc 添加如下内容
点击(此处)折叠或打开
" show row number
set nu
" " color theme
colorscheme desert
" " 设置encoding,防止乱码
set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1
" """"""""""""""""""""""""""""""
" " Vundle Setting "
" """"""""""""""""""""""""""""""
set nocompatible " be iMproved, required
filetype on " required
" " set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" " let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" "
" " 插件管理核心库
Bundle 'gmarik/vundle'
" " 文件管理器
Plugin 'scrooloose/nerdtree'
map <C-n> :NERDTreeToggle<CR>
" " ctrlp搜索插件
Bundle 'ctrlpvim/ctrlp.vim'
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" " 加强状态栏
Plugin 'bling/vim-airline'
" "代码补全
Bundle 'ShouGo/neocomplcache'
let g:neocomplcache_enable_at_startup = 1
" " Use smartcase.
let g:neocomplcache_enable_smart_case = 1
" " Set minimum syntax keyWord length.
let g:neocomplcache_min_syntax_length = 3
let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'
set completeopt-=preview
" " EasyGrep
Plugin 'dkprice/vim-easygrep'
" " 自动格式化
Plugin 'Chiel92/vim-autofORMat'
noremap <F3> :Autoformat<CR>
let g:autoformat_autoindent = 1
let g:autoformat_retab = 1
let g:autoformat_remove_trailing_spaces = 1
" " 自动补全括号,引号
Plugin 'Raimondi/delimitMate'
let g:delimitMate_expand_space = 1
let g:delimitMate_expand_cr = 2
let g:delimitMate_expand_space = 1
call vundle#end() " required
filetype plugin indent on " required
" " size of a hard tabstop
set tabstop=4
" " size of an "indent"
set shiftwidth=4
按esc 退出到vim命令模式输入
点击(此处)折叠或打开
:BundleInstall
点击(此处)折叠或打开
" Installing plugins to /root/.vim/bundle | 1
. Plugin 'VundleVim/Vundle.vim' |~
. Plugin 'gmarik/vundle' |~
. Plugin 'scrooloose/nerdtree' |~
. Plugin 'ctrlpvim/ctrlp.vim' |~
. Plugin 'bling/vim-airline' |~
. Plugin 'Shougo/neocomplcache' |~
. Plugin 'dkprice/vim-easygrep' |~
. Plugin 'Chiel92/vim-autoformat' |~
. Plugin 'Raimondi/delimitMate' |~
* Helptags |~
|~
~ |~
~ |~
~ |~
~ |~
~ |~
~ |~
~ |~
~ |~
~ |~
~ |~
~ |~
~ |~
~ |~
Preview [Vundle] Installer vun… 100% ? 12/12 ㏑ : 1 [No Name] 100% ? 0/1 ㏑ : 1
Done!
安装完成
代码事例
点击(此处)折叠或打开
(py3env) [root@Mysqltest-213-2 pytonstudy]# vim test_su.py
1 a = 1
2 a2 = 3
3 a += a2
4 print("a2=%d"%(a2))
5 print("a=%d"%(a))
“怎么用VundleVim定制vim开发环境”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注编程网网站,小编将为大家输出更多高质量的实用文章!
--结束END--
本文标题: 怎么用VundleVim定制vim开发环境
本文链接: https://lsjlt.com/news/237625.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0