- Plugin Manager
- VimShell
- GnuPG.vim
- Fcitx-Vim-OSX
junegunn/vim-plug
The minimalist Vim Plugin Manager
https://github.com/junegunn/vim-plug
Download
mkdir -p ~/.vim/autoload/ && cd ~/.vim/autoload/
wget https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Usage
Add a vim-plug section to your ~/.vimrc
:
- Begin the section with call
plug#begin()
- List the plugins with
Plug
commands call plug#end()
to update&runtimepath
and initialize plugin system
Example
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
" Group dependencies, vim-snippets depends on ultisnips
"Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
" Using a non-master branch
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
" Plug 'fatih/vim-go', { 'tag': '*' }
Plug 'fatih/vim-go'
" Plugin options
Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
" Plugin outside ~/.vim/plugged with post-update hook
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
" Unmanaged plugin (manually installed and updated)
Plug '~/my-prototype-plugin'
" Add plugins to &runtimepath
call plug#end()
Then run inside Vim:
:so ~/.vimrc
:PlugInstall
Commands
PlugInstall [name ...] [#threads]
: Install pluginsPlugUpdate [name ...] [#threads]
: Install or update pluginsPlugClean[!]
: Remove unused directories (bang version will clean without prompt)PlugUpgrade
: Upgrade vim-plug itselfPlugStatus
: Check the status of pluginsPlugDiff
: Examine changes from the previous update and the pending changesPlugSnapshot[!] [output path]
: Generate script for restoring the current snapshot of the plugins
vimshell.vim
https://github.com/Shougo/vimproc.vim
https://github.com/Shougo/vimshell.vim
:Plug 'Shougo/vimproc.vim', {'do' : 'make'}
:Plug 'Shougo/vimshell.vim'
:PlugStatus
gnupg.vim
http://www.vim.org/scripts/script.php?script_id=3645
https://github.com/jamessan/vim-gnupg
Commands:
-
:GPGEditRecipients
: Opens a scratch buffer to change the list of recipients. Recipients that are unknown (not in your public key) are highlighted and have a prepended "!". Closing the buffer makes the changes permanent. -
:GPGViewRecipients
: Prints the list of recipients. -
:GPGEditOptions
: Opens a scratch buffer to change the options for encryption (symmetric, asymmetric, signing). Closing the buffer makes the changes permanent. WARNING: There is no check of the entered options, so you need to know what you are doing. -
:GPGViewOptions
: Prints the list of options.
Fcitx-Vim-OSX
https://github.com/CodeFalling/fcitx-vim-osx
brew install squirrel
brew install fcitx-remote-for-osx --with-input-method=squirrel-rime
cd ~/.vim/plugin/
wget https://raw.githubusercontent.com/CodeFalling/fcitx-vim-osx/master/plugin/fcitx-osx.vim