Skip to content

VIM 插件推荐

This guide explains how to install and use Vundle to manage Vim plugins.

Create the bundle directory and clone the Vundle repository:

Terminal window
mkdir -p ~/.vim/bundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Add the following configuration to your ~/.vimrc file. Ensure that all Plugin commands are placed between call vundle#begin() and call vundle#end().

set nocompatible " be iMproved, required
filetype off " 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'
" Add your plugins here
Plugin 'wakatime/vim-wakatime'
Plugin 'editorconfig/editorconfig-vim'
call vundle#end() " required
filetype plugin indent on " required
" General settings
set ruler
set nu
set backspace=2
set mouse=a

Launch Vim and run the installation command:

Terminal window
vim +PluginInstall +qall

Or inside Vim, run:

:PluginInstall