# HicusLine **Repository Path**: springhan/HicusLine ## Basic Information - **Project Name**: HicusLine - **Description**: (Neo)Vim下的高度自定义状态栏。 - **Primary Language**: VimL - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 7 - **Forks**: 1 - **Created**: 2020-03-28 - **Last Updated**: 2025-08-27 ## Categories & Tags **Categories**: text-editor **Tags**: None ## README ## HicusLine (Neo)Vim下的高度自定义状态栏。 English Document: [README](./README.md) Gitee仓库地址: [HicusLine](https://gitee.com/springhan/HicusLine) GitHub仓库地址: [HicusLine](https://github.com/Styadev/HicusLine) ### 截图 ![图片加载失败](./demo.png) ### 安装 最好的办法就是使用 [vim-plug](https://github.com/junegunn/vim-plug) 进行安装: ```vim Plug 'https://gitee.com/springhan/HicusLine.git' ``` ### 配置 在安装过后,你可以在(Neo)Vim运行`:help hicusline`来阅读帮助文档;如果要查看中文版,可以运行`:help hicusline@cn`。 如果你不想花太多时间去配置它,你也可以看看示例配置(其实就是我的配置哈哈)。 ```vim 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', }, ], \ "\": [ '', 'visualmode', { 'infos': 'otherinfos', }, ], \ 'c': [ '', 'commandmode', { 'infos': 'otherinfos', }, ], \ 's': [ '', 'normalmode', { 'infos': 'normalinfos', }, ], \ 'S': [ '', 'normalmode', { 'infos': 'normalinfos', }, ], \ "\": [ '', '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