All Projects → heavenshell → vim-pokemon

heavenshell / vim-pokemon

Licence: MIT license
Pokemon might be in your open file....

Programming Languages

Vim Script
2826 projects

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].