vim-pokemon


Ⅰ. 插件描述

Pokemon might be in your open file....

Ⅱ. 基本信息

创建日期:  2016-07-15
使用用户:  1
Github星:  17
插件作者:  Shinya Ohyanagi

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'heavenshell/vim-pokemon'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'heavenshell/vim-pokemon'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'heavenshell/vim-pokemon'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/heavenshell/vim-pokemon

Ⅳ. 文档说明

Vim-Pokémon

Pokemon might be in your open file....

Note

Inspired by awesome Emacs hacker gongo's Pokémon-Emacs.

Requirements

Vim7.4

Installation

:pizza: Good luck! :pizza:

Usage

Set pokemon#getdaze() to your statusline setting.

set statusline=%<[%n]%m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).':'.&ff.']'}%y%{'[Gotta\ Pokemon\:'.pokemon#getdaze().']'}\ %f%=%{fugitive#statusline()}%l,%c%V\ %P

Pokémon is determined uniquely by your open filename (or buffer-name).

If you using Lightline.vim.

let g:lightline = {
  \ 'active': {
  \   'left': [
  \     ['mode', 'paste'],
  \     ['pokemon']
  \   ]
  \ },
  \ 'component_visible_condition': {
  \   'readonly': '(&filetype!="help"&& &readonly)',
  \   'modified': '(&filetype!="help"&&(&modified||!&modifiable))',
  \ },
  \ 'component_function': {
  \   'fugitive': 'LightLineFugitive',
  \   'pokemon': 'Pokemon',
  \   'mode': 'LightLineMode'
  \ },
  \ 'separator': { 'left': '', 'right': '' },
  \ 'subseparator': { 'left': '⮁', 'right': '⮃' }

function! Pokemon()
  return pokemon#getdaze()
endfunction

License

MIT

添加新评论