Ⅰ. 插件描述
:smiley: Emoji in VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'junegunn/vim-emoji'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'junegunn/vim-emoji'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'junegunn/vim-emoji'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/junegunn/vim-emoji
Ⅳ. 文档说明
vim-emoji
Emoji in Vim.
Extracted from
vim-github-dashboard.

Installation
Using vim-plug:
Plug 'junegunn/vim-emoji'List of functions
emoji#for(name[, default = '', pad = 1])- Refer to Emoji cheat sheet
emoji#list()emoji#complete(findstart, base)
Examples
Using Emojis as Git Gutter symbols
let g:gitgutter_sign_added = emoji#for('small_blue_diamond')
let g:gitgutter_sign_modified = emoji#for('small_orange_diamond')
let g:gitgutter_sign_removed = emoji#for('small_red_triangle')
let g:gitgutter_sign_modified_removed = emoji#for('collision')Append Emoji list to current buffer
for e in emoji#list()
call append(line('$'), printf('%s (%s)', emoji#for(e), e))
endforEmoji completion
set completefunc=emoji#complete
Replace :emoji_name: into Emojis
%s/:\([^:]\+\):/\=emoji#for(submatch(1), submatch(0))/g