https://github.com/heavenshell/vim-pokemon
Pokemon might be in your open file....
https://github.com/heavenshell/vim-pokemon
Last synced: 10 months ago
JSON representation
Pokemon might be in your open file....
- Host: GitHub
- URL: https://github.com/heavenshell/vim-pokemon
- Owner: heavenshell
- License: mit
- Created: 2016-07-15T17:46:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-22T14:35:48.000Z (almost 10 years ago)
- Last Synced: 2025-03-06T02:12:12.519Z (over 1 year ago)
- Language: VimL
- Size: 79.1 KB
- Stars: 17
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Vim-Pokémon
===========
Pokemon might be in your open file....

Note
----
Inspired by awesome Emacs hacker gongo's [Pokémon-Emacs](https://github.com/gongo/pokemon-emacs/).
Requirements
------------
Vim7.4
Installation
------------
:pizza: Good luck! :pizza:
Usage
-----
Set `pokemon#getdaze()` to your statusline setting.
```viml
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](https://github.com/itchyny/lightline.vim).
```viml
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