4 Star 1 Fork 1

SpringHan / HicusLine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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

MIT License Copyright (c) 2020 Styadev's everyone Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

(Neo)Vim下的高度自定义状态栏。 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
VimL
1
https://gitee.com/springhan/HicusLine.git
git@gitee.com:springhan/HicusLine.git
springhan
HicusLine
HicusLine
master

搜索帮助