vim插件

  • 安装vindle
    个人目录下新建.vim/bundle/vundle文件夹,git下载vundle插件到此位置

    git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

  • 进行一些配置

    1 set nu
    2 set tabstop=4
    3 set autoindent
    4 set nocompatible ” 设置vim不兼容vi模式
    5 syntax on
    6
    7 ” my bundle here:
    8 filetype off ” 必须的
    9
    10 set rtp+=~/.vim/bundle/vundle
    11 call vundle#rc()
    12
    13 ” 让vundle管理vundle,必须有
    14 Bundle ‘gmarik/vundle’
    15
    16 ” 代码源在github上的安装
    17 Bundle ‘Lokaltog/vim-powerline’
    18 Bundle ‘kien/ctrlp.vim’
    19 ” orginal repos on github
    20
    21 filetype plugin indent on ” 必须有
    22 ”
    23 “Brief help
    24 ”
    25 “:BundleList - list config bundles
    26 “:BundleInstall(!) - install(update) bundles
    27 “:BundleSearch(!)foo -search(or refresh cache first) for foo
    28 “:Bundle Clean(!) - confirm(or auto-approve) removal of unused bundles

  • 部分使用的命令

    打开一个vim, 运行:BundleInstall 或者 PluginInstall
    或者在命令行运行 vim +BundleInstall +qall 安装完成后插件就能用了

    更新插件:BundleUpdate
    清除不再使用的插件:BundleClean,
    列出所有插件:BundleList
    查找插件:BundleSearch

  • vim-powerline插件配置

    set laststatus=2
    let g:Powerline_symbols=’unicode’

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值