Skip to content
Vim

プラグインマネージャーとエコシステム

vim-plug / packer / lazyでプラグインをインストール、設定、発見。

#plugin#vim-plug#lazy#ecosystem

Code

vim
" --- vim-plug (classic Vim) ---
" ~/.vimrc
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-surround'
Plug 'tpope/vim-fugitive'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()

" Install: :PlugInstall | Update: :PlugUpdate | Clean: :PlugClean

" --- lazy.nvim (modern Neovim) ---
" ~/.config/nvim/init.lua
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
  { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
  { "nvim-telescope/telescope.nvim", dependencies = { "nvim-lua/plenary.nvim" } },
  { "neovim/nvim-lspconfig" },
}, {})

" Must-know plugins
" tpope/vim-surround   cs"' changes surrounding quotes
" tpope/vim-fugitive   :Git wrapper
" tpope/vim-commentary gcc toggles comment
" lewis6991/gitsigns.nvim  git gutter
" nvim-lualine/lualine.nvim  statusline