4 Star 1 Fork 1

SpringHan / HicusLine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README_CN.md 3.39 KB
一键复制 编辑 原始数据 按行查看 历史
SpringHan 提交于 2020-07-12 13:29 . Added a new function

HicusLine

(Neo)Vim下的高度自定义状态栏。

English Document: README

Gitee仓库地址: HicusLine

GitHub仓库地址: HicusLine

截图

图片加载失败

安装

最好的办法就是使用 vim-plug 进行安装:

Plug 'https://gitee.com/springhan/HicusLine.git'

配置

在安装过后,你可以在(Neo)Vim运行:help hicusline来阅读帮助文档;如果要查看中文版,可以运行:help hicusline@cn

如果你不想花太多时间去配置它,你也可以看看示例配置(其实就是我的配置哈哈)。

highlight GitStatusAdd ctermfg=142 ctermbg=239 guifg=#98C379 guibg=#44475A
highlight GitStatusMod ctermfg=214 ctermbg=239 guifg=#FABD2F guibg=#44475A
highlight GitStatusDel ctermfg=167 ctermbg=239 guifg=#FB4934 guibg=#44475A
set laststatus=2
let g:HicusLineEnabled = 1
let g:HicusColorSetWay = 1
let g:HicusLine = {
			\ 'active': {
			\     'left': [ 'modehighlight', 'space', 'filename', 'truncate', 'space',
			\               'spell', '%#infos#', 'gitinfo', 0, 'modified', 'readonly',
			\                'space', '%#ErrorStatus#', 'errorstatus', 'space',
			\               '%#WarningStatus#', 'warningstatus', 'bufferline', 'truncate',
			\               'gitmodified' ],
			\     'right': [ 'filetype3', 'space', '%#infos#', 'space', 'fileencoding',
			\                'space', "%{exists('*CapsLockStatusline')".
			\                "?CapsLockStatusline():''}" , 'space', 'fileformat',
			\                'truncate', 'space', 'modehighlight', 'space', 'linenumber',
			\                ':', 'bufferlinesnumber', 'space', 'windowpercentage',
			\                'space' ],
			\ },
			\ 'basic_option': {
			\     'ErrorSign': '●',
			\     'WarningSign': '●'
			\ }
\}
let g:HicusLineMode = {
			\ 'n':      [ '', 'normalmode', { 'infos': 'normalinfos', }, ],
			\ 'i':      [ '', 'insertmode', { 'infos': 'otherinfos',  }, ],
			\ 'R':      [ '', 'replacemode', { 'infos': 'otherinfos',  }, ],
			\ 'v':      [ '', 'visualmode', { 'infos': 'otherinfos',  }, ],
			\ 'V':      [ '', 'visualmode', { 'infos': 'otherinfos',  }, ],
			\ "\<C-v>": [ '', 'visualmode', { 'infos': 'otherinfos',  }, ],
			\ 'c':      [ '', 'commandmode', { 'infos': 'otherinfos',  }, ],
			\ 's':      [ '', 'normalmode', { 'infos': 'normalinfos',  }, ],
			\ 'S':      [ '', 'normalmode', { 'infos': 'normalinfos',  }, ],
			\ "\<C-s>": [ '', 'normalmode', { 'infos': 'normalinfos',  }, ],
			\ 't':      [ '', 'normalmode', { 'infos': 'normalinfos',  }, ]
\}
let g:HicusColor = {
			\ 'StatusLine':         [ 'none', '#8BE9FD', '#44475A', ],
			\ 'normalmode':         [ 'bold', '#282A36', '#BD93F9', ],
			\ 'insertmode':         [ 'bold', '#282A36', '#50FA7B', ],
			\ 'visualmode':         [ 'bold', '#282A36', '#FFB86C', ],
			\ 'replacemode':        [ 'bold', '#282A36', '#FF5555', ],
			\ 'commandmode':        [ 'bold', '#C6C6C6', '#3A81C3', ],
			\ 'normalinfos':        [ 'none', '#FFFFFF', '#6272A4', ],
			\ 'otherinfos':         [ 'none', '#44475A', '#8BE9FD', ],
			\ 'ErrorStatus':        [ 'none', '#FF0033', '#44475A', ],
			\ 'WarningStatus':      [ 'none', '#FFCC00', '#44475A', ],
			\ 'HicusBuffer':        [ 'none', '#FFFFFF', '#44475A', ],
			\ 'HicusCurrentBuffer': [ 'bold', '#FFFFFF', 'none', ]
\}

证书

MIT

VimL
1
https://gitee.com/springhan/HicusLine.git
git@gitee.com:springhan/HicusLine.git
springhan
HicusLine
HicusLine
master

搜索帮助