Skip to content

heavenshell/vim-pokemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

🍕 Good luck! 🍕

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

About

Pokemon might be in your open file....

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published