vim-picoline


Ⅰ. 插件描述

Minimalist Vim statusline

Ⅱ. 基本信息

创建日期:  2014-01-08
使用用户:  1
Github星:  1
插件作者:  Nicholas Hwang

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-picoline

Minimalist status line for Vim

Inspirted by Blaenk Denum

Active statusline with column warning
Screenshot1

CtrlP and inactive statusline
Screenshot2

Installation

Using vundle:

Bundle 'geekjuice/vim-picoline'

Using pathogen

cd ~/.vim/bundle
git clone git://github.com/geekjuice/vim-picoline.git

Configuration

The following show the default settings:

  " ~/.vimrc

  " Colorschemes (currently only _default_ available)
  let g:picoline_color = "default"


  " Fancy Characters
  let g:picoline_fancy = 1              "uses fancy characters from patched fonts


  " Custom Symbols if fancy
  let g:fsym = [ "»", "«", "⭤", "← " ]  "left/right marker, read-only, branch


  " CtrlP StatusLines
  let g:picoline_ctrlp = 1              "overwrites default CtrlP statuslines


  " Truncate Columns
  let g:picoline_trunc = 1              "truncate column numbers > 100 i.e. 325 -> 25


  " Column Limit Warning
  let g:picoline_limit = 1              "column number turns red when limit reached


  " Column Position or Char Count
  let g:picoline_nchar = 1              "show cursor col position (vs. line's char count)


  " Color Blocks for Mode
  let g:picoline_color = 1              "changes color of statusline blocks for different modes

Notes/Issues

  • Currently loads colors as a function using highlight (maybe fix)
  • Column blocksize = 5 on triple digit columns (shifts things by 1 block)
    Not a big issue, just personal annoyance and OCD
  • Maybe make limit value based on file's textwidth and fallback

Credits

Blaenk Denum

vim-powerline

lightline.vim

License

vim-picoline is released under the MIT License.

添加新评论