6 Commits
v1.0 ... master

Author SHA1 Message Date
Peter Aronoff
472da813a0 Update links to point to preservim 2022-02-13 07:37:19 -05:00
Joey Baker
1df055e348 Fix trigger colorscheme autocommand (#23)
Some plugins like vim-coc rely on the colorscheme autocommand to apply their overrides to themes. Because we're using `execute` instead of calling `colorscheme` directly, we have to manually trigger the event.
2020-09-24 12:18:46 +03:00
Freed-Wu
9ef9d29705 Add support for leaderf 2020-09-23 21:01:39 +03:00
wzy
66dc16eb8d Only update guifont if font and size not empty (#21)
Close #20
2020-03-04 13:02:42 +03:00
Reed Es
a98f5e5d7e Added reference to new vim-wordchipper plugin 2019-11-22 00:25:17 -07:00
Reed Esau
5bc225d99c Add better description of fullscreen bugs with MacVim 2015-01-21 16:11:34 -07:00
6 changed files with 81 additions and 46 deletions

View File

@@ -41,14 +41,17 @@ Adobe's _Source Code Pro ExtraLight_ may look great against a black
background but be unreadable against a white one, so youll only pair it
with an appropriate colorscheme.
## Requirements
May require a recent version of Vim.
## Installation
Install using Pathogen, Vundle, Neobundle, or your favorite Vim package
manager.
You can install using your favorite Vim package manager. (E.g.,
[Pathogen][pathogen], [Vundle][vundle], or [Plug][plug].) If you are using
a recent version of vim or neovim, you can also use native package
support. (See [:help packages][packages].)
[pathogen]: https://github.com/tpope/vim-pathogen
[vundle]: https://github.com/VundleVim/Vundle.vim
[plug]: https://github.com/junegunn/vim-plug
[packages]: https://vimhelp.org/repeat.txt.html#packages
## Configuration
@@ -270,9 +273,9 @@ involved:
(1) Install a word processing plugin like `pencil` and a suitable
colorscheme:
* [vim-pencil](https://github.com/reedes/vim-pencil) - to configure
* [vim-pencil](https://github.com/preservim/vim-pencil) - to configure
buffers for word processing
* [vim-colors-pencil](https://github.com/reedes/vim-colors-pencil) - an
* [vim-colors-pencil](https://github.com/preservim/vim-colors-pencil) - an
iAWriter-like colorscheme
(2) Edit your `.gvimrc` to disable the tool bar, etc.
@@ -324,10 +327,6 @@ following in OS X Terminal:
$ defaults write org.vim.MacVim MMNativeFullScreen 0
```
(Note: the above command may or may not work for you in Yosemite (OS X 10.10).
For example, I was experiencing 'screen tearing' and had to revert to the setting
below.)
Or, if you prefer that your fullscreen window float against a standard
background:
@@ -335,6 +334,11 @@ background:
$ defaults write org.vim.MacVim MMNativeFullScreen 1
```
(Note: due to OSX/MacVim bugs, `fullscreen` may or may not work
for you in Yosemite (OS X 10.10). For example, you might encounter a persistent
menu bar, an odd screen offset, or screen tearing. In such cases, try
`set lines=` or `set columns=` with reduced values to fix things.)
### Q: How can I apply my own custom highlights?
_thematic_ doesn't yet support theme-specific customization beyond the `-fix`
@@ -374,59 +378,59 @@ Whether using terminal or GUI-based Vim, a good monospaced font can
improve your editing experience. You already have a few installed (such
as Menlo on OS X.) Many more are available to download for free:
* [Cutive Mono](http://www.google.com/fonts/specimen/Cutive+Mono) (serif)
* [Droid Sans Mono](http://www.google.com/fonts/specimen/Droid+Sans+Mono)
* [Cutive Mono](https://fonts.google.com/specimen/Cutive+Mono) (serif)
* [Droid Sans Mono](https://fonts.google.com/fonts/specimen/Droid+Sans+Mono)
* [Hermit](https://pcaro.es/p/hermit/)
* [Inconsolata](http://www.google.com/fonts/specimen/Inconsolata) (2 weights)
* [Linux Libertine Mono O](http://sourceforge.net/projects/linuxlibertine/) (serif)
* [Inconsolata](https://fonts.google.com/specimen/Inconsolata) (2 weights)
* [Linux Libertine Mono O](https://sourceforge.net/projects/linuxlibertine/) (serif)
* [Meslo](https://github.com/andreberg/Meslo-Font)
* [Oxygen Mono](https://www.google.com/fonts/specimen/Oxygen+Mono)
* [PT Mono](http://www.google.com/fonts/specimen/PT+Mono)
* [Share Tech Mono](http://www.google.com/fonts/specimen/Share+Tech+Mono)
* [Source Code Pro](http://www.google.com/fonts/specimen/Source+Code+Pro) (7 weights)
* [Oxygen Mono](https://fonts.google.com/specimen/Oxygen+Mono)
* [PT Mono](https://fonts.google.com/specimen/PT+Mono)
* [Share Tech Mono](https://fonts.google.com/specimen/Share+Tech+Mono)
* [Source Code Pro](https://fonts.google.com/specimen/Source+Code+Pro) (7 weights)
The following collections feature **bold** and *italic* variations,
to make the most of colorschemes that use them:
* [Anonymous Pro](https://www.google.com/fonts/specimen/Anonymous+Pro) (serif)
* [Anonymous Pro](https://fonts.google.com/specimen/Anonymous+Pro) (serif)
* [Courier Prime](http://quoteunquoteapps.com/courierprime/) (serif)
* [Cousine](http://www.google.com/fonts/specimen/Cousine)
* [DejaVu Sans Mono](http://dejavu-fonts.org/wiki/Download)
* [Fantasque Sans Mono](http://openfontlibrary.org/en/font/fantasque-sans-mono)
* [Cousine](http://fonts.google.com/specimen/Cousine)
* [Fantasque Sans Mono](https://openfontlibrary.org/en/font/fantasque-sans-mono)
* [Liberation](https://fedorahosted.org/liberation-fonts/)
* [Luxi Mono Regular](http://www.fontsquirrel.com/fonts/Luxi-Mono) (serif)
* [Ubuntu Mono](https://www.google.com/fonts/specimen/Ubuntu+Mono)
* [Luxi Mono Regular](https://www.fontsquirrel.com/fonts/Luxi-Mono) (serif)
* [Ubuntu Mono](https://fonts.google.com/specimen/Ubuntu+Mono)
## See also
If you find this plugin useful, you may want to check out these others by
[@reedes][re]:
If you find this plugin useful, you may want to check out these others
originally by [@reedes][re]:
* [vim-colors-pencil][cp] - color scheme for Vim inspired by IA Writer
* [vim-lexical][lx] - building on Vims spell-check and thesaurus/dictionary completion
* [vim-litecorrect][lc] - lightweight auto-correction for Vim
* [vim-one][vo] - make use of Vims _+clientserver_ capabilities
* [vim-pencil][pn] - rethinking Vim as a tool for writers
* [vim-textobj-quote][qu] - extends Vim to support typographic (curly) quotes
* [vim-textobj-sentence][ts] - improving on Vim's native sentence motion command
* [vim-wheel][wh] - screen-anchored cursor movement for Vim
* [vim-wordy][wo] - uncovering usage problems in writing
* [vim-wordchipper][wc] - power tool for shredding text in Insert mode
[re]: http://github.com/reedes
[cp]: http://github.com/reedes/vim-colors-pencil
[lx]: http://github.com/reedes/vim-lexical
[lc]: http://github.com/reedes/vim-litecorrect
[vo]: http://github.com/reedes/vim-one
[pn]: http://github.com/reedes/vim-pencil
[ts]: http://github.com/reedes/vim-textobj-sentence
[qu]: http://github.com/reedes/vim-textobj-quote
[wh]: http://github.com/reedes/vim-wheel
[wo]: http://github.com/reedes/vim-wordy
[re]: https://github.com/reedes
[cp]: https://github.com/preservim/vim-colors-pencil
[lx]: https://github.com/preservim/vim-lexical
[lc]: https://github.com/preservim/vim-litecorrect
[pn]: https://github.com/preservim/vim-pencil
[ts]: https://github.com/preservim/vim-textobj-sentence
[qu]: https://github.com/preservim/vim-textobj-quote
[wh]: https://github.com/preservim/vim-wheel
[wo]: https://github.com/preservim/vim-wordy
[wc]: https://github.com/preservim/vim-wordchipper
## Future development
If youve spotted a problem or have an idea on improving this plugin,
please post it to the github project issue page. Pull requests are
welcome.
please post it to the [GitHub project issue page][issues].
[issues]: https://github.com/preservim/vim-thematic/issues
<!-- vim: set tw=74 :-->

View File

@@ -0,0 +1,7 @@
function! leaderf#thematic#source(args) abort "{{{
return keys(g:thematic#themes)
endfunction "}}}
function! leaderf#thematic#accept(line, args) abort "{{{
execute 'Thematic ' . a:line
endfunction "}}}

View File

@@ -1,7 +1,7 @@
" ============================================================================
" File: autoload/thematic.vim
" Description: autoload script for vim-thematic plugin
" Maintainer: Reed Esau <github.com/reedes>
" Maintainer: preservim <https://github.com/preservim>
" Last Change: December 30, 2013
" License: The MIT License (MIT)
" ============================================================================
@@ -166,11 +166,13 @@ function! thematic#init(mode) abort
let l:cs = get(l:th, 'colorscheme', l:theme_name)
try
execute 'colorscheme ' . l:cs
doautoall colorscheme
catch /E185:/
" no colorscheme matching the theme name, so fall back to original, if any
if has_key(g:thematic#original, 'colorscheme')
let l:cs = g:thematic#original.colorscheme
execute 'colorscheme ' . l:cs
doautoall colorscheme
endif
endtry

View File

@@ -1,7 +1,7 @@
" ============================================================================
" File: autoload/gui.vim
" Description: autoload script for vim-thematic-gui plugin
" Maintainer: Reed Esau <github.com/reedes>
" Maintainer: preservim <https://github.com/preservim>
" Last Change: December 30, 2013
" License: The MIT License (MIT)
" ============================================================================
@@ -164,7 +164,12 @@ function! thematic#gui#setFont(th) abort
let l:fs = thematic#getThemeValue(a:th, 'font-size', -1)
" TODO support list of typefaces with most desired as first in list
let l:gf = s:composeGuifontString(l:tf, l:fs)
if l:tf == '' || l:fs == '-1'
let l:gf = ''
else
let l:gf = s:composeGuifontString(l:tf, l:fs)
endif
if l:gf != ''
call s:setGuifont(l:gf)
endif

View File

@@ -1,7 +1,7 @@
" ============================================================================
" File: plugin/thematic.vim
" Description: script for vim-thematic plugin
" Maintainer: Reed Esau <github.com/reedes>
" Maintainer: preservim <https://github.com/preservim>
" Last Change: December 30, 2013
" License: The MIT License (MIT)
" ============================================================================
@@ -88,6 +88,23 @@ else
let g:thematic#theme_name = ''
endif
if exists('g:leaderf_loaded')
if !exists('g:Lf_Extensions')
let g:Lf_Extensions = {}
endif
let g:Lf_Extensions.thematic = {
\ 'source': 'leaderf#thematic#source',
\ 'accept': 'leaderf#thematic#accept',
\ 'highlights_def': {
\ 'Lf_hl_thematicTitle': '.*',
\ },
\ 'highlights_cmd': [
\ 'hi link Lf_hl_thematicTitle Title',
\ ],
\ }
endif
let &cpo = s:save_cpo
unlet s:save_cpo
" vim:ts=2:sw=2:sts=2

View File

@@ -1,7 +1,7 @@
" ============================================================================
" File: plugin/gui.vim
" Description: script for vim-thematic-gui plugin
" Maintainer: Reed Esau <github.com/reedes>
" Maintainer: preservim <https://github.com/preservim>
" Last Change: December 30, 2013
" License: The MIT License (MIT)
" ============================================================================