chxuan / change-colorscheme Goto Github PK
View Code? Open in Web Editor NEW:four_leaf_clover:A quick change theme plugin for vim
Home Page: https://github.com/chxuan/change-colorscheme
License: MIT License
:four_leaf_clover:A quick change theme plugin for vim
Home Page: https://github.com/chxuan/change-colorscheme
License: MIT License
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!
1.今天想把vimplus的注释颜色修改一下,想到用一下这个插件,之前用过没有问题,这次是重装系统之后的第二次使用发现一个故障:
Error信息是s:theme_list 未定义,可是我去相应的插件位置找到这个定义发现开头就有定义了:
所以不知道为什么还报undefined variable的错?
2.新手随便问:
(1) 插件定义的文件都是.vim格式的,里面诸如let command! nnoremap 这样的语句是什么编程语言?想学习一下如何自己写.vimplus的插件
(2)我之前在排查上面的故障的时候,拿其它的插件语句对比过,为什么同样是call,changecolorscheme里面写的是":call" 而vim_edit里面写的是"call",有无冒号的区别是什么
第一次issue,小紧张,BTW,感谢chxuan大佬的vimplus,虽然所有插件,内容没有全部用起来,但是一直在用,非常不错,感谢作者!
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.
我用的是blus.vim的这个主题, 修改blues.vim的 set bg=dark ?注释掉?
感谢大佬的插件,切换主题从此方便多了!
然后今天我发现两个问题,而且针对以下两点建议提了 PR,因为写在 commits 中并不能完整地表述,所以写在 issue 里方便记录和叙述。
1
2
~/.vim
不太全,因为对于 Neovim 用户和 Windows 平台的 Vim 用户来说并不一定是这个目录。&rtp
中的目录来找,但是发现按照 &rtp
查找会导致列表主题名重复,好在有个强大的函数 getcompletion
可以直接查找得到所有的主题名,这样就可以省去好多函数,包括搜索主题/读取主题/搜索文件/处理路径的这些。~/.vim/colors
下面的文件,别的插件可能安装位置不一样Plug 'flazz/vim-colorschemes', { 'do': 'rsync -avz ./colors/ ~/.vim/colors/ && rm -rf ./colors/*' }
noremap <leader>c :NextColorScheme<cr>:colorscheme<cr>
noremap <leader>C :PreviousColorScheme<cr>:colorscheme<cr>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.