Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/VonHeikemen/midnight-owl.vim
VIM color scheme based on Sarah Drasner's Night Owl VSCode theme
https://github.com/VonHeikemen/midnight-owl.vim
color-scheme vim
Last synced: 4 months ago
JSON representation
VIM color scheme based on Sarah Drasner's Night Owl VSCode theme
- Host: GitHub
- URL: https://github.com/VonHeikemen/midnight-owl.vim
- Owner: VonHeikemen
- License: mit
- Created: 2019-01-21T05:13:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T10:47:50.000Z (over 5 years ago)
- Last Synced: 2024-06-10T01:38:44.894Z (5 months ago)
- Topics: color-scheme, vim
- Language: Vim script
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Based on Sarah Drasner's Night Owl VSCode theme
A theme for the night owls out there. Works well in the daytime, too, but this theme is fine-tuned for those of us who like to code late into the night.
## Getting Started
### Installation
**Using** [vim-plug](https://github.com/junegunn/vim-plug)
```vim
Plug 'VonHeikemen/midnight-owl.vim'
```### Activation
```vim
" For vim > 8
if (has("termguicolors"))
set termguicolors
endif" For Neovim 0.1.3 and 0.1.4
let $NVIM_TUI_ENABLE_TRUE_COLOR=1syntax enable
colorscheme midnight-owl
```## Workarounds
Some plugins don't provide enough information to make a consistent syntax hightlight, this are some workarounds that can be use in some languages.
### PHP
```vim
function! PhpSyntaxOverride()
" Tweak keywords
syn keyword phpLanguageVars this containedin=phpIdentifier
syn keyword phpLanguageVars parent self containedin=phpRegion
syn keyword phpFunctions isset empty
syn keyword phpKeyword public private protected containedin=phpType" New instance match
syn match phpClassReference /\v(new)@<=\s+\w*/ containedin=phpRegion" Function call match
syn match phpFunctionCall /\v\h\w*\ze(\s?\()/
\ containedin=phpRegion,phpIdentifier
" highlight all types of functions
hi! link phpFunctionCall Function
hi! link phpMethod Function
hi! link phpFunction Function" highlight all class references
hi! link phpClasses phpClassReference
hi! link phpStaticClasses phpClassReference
hi! link phpClass phpClassReference
endfunctionaugroup phpSyntaxOverride
autocmd!
autocmd FileType php call PhpSyntaxOverride()
augroup END
```