papercolor-theme-slim:(Neo)漂亮,苗条和高性能的视觉色彩方案

  • k7_344973
    了解作者
  • 5.1KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-21 08:03
    上传日期
PaperColorSlim Colorscheme 这是的实现,它具有以下特点: 支持 没有抽象,使颜色映射超级简单 使用支持定位gui选项( guifg , guibg , gui )。 如果您使用的是现代终端机( , , 等),则可能具有truecolor支持。 从终端运行echo $COLORTERM 。 如果它响应truecolor ,则您有truecolor支持。 注意:我很乐意添加cterm支持,如果对此感兴趣,请提交PR。 的判断,突出显示组限制为:, , 以及几个非标准替代。 这样可以使跨语言的突出显示保持一致,但是在某些情况下可能会牺牲一些突出显示的粒度。 同时支持background=light和background=dark 它针对Neovim的语法组,但从技术上讲,它应与常规Vim一起使用。 安装 如果使用 ,请将以下行放在inti.vim /
papercolor-theme-slim-master.zip
  • papercolor-theme-slim-master
  • colors
  • PaperColorSlim.vim
    16.6KB
  • README.md
    3.9KB
  • .gitignore
    352B
内容介绍
# PaperColorSlim Colorscheme This is a slimmed down re-implementation of [papercolor-theme](https://github.com/NLKNguyen/papercolor-theme) that: 1. Supports [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) 2. Has no abstraction, making color mapping super simple 3. Targets gui options (`guifg`, `guibg`, `gui`) with [truecolor](https://gist.github.com/sindresorhus/bed863fb8bedf023b833c88c322e44f9) support. If you're using a modern terminal ([alacritty](https://github.com/alacritty/alacritty), [iterm2](https://en.wikipedia.org/wiki/ITerm2), [gnome terminal](https://en.wikipedia.org/wiki/GNOME_Terminal), etc), you probably have truecolor support. Run `echo $COLORTERM` from your terminal. If it responds `truecolor`, you have truecolor support. NOTE: I'd be happy to add cterm support, if this interests you please submit a PR. 4. Limits highlight groups to: [built-in](https://neovim.io/doc/user/syntax.html#highlight-default), [preferred](https://neovim.io/doc/user/syntax.html#W18), [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/blob/333e1ab7768336d33c0e654a412ce0cb763f1da2/doc/nvim-treesitter.txt#L398), and a couple non-standard overrides at [the author](https://samroeca.com/pages/about.html)'s discretion. This results in consistent highlighting across languages, but may sacrifice some highlighting granularity in some cases. 5. Supports both `background=light` and `background=dark` It targets Neovim's syntax groups, but it should technically work with regular Vim. ## Installation If using [vim-plug](https://github.com/junegunn/vim-plug), place the following line in the Plugin section of your inti.vim / vimrc: ```vim " ~/.vimrc Plug 'pappasam/papercolor-theme-slim' ``` Then run the Ex command: ```vim :PlugInstall ``` I personally use [vim-packager](https://github.com/kristijanhusak/vim-packager), so if you'd like to go down the "package" rabbit hole, I suggest giving that a try. ## Configuration Place the following in your `~/.vimrc` or your `~/.config/nvim/init.vim`: ### Dark variant ```vim colorscheme PaperColorSlim ``` ### Light variant If you prefer the light background: ```vim set background=light colorscheme PaperColorSlim ``` ### Notes - You may change to the light/dark variant at any time by running `:set background=light` or `:set background=dark` ## Customization You can configure virtually anything you want with Vim's native syntax highlighting tooling. What follows are some common configuration customizations requested by users, along with their solution. ### Transparent background Some users want the background of their Vim to match their terminal's background color. To achieve this with PaperColorSlim, put the following code somewhere in your `vimrc`: ```vim augroup custom_papercolorslim_transparent_background autocmd! autocmd ColorScheme PaperColorSlim highlight Normal guibg=none augroup end ``` **Note:** if your terminal background differs too much from [#1c1c1c](https://www.color-hex.com/color/1c1c1c) when using `background=dark`, or [fffff0](https://www.color-hex.com/color/fffff0) when using `background=light`, PaperColorSlim may not contrast well with your terminal's background. In this case, you will need to do one of the following: 1. Use the PaperColorSlim-provided background colors (eg, don't put the above in your `vimrc`) 2. Perform further customization, tweaking `guifg` and `guibg` colors where necessary 3. Use a different Vim colorscheme that better-supports your background preferences ## Development If you want to contribute and assuming you use Neovim, I suggest installing and using [nvim-colorizer](https://github.com/norcalli/nvim-colorizer.lua). It will let you see the colors associated with the hex codes, greatly simplifying development. ## Written by Samuel Roeca _samuel.roeca@gmail.com_ Special thanks to [Nikyle Nguyen](https://github.com/NLKNguyen) and all their great work on [papercolor-theme](https://github.com/NLKNguyen/papercolor-theme) over the years!
评论
    相关推荐
    • vim
      vim
    • vim
      はじめに 克隆 vimrc→〜/ .vimrc 酿造 CocInstall的coc-clangd ...vim航空公司,vim航空公司主题,vim设备图标 备忘单 让g:cheatsheet#cheat_file ='〜/ .vim / cheatsheet.md' 插件:reireias / vim-cheatsheet
    • VIM configuration
      VIM工具附带常用插件,已打包好,也是从别人那下载的资源,现免费share出来供给有需要的码农,不谢
    • vim
      vim航空公司 像空气一样轻薄的vim的倾斜和平均状态/标签。 正确加载插件后,Vim会在每个窗口的底部绘制一个漂亮的状态行。 该行包括几个部分,每个部分显示一些信息。 默认情况下(无配置),此行如下所示: +--...
    • Vim
      Vim
    • vim
      vim
    • vim
      vim
    • vim
      vimrc配置文件
    • vim
      vim 依存关系 吉特 卷曲 vim 下载vimrc curl -L -o ~ /.vimrc https://kaan.uno 安装插件 下载vimrc之后; 运行vim,然后在vim中运行此命令:PlugInstall
    • vim
      vim