安装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
查找插件:BundleSearchvim-powerline插件配置
set laststatus=2
let g:Powerline_symbols=’unicode’
vim插件
最新推荐文章于 2025-04-16 19:32:32 发布