Git Product home page Git Product logo

change-colorscheme's People

Contributors

chxuan avatar voldikss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

change-colorscheme's Issues

Doesn't seem to work on urxvt with 88 colors

This plugin works as expected in xterm with support to 256 colors.

But doesn't work in urxvt that only has support for 88 colors.

Can you please make it work as well to urxvt in 88 color mode?

Thanks!

changecolorscheme故障

1.今天想把vimplus的注释颜色修改一下,想到用一下这个插件,之前用过没有问题,这次是重装系统之后的第二次使用发现一个故障:
p1
p2
Error信息是s:theme_list 未定义,可是我去相应的插件位置找到这个定义发现开头就有定义了:
p3
所以不知道为什么还报undefined variable的错?
2.新手随便问:
(1) 插件定义的文件都是.vim格式的,里面诸如let command! nnoremap 这样的语句是什么编程语言?想学习一下如何自己写.vimplus的插件
(2)我之前在排查上面的故障的时候,拿其它的插件语句对比过,为什么同样是call,changecolorscheme里面写的是":call" 而vim_edit里面写的是"call",有无冒号的区别是什么
p4
p5

第一次issue,小紧张,BTW,感谢chxuan大佬的vimplus,虽然所有插件,内容没有全部用起来,但是一直在用,非常不错,感谢作者!

can we set default theme?

Hi, I am using your vimplus, that's wonderful, and I love it. But i met some troubles when I 'm using colorscheme plugin. I wanna set the default theme but I dont know how to set it. So I could only manully change the theme until reach to my favourite one.

两点建议及解决方案

感谢大佬的插件,切换主题从此方便多了!
然后今天我发现两个问题,而且针对以下两点建议提了 PR,因为写在 commits 中并不能完整地表述,所以写在 issue 里方便记录和叙述。

  • 1

    • Issue: 在切换主题后,由于原先的主题被换掉,且其在主题列表里的位置不确定,因此我很难再换回原来的主题。
    • Solution: 将所有主题排序,并将当前主题加至主题列表头部,主题的位置索引从0开始,这样只要反向切换即可切回原来的主题。
  • 2

    • Issue: 默认主题搜索路径设置为 ~/.vim 不太全,因为对于 Neovim 用户和 Windows 平台的 Vim 用户来说并不一定是这个目录。
    • Solution: 本来打算用 &rtp 中的目录来找,但是发现按照 &rtp 查找会导致列表主题名重复,好在有个强大的函数 getcompletion 可以直接查找得到所有的主题名,这样就可以省去好多函数,包括搜索主题/读取主题/搜索文件/处理路径的这些。

优化建议

  1. 只能检测到~/.vim/colors下面的文件,别的插件可能安装位置不一样
Plug 'flazz/vim-colorschemes', { 'do': 'rsync -avz ./colors/ ~/.vim/colors/ && rm -rf ./colors/*' }
  1. 优化提示,比如换色后提示一下当前状态
noremap <leader>c :NextColorScheme<cr>:colorscheme<cr>
noremap <leader>C :PreviousColorScheme<cr>:colorscheme<cr>
  1. 增加Random命令,顺序的话文件可能太多
  2. 能结合airline-theme就更好了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.