Compare commits
206 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db77c49401 | ||
|
|
9397423985 | ||
|
|
7c0d0c3c75 | ||
|
|
6ba83ba9ee | ||
|
|
a7ac4c9c39 | ||
|
|
d8c9d32c89 | ||
|
|
3269efdf01 | ||
|
|
a34b4460c2 | ||
|
|
2e7cba347f | ||
|
|
b74e046491 | ||
|
|
ad73cc2ff2 | ||
|
|
35d7a2fb13 | ||
|
|
63f3260378 | ||
|
|
2813f38e02 | ||
|
|
f5465ff5c8 | ||
|
|
b5f0801b1f | ||
|
|
ebb01bdb27 | ||
|
|
68093d36bf | ||
|
|
f78b52ba24 | ||
|
|
aca12fd89b | ||
|
|
739f7998ab | ||
|
|
016188fd8a | ||
|
|
3760bfddc4 | ||
|
|
44a3f3353e | ||
|
|
1f89abf69d | ||
|
|
99c48fe997 | ||
|
|
de1d734379 | ||
|
|
1004b3d970 | ||
|
|
e3a529bc87 | ||
|
|
6574577cac | ||
|
|
1d97db3d98 | ||
|
|
327e6dd822 | ||
|
|
cfa8f9a3f2 | ||
|
|
635f48010d | ||
|
|
75ebd2aab0 | ||
|
|
bfaa24f953 | ||
|
|
882476ad7b | ||
|
|
409510c588 | ||
|
|
00e977cb83 | ||
|
|
b5912e0643 | ||
|
|
368137aa52 | ||
|
|
4aaf3e7f4d | ||
|
|
10db31f949 | ||
|
|
be99042b03 | ||
|
|
71223e2db8 | ||
|
|
89b25585cc | ||
|
|
9e636b9d2e | ||
|
|
fc376e0b1a | ||
|
|
83bd7a9740 | ||
|
|
d28950f954 | ||
|
|
4d97a565ae | ||
|
|
305abc6123 | ||
|
|
e6f13b473c | ||
|
|
5a6ec10cc8 | ||
|
|
968443efb5 | ||
|
|
ddf5312929 | ||
|
|
76381a5b4f | ||
|
|
e0ff3a7de6 | ||
|
|
cfe456543e | ||
|
|
02e8d4e4ff | ||
|
|
bf79a4e48d | ||
|
|
31d9948e3a | ||
|
|
5cb53b7afe | ||
|
|
e2fa213cf5 | ||
|
|
338f1fc0ee | ||
|
|
9bcb9ca9c7 | ||
|
|
30b9a41ad9 | ||
|
|
c7e54efe4d | ||
|
|
0f7a3e1de6 | ||
|
|
c3caa7f788 | ||
|
|
8be36eecdc | ||
|
|
2a585c8501 | ||
|
|
bf82df0dd4 | ||
|
|
4c3d21acaa | ||
|
|
78d52883e1 | ||
|
|
53737b5eee | ||
|
|
971f6825ee | ||
|
|
c9a431c763 | ||
|
|
e8c4a64bff | ||
|
|
7e66778815 | ||
|
|
6d24b4ff69 | ||
|
|
68e64d2c17 | ||
|
|
5b529230f1 | ||
|
|
338bf58eba | ||
|
|
a061f34191 | ||
|
|
9b2edfd3bf | ||
|
|
8a3704723c | ||
|
|
835ee980ee | ||
|
|
aa9729b652 | ||
|
|
bce69d65dd | ||
|
|
37233f6022 | ||
|
|
0ad00a7fd3 | ||
|
|
dafef51b1c | ||
|
|
7e569d09d2 | ||
|
|
8e145b8246 | ||
|
|
5a01caa904 | ||
|
|
93c1573dd2 | ||
|
|
1a56ea8381 | ||
|
|
f79d9dd43f | ||
|
|
2d8ed0203a | ||
|
|
0d534d9cf2 | ||
|
|
3fcccf94e8 | ||
|
|
8a83ffdc43 | ||
|
|
875339b22a | ||
|
|
6dab00aa54 | ||
|
|
b0855f5324 | ||
|
|
b2b3acbf2b | ||
|
|
1755a91851 | ||
|
|
aaadb5b6f7 | ||
|
|
28d032cc68 | ||
|
|
360da40b47 | ||
|
|
e2bd8600b8 | ||
|
|
b1040dc11f | ||
|
|
51f0bfb88a | ||
|
|
4748c4bd64 | ||
|
|
bd3a9d2c94 | ||
|
|
1ff9c44267 | ||
|
|
40c141d333 | ||
|
|
0d03263fd7 | ||
|
|
7ce5b2b590 | ||
|
|
60ae0e7149 | ||
|
|
3c25a8617a | ||
|
|
e5162e76c0 | ||
|
|
7add8d3731 | ||
|
|
3b675c276c | ||
|
|
386c24cd26 | ||
|
|
5a8fad32ea | ||
|
|
9f28eeb694 | ||
|
|
1bdc60eb91 | ||
|
|
b62dc5e782 | ||
|
|
dd41037552 | ||
|
|
b559b302e0 | ||
|
|
395bd1f6d3 | ||
|
|
788c06a249 | ||
|
|
698cb4c8fa | ||
|
|
30ab04e16e | ||
|
|
2e444bbef0 | ||
|
|
98feacedf9 | ||
|
|
de5cf28781 | ||
|
|
4b93674159 | ||
|
|
31ad32a325 | ||
|
|
d881d15984 | ||
|
|
b7a7012555 | ||
|
|
7f8a3b11bf | ||
|
|
9f1983de4e | ||
|
|
3f32a5f160 | ||
|
|
d0b1a09f44 | ||
|
|
39c46b4378 | ||
|
|
de216732d4 | ||
|
|
82444cefa3 | ||
|
|
d0132f4862 | ||
|
|
9af2bc0751 | ||
|
|
a59f2dfd0c | ||
|
|
ead241538c | ||
|
|
a773d84570 | ||
|
|
d98e75e236 | ||
|
|
70c41241c2 | ||
|
|
df6e0e46c5 | ||
|
|
d8f5f76621 | ||
|
|
0f267621c0 | ||
|
|
0abc2871c1 | ||
|
|
57ff52677b | ||
|
|
6ed545e797 | ||
|
|
921bde8880 | ||
|
|
2ac037f54b | ||
|
|
51f0bc31d3 | ||
|
|
53a70289c2 | ||
|
|
0519ce0039 | ||
|
|
194843028e | ||
|
|
b370771bff | ||
|
|
fe978c2b6b | ||
|
|
728a05c4ab | ||
|
|
7c824682d2 | ||
|
|
9830db6305 | ||
|
|
cb747899bd | ||
|
|
8e8dc9b323 | ||
|
|
a91cb98bb3 | ||
|
|
933c2922b5 | ||
|
|
27724251bc | ||
|
|
d899e51120 | ||
|
|
a7583c42cd | ||
|
|
249591057b | ||
|
|
9ff7d717aa | ||
|
|
ac4174e166 | ||
|
|
48a8a83303 | ||
|
|
2bf875f881 | ||
|
|
aa04e1b0be | ||
|
|
3f1cfcb864 | ||
|
|
4649c12123 | ||
|
|
79d599b877 | ||
|
|
c27747e6dd | ||
|
|
8e4b76da1d | ||
|
|
801c3c1dbe | ||
|
|
ef02f16609 | ||
|
|
70d87690a3 | ||
|
|
39be4981cd | ||
|
|
a13e7acba9 | ||
|
|
d88934406c | ||
|
|
5a7b6dc23c | ||
|
|
44433da534 | ||
|
|
ec89223478 | ||
|
|
b3c9077a5b | ||
|
|
cf030578b2 | ||
|
|
009e79c7b7 | ||
|
|
521bf32bb4 | ||
|
|
9b334d5912 |
12
.cirrus.yml
12
.cirrus.yml
@@ -2,11 +2,17 @@ env:
|
||||
CIRRUS_CLONE_DEPTH: 3
|
||||
FEATURES: huge
|
||||
|
||||
freebsd_12_task:
|
||||
freebsd_task:
|
||||
name: FreeBSD
|
||||
matrix:
|
||||
- name: FreeBSD 13.1
|
||||
freebsd_instance:
|
||||
image_family: freebsd-13-1
|
||||
- name: FreeBSD 12.3
|
||||
freebsd_instance:
|
||||
image_family: freebsd-12-3
|
||||
only_if: $CIRRUS_TAG == ''
|
||||
timeout_in: 20m
|
||||
freebsd_instance:
|
||||
image: freebsd-12-3-release-amd64
|
||||
install_script:
|
||||
- pkg update -f
|
||||
- pkg install -y gettext
|
||||
|
||||
@@ -4,3 +4,9 @@ coverage:
|
||||
project:
|
||||
default:
|
||||
threshold: 0.05%
|
||||
|
||||
# Files not run by tests
|
||||
ignore:
|
||||
- "src/dosinst.c"
|
||||
- "src/dosinst.h"
|
||||
- "src/uninstall.c"
|
||||
|
||||
39
.github/CODEOWNERS
vendored
39
.github/CODEOWNERS
vendored
@@ -19,6 +19,25 @@ runtime/autoload/tar.vim @cecamp
|
||||
runtime/autoload/vimball.vim @cecamp
|
||||
runtime/autoload/xmlformat.vim @chrisbra
|
||||
runtime/autoload/zip.vim @cecamp
|
||||
runtime/colors/blue.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/darkblue.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/default.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/delek.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/desert.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/elflord.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/evening.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/industry.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/koehler.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/morning.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/murphy.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/pablo.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/peachpuff.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/ron.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/shine.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/slate.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/tools @habamax @romainl @neutaaaaan
|
||||
runtime/colors/torte.vim @habamax @romainl @neutaaaaan
|
||||
runtime/colors/zellner.vim @habamax @romainl @neutaaaaan
|
||||
runtime/compiler/checkstyle.vim @dkearns
|
||||
runtime/compiler/cm3.vim @dkearns
|
||||
runtime/compiler/cucumber.vim @tpope
|
||||
@@ -78,6 +97,7 @@ runtime/ftplugin/clojure.vim @axvr
|
||||
runtime/ftplugin/csh.vim @dkearns
|
||||
runtime/ftplugin/css.vim @dkearns
|
||||
runtime/ftplugin/cucumber.vim @tpope
|
||||
runtime/ftplugin/dosbatch.vim @mrdubya
|
||||
runtime/ftplugin/eiffel.vim @dkearns
|
||||
runtime/ftplugin/eruby.vim @tpope @dkearns
|
||||
runtime/ftplugin/fpcmake.vim @dkearns
|
||||
@@ -110,6 +130,7 @@ runtime/ftplugin/octave.vim @dkearns
|
||||
runtime/ftplugin/pascal.vim @dkearns
|
||||
runtime/ftplugin/pbtxt.vim @lakshayg
|
||||
runtime/ftplugin/pdf.vim @tpope
|
||||
runtime/ftplugin/postscr.vim @mrdubya
|
||||
runtime/ftplugin/ps1.vim @heaths
|
||||
runtime/ftplugin/ps1xml.vim @heaths
|
||||
runtime/ftplugin/qb64.vim @dkearns
|
||||
@@ -126,6 +147,8 @@ runtime/ftplugin/tmux.vim @ericpruitt
|
||||
runtime/ftplugin/toml.vim @averms
|
||||
runtime/ftplugin/typescript.vim @dkearns
|
||||
runtime/ftplugin/typescriptreact.vim @dkearns
|
||||
runtime/ftplugin/wget.vim @dkearns
|
||||
runtime/ftplugin/wget2.vim @dkearns
|
||||
runtime/ftplugin/xml.vim @chrisbra
|
||||
runtime/ftplugin/zsh.vim @chrisbra
|
||||
runtime/indent/basic.vim @dkearns
|
||||
@@ -155,7 +178,7 @@ runtime/indent/mma.vim @dkearns
|
||||
runtime/indent/nginx.vim @chr4
|
||||
runtime/indent/nsis.vim @k-takata
|
||||
runtime/indent/occam.vim @dkearns
|
||||
runtime/indent/postscr.vim @dkearns
|
||||
runtime/indent/postscr.vim @mrdubya
|
||||
runtime/indent/prolog.vim @dkearns
|
||||
runtime/indent/ps1.vim @heaths
|
||||
runtime/indent/qb64.vim @dkearns
|
||||
@@ -171,6 +194,7 @@ runtime/indent/teraterm.vim @k-takata
|
||||
runtime/indent/xml.vim @chrisbra
|
||||
runtime/indent/zsh.vim @chrisbra
|
||||
runtime/keymap/tamil_tscii.vim @yegappan
|
||||
runtime/lang/menu_en_gb.latin1.vim @mrdubya
|
||||
runtime/pack/dist/opt/cfilter/plugin/cfilter.vim @yegappan
|
||||
runtime/pack/dist/opt/matchit/ @chrisbra
|
||||
runtime/plugin/getscriptPlugin.vim @cecamp
|
||||
@@ -198,6 +222,7 @@ runtime/syntax/cucumber.vim @tpope
|
||||
runtime/syntax/datascript.vim @dpelle
|
||||
runtime/syntax/dcl.vim @cecamp
|
||||
runtime/syntax/desktop.vim @e-kwsm
|
||||
runtime/syntax/dosbatch.vim @mrdubya
|
||||
runtime/syntax/dot.vim @mmottl
|
||||
runtime/syntax/doxygen.vim @frogonwheels
|
||||
runtime/syntax/dtd.vim @chrisbra
|
||||
@@ -239,6 +264,7 @@ runtime/syntax/pascal.vim @dkearns
|
||||
runtime/syntax/pbtxt.vim @lakshayg
|
||||
runtime/syntax/pdf.vim @tpope
|
||||
runtime/syntax/php.vim @TysonAndre
|
||||
runtime/syntax/postscr.vim @mrdubya
|
||||
runtime/syntax/privoxy.vim @dkearns
|
||||
runtime/syntax/prolog.vim @XVilka
|
||||
runtime/syntax/ps1.vim @heaths
|
||||
@@ -246,6 +272,7 @@ runtime/syntax/ps1xml.vim @heaths
|
||||
runtime/syntax/psl.vim @danielkho
|
||||
runtime/syntax/qb64.vim @dkearns
|
||||
runtime/syntax/rc.vim @chrisbra
|
||||
runtime/syntax/rebol.vim @mrdubya
|
||||
runtime/syntax/routeros.vim @zainin
|
||||
runtime/syntax/rpcgen.vim @cecamp
|
||||
runtime/syntax/ruby.vim @dkearns
|
||||
@@ -268,6 +295,7 @@ runtime/syntax/tmux.vim @ericpruitt
|
||||
runtime/syntax/toml.vim @averms
|
||||
runtime/syntax/vim.vim @cecamp
|
||||
runtime/syntax/wget.vim @dkearns
|
||||
runtime/syntax/wget2.vim @dkearns
|
||||
runtime/syntax/xbl.vim @dkearns
|
||||
runtime/syntax/xmath.vim @cecamp
|
||||
runtime/syntax/xml.vim @chrisbra
|
||||
@@ -281,7 +309,16 @@ runtime/tutor/tutor.fr @dpelle
|
||||
runtime/tutor/tutor.fr.utf-8 @dpelle
|
||||
src/iscygpty.* @k-takata
|
||||
src/libvterm/ @leonerd
|
||||
src/po/ca.po @nfdisco
|
||||
src/po/de.po @chrisbra
|
||||
src/po/eo.po @dpelle
|
||||
src/po/es.po @victorhck
|
||||
src/po/fi.po @flammie
|
||||
src/po/fr.po @dpelle
|
||||
src/po/ga.po @kscanne
|
||||
src/po/it.po @azc100
|
||||
src/po/ja.po @k-takata
|
||||
src/po/sr.po @eevan78
|
||||
src/po/tr.po @bitigchi
|
||||
src/po/uk.po @sakhnik
|
||||
src/xxd/ @jnweiger
|
||||
|
||||
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -61,7 +61,8 @@ jobs:
|
||||
extra: vimtags
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout repository from github
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install packages
|
||||
run: |
|
||||
@@ -295,7 +296,8 @@ jobs:
|
||||
features: [tiny, normal, huge]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout repository from github
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install packages
|
||||
if: matrix.features == 'huge'
|
||||
@@ -432,7 +434,8 @@ jobs:
|
||||
msystem: ${{ matrix.msystem }}
|
||||
release: false
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout repository from github
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Create a list of download URLs
|
||||
shell: cmd
|
||||
|
||||
10
.github/workflows/codeql-analysis.yml
vendored
10
.github/workflows/codeql-analysis.yml
vendored
@@ -36,12 +36,12 @@ jobs:
|
||||
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Checkout repository from github
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
@@ -52,7 +52,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
@@ -66,4 +66,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
uses: github/codeql-action/analyze@v2
|
||||
|
||||
3
.github/workflows/coverity.yml
vendored
3
.github/workflows/coverity.yml
vendored
@@ -13,7 +13,8 @@ jobs:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout repository from github
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Download Coverity
|
||||
run: |
|
||||
|
||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -8,7 +8,6 @@ src/auto/gui_gtk_gresources.h
|
||||
src/auto/os_haiku.rdef
|
||||
src/objects/.dirstamp
|
||||
src/objects
|
||||
src/tags
|
||||
src/types.vim
|
||||
|
||||
# We do need src/auto/configure.
|
||||
@@ -62,6 +61,11 @@ src/xxd/xxd.dSYM
|
||||
*.pyc
|
||||
*.log
|
||||
src/po/vim.pot
|
||||
src/tags
|
||||
/tags
|
||||
/GPATH
|
||||
/GTAGS
|
||||
/GRTAGS
|
||||
|
||||
# Generated by "make test"
|
||||
src/po/*.ck
|
||||
@@ -86,7 +90,6 @@ src/message_test
|
||||
src/kword_test
|
||||
|
||||
# Generated by "make install"
|
||||
runtime/doc/tags
|
||||
runtime/doc/doctags
|
||||
|
||||
# Generated by "make shadow". The directory names could be anything but we
|
||||
|
||||
1
Filelist
1
Filelist
@@ -722,6 +722,7 @@ RT_ALL = \
|
||||
runtime/doc/xxd.1 \
|
||||
runtime/ftoff.vim \
|
||||
runtime/gvimrc_example.vim \
|
||||
runtime/import/dist/vimhelp.vim \
|
||||
runtime/macros/README.txt \
|
||||
runtime/macros/editexisting.vim \
|
||||
runtime/macros/hanoi/click.me \
|
||||
|
||||
@@ -403,6 +403,9 @@ Section "$(str_section_exe)" id_section_exe
|
||||
SetOutPath $0\autoload\xml
|
||||
File ${VIMRT}\autoload\xml\*.*
|
||||
|
||||
SetOutPath $0\import\dist
|
||||
File ${VIMRT}\import\dist\*.*
|
||||
|
||||
SetOutPath $0\bitmaps
|
||||
File ${VIMSRC}\vim.ico
|
||||
|
||||
@@ -1044,6 +1047,7 @@ Section "un.$(str_unsection_exe)" id_unsection_exe
|
||||
RMDir /r $0\compiler
|
||||
RMDir /r $0\doc
|
||||
RMDir /r $0\ftplugin
|
||||
RMDir /r $0\import
|
||||
RMDir /r $0\indent
|
||||
RMDir /r $0\macros
|
||||
RMDir /r $0\pack
|
||||
|
||||
@@ -1,21 +1,27 @@
|
||||
README.txt for color scheme files
|
||||
|
||||
These files are used for the ":colorscheme" command. They appear in the
|
||||
Edit/Color Scheme menu in the GUI.
|
||||
These files are used for the `:colorscheme` command. They appear in the
|
||||
"Edit/Color Scheme" menu in the GUI.
|
||||
|
||||
The colorschemes were updated for the Vim 9 release. If you don't like the
|
||||
changes you can find the old ones here:
|
||||
https://github.com/vim/colorschemes/tree/master/legacy_colors
|
||||
|
||||
|
||||
Hints for writing a color scheme file:
|
||||
|
||||
There are two basic ways to define a color scheme:
|
||||
|
||||
1. Define a new Normal color and set the 'background' option accordingly.
|
||||
1. Define a new Normal color and set the 'background' option accordingly. >
|
||||
|
||||
set background={light or dark}
|
||||
highlight clear
|
||||
highlight Normal ...
|
||||
...
|
||||
|
||||
2. Use the default Normal color and automatically adjust to the value of
|
||||
'background'.
|
||||
'background'. >
|
||||
|
||||
highlight clear Normal
|
||||
set background&
|
||||
highlight clear
|
||||
@@ -27,25 +33,28 @@ There are two basic ways to define a color scheme:
|
||||
...
|
||||
endif
|
||||
|
||||
You can use ":highlight clear" to reset everything to the defaults, and then
|
||||
change the groups that you want differently. This also will work for groups
|
||||
You can use `:highlight clear` to reset everything to the defaults, and then
|
||||
change the groups that you want differently. This will also work for groups
|
||||
that are added in later versions of Vim.
|
||||
Note that ":highlight clear" uses the value of 'background', thus set it
|
||||
Note that `:highlight clear` uses the value of 'background', thus set it
|
||||
before this command.
|
||||
Some attributes (e.g., bold) might be set in the defaults that you want
|
||||
removed in your color scheme. Use something like "gui=NONE" to remove the
|
||||
attributes.
|
||||
|
||||
In case you want to set 'background' depending on the colorscheme selected,
|
||||
this autocmd might be useful:
|
||||
this autocmd might be useful: >
|
||||
|
||||
autocmd SourcePre */colors/blue_sky.vim set background=dark
|
||||
|
||||
Replace "blue_sky" with the name of the colorscheme.
|
||||
|
||||
In case you want to tweak a colorscheme after it was loaded, check out the
|
||||
ColorScheme autocommand event.
|
||||
|
||||
To clean up just before loading another colorscheme, use the ColorSchemePre
|
||||
autocommand event. For example:
|
||||
autocommand event. For example: >
|
||||
|
||||
let g:term_ansi_colors = ...
|
||||
augroup MyColorscheme
|
||||
au!
|
||||
@@ -54,20 +63,22 @@ autocommand event. For example:
|
||||
augroup END
|
||||
|
||||
To customize a colorscheme use another name, e.g. "~/.vim/colors/mine.vim",
|
||||
and use `:runtime` to load the original colorscheme:
|
||||
and use ":runtime" to load the original colorscheme: >
|
||||
|
||||
" load the "evening" colorscheme
|
||||
runtime colors/evening.vim
|
||||
" change the color of statements
|
||||
hi Statement ctermfg=Blue guifg=Blue
|
||||
|
||||
To see which highlight group is used where, find the help for
|
||||
"highlight-groups" and "group-name".
|
||||
To see which highlight group is used where, see `:help highlight-groups` and
|
||||
`:help group-name` .
|
||||
|
||||
You can use ":highlight" to find out the current colors. Exception: the
|
||||
ctermfg and ctermbg values are numbers, which are only valid for the current
|
||||
terminal. Use the color names instead. See ":help cterm-colors".
|
||||
terminal. Use the color names instead for better portability. See
|
||||
`:help cterm-colors` .
|
||||
|
||||
The default color settings can be found in the source file src/highlight.c.
|
||||
The default color settings can be found in the source file src/syntax.c.
|
||||
Search for "highlight_init".
|
||||
|
||||
If you think you have a color scheme that is good enough to be used by others,
|
||||
@@ -75,17 +86,60 @@ please check the following items:
|
||||
|
||||
- Source the $VIMRUNTIME/colors/tools/check_colors.vim script to check for
|
||||
common mistakes.
|
||||
- Does it work in a color terminal as well as in the GUI?
|
||||
|
||||
- Does it work in a color terminal as well as in the GUI? Is it consistent?
|
||||
|
||||
- Is "g:colors_name" set to a meaningful value? In case of doubt you can do
|
||||
it this way:
|
||||
it this way: >
|
||||
|
||||
let g:colors_name = expand('<sfile>:t:r')
|
||||
|
||||
- Is 'background' either used or appropriately set to "light" or "dark"?
|
||||
|
||||
- Try setting 'hlsearch' and searching for a pattern, is the match easy to
|
||||
spot?
|
||||
|
||||
- Split a window with ":split" and ":vsplit". Are the status lines and
|
||||
vertical separators clearly visible?
|
||||
|
||||
- In the GUI, is it easy to find the cursor, also in a file with lots of
|
||||
syntax highlighting?
|
||||
|
||||
- In general, test your color scheme against as many filetypes, Vim features,
|
||||
environments, etc. as possible.
|
||||
|
||||
- Do not use hard coded escape sequences, these will not work in other
|
||||
terminals. Always use color names or #RRGGBB for the GUI. See v:colornames
|
||||
for details on how to define your own color names.
|
||||
terminals. Always use #RRGGBB for the GUI.
|
||||
|
||||
- When targetting 8-16 colors terminals, don't count on "darkblue" to be blue
|
||||
and dark, or on "2" to be even vaguely reddish. Names are more portable
|
||||
than numbers, though.
|
||||
|
||||
- When targetting 256 colors terminals, prefer colors 16-255 to colors 0-15
|
||||
for the same reason.
|
||||
|
||||
- Typographic attributes (bold, italic, underline, reverse, etc.) are not
|
||||
universally supported. Don't count on any of them.
|
||||
|
||||
- Is "g:terminal_ansi_colors" set to a list of 16 #RRGGBB values?
|
||||
|
||||
- Try to keep your color scheme simple by avoiding unnecessary logic and
|
||||
refraining from adding options. The best color scheme is one that only
|
||||
requires: >
|
||||
|
||||
colorscheme foobar
|
||||
|
||||
The color schemes distributed with Vim are built with lifepillar/colortemplate
|
||||
(https://github.com/lifepillar/vim-colortemplate). It is therefore highly
|
||||
recommended.
|
||||
|
||||
If you would like your color scheme to be distributed with Vim, make sure
|
||||
that:
|
||||
|
||||
- it satisfies the guidelines above,
|
||||
- it was made with colortemplate,
|
||||
|
||||
and join us at vim/colorschemes: (https://github.com/vim/colorschemes).
|
||||
|
||||
|
||||
vim: set ft=help :
|
||||
|
||||
@@ -1,55 +1,447 @@
|
||||
" local syntax file - set colors on a per-machine basis:
|
||||
" vim: tw=0 ts=4 sw=4
|
||||
" Vim color file
|
||||
" Maintainer: Steven Vertigan <steven@vertigan.wattle.id.au>
|
||||
" Last Change: 2006 Sep 23
|
||||
" Revision #5: Switch main text from white to yellow for easier contrast,
|
||||
" fixed some problems with terminal backgrounds.
|
||||
" Name: blue
|
||||
" Description: Colorscheme with a blue background
|
||||
" Author: Original author Steven Vertigan <steven@vertigan.wattle.id.au>
|
||||
" Maintainer: Original maintainer Steven Vertigan <steven@vertigan.wattle.id.au>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:33 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=dark
|
||||
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
let g:colors_name = 'blue'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#000000', '#870000', '#006400', '#878700', '#000087', '#870087', '#008787', '#bcbcbc', '#878787', '#d70000', '#00ff00', '#ffdf00', '#5fafff', '#d787d7', '#5fffff', '#ffffff']
|
||||
endif
|
||||
let g:colors_name = "blue"
|
||||
hi Normal guifg=yellow guibg=darkBlue ctermfg=yellow ctermbg=darkBlue
|
||||
hi NonText guifg=magenta ctermfg=lightMagenta
|
||||
hi comment guifg=gray ctermfg=gray ctermbg=darkBlue gui=bold
|
||||
hi constant guifg=cyan ctermfg=cyan
|
||||
hi identifier guifg=gray ctermfg=red
|
||||
hi statement guifg=white ctermfg=white ctermbg=darkBlue gui=none
|
||||
hi preproc guifg=green ctermfg=green
|
||||
hi type guifg=orange ctermfg=lightRed ctermbg=darkBlue
|
||||
hi special guifg=magenta ctermfg=lightMagenta ctermbg=darkBlue
|
||||
hi Underlined guifg=cyan ctermfg=cyan gui=underline cterm=underline
|
||||
hi label guifg=yellow ctermfg=yellow
|
||||
hi operator guifg=orange gui=bold ctermfg=lightRed ctermbg=darkBlue
|
||||
hi Normal guifg=#ffdf00 guibg=#000087 gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#005faf gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#ffffff guibg=#008787 gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#008787 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#d787d7 gui=NONE cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#870087 gui=NONE cterm=NONE
|
||||
hi Conceal guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Cursor guifg=#000000 guibg=#00ff00 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#005faf gui=NONE cterm=NONE
|
||||
hi CursorIM guifg=NONE guibg=fg gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#ffdf00 guibg=#005faf gui=bold cterm=NONE
|
||||
hi EndOfBuffer guifg=#ffdf00 guibg=#000087 gui=NONE cterm=NONE
|
||||
hi Error guifg=#ff7f50 guibg=#000087 gui=reverse cterm=reverse
|
||||
hi ErrorMsg guifg=#ffffff guibg=#d70000 gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#008787 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Folded guifg=#000087 guibg=#878700 gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#d787d7 guibg=#000000 gui=standout cterm=reverse
|
||||
hi LineNr guifg=#5fffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=NONE guibg=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi ModeMsg guifg=#000087 guibg=#00ff00 gui=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#5fffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi NonText guifg=#d787d7 guibg=NONE gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi Question guifg=#00ff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Search guifg=#ffdf00 guibg=#000000 gui=reverse cterm=reverse
|
||||
hi SignColumn guifg=#008787 guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#5fffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#d70000 guibg=NONE guisp=#d70000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#00ff00 guibg=NONE guisp=#00ff00 gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#ffffff guibg=NONE guisp=#ffffff gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#d787d7 guibg=NONE guisp=#d787d7 gui=undercurl cterm=underline
|
||||
hi StatusLine guifg=#000087 guibg=#5fffff gui=NONE cterm=NONE
|
||||
hi StatusLineNC guifg=#000087 guibg=#008787 gui=NONE cterm=NONE
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link TabLine StatusLineNC
|
||||
hi! link TabLineFill StatusLineNC
|
||||
hi! link TabLineSel StatusLine
|
||||
hi ToolbarButton guifg=#ffffff guibg=#005faf gui=NONE cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi VertSplit guifg=#008787 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Visual guifg=#ffffff guibg=#008787 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=#008787 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi WarningMsg guifg=#d70000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi WildMenu guifg=#000087 guibg=#ffdf00 gui=NONE cterm=NONE
|
||||
hi debugBreakpoint guifg=#00ff00 guibg=#000087 gui=reverse cterm=reverse
|
||||
hi debugPC guifg=#5fffff guibg=#000087 gui=reverse cterm=reverse
|
||||
hi! link Terminal Normal
|
||||
hi! link Debug Special
|
||||
hi! link diffAdded String
|
||||
hi! link diffRemoved WarningMsg
|
||||
hi! link diffOnly WarningMsg
|
||||
hi! link diffNoEOL WarningMsg
|
||||
hi! link diffIsA WarningMsg
|
||||
hi! link diffIdentical WarningMsg
|
||||
hi! link diffDiffer WarningMsg
|
||||
hi! link diffCommon WarningMsg
|
||||
hi! link diffBDiffer WarningMsg
|
||||
hi! link lCursor Cursor
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Directory guifg=#5fffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Title guifg=#d787d7 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Comment guifg=#878787 guibg=NONE gui=bold cterm=NONE
|
||||
hi Constant guifg=#5fffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#bcbcbc guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=#878787 guibg=NONE gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#00ff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#d787d7 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#ffffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Todo guifg=NONE guibg=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi Type guifg=#ffa500 guibg=NONE gui=bold cterm=NONE
|
||||
hi Underlined guifg=NONE guibg=NONE gui=underline ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi Label guifg=#ffdf00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Constant
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link Operator Type
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi! link Terminal Normal
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
hi ErrorMsg guifg=orange guibg=darkBlue ctermfg=lightRed
|
||||
hi WarningMsg guifg=cyan guibg=darkBlue ctermfg=cyan gui=bold
|
||||
hi ModeMsg guifg=yellow gui=NONE ctermfg=yellow
|
||||
hi MoreMsg guifg=yellow gui=NONE ctermfg=yellow
|
||||
hi Error guifg=red guibg=darkBlue gui=underline ctermfg=red
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=220 ctermbg=18 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=25 cterm=NONE
|
||||
hi Pmenu ctermfg=231 ctermbg=30 cterm=NONE
|
||||
hi PmenuSel ctermfg=30 ctermbg=231 cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=176 cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=90 cterm=NONE
|
||||
hi Conceal ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Cursor ctermfg=16 ctermbg=46 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=25 cterm=NONE
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi CursorLineNr ctermfg=220 ctermbg=25 cterm=NONE
|
||||
hi EndOfBuffer ctermfg=220 ctermbg=18 cterm=NONE
|
||||
hi Error ctermfg=209 ctermbg=18 cterm=reverse
|
||||
hi ErrorMsg ctermfg=231 ctermbg=160 cterm=NONE
|
||||
hi FoldColumn ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=18 ctermbg=100 cterm=NONE
|
||||
hi IncSearch ctermfg=176 ctermbg=16 cterm=reverse
|
||||
hi LineNr ctermfg=87 ctermbg=NONE cterm=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi ModeMsg ctermfg=18 ctermbg=46 cterm=NONE
|
||||
hi MoreMsg ctermfg=87 ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=176 ctermbg=NONE cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=231 cterm=NONE
|
||||
hi Question ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=220 ctermbg=16 cterm=reverse
|
||||
hi SignColumn ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=87 ctermbg=NONE cterm=NONE
|
||||
hi SpellBad ctermfg=160 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=46 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=231 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=176 ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=18 ctermbg=87 cterm=NONE
|
||||
hi StatusLineNC ctermfg=18 ctermbg=30 cterm=NONE
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link TabLine StatusLineNC
|
||||
hi! link TabLineFill StatusLineNC
|
||||
hi! link TabLineSel StatusLine
|
||||
hi ToolbarButton ctermfg=231 ctermbg=25 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi VertSplit ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=231 ctermbg=30 cterm=NONE
|
||||
hi VisualNOS ctermfg=30 ctermbg=231 cterm=NONE
|
||||
hi WarningMsg ctermfg=160 ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=18 ctermbg=220 cterm=NONE
|
||||
hi debugBreakpoint ctermfg=46 ctermbg=18 cterm=reverse
|
||||
hi debugPC ctermfg=87 ctermbg=18 cterm=reverse
|
||||
hi! link Terminal Normal
|
||||
hi! link Debug Special
|
||||
hi! link diffAdded String
|
||||
hi! link diffRemoved WarningMsg
|
||||
hi! link diffOnly WarningMsg
|
||||
hi! link diffNoEOL WarningMsg
|
||||
hi! link diffIsA WarningMsg
|
||||
hi! link diffIdentical WarningMsg
|
||||
hi! link diffDiffer WarningMsg
|
||||
hi! link diffCommon WarningMsg
|
||||
hi! link diffBDiffer WarningMsg
|
||||
hi! link lCursor Cursor
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Directory ctermfg=87 ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=176 ctermbg=NONE cterm=NONE
|
||||
hi Comment ctermfg=102 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=87 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=250 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=102 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=176 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=231 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi Type ctermfg=214 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi Label ctermfg=220 ctermbg=NONE cterm=NONE
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Constant
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link Operator Type
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi! link Terminal Normal
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
hi Todo guifg=black guibg=orange ctermfg=black ctermbg=darkYellow
|
||||
hi Cursor guifg=black guibg=white ctermfg=black ctermbg=white
|
||||
hi Search guifg=black guibg=orange ctermfg=black ctermbg=darkYellow
|
||||
hi IncSearch guifg=black guibg=yellow ctermfg=black ctermbg=darkYellow
|
||||
hi LineNr guifg=cyan ctermfg=cyan
|
||||
hi title guifg=white gui=bold cterm=bold
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=yellow ctermbg=darkblue cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi Pmenu ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=white cterm=NONE
|
||||
hi QuickFixLine ctermfg=black ctermbg=magenta cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=darkmagenta cterm=NONE
|
||||
hi Conceal ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Cursor ctermfg=black ctermbg=green cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=blue cterm=NONE
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=blue cterm=NONE
|
||||
hi EndOfBuffer ctermfg=yellow ctermbg=darkblue cterm=NONE
|
||||
hi Error ctermfg=red ctermbg=darkblue cterm=reverse
|
||||
hi ErrorMsg ctermfg=white ctermbg=red cterm=NONE
|
||||
hi FoldColumn ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=darkblue ctermbg=darkyellow cterm=NONE
|
||||
hi IncSearch ctermfg=magenta ctermbg=black cterm=reverse
|
||||
hi LineNr ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi ModeMsg ctermfg=darkblue ctermbg=green cterm=NONE
|
||||
hi MoreMsg ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi Question ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=yellow ctermbg=black cterm=reverse
|
||||
hi SignColumn ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=green ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=white ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=magenta ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=darkblue ctermbg=cyan cterm=NONE
|
||||
hi StatusLineNC ctermfg=darkblue ctermbg=darkcyan cterm=NONE
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link TabLine StatusLineNC
|
||||
hi! link TabLineFill StatusLineNC
|
||||
hi! link TabLineSel StatusLine
|
||||
hi ToolbarButton ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi VertSplit ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=white ctermbg=darkcyan cterm=NONE
|
||||
hi VisualNOS ctermfg=darkcyan ctermbg=white cterm=NONE
|
||||
hi WarningMsg ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=darkblue ctermbg=yellow cterm=NONE
|
||||
hi debugBreakpoint ctermfg=green ctermbg=darkblue cterm=reverse
|
||||
hi debugPC ctermfg=cyan ctermbg=darkblue cterm=reverse
|
||||
hi! link Terminal Normal
|
||||
hi! link Debug Special
|
||||
hi! link diffAdded String
|
||||
hi! link diffRemoved WarningMsg
|
||||
hi! link diffOnly WarningMsg
|
||||
hi! link diffNoEOL WarningMsg
|
||||
hi! link diffIsA WarningMsg
|
||||
hi! link diffIdentical WarningMsg
|
||||
hi! link diffDiffer WarningMsg
|
||||
hi! link diffCommon WarningMsg
|
||||
hi! link diffBDiffer WarningMsg
|
||||
hi! link lCursor Cursor
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Directory ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Comment ctermfg=darkgray ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=gray ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=darkgray ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=white ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi Type ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi Label ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Constant
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link Operator Type
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi! link Terminal Normal
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
hi StatusLineNC gui=NONE guifg=black guibg=blue ctermfg=black ctermbg=blue
|
||||
hi StatusLine gui=bold guifg=cyan guibg=blue ctermfg=cyan ctermbg=blue
|
||||
hi VertSplit gui=none guifg=blue guibg=blue ctermfg=blue ctermbg=blue
|
||||
|
||||
hi Visual term=reverse ctermfg=black ctermbg=darkCyan guifg=black guibg=darkCyan
|
||||
|
||||
hi DiffChange guibg=darkGreen guifg=black ctermbg=darkGreen ctermfg=black
|
||||
hi DiffText guibg=olivedrab guifg=black ctermbg=lightGreen ctermfg=black
|
||||
hi DiffAdd guibg=slateblue guifg=black ctermbg=blue ctermfg=black
|
||||
hi DiffDelete guibg=coral guifg=black ctermbg=cyan ctermfg=black
|
||||
|
||||
hi Folded guibg=orange guifg=black ctermbg=yellow ctermfg=black
|
||||
hi FoldColumn guibg=gray30 guifg=black ctermbg=gray ctermfg=black
|
||||
hi cIf0 guifg=gray ctermfg=gray
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: dark
|
||||
" Color: black #000000 16 black
|
||||
" Color: darkred #870000 88 darkred
|
||||
" Color: darkyellow #878700 100 darkyellow
|
||||
" Color: darkblue #000087 18 darkblue
|
||||
" Color: darkmagenta #870087 90 darkmagenta
|
||||
" Color: darkcyan #008787 30 darkcyan
|
||||
" Color: gray #bcbcbc 250 gray
|
||||
" Color: comment #878787 102 darkgray
|
||||
" Color: darkgray #878787 102 darkgray
|
||||
" Color: red #d70000 160 red
|
||||
" Color: green #00ff00 46 green
|
||||
" Color: yellow #ffdf00 220 yellow
|
||||
" Color: blue #005faf 25 blue
|
||||
" Color: magenta #d787d7 176 magenta
|
||||
" Color: cyan #5fffff 87 cyan
|
||||
" Color: white #ffffff 231 white
|
||||
" Color: xtermblue #5fafff 75 blue
|
||||
" Color: xtermdarkblue #0087af 31 darkblue
|
||||
" Color: orange #ffa500 214 darkyellow
|
||||
" Color: darkgreen #006400 22 darkgreen
|
||||
" Color: coral #ff7f50 209 red
|
||||
" Color: olivedrab #6b8e23 64 green
|
||||
" Color: slateblue #6a5acd 62 darkmagenta
|
||||
" Term colors: black darkred darkgreen darkyellow darkblue darkmagenta darkcyan gray
|
||||
" Term colors: darkgray red green yellow xtermblue magenta cyan white
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,66 +1,469 @@
|
||||
" Vim color file
|
||||
" Maintainer: Bohdan Vlasyuk <bohdan@vstu.edu.ua>
|
||||
" Last Change: 2008 Jul 18
|
||||
" Name: darkblue
|
||||
" Description: For those who prefer dark background
|
||||
" Author: Original author Bohdan Vlasyuk <bohdan@vstu.edu.ua>
|
||||
" Maintainer: Original author Bohdan Vlasyuk <bohdan@vstu.edu.ua>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:33 2022
|
||||
|
||||
" darkblue -- for those who prefer dark background
|
||||
" [note: looks bit uglier with come terminal palettes,
|
||||
" but is fine on default linux console palette.]
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=dark
|
||||
|
||||
set bg=dark
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
let g:colors_name = 'darkblue'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#000000', '#8b0000', '#90f020', '#ffa500', '#00008b', '#8b008b', '#008b8b', '#c0c0c0', '#808080', '#ffa0a0', '#90f020', '#ffff60', '#0030ff', '#ff00ff', '#90fff0', '#ffffff']
|
||||
endif
|
||||
hi Normal guifg=#c0c0c0 guibg=#000040 gui=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi Conceal guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ColorColumn guifg=#c0c0c0 guibg=#8b0000 gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#000000 guibg=#ffff60 gui=NONE cterm=NONE
|
||||
hi! link CursorColumn CursorLine
|
||||
hi! link CursorIM Cursor
|
||||
hi CursorLine guifg=NONE guibg=#666666 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#ffff60 guibg=#666666 gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#ff80ff gui=NONE cterm=NONE
|
||||
hi DiffAdd guifg=NONE guibg=#0030ff gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=NONE guibg=#404080 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#000040 guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi DiffText guifg=NONE guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi! link EndOfBuffer NonText
|
||||
hi Error guifg=#ffa0a0 guibg=NONE gui=reverse cterm=reverse
|
||||
hi! link ErrorMsg Error
|
||||
hi FoldColumn guifg=#808080 guibg=NONE gui=bold cterm=NONE
|
||||
hi Folded guifg=#808080 guibg=NONE gui=bold cterm=NONE
|
||||
hi IncSearch guifg=#ffffff guibg=#0030ff gui=reverse cterm=reverse
|
||||
hi LineNr guifg=#90f020 guibg=NONE gui=NONE cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi MatchParen guifg=NONE guibg=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi ModeMsg guifg=#90fff0 guibg=NONE gui=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#006400 guibg=NONE gui=NONE cterm=NONE
|
||||
hi NonText guifg=#0030ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#ffffff guibg=#0030ff gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#0030ff guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi Question guifg=#90f020 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Search guifg=#90fff0 guibg=#0030ff gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=#808080 guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#008b8b guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#90f020 guibg=NONE guisp=#90f020 gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#90fff0 guibg=NONE guisp=#90fff0 gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#ff00ff guibg=NONE guisp=#ff00ff gui=undercurl cterm=underline
|
||||
hi StatusLine guifg=#000040 guibg=#c0c0c0 gui=NONE cterm=NONE
|
||||
hi StatusLineNC guifg=#000000 guibg=#808080 gui=NONE cterm=NONE
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi TabLine guifg=#000000 guibg=#808080 gui=NONE cterm=NONE
|
||||
hi! link TabLineFill TabLine
|
||||
hi TabLineSel guifg=#000040 guibg=#c0c0c0 gui=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#ffffff guibg=#0030ff gui=NONE cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi VertSplit guifg=#000000 guibg=#808080 gui=NONE cterm=NONE
|
||||
hi Visual guifg=#8080ff guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi VisualNOS guifg=#8080ff guibg=#c0c0c0 gui=reverse,underline cterm=reverse,underline
|
||||
hi WarningMsg guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi WildMenu guifg=#ffff60 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi debugBreakpoint guifg=#90f020 guibg=#00008b gui=reverse cterm=reverse
|
||||
hi debugPC guifg=#90fff0 guibg=#00008b gui=reverse cterm=reverse
|
||||
hi! link Terminal Normal
|
||||
hi! link Debug Special
|
||||
hi! link diffAdded String
|
||||
hi! link diffRemoved WarningMsg
|
||||
hi! link diffOnly WarningMsg
|
||||
hi! link diffNoEOL WarningMsg
|
||||
hi! link diffIsA WarningMsg
|
||||
hi! link diffIdentical WarningMsg
|
||||
hi! link diffDiffer WarningMsg
|
||||
hi! link diffCommon WarningMsg
|
||||
hi! link diffBDiffer WarningMsg
|
||||
hi! link lCursor Cursor
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Directory guifg=#008b8b guibg=NONE gui=NONE cterm=NONE
|
||||
hi Title guifg=#ff00ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Comment guifg=#80a0ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#ffa0a0 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#90fff0 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=#000040 guibg=#c0c0c0 gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#ff80ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#ffa500 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#ffff60 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Todo guifg=NONE guibg=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi Type guifg=#90f020 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Underlined guifg=#80a0ff guibg=NONE gui=underline cterm=underline
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Constant
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Label Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link Operator Statement
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=252 ctermbg=17 cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi Conceal ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ColorColumn ctermfg=252 ctermbg=88 cterm=NONE
|
||||
hi Cursor ctermfg=16 ctermbg=227 cterm=NONE
|
||||
hi! link CursorColumn CursorLine
|
||||
hi! link CursorIM Cursor
|
||||
hi CursorLine ctermfg=NONE ctermbg=59 cterm=NONE
|
||||
hi CursorLineNr ctermfg=227 ctermbg=59 cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=213 cterm=NONE
|
||||
hi DiffAdd ctermfg=NONE ctermbg=27 cterm=NONE
|
||||
hi DiffChange ctermfg=NONE ctermbg=61 cterm=NONE
|
||||
hi DiffDelete ctermfg=17 ctermbg=30 cterm=NONE
|
||||
hi DiffText ctermfg=NONE ctermbg=30 cterm=NONE
|
||||
hi! link EndOfBuffer NonText
|
||||
hi Error ctermfg=217 ctermbg=NONE cterm=reverse
|
||||
hi! link ErrorMsg Error
|
||||
hi FoldColumn ctermfg=102 ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=102 ctermbg=NONE cterm=NONE
|
||||
hi IncSearch ctermfg=231 ctermbg=27 cterm=reverse
|
||||
hi LineNr ctermfg=118 ctermbg=NONE cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi MatchParen ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi ModeMsg ctermfg=123 ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=22 ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=27 ctermbg=NONE cterm=NONE
|
||||
hi Pmenu ctermfg=231 ctermbg=27 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel ctermfg=27 ctermbg=231 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=231 cterm=NONE
|
||||
hi Question ctermfg=118 ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=123 ctermbg=27 cterm=NONE
|
||||
hi SignColumn ctermfg=102 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=118 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=123 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=201 ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=17 ctermbg=252 cterm=NONE
|
||||
hi StatusLineNC ctermfg=16 ctermbg=102 cterm=NONE
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi TabLine ctermfg=16 ctermbg=102 cterm=NONE
|
||||
hi! link TabLineFill TabLine
|
||||
hi TabLineSel ctermfg=17 ctermbg=252 cterm=NONE
|
||||
hi ToolbarButton ctermfg=231 ctermbg=27 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi VertSplit ctermfg=16 ctermbg=102 cterm=NONE
|
||||
hi Visual ctermfg=105 ctermbg=231 cterm=reverse
|
||||
hi VisualNOS ctermfg=105 ctermbg=252 cterm=reverse,underline
|
||||
hi WarningMsg ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=227 ctermbg=16 cterm=NONE
|
||||
hi debugBreakpoint ctermfg=118 ctermbg=18 cterm=reverse
|
||||
hi debugPC ctermfg=123 ctermbg=18 cterm=reverse
|
||||
hi! link Terminal Normal
|
||||
hi! link Debug Special
|
||||
hi! link diffAdded String
|
||||
hi! link diffRemoved WarningMsg
|
||||
hi! link diffOnly WarningMsg
|
||||
hi! link diffNoEOL WarningMsg
|
||||
hi! link diffIsA WarningMsg
|
||||
hi! link diffIdentical WarningMsg
|
||||
hi! link diffDiffer WarningMsg
|
||||
hi! link diffCommon WarningMsg
|
||||
hi! link diffBDiffer WarningMsg
|
||||
hi! link lCursor Cursor
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Directory ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi Comment ctermfg=111 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=217 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=123 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=17 ctermbg=252 cterm=NONE
|
||||
hi PreProc ctermfg=213 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=214 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=227 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi Type ctermfg=118 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=111 ctermbg=NONE cterm=underline
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Constant
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Label Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link Operator Statement
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
let colors_name = "darkblue"
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=grey ctermbg=black cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi Conceal ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ColorColumn ctermfg=grey ctermbg=darkred cterm=NONE
|
||||
hi Cursor ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi! link CursorColumn CursorLine
|
||||
hi! link CursorIM Cursor
|
||||
hi CursorLine ctermfg=NONE ctermbg=darkgrey cterm=NONE
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=darkgrey cterm=NONE
|
||||
hi QuickFixLine ctermfg=black ctermbg=magenta cterm=NONE
|
||||
hi DiffAdd ctermfg=NONE ctermbg=blue cterm=NONE
|
||||
hi DiffChange ctermfg=NONE ctermbg=darkblue cterm=NONE
|
||||
hi DiffDelete ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi DiffText ctermfg=NONE ctermbg=darkcyan cterm=NONE
|
||||
hi! link EndOfBuffer NonText
|
||||
hi Error ctermfg=red ctermbg=NONE cterm=reverse
|
||||
hi! link ErrorMsg Error
|
||||
hi FoldColumn ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi IncSearch ctermfg=white ctermbg=blue cterm=reverse
|
||||
hi LineNr ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi MatchParen ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi ModeMsg ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Pmenu ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel ctermfg=blue ctermbg=white cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi Question ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=cyan ctermbg=blue cterm=NONE
|
||||
hi SignColumn ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=green ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=cyan ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=darkmagenta ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi StatusLineNC ctermfg=black ctermbg=darkgrey cterm=NONE
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi TabLine ctermfg=black ctermbg=darkgrey cterm=NONE
|
||||
hi! link TabLineFill TabLine
|
||||
hi TabLineSel ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi ToolbarButton ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi VertSplit ctermfg=black ctermbg=darkgrey cterm=NONE
|
||||
hi Visual ctermfg=blue ctermbg=white cterm=reverse
|
||||
hi VisualNOS ctermfg=blue ctermbg=grey cterm=reverse,underline
|
||||
hi WarningMsg ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=yellow ctermbg=black cterm=NONE
|
||||
hi debugBreakpoint ctermfg=green ctermbg=darkblue cterm=reverse
|
||||
hi debugPC ctermfg=cyan ctermbg=darkblue cterm=reverse
|
||||
hi! link Terminal Normal
|
||||
hi! link Debug Special
|
||||
hi! link diffAdded String
|
||||
hi! link diffRemoved WarningMsg
|
||||
hi! link diffOnly WarningMsg
|
||||
hi! link diffNoEOL WarningMsg
|
||||
hi! link diffIsA WarningMsg
|
||||
hi! link diffIdentical WarningMsg
|
||||
hi! link diffDiffer WarningMsg
|
||||
hi! link diffCommon WarningMsg
|
||||
hi! link diffBDiffer WarningMsg
|
||||
hi! link lCursor Cursor
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Directory ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Comment ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi PreProc ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi Type ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Constant
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Label Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link Operator Statement
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi TabLineSel ctermfg=white ctermbg=black cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi Search ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
hi Normal guifg=#c0c0c0 guibg=#000040 ctermfg=gray ctermbg=black
|
||||
hi ErrorMsg guifg=#ffffff guibg=#287eff ctermfg=white ctermbg=lightblue
|
||||
hi Visual guifg=#8080ff guibg=fg gui=reverse ctermfg=lightblue ctermbg=fg cterm=reverse
|
||||
hi VisualNOS guifg=#8080ff guibg=fg gui=reverse,underline ctermfg=lightblue ctermbg=fg cterm=reverse,underline
|
||||
hi Todo guifg=#d14a14 guibg=#1248d1 ctermfg=red ctermbg=darkblue
|
||||
hi Search guifg=#90fff0 guibg=#2050d0 ctermfg=white ctermbg=darkblue cterm=underline term=underline
|
||||
hi IncSearch guifg=#b0ffff guibg=#2050d0 ctermfg=darkblue ctermbg=gray
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
hi SpecialKey guifg=cyan ctermfg=darkcyan
|
||||
hi Directory guifg=cyan ctermfg=cyan
|
||||
hi Title guifg=magenta gui=none ctermfg=magenta cterm=bold
|
||||
hi WarningMsg guifg=red ctermfg=red
|
||||
hi WildMenu guifg=yellow guibg=black ctermfg=yellow ctermbg=black cterm=none term=none
|
||||
hi ModeMsg guifg=#22cce2 ctermfg=lightblue
|
||||
hi MoreMsg ctermfg=darkgreen ctermfg=darkgreen
|
||||
hi Question guifg=green gui=none ctermfg=green cterm=none
|
||||
hi NonText guifg=#0030ff ctermfg=darkblue
|
||||
|
||||
hi StatusLine guifg=blue guibg=darkgray gui=none ctermfg=blue ctermbg=gray term=none cterm=none
|
||||
hi StatusLineNC guifg=black guibg=darkgray gui=none ctermfg=black ctermbg=gray term=none cterm=none
|
||||
hi VertSplit guifg=black guibg=darkgray gui=none ctermfg=black ctermbg=gray term=none cterm=none
|
||||
|
||||
hi Folded guifg=#808080 guibg=#000040 ctermfg=darkgrey ctermbg=black cterm=bold term=bold
|
||||
hi FoldColumn guifg=#808080 guibg=#000040 ctermfg=darkgrey ctermbg=black cterm=bold term=bold
|
||||
hi LineNr guifg=#90f020 ctermfg=green cterm=none
|
||||
|
||||
hi DiffAdd guibg=darkblue ctermbg=darkblue term=none cterm=none
|
||||
hi DiffChange guibg=darkmagenta ctermbg=magenta cterm=none
|
||||
hi DiffDelete ctermfg=blue ctermbg=cyan gui=bold guifg=Blue guibg=DarkCyan
|
||||
hi DiffText cterm=bold ctermbg=red gui=bold guibg=Red
|
||||
|
||||
hi Cursor guifg=black guibg=yellow ctermfg=black ctermbg=yellow
|
||||
hi lCursor guifg=black guibg=white ctermfg=black ctermbg=white
|
||||
|
||||
|
||||
hi Comment guifg=#80a0ff ctermfg=darkred
|
||||
hi Constant ctermfg=magenta guifg=#ffa0a0 cterm=none
|
||||
hi Special ctermfg=brown guifg=Orange cterm=none gui=none
|
||||
hi Identifier ctermfg=cyan guifg=#40ffff cterm=none
|
||||
hi Statement ctermfg=yellow cterm=none guifg=#ffff60 gui=none
|
||||
hi PreProc ctermfg=magenta guifg=#ff80ff gui=none cterm=none
|
||||
hi type ctermfg=green guifg=#60ff60 gui=none cterm=none
|
||||
hi Underlined cterm=underline term=underline
|
||||
hi Ignore guifg=bg ctermfg=bg
|
||||
|
||||
" suggested by tigmoid, 2008 Jul 18
|
||||
hi Pmenu guifg=#c0c0c0 guibg=#404080
|
||||
hi PmenuSel guifg=#c0c0c0 guibg=#2050d0
|
||||
hi PmenuSbar guifg=blue guibg=darkgray
|
||||
hi PmenuThumb guifg=#c0c0c0
|
||||
" Background: dark
|
||||
" Color: white #FFFFFF 231 white
|
||||
" Color: black #000000 16 black
|
||||
" Color: diffc #0087af 31 darkcyan
|
||||
" Color: difft #005f87 24 cyan
|
||||
" Color: cursorl #666666 59 darkgrey
|
||||
" Color: ogDeepBlue #000040 17 black
|
||||
" Color: ogDarkBlue #00008b 18 darkblue
|
||||
" Color: ogBlue #0030ff 27 blue
|
||||
" Color: ogLightBlue #287eff 33 blue
|
||||
" Color: ogDarkGrey #a9a9a9 248 grey
|
||||
" Color: ogGrey #808080 102 darkgrey
|
||||
" Color: ogLightGrey #c0c0c0 252 grey
|
||||
" Color: ogDarkViolet #404080 61 darkblue
|
||||
" Color: ogViolet #8080ff 105 blue
|
||||
" Color: ogLightViolet #80a0ff 111 blue
|
||||
" Color: ogDarkGreen #006400 22 darkgreen
|
||||
" Color: ogGreen #90f020 118 green
|
||||
" Color: ogDarkCyan #008b8b 30 darkcyan
|
||||
" Color: ogCyan #90fff0 123 cyan
|
||||
" Color: ogLightCyan #b0ffff 159 cyan
|
||||
" Color: ogDarkerRed #8b0000 88 darkred
|
||||
" Color: ogDarkRed #d14a14 166 darkred
|
||||
" Color: ogRed #ff0000 196 red
|
||||
" Color: ogLightRed #ffa0a0 217 red
|
||||
" Color: ogDarkMag #8b008b 90 darkmagenta
|
||||
" Color: ogMagenta #ff00ff 201 darkmagenta
|
||||
" Color: ogLightMag #ff80ff 213 magenta
|
||||
" Color: ogOrange #ffa500 214 darkyellow
|
||||
" Color: ogYellow #ffff60 227 yellow
|
||||
" Term colors: black ogDarkerRed ogGreen ogOrange ogDarkBlue ogDarkMag ogDarkCyan ogLightGrey
|
||||
" Term colors: ogGrey ogLightRed ogGreen ogYellow ogBlue ogMagenta ogCyan white
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,55 +1,339 @@
|
||||
" Vim color file
|
||||
" Maintainer: David Schweikert <david@schweikert.ch>
|
||||
" Last Change: 2014 Mar 19
|
||||
" Name: delek
|
||||
" Description: Light background colorscheme.
|
||||
" Author: Original author David Schweikert <david@schweikert.ch>
|
||||
" Maintainer: Original maintainer David Schweikert <david@schweikert.ch>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:34 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=light
|
||||
|
||||
hi clear
|
||||
let g:colors_name = 'delek'
|
||||
|
||||
let g:colors_name = "delek"
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
" Normal should come first
|
||||
hi Normal guifg=Black guibg=White
|
||||
hi Cursor guifg=bg guibg=fg
|
||||
hi lCursor guifg=NONE guibg=Cyan
|
||||
|
||||
" Note: we never set 'term' because the defaults for B&W terminals are OK
|
||||
hi DiffAdd ctermbg=LightBlue guibg=LightBlue
|
||||
hi DiffChange ctermbg=LightMagenta guibg=LightMagenta
|
||||
hi DiffDelete ctermfg=Blue ctermbg=LightCyan gui=bold guifg=Blue guibg=LightCyan
|
||||
hi DiffText ctermbg=Red cterm=bold gui=bold guibg=Red
|
||||
hi Directory ctermfg=DarkBlue guifg=Blue
|
||||
hi ErrorMsg ctermfg=White ctermbg=DarkRed guibg=Red guifg=White
|
||||
hi FoldColumn ctermfg=DarkBlue ctermbg=Grey guibg=Grey guifg=DarkBlue
|
||||
hi Folded ctermbg=Grey ctermfg=DarkBlue guibg=LightGrey guifg=DarkBlue
|
||||
hi IncSearch cterm=reverse gui=reverse
|
||||
hi LineNr ctermfg=Brown guifg=Brown
|
||||
hi ModeMsg cterm=bold gui=bold
|
||||
hi MoreMsg ctermfg=DarkGreen gui=bold guifg=SeaGreen
|
||||
hi NonText ctermfg=Blue gui=bold guifg=gray guibg=white
|
||||
hi Pmenu guibg=LightBlue
|
||||
hi PmenuSel ctermfg=White ctermbg=DarkBlue guifg=White guibg=DarkBlue
|
||||
hi Question ctermfg=DarkGreen gui=bold guifg=SeaGreen
|
||||
if &background == "light"
|
||||
hi Search ctermfg=NONE ctermbg=Yellow guibg=Yellow guifg=NONE
|
||||
else
|
||||
hi Search ctermfg=Black ctermbg=Yellow guibg=Yellow guifg=Black
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#ffffff', '#0000ff', '#00cd00', '#cd00cd', '#008b8b', '#0000ff', '#ff1493', '#bcbcbc', '#ee0000', '#0000ff', '#00cd00', '#cd00cd', '#008b8b', '#0000ff', '#ff1493', '#000000']
|
||||
endif
|
||||
hi SpecialKey ctermfg=DarkBlue guifg=Blue
|
||||
hi StatusLine cterm=bold ctermbg=blue ctermfg=yellow guibg=gold guifg=blue
|
||||
hi StatusLineNC cterm=bold ctermbg=blue ctermfg=black guibg=gold guifg=blue
|
||||
hi Title ctermfg=DarkMagenta gui=bold guifg=Magenta
|
||||
hi VertSplit cterm=reverse gui=reverse
|
||||
hi Visual ctermbg=NONE cterm=reverse gui=reverse guifg=Grey guibg=fg
|
||||
hi VisualNOS cterm=underline,bold gui=underline,bold
|
||||
hi WarningMsg ctermfg=DarkRed guifg=Red
|
||||
hi WildMenu ctermfg=Black ctermbg=Yellow guibg=Yellow guifg=Black
|
||||
hi Normal guifg=#000000 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#bcbcbc guibg=NONE gui=NONE cterm=NONE
|
||||
hi StatusLine guifg=#ffff00 guibg=#00008b gui=bold cterm=NONE
|
||||
hi StatusLineNC guifg=#ffd700 guibg=#00008b gui=NONE cterm=NONE
|
||||
hi StatusLineTerm guifg=#ffff00 guibg=#0000ff gui=bold cterm=NONE
|
||||
hi StatusLineTermNC guifg=#e4e4e4 guibg=#0000ff gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#e4e4e4 guibg=#00008b gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#000000 guibg=#add8e6 gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#ffffff guibg=#00008b gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#000000 guibg=#e4e4e4 gui=NONE cterm=NONE
|
||||
hi TabLineFill guifg=NONE guibg=#bcbcbc gui=NONE cterm=NONE
|
||||
hi TabLineSel guifg=#000000 guibg=#ffffff gui=bold cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=#e4e4e4 gui=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#ffffff guibg=#bcbcbc gui=bold cterm=NONE
|
||||
hi NonText guifg=#bcbcbc guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#bcbcbc guibg=NONE gui=NONE cterm=NONE
|
||||
hi Folded guifg=#00008b guibg=#e4e4e4 gui=NONE cterm=NONE
|
||||
hi Visual guifg=#000000 guibg=#d0d0d0 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=NONE guibg=#ee0000 gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#a52a2a guibg=NONE gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#00008b guibg=NONE gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#e4e4e4 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#a52a2a guibg=NONE gui=bold cterm=NONE
|
||||
hi QuickFixLine guifg=#ffffff guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined guifg=#6a5acd guibg=NONE gui=underline cterm=underline
|
||||
hi Error guifg=#ff0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi! link ErrorMsg Error
|
||||
hi WarningMsg guifg=#cd00cd guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#000000 guibg=#ffffff gui=bold cterm=NONE
|
||||
hi ModeMsg guifg=#000000 guibg=#ffffff gui=bold cterm=NONE
|
||||
hi Question guifg=#00cd00 guibg=NONE gui=bold cterm=NONE
|
||||
hi Todo guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=#ffffff guibg=#ff1493 gui=NONE cterm=NONE
|
||||
hi Search guifg=#ffffff guibg=#cd00cd gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#00cd00 guibg=NONE gui=reverse cterm=reverse
|
||||
hi WildMenu guifg=#00008b guibg=#ffd700 gui=bold cterm=NONE
|
||||
hi ColorColumn guifg=#000000 guibg=#e4e4e4 gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#ffffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi lCursor guifg=#000000 guibg=#00cd00 gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#008b8b guibg=NONE guisp=#008b8b gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#0000ff guibg=NONE guisp=#0000ff gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#cd00cd guibg=NONE guisp=#cd00cd gui=undercurl cterm=underline
|
||||
hi debugBreakpoint guifg=#ffff00 guibg=#0000ff gui=NONE cterm=NONE
|
||||
hi debugPC guifg=#ff1493 guibg=#0000ff gui=NONE cterm=NONE
|
||||
hi Comment guifg=#ee0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#00cd00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#008b8b guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#0000ff guibg=NONE gui=bold cterm=NONE
|
||||
hi PreProc guifg=#cd00cd guibg=NONE gui=NONE cterm=NONE
|
||||
hi Type guifg=#0000ff guibg=NONE gui=bold cterm=NONE
|
||||
hi Special guifg=#ff1493 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Directory guifg=#008b8b guibg=NONE gui=bold cterm=NONE
|
||||
hi Conceal guifg=#ee0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title guifg=#cd00cd guibg=NONE gui=bold cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi CursorLine guifg=NONE guibg=#e4e4e4 gui=NONE cterm=NONE
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
" syntax highlighting
|
||||
hi Comment cterm=NONE ctermfg=DarkRed gui=NONE guifg=red2
|
||||
hi Constant cterm=NONE ctermfg=DarkGreen gui=NONE guifg=green3
|
||||
hi Identifier cterm=NONE ctermfg=DarkCyan gui=NONE guifg=cyan4
|
||||
hi PreProc cterm=NONE ctermfg=DarkMagenta gui=NONE guifg=magenta3
|
||||
hi Special cterm=NONE ctermfg=LightRed gui=NONE guifg=deeppink
|
||||
hi Statement cterm=bold ctermfg=Blue gui=bold guifg=blue
|
||||
hi Type cterm=NONE ctermfg=Blue gui=bold guifg=blue
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi EndOfBuffer ctermfg=250 ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=226 ctermbg=18 cterm=NONE
|
||||
hi StatusLineNC ctermfg=220 ctermbg=18 cterm=NONE
|
||||
hi StatusLineTerm ctermfg=226 ctermbg=21 cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=254 ctermbg=21 cterm=NONE
|
||||
hi VertSplit ctermfg=254 ctermbg=18 cterm=NONE
|
||||
hi Pmenu ctermfg=16 ctermbg=152 cterm=NONE
|
||||
hi PmenuSel ctermfg=231 ctermbg=18 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=231 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=30 cterm=NONE
|
||||
hi TabLine ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=250 cterm=NONE
|
||||
hi TabLineSel ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=254 cterm=NONE
|
||||
hi ToolbarButton ctermfg=231 ctermbg=250 cterm=NONE
|
||||
hi NonText ctermfg=250 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=250 ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=18 ctermbg=254 cterm=NONE
|
||||
hi Visual ctermfg=16 ctermbg=252 cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=196 cterm=NONE
|
||||
hi LineNr ctermfg=124 ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=18 ctermbg=NONE cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=254 cterm=NONE
|
||||
hi CursorLineNr ctermfg=124 ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=231 ctermbg=30 cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=62 ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi! link ErrorMsg Error
|
||||
hi WarningMsg ctermfg=164 ctermbg=231 cterm=NONE
|
||||
hi MoreMsg ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi ModeMsg ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi Question ctermfg=40 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi MatchParen ctermfg=231 ctermbg=198 cterm=NONE
|
||||
hi Search ctermfg=231 ctermbg=164 cterm=NONE
|
||||
hi IncSearch ctermfg=40 ctermbg=NONE cterm=reverse
|
||||
hi WildMenu ctermfg=18 ctermbg=220 cterm=NONE
|
||||
hi ColorColumn ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi Cursor ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi lCursor ctermfg=16 ctermbg=40 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=30 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=21 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=164 ctermbg=NONE cterm=underline
|
||||
hi debugBreakpoint ctermfg=226 ctermbg=21 cterm=NONE
|
||||
hi debugPC ctermfg=198 ctermbg=21 cterm=NONE
|
||||
hi Comment ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=40 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=164 ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=198 ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=164 ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi CursorLine ctermfg=NONE ctermbg=254 cterm=NONE
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" vim: sw=2
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=black ctermbg=white cterm=NONE
|
||||
hi EndOfBuffer ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=yellow ctermbg=darkblue cterm=NONE
|
||||
hi StatusLineNC ctermfg=darkyellow ctermbg=darkblue cterm=NONE
|
||||
hi StatusLineTerm ctermfg=yellow ctermbg=blue cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=grey ctermbg=blue cterm=NONE
|
||||
hi VertSplit ctermfg=grey ctermbg=darkblue cterm=NONE
|
||||
hi Pmenu ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi PmenuSel ctermfg=white ctermbg=darkblue cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=darkcyan cterm=NONE
|
||||
hi TabLine ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=darkgrey cterm=NONE
|
||||
hi TabLineSel ctermfg=black ctermbg=white cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi ToolbarButton ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi NonText ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=darkblue ctermbg=grey cterm=NONE
|
||||
hi Visual ctermfg=black ctermbg=darkgrey cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=darkred cterm=NONE
|
||||
hi LineNr ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi CursorLineNr ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=white ctermbg=darkcyan cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=red ctermbg=white cterm=reverse
|
||||
hi! link ErrorMsg Error
|
||||
hi WarningMsg ctermfg=darkmagenta ctermbg=white cterm=NONE
|
||||
hi MoreMsg ctermfg=black ctermbg=white cterm=NONE
|
||||
hi ModeMsg ctermfg=black ctermbg=white cterm=NONE
|
||||
hi Question ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi MatchParen ctermfg=white ctermbg=magenta cterm=NONE
|
||||
hi Search ctermfg=white ctermbg=darkmagenta cterm=NONE
|
||||
hi IncSearch ctermfg=darkgreen ctermbg=NONE cterm=reverse
|
||||
hi WildMenu ctermfg=darkblue ctermbg=darkyellow cterm=NONE
|
||||
hi ColorColumn ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi Cursor ctermfg=white ctermbg=black cterm=NONE
|
||||
hi lCursor ctermfg=black ctermbg=darkgreen cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=darkcyan ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=darkblue ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=darkmagenta ctermbg=NONE cterm=underline
|
||||
hi debugBreakpoint ctermfg=yellow ctermbg=darkblue cterm=NONE
|
||||
hi debugPC ctermfg=magenta ctermbg=darkblue cterm=NONE
|
||||
hi Comment ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi Visual ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: light
|
||||
" Color: comment #ee0000 196 darkred
|
||||
" Color: constant #00cd00 40 darkgreen
|
||||
" Color: identifier #008b8b 30 darkcyan
|
||||
" Color: statement #0000ff 21 darkblue
|
||||
" Color: preproc #cd00cd 164 darkmagenta
|
||||
" Color: type #0000ff 21 blue
|
||||
" Color: special #ff1493 198 magenta
|
||||
" Color: fg0 #000000 16 black
|
||||
" Color: bg0 #ffffff 231 white
|
||||
" Color: bg1 #bcbcbc 250 darkgrey
|
||||
" Color: visual #d0d0d0 252 darkgrey
|
||||
" Color: folded #e4e4e4 254 grey
|
||||
" Color: pmenu #add8e6 152 grey
|
||||
" Color: wildmenu #00008b 18 darkblue
|
||||
" Color: error #ff0000 196 red
|
||||
" Color: status_fg #ffd700 220 darkyellow
|
||||
" Color: linenr #a52a2a 124 darkgrey
|
||||
" Color: Yellow #ffff00 226 yellow
|
||||
" Color: SlateBlue #6a5acd 62 blue
|
||||
" Term colors: bg0 statement constant preproc identifier type special bg1
|
||||
" Term colors: comment statement constant preproc identifier type special fg0
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,108 +1,335 @@
|
||||
" Vim color file
|
||||
" Maintainer: Hans Fugal <hans@fugal.net>
|
||||
" Last Change: $Date: 2004/06/13 19:30:30 $
|
||||
" Last Change: $Date: 2004/06/13 19:30:30 $
|
||||
" URL: http://hans.fugal.net/vim/colors/desert.vim
|
||||
" Version: $Id: desert.vim,v 1.1 2004/06/13 19:30:30 vimboss Exp $
|
||||
" Name: desert
|
||||
" Description: Light background colorscheme.
|
||||
" Author: Original author Hans Fugal <hans@fugal.net>
|
||||
" Maintainer: Original maintainer Hans Fugal <hans@fugal.net>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:35 2022
|
||||
|
||||
" cool help screens
|
||||
" :he group-name
|
||||
" :he highlight-groups
|
||||
" :he cterm-colors
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=dark
|
||||
if version > 580
|
||||
" no guarantees for version 5.8 and below, but this makes it stop
|
||||
" complaining
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
hi clear
|
||||
let g:colors_name = 'desert'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#7f7f8c', '#cd5c5c', '#9acd32', '#bdb76b', '#75a0ff', '#eeee00', '#cd853f', '#666666', '#8a7f7f', '#ff0000', '#89fb98', '#f0e68c', '#6dceeb', '#ffde9b', '#ffa0a0', '#c2bfa5']
|
||||
endif
|
||||
let g:colors_name="desert"
|
||||
hi Normal guifg=#ffffff guibg=#333333 gui=NONE cterm=NONE
|
||||
hi! link EndOfBuffer NonText
|
||||
hi StatusLine guifg=#333333 guibg=#c2bfa5 gui=NONE cterm=NONE
|
||||
hi StatusLineNC guifg=#7f7f8c guibg=#c2bfa5 gui=NONE cterm=NONE
|
||||
hi StatusLineTerm guifg=#333333 guibg=#c2bfa5 gui=NONE cterm=NONE
|
||||
hi StatusLineTermNC guifg=#ffffff guibg=#c2bfa5 gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#7f7f8c guibg=#c2bfa5 gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#ffffff guibg=#666666 gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#333333 guibg=#f0e68c gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=#333333 gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#c2bfa5 gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#333333 guibg=#c2bfa5 gui=NONE cterm=NONE
|
||||
hi TabLineFill guifg=NONE guibg=#c2bfa5 gui=NONE cterm=NONE
|
||||
hi TabLineSel guifg=#333333 guibg=#f0e68c gui=NONE cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=#666666 gui=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#333333 guibg=#ffde9b gui=bold cterm=NONE
|
||||
hi NonText guifg=#6dceeb guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#9acd32 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Folded guifg=#eeee00 guibg=#4d4d4d gui=NONE cterm=NONE
|
||||
hi Visual guifg=#f0e68c guibg=#6b8e24 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=#f0e68c guibg=#6dceeb gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#eeee00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#eeee00 guibg=#4d4d4d gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#666666 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#666666 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#eeee00 guibg=NONE gui=bold cterm=NONE
|
||||
hi QuickFixLine guifg=#333333 guibg=#f0e68c gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined guifg=#75a0ff guibg=NONE gui=underline cterm=underline
|
||||
hi Error guifg=#ff0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi ErrorMsg guifg=#ff0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi ModeMsg guifg=#ffde9b guibg=NONE gui=bold cterm=NONE
|
||||
hi WarningMsg guifg=#cd5c5c guibg=NONE gui=bold cterm=NONE
|
||||
hi MoreMsg guifg=#9acd32 guibg=NONE gui=bold cterm=NONE
|
||||
hi Question guifg=#89fb98 guibg=NONE gui=bold cterm=NONE
|
||||
hi Todo guifg=#ff0000 guibg=#eeee00 gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=#7f7f8c guibg=#bdb76b gui=NONE cterm=NONE
|
||||
hi Search guifg=#f0e68c guibg=#7f7f8c gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#f0e68c guibg=#cd853f gui=NONE cterm=NONE
|
||||
hi WildMenu guifg=#333333 guibg=#eeee00 gui=NONE cterm=NONE
|
||||
hi ColorColumn guifg=#ffffff guibg=#cd5c5c gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#333333 guibg=#f0e68c gui=NONE cterm=NONE
|
||||
hi lCursor guifg=#333333 guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi debugPC guifg=#666666 guibg=NONE gui=reverse cterm=reverse
|
||||
hi debugBreakpoint guifg=#ffa0a0 guibg=NONE gui=reverse cterm=reverse
|
||||
hi SpellBad guifg=#cd5c5c guibg=NONE guisp=#cd5c5c gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#75a0ff guibg=NONE guisp=#75a0ff gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#ffde9b guibg=NONE guisp=#ffde9b gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#9acd32 guibg=NONE guisp=#9acd32 gui=undercurl cterm=underline
|
||||
hi Comment guifg=#6dceeb guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#89fb98 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#f0e68c guibg=NONE gui=bold cterm=NONE
|
||||
hi Constant guifg=#ffa0a0 guibg=NONE gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#cd5c5c guibg=NONE gui=NONE cterm=NONE
|
||||
hi Type guifg=#bdb76b guibg=NONE gui=bold cterm=NONE
|
||||
hi Special guifg=#ffde9b guibg=NONE gui=NONE cterm=NONE
|
||||
hi Directory guifg=#6dceeb guibg=NONE gui=NONE cterm=NONE
|
||||
hi Conceal guifg=#666666 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title guifg=#cd5c5c guibg=NONE gui=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
hi Normal guifg=White guibg=grey20
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=231 ctermbg=236 cterm=NONE
|
||||
hi! link EndOfBuffer NonText
|
||||
hi StatusLine ctermfg=236 ctermbg=144 cterm=NONE
|
||||
hi StatusLineNC ctermfg=242 ctermbg=144 cterm=NONE
|
||||
hi StatusLineTerm ctermfg=236 ctermbg=144 cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=231 ctermbg=144 cterm=NONE
|
||||
hi VertSplit ctermfg=242 ctermbg=144 cterm=NONE
|
||||
hi Pmenu ctermfg=231 ctermbg=241 cterm=NONE
|
||||
hi PmenuSel ctermfg=236 ctermbg=186 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=236 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=144 cterm=NONE
|
||||
hi TabLine ctermfg=236 ctermbg=144 cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=144 cterm=NONE
|
||||
hi TabLineSel ctermfg=236 ctermbg=186 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=241 cterm=NONE
|
||||
hi ToolbarButton ctermfg=236 ctermbg=222 cterm=NONE
|
||||
hi NonText ctermfg=81 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=112 ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=226 ctermbg=239 cterm=NONE
|
||||
hi Visual ctermfg=186 ctermbg=64 cterm=NONE
|
||||
hi VisualNOS ctermfg=186 ctermbg=81 cterm=NONE
|
||||
hi LineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=226 ctermbg=239 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=241 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=241 cterm=NONE
|
||||
hi CursorLineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=236 ctermbg=186 cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=111 ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi ErrorMsg ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi ModeMsg ctermfg=222 ctermbg=NONE cterm=NONE
|
||||
hi WarningMsg ctermfg=167 ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=112 ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=120 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=196 ctermbg=226 cterm=NONE
|
||||
hi MatchParen ctermfg=242 ctermbg=143 cterm=NONE
|
||||
hi Search ctermfg=186 ctermbg=242 cterm=NONE
|
||||
hi IncSearch ctermfg=186 ctermbg=172 cterm=NONE
|
||||
hi WildMenu ctermfg=236 ctermbg=226 cterm=NONE
|
||||
hi ColorColumn ctermfg=231 ctermbg=167 cterm=NONE
|
||||
hi debugPC ctermfg=241 ctermbg=NONE cterm=reverse
|
||||
hi debugBreakpoint ctermfg=217 ctermbg=NONE cterm=reverse
|
||||
hi SpellBad ctermfg=167 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=111 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=222 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=112 ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=81 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=120 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=186 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=217 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=167 ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=143 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=222 ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=81 ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=241 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=167 ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" highlight groups
|
||||
hi Cursor guibg=khaki guifg=slategrey
|
||||
"hi CursorIM
|
||||
"hi Directory
|
||||
"hi DiffAdd
|
||||
"hi DiffChange
|
||||
"hi DiffDelete
|
||||
"hi DiffText
|
||||
"hi ErrorMsg
|
||||
hi VertSplit guibg=#c2bfa5 guifg=grey50 gui=none
|
||||
hi Folded guibg=grey30 guifg=gold
|
||||
hi FoldColumn guibg=grey30 guifg=tan
|
||||
hi IncSearch guifg=slategrey guibg=khaki
|
||||
"hi LineNr
|
||||
hi ModeMsg guifg=goldenrod
|
||||
hi MoreMsg guifg=SeaGreen
|
||||
hi NonText guifg=LightBlue guibg=grey30
|
||||
hi Question guifg=springgreen
|
||||
hi Search guibg=peru guifg=wheat
|
||||
hi SpecialKey guifg=yellowgreen
|
||||
hi StatusLine guibg=#c2bfa5 guifg=black gui=none
|
||||
hi StatusLineNC guibg=#c2bfa5 guifg=grey50 gui=none
|
||||
hi Title guifg=indianred
|
||||
hi Visual gui=none guifg=khaki guibg=olivedrab
|
||||
"hi VisualNOS
|
||||
hi WarningMsg guifg=salmon
|
||||
"hi WildMenu
|
||||
"hi Menu
|
||||
"hi Scrollbar
|
||||
"hi Tooltip
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=white ctermbg=black cterm=NONE
|
||||
hi! link EndOfBuffer NonText
|
||||
hi StatusLine ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi StatusLineNC ctermfg=darkgrey ctermbg=grey cterm=NONE
|
||||
hi StatusLineTerm ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=darkgrey ctermbg=grey cterm=NONE
|
||||
hi VertSplit ctermfg=darkgrey ctermbg=grey cterm=NONE
|
||||
hi Pmenu ctermfg=NONE ctermbg=darkgrey cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi TabLine ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi TabLineSel ctermfg=white ctermbg=black cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi NonText ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi LineNr ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=darkyellow ctermbg=darkgrey cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorColumn ctermfg=NONE ctermbg=darkblue cterm=NONE
|
||||
hi CursorLineNr ctermfg=darkyellow ctermbg=NONE cterm=underline
|
||||
hi QuickFixLine ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=darkblue ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=red ctermbg=white cterm=reverse
|
||||
hi ErrorMsg ctermfg=red ctermbg=white cterm=reverse
|
||||
hi ModeMsg ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi WarningMsg ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=red ctermbg=darkmagenta cterm=NONE
|
||||
hi MatchParen ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi Search ctermfg=black ctermbg=darkgreen cterm=NONE
|
||||
hi IncSearch ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi WildMenu ctermfg=black ctermbg=darkmagenta cterm=NONE
|
||||
hi ColorColumn ctermfg=white ctermbg=darkred cterm=NONE
|
||||
hi WildMenu ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi debugPC ctermfg=grey ctermbg=NONE cterm=reverse
|
||||
hi debugBreakpoint ctermfg=cyan ctermbg=NONE cterm=reverse
|
||||
hi SpellBad ctermfg=darkred ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=darkyellow ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=darkgreen ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=grey ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" syntax highlighting groups
|
||||
hi Comment guifg=SkyBlue
|
||||
hi Constant guifg=#ffa0a0
|
||||
hi Identifier guifg=palegreen
|
||||
hi Statement guifg=khaki
|
||||
hi PreProc guifg=indianred
|
||||
hi Type guifg=darkkhaki
|
||||
hi Special guifg=navajowhite
|
||||
"hi Underlined
|
||||
hi Ignore guifg=grey40
|
||||
"hi Error
|
||||
hi Todo guifg=orangered guibg=yellow2
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" color terminal definitions
|
||||
hi SpecialKey ctermfg=darkgreen
|
||||
hi NonText cterm=bold ctermfg=darkblue
|
||||
hi Directory ctermfg=darkcyan
|
||||
hi ErrorMsg cterm=bold ctermfg=7 ctermbg=1
|
||||
hi IncSearch cterm=NONE ctermfg=yellow ctermbg=green
|
||||
hi Search cterm=NONE ctermfg=grey ctermbg=blue
|
||||
hi MoreMsg ctermfg=darkgreen
|
||||
hi ModeMsg cterm=NONE ctermfg=brown
|
||||
hi LineNr ctermfg=3
|
||||
hi Question ctermfg=green
|
||||
hi StatusLine cterm=bold,reverse
|
||||
hi StatusLineNC cterm=reverse
|
||||
hi VertSplit cterm=reverse
|
||||
hi Title ctermfg=5
|
||||
hi Visual cterm=reverse
|
||||
hi VisualNOS cterm=bold,underline
|
||||
hi WarningMsg ctermfg=1
|
||||
hi WildMenu ctermfg=0 ctermbg=3
|
||||
hi Folded ctermfg=darkgrey ctermbg=NONE
|
||||
hi FoldColumn ctermfg=darkgrey ctermbg=NONE
|
||||
hi DiffAdd ctermbg=4
|
||||
hi DiffChange ctermbg=5
|
||||
hi DiffDelete cterm=bold ctermfg=4 ctermbg=6
|
||||
hi DiffText cterm=bold ctermbg=1
|
||||
hi Comment ctermfg=darkcyan
|
||||
hi Constant ctermfg=brown
|
||||
hi Special ctermfg=5
|
||||
hi Identifier ctermfg=6
|
||||
hi Statement ctermfg=3
|
||||
hi PreProc ctermfg=5
|
||||
hi Type ctermfg=2
|
||||
hi Underlined cterm=underline ctermfg=5
|
||||
hi Ignore cterm=bold ctermfg=7
|
||||
hi Ignore ctermfg=darkgrey
|
||||
hi Error cterm=bold ctermfg=7 ctermbg=1
|
||||
|
||||
|
||||
"vim: sw=4
|
||||
" Background: dark
|
||||
" Color: foreground #ffffff 231 white
|
||||
" Color: background #333333 236 black
|
||||
" Color: color00 #7f7f8c 242 black
|
||||
" Color: color08 #8a7f7f 244 darkgrey
|
||||
" Color: color01 #cd5c5c 167 darkred
|
||||
" Color: color09 #ff0000 196 red
|
||||
" Color: color02 #9acd32 112 darkgreen
|
||||
" Color: color10 #89fb98 120 green
|
||||
" Color: color03 #bdb76b 143 darkyellow
|
||||
" Color: color11 #f0e68c 186 yellow
|
||||
" Color: color04 #75a0ff 111 darkblue
|
||||
" Color: color12 #6dceeb 81 blue
|
||||
" Color: color05 #eeee00 226 darkmagenta
|
||||
" Color: color13 #ffde9b 222 magenta
|
||||
" Color: color06 #cd853f 172 darkcyan
|
||||
" Color: color14 #ffa0a0 217 cyan
|
||||
" Color: color07 #666666 241 grey
|
||||
" Color: color15 #c2bfa5 144 white
|
||||
" Color: color16 #6b8e24 64 darkgreen
|
||||
" Color: color17 #4d4d4d 239 grey
|
||||
" Term colors: color00 color01 color02 color03 color04 color05 color06 color07
|
||||
" Term colors: color08 color09 color10 color11 color12 color13 color14 color15
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,50 +1,375 @@
|
||||
" local syntax file - set colors on a per-machine basis:
|
||||
" vim: tw=0 ts=4 sw=4
|
||||
" Vim color file
|
||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||
" Last Change: 2003 May 02
|
||||
" Name: elflord
|
||||
" Author: original author Ron Aaron <ron@ronware.org>
|
||||
" Maintainer: original maintainer Ron Aaron <ron@ronware.org>
|
||||
" Website: https://www.github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:36 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=dark
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
let g:colors_name = "elflord"
|
||||
hi Normal guifg=cyan guibg=black
|
||||
hi Comment term=bold ctermfg=DarkCyan guifg=#80a0ff
|
||||
hi Constant term=underline ctermfg=Magenta guifg=Magenta
|
||||
hi Special term=bold ctermfg=DarkMagenta guifg=Red
|
||||
hi Identifier term=underline cterm=bold ctermfg=Cyan guifg=#40ffff
|
||||
hi Statement term=bold ctermfg=Yellow gui=bold guifg=#aa4444
|
||||
hi PreProc term=underline ctermfg=LightBlue guifg=#ff80ff
|
||||
hi Type term=underline ctermfg=LightGreen guifg=#60ff60 gui=bold
|
||||
hi Function term=bold ctermfg=White guifg=White
|
||||
hi Repeat term=underline ctermfg=White guifg=white
|
||||
hi Operator ctermfg=Red guifg=Red
|
||||
hi Ignore ctermfg=black guifg=bg
|
||||
hi Error term=reverse ctermbg=Red ctermfg=White guibg=Red guifg=White
|
||||
hi Todo term=standout ctermbg=Yellow ctermfg=Black guifg=Blue guibg=Yellow
|
||||
|
||||
" Common groups that link to default highlighting.
|
||||
" You can specify other highlighting easily.
|
||||
hi link String Constant
|
||||
hi link Character Constant
|
||||
hi link Number Constant
|
||||
hi link Boolean Constant
|
||||
hi link Float Number
|
||||
hi link Conditional Repeat
|
||||
hi link Label Statement
|
||||
hi link Keyword Statement
|
||||
hi link Exception Statement
|
||||
hi link Include PreProc
|
||||
hi link Define PreProc
|
||||
hi link Macro PreProc
|
||||
hi link PreCondit PreProc
|
||||
hi link StorageClass Type
|
||||
hi link Structure Type
|
||||
hi link Typedef Type
|
||||
hi link Tag Special
|
||||
hi link SpecialChar Special
|
||||
hi link Delimiter Special
|
||||
hi link SpecialComment Special
|
||||
hi link Debug Special
|
||||
hi clear
|
||||
let g:colors_name = 'elflord'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
hi! link Terminal Normal
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Repeat
|
||||
hi! link Debug Special
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Number
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Label Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link PopupSelected PmenuSel
|
||||
hi! link PreCondit PreProc
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi! link lCursor Cursor
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#000000', '#cd0000', '#00cd00', '#cdcd00', '#0000ee', '#cd00cd', '#00cdcd', '#e5e5e5', '#7f7f7f', '#ff0000', '#00ff00', '#ffff00', '#5c5cff', '#ff00ff', '#00ffff', '#ffffff']
|
||||
endif
|
||||
hi Normal guifg=#00ffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#ffffff guibg=#2e8b57 gui=NONE cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#cd0000 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#3a3a3a gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#3a3a3a gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#ffff00 guibg=NONE gui=bold cterm=underline
|
||||
hi Folded guifg=#00ffff guibg=#666666 gui=NONE cterm=NONE
|
||||
hi Conceal guifg=#666666 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#000000 guibg=#00ffff gui=NONE cterm=NONE
|
||||
hi Directory guifg=#00ffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#0000ff guibg=#000000 gui=bold cterm=NONE
|
||||
hi ErrorMsg guifg=#ffffff guibg=#cd0000 gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=NONE guibg=#000000 gui=reverse cterm=reverse
|
||||
hi LineNr guifg=#ffff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=NONE guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi ModeMsg guifg=NONE guibg=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#2e8b57 guibg=NONE gui=bold cterm=NONE
|
||||
hi NonText guifg=#0000ff guibg=NONE gui=bold cterm=NONE
|
||||
hi Pmenu guifg=#ffffff guibg=#444444 gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=#bebebe gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#00cdcd gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi Question guifg=#00ff00 guibg=NONE gui=bold cterm=NONE
|
||||
hi Search guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#0000ff guibg=NONE guisp=#0000ff gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#ffff00 guibg=NONE guisp=#ffff00 gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#ff00ff guibg=NONE guisp=#ff00ff gui=undercurl cterm=underline
|
||||
hi StatusLine guifg=#000000 guibg=#00ffff gui=bold cterm=NONE
|
||||
hi StatusLineNC guifg=#000000 guibg=#00cdcd gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#000000 guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi TabLineFill guifg=NONE guibg=#000000 gui=reverse cterm=reverse
|
||||
hi TabLineSel guifg=#00ffff guibg=#000000 gui=bold cterm=NONE
|
||||
hi Terminal guifg=#00ffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi Title guifg=#ff00ff guibg=NONE gui=bold cterm=NONE
|
||||
hi VertSplit guifg=#000000 guibg=#00cdcd gui=NONE cterm=NONE
|
||||
hi Visual guifg=#000000 guibg=#a9a9a9 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=NONE guibg=#000000 gui=bold,underline cterm=underline
|
||||
hi WarningMsg guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi Comment guifg=#80a0ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#ff00ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Error guifg=#ffffff guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi Function guifg=#ffffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#40ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=#000000 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi Operator guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#ff80ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Repeat guifg=#ffffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#aa4444 guibg=NONE gui=bold cterm=NONE
|
||||
hi Todo guifg=#0000ff guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi Type guifg=#60ff60 guibg=NONE gui=bold cterm=NONE
|
||||
hi Underlined guifg=#80a0ff guibg=NONE gui=underline cterm=underline
|
||||
hi CursorIM guifg=NONE guibg=fg gui=NONE cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#000000 guibg=#e5e5e5 gui=bold cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=51 ctermbg=16 cterm=NONE
|
||||
hi QuickFixLine ctermfg=231 ctermbg=29 cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=160 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=237 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=237 cterm=NONE
|
||||
hi CursorLineNr ctermfg=226 ctermbg=NONE cterm=underline
|
||||
hi Folded ctermfg=51 ctermbg=59 cterm=NONE
|
||||
hi Conceal ctermfg=59 ctermbg=NONE cterm=NONE
|
||||
hi Cursor ctermfg=16 ctermbg=51 cterm=NONE
|
||||
hi Directory ctermfg=51 ctermbg=16 cterm=NONE
|
||||
hi EndOfBuffer ctermfg=21 ctermbg=16 cterm=NONE
|
||||
hi ErrorMsg ctermfg=231 ctermbg=160 cterm=NONE
|
||||
hi FoldColumn ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi IncSearch ctermfg=NONE ctermbg=16 cterm=reverse
|
||||
hi LineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=30 cterm=NONE
|
||||
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi Pmenu ctermfg=231 ctermbg=238 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=250 cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=44 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=231 cterm=NONE
|
||||
hi Question ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi SignColumn ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=21 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=226 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=201 ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=16 ctermbg=51 cterm=NONE
|
||||
hi StatusLineNC ctermfg=16 ctermbg=44 cterm=NONE
|
||||
hi TabLine ctermfg=16 ctermbg=30 cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=16 cterm=reverse
|
||||
hi TabLineSel ctermfg=51 ctermbg=16 cterm=NONE
|
||||
hi Terminal ctermfg=51 ctermbg=16 cterm=NONE
|
||||
hi Title ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi VertSplit ctermfg=16 ctermbg=44 cterm=NONE
|
||||
hi Visual ctermfg=16 ctermbg=145 cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=16 cterm=underline
|
||||
hi WarningMsg ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi Comment ctermfg=111 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi Error ctermfg=231 ctermbg=196 cterm=NONE
|
||||
hi Function ctermfg=231 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=87 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=16 ctermbg=16 cterm=NONE
|
||||
hi Operator ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=213 ctermbg=NONE cterm=NONE
|
||||
hi Repeat ctermfg=231 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=131 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=21 ctermbg=226 cterm=NONE
|
||||
hi Type ctermfg=83 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=111 ctermbg=NONE cterm=underline
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=cyan ctermbg=black cterm=NONE
|
||||
hi QuickFixLine ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi ColorColumn ctermfg=cyan ctermbg=darkred cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi Folded ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi Cursor ctermfg=black ctermbg=cyan cterm=NONE
|
||||
hi Directory ctermfg=cyan ctermbg=black cterm=NONE
|
||||
hi EndOfBuffer ctermfg=darkblue ctermbg=black cterm=NONE
|
||||
hi ErrorMsg ctermfg=white ctermbg=darkred cterm=NONE
|
||||
hi FoldColumn ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi IncSearch ctermfg=NONE ctermbg=black cterm=reverse
|
||||
hi LineNr ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=darkcyan cterm=NONE
|
||||
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi Pmenu ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi Question ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi SignColumn ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=darkblue ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=magenta ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=black ctermbg=cyan cterm=NONE
|
||||
hi StatusLineNC ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi TabLine ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=black cterm=reverse
|
||||
hi TabLineSel ctermfg=cyan ctermbg=black cterm=NONE
|
||||
hi Terminal ctermfg=cyan ctermbg=black cterm=NONE
|
||||
hi Title ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi VertSplit ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi Visual ctermfg=black ctermbg=darkgrey cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=black cterm=underline
|
||||
hi WarningMsg ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi Comment ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Error ctermfg=white ctermbg=red cterm=NONE
|
||||
hi Function ctermfg=white ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=black ctermbg=black cterm=NONE
|
||||
hi Operator ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Repeat ctermfg=white ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=blue ctermbg=yellow cterm=NONE
|
||||
hi Type ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: dark
|
||||
" Color: xterm0 #000000 16 black
|
||||
" Color: xterm1 #cd0000 160 darkred
|
||||
" Color: xterm2 #00cd00 40 darkgreen
|
||||
" Color: xterm3 #cdcd00 184 darkyellow
|
||||
" Color: xterm4 #0000ee 20 darkblue
|
||||
" Color: xterm5 #cd00cd 164 darkmagenta
|
||||
" Color: xterm6 #00cdcd 44 darkcyan
|
||||
" Color: xterm7 #e5e5e5 254 grey
|
||||
" Color: xterm8 #7f7f7f 102 darkgrey
|
||||
" Color: xterm9 #ff0000 196 red
|
||||
" Color: xterm10 #00ff00 46 green
|
||||
" Color: xterm11 #ffff00 226 yellow
|
||||
" Color: xterm12 #5c5cff 63 blue
|
||||
" Color: xterm13 #ff00ff 201 magenta
|
||||
" Color: xterm14 #00ffff 51 cyan
|
||||
" Color: xterm15 #ffffff 231 white
|
||||
" Color: Pmenu #444444 238 darkgrey
|
||||
" Color: CursorLine #3a3a3a 237 darkgrey
|
||||
" Color: rgbGrey40 #666666 59 darkgrey
|
||||
" Color: rgbDarkGrey #a9a9a9 145 darkgrey
|
||||
" Color: rgbBlue #0000ff 21 darkblue
|
||||
" Color: rgbDarkCyan #008b8b 30 darkcyan
|
||||
" Color: Directory #00ffff 51 cyan
|
||||
" Color: rgbSeaGreen #2e8b57 29 darkgreen
|
||||
" Color: rgbGrey #bebebe 250 grey
|
||||
" Color: Question #00ff00 46 green
|
||||
" Color: SignColumn #a9a9a9 248 grey
|
||||
" Color: SpecialKey #00ffff 51 cyan
|
||||
" Color: Title #ff00ff 201 magenta
|
||||
" Color: WarningMsg #ff0000 196 red
|
||||
" Color: ToolbarLine #7f7f7f 244 darkgrey
|
||||
" Color: Underlined #80a0ff 111 blue
|
||||
" Color: elfComment #80a0ff 111 blue
|
||||
" Color: elfIdentifier #40ffff 87 cyan
|
||||
" Color: elfStatement #aa4444 131 darkred
|
||||
" Color: elfPreProc #ff80ff 213 magenta
|
||||
" Color: elfType #60ff60 83 green
|
||||
" Color: elfBlue #0000ff 21 blue
|
||||
" Term colors: xterm0 xterm1 xterm2 xterm3 xterm4 xterm5 xterm6 xterm7
|
||||
" Term colors: xterm8 xterm9 xterm10 xterm11 xterm12 xterm13
|
||||
" Term colors: xterm14 xterm15
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,56 +1,448 @@
|
||||
" Vim color file
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2016 Oct 10
|
||||
" Name: evening
|
||||
" Description: This color scheme uses a dark grey background.
|
||||
" Author: Original author Bram Moolenaar <Bram@vim.org>
|
||||
" Maintainer: Original maintainer Steven Vertigan <steven@vertigan.wattle.id.au>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:37 2022
|
||||
|
||||
" This color scheme uses a dark grey background.
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
" First remove all existing highlighting.
|
||||
set background=dark
|
||||
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
let g:colors_name = 'evening'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#000000', '#ffa500', '#2e8b57', '#ffff00', '#006faf', '#8b008b', '#008b8b', '#bebebe', '#4d4d4d', '#ff5f5f', '#00ff00', '#ffff60', '#0087ff', '#ff80ff', '#00ffff', '#ffffff']
|
||||
endif
|
||||
hi Normal guifg=#ffffff guibg=#333333 gui=NONE cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#8b0000 gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#666666 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#ffff00 guibg=#666666 gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#add8e6 guibg=#4d4d4d gui=NONE cterm=NONE
|
||||
hi StatusLine guifg=#333333 guibg=#ffffff gui=bold cterm=NONE
|
||||
hi StatusLineNC guifg=#333333 guibg=#d3d3d3 gui=NONE cterm=NONE
|
||||
hi TabLineSel guifg=#333333 guibg=#ffffff gui=bold cterm=NONE
|
||||
hi TabLine guifg=#333333 guibg=#d3d3d3 gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#ffffff guibg=#8b008b gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#ffffff guibg=#4d4d4d gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#bebebe gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#ffff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Conceal guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Cursor guifg=#000000 guibg=#00ff00 gui=NONE cterm=NONE
|
||||
hi Error guifg=#ff0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi ErrorMsg guifg=#ffffff guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#add8e6 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Folded guifg=#00008b guibg=#d3d3d3 gui=bold cterm=NONE
|
||||
hi IncSearch guifg=#00ff00 guibg=NONE gui=reverse cterm=reverse
|
||||
hi MatchParen guifg=NONE guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi ModeMsg guifg=NONE guibg=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#2e8b57 guibg=NONE gui=NONE cterm=NONE
|
||||
hi NonText guifg=#add8e6 guibg=#4d4d4d gui=NONE cterm=NONE
|
||||
hi Question guifg=#00ff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Search guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=#008b8b guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#00ff00 guibg=NONE guisp=#00ff00 gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#00ffff guibg=NONE guisp=#00ffff gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#ff80ff guibg=NONE guisp=#ff80ff gui=undercurl cterm=underline
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link TabLineFill TabLine
|
||||
hi ToolbarButton guifg=NONE guibg=#999999 gui=bold cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi VertSplit guifg=#ffffff guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi Visual guifg=#ffffff guibg=#999999 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=NONE guibg=NONE gui=bold,underline ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi WarningMsg guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=bold cterm=NONE
|
||||
hi debugBreakpoint guifg=#00008b guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi debugPC guifg=#00008b guibg=#0000ff gui=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link CursorColumn CursorLine
|
||||
hi! link CursorIM Cursor
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link Debug Special
|
||||
hi! link diffAdded String
|
||||
hi! link diffRemoved WarningMsg
|
||||
hi! link diffOnly WarningMsg
|
||||
hi! link diffNoEOL WarningMsg
|
||||
hi! link diffIsA WarningMsg
|
||||
hi! link diffIdentical WarningMsg
|
||||
hi! link diffDiffer WarningMsg
|
||||
hi! link diffCommon WarningMsg
|
||||
hi! link diffBDiffer WarningMsg
|
||||
hi! link lCursor Cursor
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Directory guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Title guifg=#ff80ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Comment guifg=#80a0ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#ffa0a0 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=#333333 guibg=NONE gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#ff80ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#ffa500 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#ffff60 guibg=NONE gui=bold cterm=NONE
|
||||
hi Todo guifg=#ffff00 guibg=#0000ff gui=reverse cterm=reverse
|
||||
hi Type guifg=#00ff00 guibg=NONE gui=bold cterm=NONE
|
||||
hi Underlined guifg=#80a0ff guibg=NONE gui=underline cterm=underline
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Constant
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Label Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link Operator Statement
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=231 ctermbg=236 cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=88 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=241 cterm=NONE
|
||||
hi CursorLineNr ctermfg=226 ctermbg=241 cterm=NONE
|
||||
hi EndOfBuffer ctermfg=153 ctermbg=239 cterm=NONE
|
||||
hi StatusLine ctermfg=236 ctermbg=231 cterm=NONE
|
||||
hi StatusLineNC ctermfg=236 ctermbg=252 cterm=NONE
|
||||
hi TabLineSel ctermfg=236 ctermbg=231 cterm=NONE
|
||||
hi TabLine ctermfg=236 ctermbg=252 cterm=NONE
|
||||
hi QuickFixLine ctermfg=231 ctermbg=90 cterm=NONE
|
||||
hi Pmenu ctermfg=231 ctermbg=239 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=250 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=231 cterm=NONE
|
||||
hi LineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Cursor ctermfg=16 ctermbg=46 cterm=NONE
|
||||
hi Error ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi ErrorMsg ctermfg=231 ctermbg=196 cterm=NONE
|
||||
hi FoldColumn ctermfg=153 ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=18 ctermbg=252 cterm=NONE
|
||||
hi IncSearch ctermfg=46 ctermbg=NONE cterm=reverse
|
||||
hi MatchParen ctermfg=NONE ctermbg=30 cterm=NONE
|
||||
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=153 ctermbg=239 cterm=NONE
|
||||
hi Question ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi SignColumn ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=46 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=51 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=201 ctermbg=NONE cterm=underline
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link TabLineFill TabLine
|
||||
hi ToolbarButton ctermfg=NONE ctermbg=246 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi VertSplit ctermfg=231 ctermbg=231 cterm=NONE
|
||||
hi Visual ctermfg=231 ctermbg=246 cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi WarningMsg ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi debugBreakpoint ctermfg=18 ctermbg=196 cterm=NONE
|
||||
hi debugPC ctermfg=18 ctermbg=21 cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link CursorColumn CursorLine
|
||||
hi! link CursorIM Cursor
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link Debug Special
|
||||
hi! link diffAdded String
|
||||
hi! link diffRemoved WarningMsg
|
||||
hi! link diffOnly WarningMsg
|
||||
hi! link diffNoEOL WarningMsg
|
||||
hi! link diffIsA WarningMsg
|
||||
hi! link diffIdentical WarningMsg
|
||||
hi! link diffDiffer WarningMsg
|
||||
hi! link diffCommon WarningMsg
|
||||
hi! link diffBDiffer WarningMsg
|
||||
hi! link lCursor Cursor
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Directory ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi Comment ctermfg=111 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=217 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=236 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=214 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=227 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=226 ctermbg=21 cterm=reverse
|
||||
hi Type ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=111 ctermbg=NONE cterm=underline
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Constant
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Label Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link Operator Statement
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
let colors_name = "evening"
|
||||
|
||||
hi Normal ctermbg=DarkGrey ctermfg=White guifg=White guibg=grey20
|
||||
|
||||
" Groups used in the 'highlight' and 'guicursor' options default value.
|
||||
hi ErrorMsg term=standout ctermbg=DarkRed ctermfg=White guibg=Red guifg=White
|
||||
hi IncSearch term=reverse cterm=reverse gui=reverse
|
||||
hi ModeMsg term=bold cterm=bold gui=bold
|
||||
hi StatusLine term=reverse,bold cterm=reverse,bold gui=reverse,bold
|
||||
hi StatusLineNC term=reverse cterm=reverse gui=reverse
|
||||
hi VertSplit term=reverse cterm=reverse gui=reverse
|
||||
hi Visual term=reverse ctermbg=black guibg=grey60
|
||||
hi VisualNOS term=underline,bold cterm=underline,bold gui=underline,bold
|
||||
hi DiffText term=reverse cterm=bold ctermbg=Red gui=bold guibg=Red
|
||||
hi Cursor guibg=Green guifg=Black
|
||||
hi lCursor guibg=Cyan guifg=Black
|
||||
hi Directory term=bold ctermfg=LightCyan guifg=Cyan
|
||||
hi LineNr term=underline ctermfg=Yellow guifg=Yellow
|
||||
hi MoreMsg term=bold ctermfg=LightGreen gui=bold guifg=SeaGreen
|
||||
hi NonText term=bold ctermfg=LightBlue gui=bold guifg=LightBlue guibg=grey30
|
||||
hi Question term=standout ctermfg=LightGreen gui=bold guifg=Green
|
||||
hi Search term=reverse ctermbg=Yellow ctermfg=Black guibg=Yellow guifg=Black
|
||||
hi SpecialKey term=bold ctermfg=LightBlue guifg=Cyan
|
||||
hi Title term=bold ctermfg=LightMagenta gui=bold guifg=Magenta
|
||||
hi WarningMsg term=standout ctermfg=LightRed guifg=Red
|
||||
hi WildMenu term=standout ctermbg=Yellow ctermfg=Black guibg=Yellow guifg=Black
|
||||
hi Folded term=standout ctermbg=LightGrey ctermfg=DarkBlue guibg=LightGrey guifg=DarkBlue
|
||||
hi FoldColumn term=standout ctermbg=LightGrey ctermfg=DarkBlue guibg=Grey guifg=DarkBlue
|
||||
hi DiffAdd term=bold ctermbg=DarkBlue guibg=DarkBlue
|
||||
hi DiffChange term=bold ctermbg=DarkMagenta guibg=DarkMagenta
|
||||
hi DiffDelete term=bold ctermfg=Blue ctermbg=DarkCyan gui=bold guifg=Blue guibg=DarkCyan
|
||||
hi CursorColumn term=reverse ctermbg=Black guibg=grey40
|
||||
hi CursorLine term=underline cterm=underline guibg=grey40
|
||||
|
||||
" Groups for syntax highlighting
|
||||
hi Constant term=underline ctermfg=Magenta guifg=#ffa0a0
|
||||
hi Special term=bold ctermfg=LightRed guifg=Orange
|
||||
if &t_Co > 8
|
||||
hi Statement term=bold cterm=bold ctermfg=Yellow guifg=#ffff60 gui=bold
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=white ctermbg=black cterm=NONE
|
||||
hi ColorColumn ctermfg=white ctermbg=darkred cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi EndOfBuffer ctermfg=lightblue ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=black ctermbg=white cterm=NONE
|
||||
hi StatusLineNC ctermfg=black ctermbg=gray cterm=NONE
|
||||
hi TabLineSel ctermfg=black ctermbg=white cterm=NONE
|
||||
hi TabLine ctermfg=black ctermbg=gray cterm=NONE
|
||||
hi QuickFixLine ctermfg=white ctermbg=darkmagenta cterm=NONE
|
||||
hi Pmenu ctermfg=white ctermbg=darkgray cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=gray cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi LineNr ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Cursor ctermfg=black ctermbg=green cterm=NONE
|
||||
hi Error ctermfg=red ctermbg=white cterm=reverse
|
||||
hi ErrorMsg ctermfg=white ctermbg=red cterm=NONE
|
||||
hi FoldColumn ctermfg=lightblue ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=darkblue ctermbg=gray cterm=NONE
|
||||
hi IncSearch ctermfg=green ctermbg=NONE cterm=reverse
|
||||
hi MatchParen ctermfg=NONE ctermbg=darkcyan cterm=NONE
|
||||
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=lightblue ctermbg=darkgray cterm=NONE
|
||||
hi Question ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi SignColumn ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=green ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=cyan ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=darkmagenta ctermbg=NONE cterm=underline
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link TabLineFill TabLine
|
||||
hi ToolbarButton ctermfg=NONE ctermbg=darkgray cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi VertSplit ctermfg=white ctermbg=white cterm=NONE
|
||||
hi Visual ctermfg=white ctermbg=darkgray cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi WarningMsg ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi debugBreakpoint ctermfg=darkblue ctermbg=red cterm=NONE
|
||||
hi debugPC ctermfg=darkblue ctermbg=blue cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link CursorColumn CursorLine
|
||||
hi! link CursorIM Cursor
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link Debug Special
|
||||
hi! link diffAdded String
|
||||
hi! link diffRemoved WarningMsg
|
||||
hi! link diffOnly WarningMsg
|
||||
hi! link diffNoEOL WarningMsg
|
||||
hi! link diffIsA WarningMsg
|
||||
hi! link diffIdentical WarningMsg
|
||||
hi! link diffDiffer WarningMsg
|
||||
hi! link diffCommon WarningMsg
|
||||
hi! link diffBDiffer WarningMsg
|
||||
hi! link lCursor Cursor
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Directory ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Comment ctermfg=lightblue ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=gray ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=darkyellow ctermbg=blue cterm=reverse
|
||||
hi Type ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=lightblue ctermbg=NONE cterm=underline
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Constant
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Label Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link Operator Statement
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
hi Ignore ctermfg=DarkGrey guifg=grey20
|
||||
|
||||
" vim: sw=2
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: dark
|
||||
" Color: lightmagenta #ffa0a0 217 magenta
|
||||
" Color: blue #0000ff 21 blue
|
||||
" Color: cyan #00ffff 51 cyan
|
||||
" Color: yellow #ffff00 226 darkyellow
|
||||
" Color: white #ffffff 231 white
|
||||
" Color: black #000000 16 black
|
||||
" Color: green #00ff00 46 green
|
||||
" Color: magenta #ff80ff 201 darkmagenta
|
||||
" Color: red #ff0000 196 red
|
||||
" Color: lightyellow #ffff60 227 yellow
|
||||
" Color: darkblue #00008b 18 darkblue
|
||||
" Color: darkcyan #008b8b 30 darkcyan
|
||||
" Color: darkmagenta #8b008b 90 darkmagenta
|
||||
" Color: lightblue #add8e6 153 lightblue
|
||||
" Color: orange #ffa500 214 darkred
|
||||
" Color: seagreen #2e8b57 29 darkgreen
|
||||
" Color: lightgrey #d3d3d3 252 gray
|
||||
" Color: grey #bebebe 250 gray
|
||||
" Color: grey20 #333333 236 gray
|
||||
" Color: grey30 #4d4d4d 239 darkgray
|
||||
" Color: grey40 #666666 241 darkgray
|
||||
" Color: grey60 #999999 246 darkgray
|
||||
" Color: xtermblue #0087ff 33 blue
|
||||
" Color: xtermdarkblue #006faf 25 darkblue
|
||||
" Color: xtermred #ff5f5f 203 red
|
||||
" Color: comment #80a0ff 111 lightblue
|
||||
" Color: darkred #8b0000 88 darkred
|
||||
" Term colors: black orange seagreen yellow xtermdarkblue darkmagenta darkcyan grey
|
||||
" Term colors: grey30 xtermred green lightyellow xtermblue magenta cyan white
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,40 +1,337 @@
|
||||
" Vim color file
|
||||
" Maintainer: Shian Lee
|
||||
" Last Change: 2014 Mar 6 (for vim 7.4)
|
||||
" Remark: "industry" stands for 'industrial' color scheme. In industrial
|
||||
" HMI (Human-Machine-Interface) programming, using a standard color
|
||||
" scheme is mandatory in many cases (in traffic-lights for example):
|
||||
" LIGHT_RED is 'Warning'
|
||||
" LIGHT_YELLOW is 'Attention'
|
||||
" LIGHT_GREEN is 'Normal'
|
||||
" LIGHT_MAGENTA is 'Warning-Attention' (light RED-YELLOW)
|
||||
" LIGHT_CYAN is 'Attention-Normal' (light YELLOW-GREEN).
|
||||
" BLACK is Dark-High-Contrast Background for maximum safety.
|
||||
" BLUE is Shade of BLACK (not supposed to get attention).
|
||||
"
|
||||
" Industrial color scheme is by nature clear, safe and productive.
|
||||
" Yet, depends on the file type's syntax, it might appear incorrect.
|
||||
" Name: industry
|
||||
" Description: "industry" stands for 'industrial' color scheme.
|
||||
" Author: Original author Shian Lee.
|
||||
" Maintainer: Original maintainer Shian Lee.
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:38 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
" Reset to dark background, then reset everything to defaults:
|
||||
set background=dark
|
||||
highlight clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
|
||||
hi clear
|
||||
let g:colors_name = 'industry'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#303030', '#870000', '#5fd75f', '#afaf00', '#87afff', '#af00af', '#00afaf', '#6c6c6c', '#444444', '#ff0000', '#00ff00', '#ffff00', '#005fff', '#ff00ff', '#00ffff', '#ffffff']
|
||||
endif
|
||||
hi Normal guifg=#dadada guibg=#000000 gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#444444 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi StatusLine guifg=#000000 guibg=#dadada gui=bold cterm=NONE
|
||||
hi StatusLineNC guifg=#000000 guibg=#6c6c6c gui=NONE cterm=NONE
|
||||
hi StatusLineTerm guifg=#000000 guibg=#00ff00 gui=bold cterm=NONE
|
||||
hi StatusLineTermNC guifg=#000000 guibg=#5fd75f gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#000000 guibg=#6c6c6c gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#dadada guibg=#444444 gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=#000000 gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#6c6c6c gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#dadada guibg=#444444 gui=NONE cterm=NONE
|
||||
hi TabLineFill guifg=NONE guibg=#6c6c6c gui=NONE cterm=NONE
|
||||
hi TabLineSel guifg=#ffffff guibg=#000000 gui=bold cterm=NONE
|
||||
hi ToolbarButton guifg=#dadada guibg=#6c6c6c gui=bold cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=#303030 gui=NONE cterm=NONE
|
||||
hi NonText guifg=#00afaf guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#00afaf guibg=NONE gui=NONE cterm=NONE
|
||||
hi Folded guifg=#00afaf guibg=#303030 gui=NONE cterm=NONE
|
||||
hi Visual guifg=#dadada guibg=#6c6c6c gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#6c6c6c gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#6c6c6c gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#ffff00 guibg=NONE gui=bold cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#444444 gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#ff00ff gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=#dadada guibg=#6c6c6c gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#ffff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#00afaf guibg=NONE gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=#00afaf guibg=NONE gui=NONE cterm=NONE
|
||||
hi Underlined guifg=#87afff guibg=NONE gui=underline cterm=underline
|
||||
hi Error guifg=#ffffff guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi ErrorMsg guifg=#ffffff guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi ModeMsg guifg=#ffffff guibg=NONE gui=bold cterm=NONE
|
||||
hi WarningMsg guifg=#870000 guibg=NONE gui=bold cterm=NONE
|
||||
hi MoreMsg guifg=#5fd75f guibg=NONE gui=bold cterm=NONE
|
||||
hi Question guifg=#00ff00 guibg=NONE gui=bold cterm=NONE
|
||||
hi Todo guifg=#005fff guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=#303030 guibg=#afaf00 gui=NONE cterm=NONE
|
||||
hi Search guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#000000 guibg=#00ff00 gui=NONE cterm=NONE
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#000000 guibg=#dadada gui=NONE cterm=NONE
|
||||
hi lCursor guifg=#000000 guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#005fff guibg=NONE guisp=#005fff gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#ff00ff guibg=NONE guisp=#ff00ff gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#00ff00 guibg=NONE guisp=#00ff00 gui=undercurl cterm=underline
|
||||
hi Comment guifg=#00afaf guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#ff00ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Function guifg=#00ff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#ffffff guibg=NONE gui=bold cterm=NONE
|
||||
hi Constant guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#ffff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Type guifg=#00ff00 guibg=NONE gui=bold cterm=NONE
|
||||
hi Special guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Delimiter guifg=#ffff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Directory guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Conceal guifg=#6c6c6c guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title guifg=#ff00ff guibg=NONE gui=bold cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=253 ctermbg=16 cterm=NONE
|
||||
hi EndOfBuffer ctermfg=238 ctermbg=16 cterm=NONE
|
||||
hi StatusLine ctermfg=16 ctermbg=253 cterm=NONE
|
||||
hi StatusLineNC ctermfg=16 ctermbg=242 cterm=NONE
|
||||
hi StatusLineTerm ctermfg=16 ctermbg=46 cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=16 ctermbg=77 cterm=NONE
|
||||
hi VertSplit ctermfg=16 ctermbg=242 cterm=NONE
|
||||
hi Pmenu ctermfg=253 ctermbg=238 cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=16 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=242 cterm=NONE
|
||||
hi TabLine ctermfg=253 ctermbg=238 cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=242 cterm=NONE
|
||||
hi TabLineSel ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi ToolbarButton ctermfg=253 ctermbg=242 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=236 cterm=NONE
|
||||
hi NonText ctermfg=37 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=37 ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=37 ctermbg=236 cterm=NONE
|
||||
hi Visual ctermfg=253 ctermbg=242 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=242 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=242 cterm=NONE
|
||||
hi CursorLineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=238 cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=201 cterm=NONE
|
||||
hi VisualNOS ctermfg=253 ctermbg=242 cterm=NONE
|
||||
hi LineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=37 ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=37 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=111 ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=231 ctermbg=196 cterm=NONE
|
||||
hi ErrorMsg ctermfg=231 ctermbg=196 cterm=NONE
|
||||
hi ModeMsg ctermfg=231 ctermbg=NONE cterm=NONE
|
||||
hi WarningMsg ctermfg=88 ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=77 ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=27 ctermbg=226 cterm=NONE
|
||||
hi MatchParen ctermfg=236 ctermbg=142 cterm=NONE
|
||||
hi Search ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi IncSearch ctermfg=16 ctermbg=46 cterm=NONE
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi Cursor ctermfg=16 ctermbg=253 cterm=NONE
|
||||
hi lCursor ctermfg=16 ctermbg=196 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=27 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=201 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=46 ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=37 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi Function ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=231 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi Delimiter ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=242 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
let colors_name = "industry"
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=white ctermbg=black cterm=NONE
|
||||
hi EndOfBuffer ctermfg=darkgrey ctermbg=black cterm=NONE
|
||||
hi StatusLine ctermfg=black ctermbg=white cterm=NONE
|
||||
hi StatusLineNC ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi StatusLineTerm ctermfg=black ctermbg=green cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=black ctermbg=darkgreen cterm=NONE
|
||||
hi VertSplit ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi Pmenu ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi TabLine ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi TabLineSel ctermfg=white ctermbg=black cterm=NONE
|
||||
hi ToolbarButton ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi NonText ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi ColorColumn ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi QuickFixLine ctermfg=black ctermbg=magenta cterm=NONE
|
||||
hi VisualNOS ctermfg=white ctermbg=grey cterm=NONE
|
||||
hi LineNr ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=darkblue ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=white ctermbg=red cterm=NONE
|
||||
hi ErrorMsg ctermfg=white ctermbg=red cterm=NONE
|
||||
hi ModeMsg ctermfg=white ctermbg=NONE cterm=NONE
|
||||
hi WarningMsg ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=blue ctermbg=yellow cterm=NONE
|
||||
hi MatchParen ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi Search ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi IncSearch ctermfg=black ctermbg=green cterm=NONE
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi Cursor ctermfg=black ctermbg=white cterm=NONE
|
||||
hi lCursor ctermfg=black ctermbg=red cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=magenta ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=green ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Function ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=white ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi Delimiter ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=grey ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" First set Normal to regular white on black text colors:
|
||||
hi Normal ctermfg=LightGray ctermbg=Black guifg=#dddddd guibg=Black
|
||||
|
||||
" Syntax highlighting (other color-groups using default, see :help group-name):
|
||||
hi Comment cterm=NONE ctermfg=DarkCyan gui=NONE guifg=#00aaaa
|
||||
hi Constant cterm=NONE ctermfg=LightCyan gui=NONE guifg=#00ffff
|
||||
hi Identifier cterm=NONE ctermfg=LightMagenta gui=NONE guifg=#ff00ff
|
||||
hi Function cterm=NONE ctermfg=LightGreen gui=NONE guifg=#00ff00
|
||||
hi Statement cterm=NONE ctermfg=White gui=bold guifg=#ffffff
|
||||
hi PreProc cterm=NONE ctermfg=Yellow gui=NONE guifg=#ffff00
|
||||
hi Type cterm=NONE ctermfg=LightGreen gui=bold guifg=#00ff00
|
||||
hi Special cterm=NONE ctermfg=LightRed gui=NONE guifg=#ff0000
|
||||
hi Delimiter cterm=NONE ctermfg=Yellow gui=NONE guifg=#ffff00
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: dark
|
||||
" Color: foreground #dadada 253 white
|
||||
" Color: background #000000 16 black
|
||||
" Color: color00 #303030 236 black
|
||||
" Color: color08 #444444 238 darkgrey
|
||||
" Color: color01 #870000 88 darkred
|
||||
" Color: color09 #FF0000 196 red
|
||||
" Color: color02 #5FD75F 77 darkgreen
|
||||
" Color: color10 #00FF00 46 green
|
||||
" Color: color03 #AFAF00 142 darkyellow
|
||||
" Color: color11 #FFFF00 226 yellow
|
||||
" Color: color04 #87AFFF 111 darkblue
|
||||
" Color: color12 #005FFF 27 blue
|
||||
" Color: color05 #AF00AF 127 darkmagenta
|
||||
" Color: color13 #FF00FF 201 magenta
|
||||
" Color: color06 #00AFAF 37 darkcyan
|
||||
" Color: color14 #00FFFF 51 cyan
|
||||
" Color: color07 #6C6C6C 242 grey
|
||||
" Color: color15 #FFFFFF 231 white
|
||||
" Term colors: color00 color01 color02 color03 color04 color05 color06 color07
|
||||
" Term colors: color08 color09 color10 color11 color12 color13 color14 color15
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,73 +1,360 @@
|
||||
" local syntax file - set colors on a per-machine basis:
|
||||
" vim: tw=0 ts=4 sw=4
|
||||
" Vim color file
|
||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||
" Last Change: 2016 Sep 04
|
||||
" Name: koehler
|
||||
" Author: original author Ron Aaron <ron@ronware.org>
|
||||
" Maintainer: original maintainer Ron Aaron <ron@ronware.org>
|
||||
" Website: https://www.github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Thu May 12 18:53:29 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=dark
|
||||
|
||||
hi clear
|
||||
set background=dark
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
let g:colors_name = 'koehler'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
hi! link Terminal Normal
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Debug Special
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Number
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link IncSearch Visual
|
||||
hi! link Keyword Statement
|
||||
hi! link Label Statement
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link Operator Statement
|
||||
hi! link PopupSelected PmenuSel
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi! link lCursor Cursor
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#000000', '#cd0000', '#00cd00', '#cdcd00', '#0000ee', '#cd00cd', '#00cdcd', '#e5e5e5', '#7f7f7f', '#ff0000', '#00ff00', '#ffff00', '#5c5cff', '#ff00ff', '#00ffff', '#ffffff']
|
||||
endif
|
||||
let g:colors_name = "koehler"
|
||||
hi Normal guifg=white guibg=black
|
||||
hi Scrollbar guifg=darkcyan guibg=cyan
|
||||
hi Menu guifg=black guibg=cyan
|
||||
hi SpecialKey term=bold cterm=bold ctermfg=darkred guifg=#cc0000
|
||||
hi NonText term=bold cterm=bold ctermfg=darkred gui=bold guifg=#cc0000
|
||||
hi Directory term=bold cterm=bold ctermfg=brown guifg=#cc8000
|
||||
hi ErrorMsg term=standout cterm=bold ctermfg=grey ctermbg=red guifg=White guibg=Red
|
||||
hi Search term=reverse ctermfg=white ctermbg=red guifg=white guibg=Red
|
||||
hi MoreMsg term=bold cterm=bold ctermfg=darkgreen gui=bold guifg=SeaGreen
|
||||
hi ModeMsg term=bold cterm=bold gui=bold guifg=White guibg=Blue
|
||||
hi LineNr term=underline cterm=bold ctermfg=darkcyan guifg=Yellow
|
||||
hi Question term=standout cterm=bold ctermfg=darkgreen gui=bold guifg=Green
|
||||
hi StatusLine term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
||||
hi StatusLineNC term=reverse ctermfg=white ctermbg=lightblue guifg=white guibg=blue
|
||||
hi Title term=bold cterm=bold ctermfg=darkmagenta gui=bold guifg=Magenta
|
||||
hi Visual term=reverse cterm=reverse gui=reverse
|
||||
hi WarningMsg term=standout cterm=bold ctermfg=darkred guifg=Red
|
||||
hi Cursor guifg=bg guibg=Green
|
||||
hi Comment term=bold cterm=bold ctermfg=cyan guifg=#80a0ff
|
||||
hi Constant term=underline cterm=bold ctermfg=magenta guifg=#ffa0a0
|
||||
hi Special term=bold cterm=bold ctermfg=red guifg=Orange
|
||||
hi Identifier term=underline ctermfg=brown guifg=#40ffff
|
||||
hi Statement term=bold cterm=bold ctermfg=yellow gui=bold guifg=#ffff60
|
||||
hi PreProc term=underline ctermfg=darkmagenta guifg=#ff80ff
|
||||
hi Type term=underline cterm=bold ctermfg=lightgreen gui=bold guifg=#60ff60
|
||||
hi Error term=reverse ctermfg=darkcyan ctermbg=black guifg=Red guibg=Black
|
||||
hi Todo term=standout ctermfg=black ctermbg=darkcyan guifg=Blue guibg=Yellow
|
||||
hi CursorLine term=underline guibg=#555555 cterm=underline
|
||||
hi CursorColumn term=underline guibg=#555555 cterm=underline
|
||||
hi MatchParen term=reverse ctermfg=blue guibg=Blue
|
||||
hi TabLine term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
||||
hi TabLineFill term=bold,reverse cterm=bold ctermfg=lightblue ctermbg=white gui=bold guifg=blue guibg=white
|
||||
hi TabLineSel term=reverse ctermfg=white ctermbg=lightblue guifg=white guibg=blue
|
||||
hi Underlined term=underline cterm=bold,underline ctermfg=lightblue guifg=lightblue gui=bold,underline
|
||||
hi Ignore ctermfg=black ctermbg=black guifg=black guibg=black
|
||||
hi EndOfBuffer term=bold cterm=bold ctermfg=darkred guifg=#cc0000 gui=bold
|
||||
hi link IncSearch Visual
|
||||
hi link String Constant
|
||||
hi link Character Constant
|
||||
hi link Number Constant
|
||||
hi link Boolean Constant
|
||||
hi link Float Number
|
||||
hi link Function Identifier
|
||||
hi link Conditional Statement
|
||||
hi link Repeat Statement
|
||||
hi link Label Statement
|
||||
hi link Operator Statement
|
||||
hi link Keyword Statement
|
||||
hi link Exception Statement
|
||||
hi link Include PreProc
|
||||
hi link Define PreProc
|
||||
hi link Macro PreProc
|
||||
hi link PreCondit PreProc
|
||||
hi link StorageClass Type
|
||||
hi link Structure Type
|
||||
hi link Typedef Type
|
||||
hi link Tag Special
|
||||
hi link SpecialChar Special
|
||||
hi link Delimiter Special
|
||||
hi link SpecialComment Special
|
||||
hi link Debug Special
|
||||
hi Normal guifg=#ffffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#8b0000 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#555555 gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#555555 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#ffff00 guibg=NONE gui=bold cterm=NONE
|
||||
hi Folded guifg=#00cdcd guibg=#666666 gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi Conceal guifg=#e5e5e5 guibg=#a9a9a9 gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#000000 guibg=#00ff00 gui=NONE cterm=NONE
|
||||
hi Directory guifg=#cc8000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#cd0000 guibg=NONE gui=bold cterm=NONE
|
||||
hi ErrorMsg guifg=#cd0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi FoldColumn guifg=#00cdcd guibg=NONE gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#ffff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=NONE guibg=#0000ff gui=NONE cterm=NONE
|
||||
hi ModeMsg guifg=#ffffff guibg=#0000ff gui=bold cterm=NONE
|
||||
hi MoreMsg guifg=#2e8b57 guibg=NONE gui=bold cterm=NONE
|
||||
hi NonText guifg=#cd0000 guibg=NONE gui=bold cterm=NONE
|
||||
hi Pmenu guifg=#ffffff guibg=#444444 gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#00cdcd gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi Question guifg=#5c5cff guibg=NONE gui=bold cterm=NONE
|
||||
hi Search guifg=#ffffff guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#cd0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#60ff60 guibg=NONE guisp=#60ff60 gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#00ffff guibg=NONE guisp=#00ffff gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#ff00ff guibg=NONE guisp=#ff00ff gui=undercurl cterm=underline
|
||||
hi StatusLine guifg=#0000ff guibg=#ffffff gui=bold cterm=NONE
|
||||
hi StatusLineNC guifg=#0000ff guibg=#e5e5e5 gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#0000ff guibg=#ffffff gui=bold cterm=NONE
|
||||
hi TabLineFill guifg=#0000ff guibg=#ffffff gui=bold cterm=NONE
|
||||
hi TabLineSel guifg=#ffffff guibg=#0000ff gui=bold cterm=NONE
|
||||
hi Title guifg=#ff00ff guibg=NONE gui=bold cterm=NONE
|
||||
hi VertSplit guifg=#0000ff guibg=#e5e5e5 gui=NONE cterm=NONE
|
||||
hi Visual guifg=NONE guibg=#666666 gui=reverse cterm=reverse
|
||||
hi VisualNOS guifg=NONE guibg=#000000 gui=bold,underline cterm=underline
|
||||
hi WarningMsg guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi Comment guifg=#80a0ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#ffa0a0 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Error guifg=#cd0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi Identifier guifg=#40ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=#000000 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#ff80ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#ffa500 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#ffff60 guibg=NONE gui=bold cterm=NONE
|
||||
hi Todo guifg=#0000ff guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi Type guifg=#60ff60 guibg=NONE gui=bold cterm=NONE
|
||||
hi Underlined guifg=#add8e6 guibg=NONE gui=bold,underline cterm=underline
|
||||
hi CursorIM guifg=NONE guibg=fg gui=NONE cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#000000 guibg=#e5e5e5 gui=bold cterm=NONE
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=88 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=240 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=240 cterm=NONE
|
||||
hi CursorLineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=44 ctermbg=59 cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi Conceal ctermfg=254 ctermbg=145 cterm=NONE
|
||||
hi Cursor ctermfg=16 ctermbg=46 cterm=NONE
|
||||
hi Directory ctermfg=172 ctermbg=NONE cterm=NONE
|
||||
hi EndOfBuffer ctermfg=160 ctermbg=NONE cterm=NONE
|
||||
hi ErrorMsg ctermfg=160 ctermbg=231 cterm=reverse
|
||||
hi FoldColumn ctermfg=44 ctermbg=NONE cterm=NONE
|
||||
hi LineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=21 cterm=NONE
|
||||
hi ModeMsg ctermfg=231 ctermbg=21 cterm=NONE
|
||||
hi MoreMsg ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=160 ctermbg=NONE cterm=NONE
|
||||
hi Pmenu ctermfg=231 ctermbg=238 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=44 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=231 cterm=NONE
|
||||
hi Question ctermfg=63 ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=231 ctermbg=196 cterm=NONE
|
||||
hi SignColumn ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=160 ctermbg=NONE cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=83 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=51 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=201 ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=21 ctermbg=231 cterm=NONE
|
||||
hi StatusLineNC ctermfg=21 ctermbg=254 cterm=NONE
|
||||
hi TabLine ctermfg=21 ctermbg=231 cterm=NONE
|
||||
hi TabLineFill ctermfg=21 ctermbg=231 cterm=NONE
|
||||
hi TabLineSel ctermfg=231 ctermbg=21 cterm=NONE
|
||||
hi Title ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi VertSplit ctermfg=21 ctermbg=254 cterm=NONE
|
||||
hi Visual ctermfg=NONE ctermbg=59 cterm=reverse
|
||||
hi VisualNOS ctermfg=NONE ctermbg=16 cterm=underline
|
||||
hi WarningMsg ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi Comment ctermfg=111 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=217 ctermbg=NONE cterm=NONE
|
||||
hi Error ctermfg=160 ctermbg=231 cterm=reverse
|
||||
hi Identifier ctermfg=87 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=16 ctermbg=16 cterm=NONE
|
||||
hi PreProc ctermfg=213 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=214 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=227 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=21 ctermbg=226 cterm=NONE
|
||||
hi Type ctermfg=83 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=153 ctermbg=NONE cterm=underline
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=white ctermbg=black cterm=NONE
|
||||
hi ColorColumn ctermfg=white ctermbg=darkred cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi Folded ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi Conceal ctermfg=grey ctermbg=grey cterm=NONE
|
||||
hi Cursor ctermfg=black ctermbg=green cterm=NONE
|
||||
hi Directory ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi EndOfBuffer ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi ErrorMsg ctermfg=darkred ctermbg=white cterm=reverse
|
||||
hi FoldColumn ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi LineNr ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=darkblue cterm=NONE
|
||||
hi ModeMsg ctermfg=white ctermbg=darkblue cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Pmenu ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi Question ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=white ctermbg=red cterm=NONE
|
||||
hi SignColumn ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=green ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=cyan ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=magenta ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=darkblue ctermbg=white cterm=NONE
|
||||
hi StatusLineNC ctermfg=darkblue ctermbg=grey cterm=NONE
|
||||
hi TabLine ctermfg=darkblue ctermbg=white cterm=NONE
|
||||
hi TabLineFill ctermfg=darkblue ctermbg=white cterm=NONE
|
||||
hi TabLineSel ctermfg=white ctermbg=darkblue cterm=NONE
|
||||
hi Title ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi VertSplit ctermfg=darkblue ctermbg=grey cterm=NONE
|
||||
hi Visual ctermfg=NONE ctermbg=darkgrey cterm=reverse
|
||||
hi VisualNOS ctermfg=NONE ctermbg=black cterm=underline
|
||||
hi WarningMsg ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi Comment ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Error ctermfg=darkred ctermbg=white cterm=reverse
|
||||
hi Identifier ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=black ctermbg=black cterm=NONE
|
||||
hi PreProc ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=darkblue ctermbg=yellow cterm=NONE
|
||||
hi Type ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: dark
|
||||
" Color: xterm0 #000000 16 black
|
||||
" Color: xterm1 #cd0000 160 darkred
|
||||
" Color: xterm2 #00cd00 40 darkgreen
|
||||
" Color: xterm3 #cdcd00 184 darkyellow
|
||||
" Color: xterm4 #0000ee 20 darkblue
|
||||
" Color: xterm5 #cd00cd 164 darkmagenta
|
||||
" Color: xterm6 #00cdcd 44 darkcyan
|
||||
" Color: xterm7 #e5e5e5 254 grey
|
||||
" Color: xterm8 #7f7f7f 102 darkgrey
|
||||
" Color: xterm9 #ff0000 196 red
|
||||
" Color: xterm10 #00ff00 46 green
|
||||
" Color: xterm11 #ffff00 226 yellow
|
||||
" Color: xterm12 #5c5cff 63 blue
|
||||
" Color: xterm13 #ff00ff 201 magenta
|
||||
" Color: xterm14 #00ffff 51 cyan
|
||||
" Color: xterm15 #ffffff 231 white
|
||||
" Color: Pmenu #444444 238 darkgrey
|
||||
" Color: rgbGrey40 #666666 59 darkgrey
|
||||
" Color: rgbDarkGrey #a9a9a9 145 grey
|
||||
" Color: rgbDarkBlue #00008b 20 darkblue
|
||||
" Color: rgbDarkMagenta #8b008b 90 darkmagenta
|
||||
" Color: rgbBlue #0000ff 21 darkblue
|
||||
" Color: rgbDarkCyan #008b8b 44 darkcyan
|
||||
" Color: rgbSeaGreen #2e8b57 29 darkgreen
|
||||
" Color: rgbGrey #bebebe 250 grey
|
||||
" Color: StatusLineTerm #90ee90 120 darkgreen
|
||||
" Color: ToolbarLine #7f7f7f 244 darkgrey
|
||||
" Color: Comment #80a0ff 111 blue
|
||||
" Color: Constant #ffa0a0 217 darkred
|
||||
" Color: Special #ffa500 214 darkyellow
|
||||
" Color: Identifier #40ffff 87 cyan
|
||||
" Color: Statement #ffff60 227 yellow
|
||||
" Color: PreProc #ff80ff 213 magenta
|
||||
" Color: Type #60ff60 83 green
|
||||
" Color: koeDirectory #cc8000 172 darkyellow
|
||||
" Color: koeCursorLine #555555 240 black
|
||||
" Color: koeLightBlue #ADD8E6 153 blue
|
||||
" Color: koeDarkRed #8b0000 88 darkred
|
||||
" Term colors: xterm0 xterm1 xterm2 xterm3 xterm4 xterm5 xterm6 xterm7
|
||||
" Term colors: xterm8 xterm9 xterm10 xterm11 xterm12 xterm13
|
||||
" Term colors: xterm14 xterm15
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,56 +1,334 @@
|
||||
" Vim color file
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2006 Apr 15
|
||||
" Name: morning
|
||||
" Description: Colorscheme with light grey background.
|
||||
" Author: Original author Bram Moolenaar <Bram@vim.org>
|
||||
" Maintainer: Original maintainer Bram Moolenaar <Bram@vim.org>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Sat May 14 11:15:43 2022
|
||||
|
||||
" This color scheme uses a light grey background.
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
" First remove all existing highlighting.
|
||||
set background=light
|
||||
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
let g:colors_name = 'morning'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#e4e4e4', '#a52a2a', '#ff00ff', '#6a0dad', '#008787', '#2e8b57', '#6a5acd', '#bcbcbc', '#0000ff', '#a52a2a', '#ff00ff', '#6a0dad', '#008787', '#2e8b57', '#6a5acd', '#000000']
|
||||
endif
|
||||
hi! link StatuslineTerm Statusline
|
||||
hi! link StatuslineTermNC StatuslineNC
|
||||
hi Normal guifg=#000000 guibg=#e4e4e4 gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#0000ff guibg=#cccccc gui=bold cterm=NONE
|
||||
hi Folded guifg=#00008b guibg=#d3d3d3 gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#d3d3d3 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#d3d3d3 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#a52a2a guibg=NONE gui=bold cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi StatusLine guifg=#eeeeee guibg=#000000 gui=bold cterm=NONE
|
||||
hi StatusLineNC guifg=#bcbcbc guibg=#000000 gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#bcbcbc guibg=#000000 gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#000000 guibg=#b2b2b2 gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=#e4e4e4 gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#000000 gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#000000 guibg=#bcbcbc gui=underline cterm=underline
|
||||
hi TabLineFill guifg=NONE guibg=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel guifg=#000000 guibg=#e4e4e4 gui=bold cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=NONE guibg=#bcbcbc gui=bold cterm=NONE
|
||||
hi NonText guifg=#0000ff guibg=#bcbcbc gui=bold cterm=NONE
|
||||
hi SpecialKey guifg=#bcbcbc guibg=NONE gui=NONE cterm=NONE
|
||||
hi Visual guifg=NONE guibg=#d0d0d0 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=NONE guibg=#0000ff gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#a52a2a guibg=NONE gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#00008b guibg=NONE gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=#00008b guibg=NONE gui=NONE cterm=NONE
|
||||
hi Underlined guifg=#6a5acd guibg=NONE gui=underline cterm=underline
|
||||
hi Error guifg=#ff0000 guibg=#e4e4e4 gui=reverse cterm=reverse
|
||||
hi ErrorMsg guifg=#ff0000 guibg=#e4e4e4 gui=reverse cterm=reverse
|
||||
hi WarningMsg guifg=#6a0dad guibg=NONE gui=bold cterm=NONE
|
||||
hi MoreMsg guifg=#2e8b57 guibg=NONE gui=bold cterm=NONE
|
||||
hi ModeMsg guifg=#000000 guibg=NONE gui=bold cterm=NONE
|
||||
hi Question guifg=#008787 guibg=NONE gui=bold cterm=NONE
|
||||
hi Todo guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=#e4e4e4 guibg=#6a5acd gui=NONE cterm=NONE
|
||||
hi Search guifg=#e4e4e4 guibg=#6a0dad gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#2e8b57 guibg=NONE gui=reverse cterm=reverse
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=bold cterm=NONE
|
||||
hi ColorColumn guifg=#000000 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#e4e4e4 guibg=#2e8b57 gui=NONE cterm=NONE
|
||||
hi lCursor guifg=#e4e4e4 guibg=#a52a2a gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#00d700 guibg=NONE guisp=#00d700 gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#a52a2a guibg=NONE guisp=#a52a2a gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#2e8b57 guibg=NONE guisp=#2e8b57 gui=undercurl cterm=underline
|
||||
hi Comment guifg=#0000ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#ff00ff guibg=#eeeeee gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#008787 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#a52a2a guibg=NONE gui=bold cterm=NONE
|
||||
hi PreProc guifg=#6a0dad guibg=NONE gui=NONE cterm=NONE
|
||||
hi Type guifg=#2e8b57 guibg=NONE gui=bold cterm=NONE
|
||||
hi Special guifg=#6a5acd guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Directory guifg=#008787 guibg=NONE gui=bold cterm=NONE
|
||||
hi Conceal guifg=#0000ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Title guifg=#a52a2a guibg=NONE gui=bold cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi! link StatuslineTerm Statusline
|
||||
hi! link StatuslineTermNC StatuslineNC
|
||||
hi Normal ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi EndOfBuffer ctermfg=21 ctermbg=252 cterm=NONE
|
||||
hi Folded ctermfg=18 ctermbg=252 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=252 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=252 cterm=NONE
|
||||
hi CursorLineNr ctermfg=124 ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi StatusLine ctermfg=255 ctermbg=16 cterm=NONE
|
||||
hi StatusLineNC ctermfg=250 ctermbg=16 cterm=NONE
|
||||
hi VertSplit ctermfg=250 ctermbg=16 cterm=NONE
|
||||
hi Pmenu ctermfg=16 ctermbg=249 cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=254 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=16 cterm=NONE
|
||||
hi TabLine ctermfg=16 ctermbg=250 cterm=underline
|
||||
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=NONE ctermbg=250 cterm=NONE
|
||||
hi NonText ctermfg=21 ctermbg=250 cterm=NONE
|
||||
hi SpecialKey ctermfg=250 ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=NONE ctermbg=252 cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=21 cterm=NONE
|
||||
hi LineNr ctermfg=124 ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=18 ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=18 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=62 ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=196 ctermbg=254 cterm=reverse
|
||||
hi ErrorMsg ctermfg=196 ctermbg=254 cterm=reverse
|
||||
hi WarningMsg ctermfg=55 ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi ModeMsg ctermfg=16 ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi MatchParen ctermfg=254 ctermbg=62 cterm=NONE
|
||||
hi Search ctermfg=254 ctermbg=55 cterm=NONE
|
||||
hi IncSearch ctermfg=29 ctermbg=NONE cterm=reverse
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi ColorColumn ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi Cursor ctermfg=254 ctermbg=29 cterm=NONE
|
||||
hi lCursor ctermfg=254 ctermbg=124 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=40 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=124 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=29 ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=201 ctermbg=255 cterm=NONE
|
||||
hi Identifier ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=124 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=55 ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=62 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=124 ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
let colors_name = "morning"
|
||||
|
||||
hi Normal ctermfg=Black ctermbg=LightGrey guifg=Black guibg=grey90
|
||||
|
||||
" Groups used in the 'highlight' and 'guicursor' options default value.
|
||||
hi ErrorMsg term=standout ctermbg=DarkRed ctermfg=White guibg=Red guifg=White
|
||||
hi IncSearch term=reverse cterm=reverse gui=reverse
|
||||
hi ModeMsg term=bold cterm=bold gui=bold
|
||||
hi StatusLine term=reverse,bold cterm=reverse,bold gui=reverse,bold
|
||||
hi StatusLineNC term=reverse cterm=reverse gui=reverse
|
||||
hi VertSplit term=reverse cterm=reverse gui=reverse
|
||||
hi Visual term=reverse ctermbg=grey guibg=grey80
|
||||
hi VisualNOS term=underline,bold cterm=underline,bold gui=underline,bold
|
||||
hi DiffText term=reverse cterm=bold ctermbg=Red gui=bold guibg=Red
|
||||
hi Cursor guibg=Green guifg=NONE
|
||||
hi lCursor guibg=Cyan guifg=NONE
|
||||
hi Directory term=bold ctermfg=DarkBlue guifg=Blue
|
||||
hi LineNr term=underline ctermfg=Brown guifg=Brown
|
||||
hi MoreMsg term=bold ctermfg=DarkGreen gui=bold guifg=SeaGreen
|
||||
hi NonText term=bold ctermfg=Blue gui=bold guifg=Blue guibg=grey80
|
||||
hi Question term=standout ctermfg=DarkGreen gui=bold guifg=SeaGreen
|
||||
hi Search term=reverse ctermbg=Yellow ctermfg=NONE guibg=Yellow guifg=NONE
|
||||
hi SpecialKey term=bold ctermfg=DarkBlue guifg=Blue
|
||||
hi Title term=bold ctermfg=DarkMagenta gui=bold guifg=Magenta
|
||||
hi WarningMsg term=standout ctermfg=DarkRed guifg=Red
|
||||
hi WildMenu term=standout ctermbg=Yellow ctermfg=Black guibg=Yellow guifg=Black
|
||||
hi Folded term=standout ctermbg=Grey ctermfg=DarkBlue guibg=LightGrey guifg=DarkBlue
|
||||
hi FoldColumn term=standout ctermbg=Grey ctermfg=DarkBlue guibg=Grey guifg=DarkBlue
|
||||
hi DiffAdd term=bold ctermbg=LightBlue guibg=LightBlue
|
||||
hi DiffChange term=bold ctermbg=LightMagenta guibg=LightMagenta
|
||||
hi DiffDelete term=bold ctermfg=Blue ctermbg=LightCyan gui=bold guifg=Blue guibg=LightCyan
|
||||
hi CursorLine term=underline cterm=underline guibg=grey80
|
||||
hi CursorColumn term=reverse ctermbg=grey guibg=grey80
|
||||
|
||||
" Colors for syntax highlighting
|
||||
hi Constant term=underline ctermfg=DarkRed guifg=Magenta guibg=grey95
|
||||
hi Special term=bold ctermfg=DarkMagenta guifg=SlateBlue guibg=grey95
|
||||
if &t_Co > 8
|
||||
hi Statement term=bold cterm=bold ctermfg=Brown gui=bold guifg=Brown
|
||||
if s:t_Co >= 16
|
||||
hi! link StatuslineTerm Statusline
|
||||
hi! link StatuslineTermNC StatuslineNC
|
||||
hi Normal ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi EndOfBuffer ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=darkred ctermbg=NONE cterm=underline
|
||||
hi QuickFixLine ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi StatusLine ctermfg=white ctermbg=black cterm=NONE
|
||||
hi StatusLineNC ctermfg=darkgrey ctermbg=black cterm=NONE
|
||||
hi VertSplit ctermfg=darkgrey ctermbg=black cterm=NONE
|
||||
hi Pmenu ctermfg=black ctermbg=white cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi TabLine ctermfg=black ctermbg=white cterm=underline
|
||||
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi NonText ctermfg=blue ctermbg=white cterm=NONE
|
||||
hi SpecialKey ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=blue cterm=NONE
|
||||
hi LineNr ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=darkblue ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=red ctermbg=grey cterm=reverse
|
||||
hi ErrorMsg ctermfg=red ctermbg=grey cterm=reverse
|
||||
hi WarningMsg ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi ModeMsg ctermfg=black ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi MatchParen ctermfg=grey ctermbg=darkblue cterm=NONE
|
||||
hi Search ctermfg=grey ctermbg=darkmagenta cterm=NONE
|
||||
hi IncSearch ctermfg=darkgreen ctermbg=NONE cterm=reverse
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi ColorColumn ctermfg=black ctermbg=white cterm=NONE
|
||||
hi Cursor ctermfg=grey ctermbg=darkgreen cterm=NONE
|
||||
hi lCursor ctermfg=grey ctermbg=darkred cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=darkcyan ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=darkred ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=darkgreen ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=magenta ctermbg=white cterm=NONE
|
||||
hi Identifier ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
hi Ignore ctermfg=LightGrey guifg=grey90
|
||||
|
||||
" vim: sw=2
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: light
|
||||
" Color: comment #0000ff 21 blue
|
||||
" Color: constant #ff00ff 201 magenta
|
||||
" Color: identifier #008787 30 darkcyan
|
||||
" Color: statement #a52a2a 124 darkred
|
||||
" Color: preproc #6a0dad 55 darkmagenta
|
||||
" Color: type #2e8b57 29 darkgreen
|
||||
" Color: special #6a5acd 62 darkblue
|
||||
" Color: fg0 #000000 16 black
|
||||
" Color: bg0 #e4e4e4 254 grey
|
||||
" Color: bg1 #bcbcbc 250 white
|
||||
" Color: status #bcbcbc 250 darkgrey
|
||||
" Color: bg2 #eeeeee 255 white
|
||||
" Color: endofbuffer #cccccc 252 darkgrey
|
||||
" Color: visual #d0d0d0 252 white
|
||||
" Color: folded #d3d3d3 252 darkgrey
|
||||
" Color: folded_fg #00008b 18 darkblue
|
||||
" Color: pmenu #b2b2b2 249 white
|
||||
" Color: wildmenu #ffff00 226 yellow
|
||||
" Color: error #ff0000 196 red
|
||||
" Color: colorcolumn #ffffff 231 white
|
||||
" Color: spellcap #00d700 40 green
|
||||
" Term colors: bg0 statement constant preproc identifier type special bg1
|
||||
" Term colors: comment statement constant preproc identifier type special fg0
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,41 +1,335 @@
|
||||
" local syntax file - set colors on a per-machine basis:
|
||||
" vim: tw=0 ts=4 sw=4
|
||||
" Vim color file
|
||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||
" Last Change: 2003 May 02
|
||||
" Name: murphy
|
||||
" Description: Green foreground black background.
|
||||
" Author: Original author Ron Aaron <ron@ronware.org>.
|
||||
" Maintainer: Original maintainer Ron Aaron <ron@ronware.org>.
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:41 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=dark
|
||||
|
||||
hi clear
|
||||
set background=dark
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
let g:colors_name = "murphy"
|
||||
let g:colors_name = 'murphy'
|
||||
|
||||
hi Normal ctermbg=Black ctermfg=lightgreen guibg=Black guifg=lightgreen
|
||||
hi Comment term=bold ctermfg=LightRed guifg=Orange
|
||||
hi Constant term=underline ctermfg=LightGreen guifg=White gui=NONE
|
||||
hi Identifier term=underline ctermfg=LightCyan guifg=#00ffff
|
||||
hi Ignore ctermfg=black guifg=bg
|
||||
hi PreProc term=underline ctermfg=LightBlue guifg=Wheat
|
||||
hi Search term=reverse guifg=white guibg=Blue
|
||||
hi Special term=bold ctermfg=LightRed guifg=magenta
|
||||
hi Statement term=bold ctermfg=Yellow guifg=#ffff00 gui=NONE
|
||||
hi Type ctermfg=LightGreen guifg=grey gui=none
|
||||
hi Error term=reverse ctermbg=Red ctermfg=White guibg=Red guifg=White
|
||||
hi Todo term=standout ctermbg=Yellow ctermfg=Black guifg=Blue guibg=Yellow
|
||||
" From the source:
|
||||
hi Cursor guifg=Orchid guibg=fg
|
||||
hi Directory term=bold ctermfg=LightCyan guifg=Cyan
|
||||
hi ErrorMsg term=standout ctermbg=DarkRed ctermfg=White guibg=Red guifg=White
|
||||
hi IncSearch term=reverse cterm=reverse gui=reverse
|
||||
hi LineNr term=underline ctermfg=Yellow guifg=Yellow
|
||||
hi ModeMsg term=bold cterm=bold gui=bold
|
||||
hi MoreMsg term=bold ctermfg=LightGreen gui=bold guifg=SeaGreen
|
||||
hi NonText term=bold ctermfg=Blue gui=bold guifg=Blue
|
||||
hi Question term=standout ctermfg=LightGreen gui=bold guifg=Cyan
|
||||
hi SpecialKey term=bold ctermfg=LightBlue guifg=Cyan
|
||||
hi StatusLine term=reverse,bold cterm=reverse gui=NONE guifg=White guibg=darkblue
|
||||
hi StatusLineNC term=reverse cterm=reverse gui=NONE guifg=white guibg=#333333
|
||||
hi Title term=bold ctermfg=LightMagenta gui=bold guifg=Pink
|
||||
hi WarningMsg term=standout ctermfg=LightRed guifg=Red
|
||||
hi Visual term=reverse cterm=reverse gui=NONE guifg=white guibg=darkgreen
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#303030', '#ffa700', '#005f00', '#ffd7af', '#87afff', '#ffafaf', '#00afaf', '#bcbcbc', '#444444', '#ff0000', '#00875f', '#ffff00', '#005fff', '#ff00ff', '#00ffff', '#ffffff']
|
||||
endif
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi Normal guifg=#87ff87 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#0000ff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi StatusLine guifg=#ffffff guibg=#00008b gui=NONE cterm=NONE
|
||||
hi StatusLineNC guifg=#ffffff guibg=#3a3a3a gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#ffffff guibg=#3a3a3a gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#ffffff guibg=#444444 gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=#303030 gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#bcbcbc gui=NONE cterm=NONE
|
||||
hi TabLineFill guifg=NONE guibg=#303030 gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#87ff87 guibg=#444444 gui=NONE cterm=NONE
|
||||
hi TabLineSel guifg=#ffffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=#303030 gui=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#ffffff guibg=#444444 gui=bold cterm=NONE
|
||||
hi NonText guifg=#00afaf guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#00afaf guibg=NONE gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#303030 guibg=#00afaf gui=NONE cterm=NONE
|
||||
hi Folded guifg=#00afaf guibg=#303030 gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#444444 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#444444 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#ffff00 guibg=NONE gui=bold cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#262626 gui=NONE cterm=NONE
|
||||
hi Visual guifg=#ffffff guibg=#005f00 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=#ffffff guibg=#005f00 gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#ffff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#00afaf guibg=NONE gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=#00afaf guibg=NONE gui=NONE cterm=NONE
|
||||
hi Underlined guifg=#00afaf guibg=NONE gui=underline cterm=underline
|
||||
hi Error guifg=#ffffff guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi ErrorMsg guifg=#ffffff guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi ModeMsg guifg=#87ff87 guibg=NONE gui=bold cterm=NONE
|
||||
hi WarningMsg guifg=#ffa700 guibg=NONE gui=bold cterm=NONE
|
||||
hi MoreMsg guifg=#005f00 guibg=NONE gui=bold cterm=NONE
|
||||
hi Question guifg=#00ffff guibg=NONE gui=bold cterm=NONE
|
||||
hi Todo guifg=#0000ff guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=#303030 guibg=#ffd7af gui=NONE cterm=NONE
|
||||
hi Search guifg=#ffffff guibg=#0000ff gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#ffa700 guibg=NONE gui=reverse cterm=reverse
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#000000 guibg=#87ff87 gui=NONE cterm=NONE
|
||||
hi lCursor guifg=#000000 guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#00ffff guibg=NONE guisp=#00ffff gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#ffd7af guibg=NONE guisp=#ffd7af gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#ffff00 guibg=NONE guisp=#ffff00 gui=undercurl cterm=underline
|
||||
hi Comment guifg=#ffa700 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#ffff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#ffffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#ffd7af guibg=NONE gui=NONE cterm=NONE
|
||||
hi Type guifg=#bcbcbc guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#ff00ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Directory guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Conceal guifg=#bcbcbc guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title guifg=#ff00ff guibg=NONE gui=bold cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi Normal ctermfg=120 ctermbg=16 cterm=NONE
|
||||
hi EndOfBuffer ctermfg=21 ctermbg=16 cterm=NONE
|
||||
hi StatusLine ctermfg=231 ctermbg=18 cterm=NONE
|
||||
hi StatusLineNC ctermfg=231 ctermbg=237 cterm=NONE
|
||||
hi VertSplit ctermfg=231 ctermbg=237 cterm=NONE
|
||||
hi Pmenu ctermfg=231 ctermbg=238 cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=236 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=250 cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=236 cterm=NONE
|
||||
hi TabLine ctermfg=120 ctermbg=238 cterm=NONE
|
||||
hi TabLineSel ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=236 cterm=NONE
|
||||
hi ToolbarButton ctermfg=231 ctermbg=238 cterm=NONE
|
||||
hi NonText ctermfg=37 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=37 ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=236 ctermbg=37 cterm=NONE
|
||||
hi Folded ctermfg=37 ctermbg=236 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=238 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=238 cterm=NONE
|
||||
hi CursorLineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=235 cterm=NONE
|
||||
hi Visual ctermfg=231 ctermbg=22 cterm=NONE
|
||||
hi VisualNOS ctermfg=231 ctermbg=22 cterm=NONE
|
||||
hi LineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=37 ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=37 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=37 ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=231 ctermbg=196 cterm=NONE
|
||||
hi ErrorMsg ctermfg=231 ctermbg=196 cterm=NONE
|
||||
hi ModeMsg ctermfg=120 ctermbg=NONE cterm=NONE
|
||||
hi WarningMsg ctermfg=214 ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=22 ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=21 ctermbg=226 cterm=NONE
|
||||
hi MatchParen ctermfg=236 ctermbg=223 cterm=NONE
|
||||
hi Search ctermfg=231 ctermbg=21 cterm=NONE
|
||||
hi IncSearch ctermfg=214 ctermbg=NONE cterm=reverse
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi Cursor ctermfg=16 ctermbg=120 cterm=NONE
|
||||
hi lCursor ctermfg=16 ctermbg=196 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=51 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=223 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=226 ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=214 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=231 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=223 ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=250 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=250 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 16
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi Normal ctermfg=green ctermbg=black cterm=NONE
|
||||
hi EndOfBuffer ctermfg=blue ctermbg=black cterm=NONE
|
||||
hi StatusLine ctermfg=white ctermbg=darkblue cterm=NONE
|
||||
hi StatusLineNC ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi VertSplit ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi Pmenu ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi TabLine ctermfg=green ctermbg=darkgrey cterm=NONE
|
||||
hi TabLineSel ctermfg=white ctermbg=black cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi ToolbarButton ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi NonText ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi Folded ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi ColorColumn ctermfg=green ctermbg=darkgrey cterm=NONE
|
||||
hi Visual ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi VisualNOS ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi LineNr ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=darkcyan ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=white ctermbg=red cterm=NONE
|
||||
hi ErrorMsg ctermfg=white ctermbg=red cterm=NONE
|
||||
hi ModeMsg ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi WarningMsg ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=blue ctermbg=yellow cterm=NONE
|
||||
hi MatchParen ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi Search ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi IncSearch ctermfg=darkred ctermbg=NONE cterm=reverse
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi Cursor ctermfg=black ctermbg=green cterm=NONE
|
||||
hi lCursor ctermfg=black ctermbg=red cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=cyan ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=darkyellow ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=white ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=grey ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=grey ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: dark
|
||||
" Color: foreground #87FF87 120 green
|
||||
" Color: background #000000 16 black
|
||||
" Color: color00 #303030 236 black
|
||||
" Color: color08 #444444 238 darkgrey
|
||||
" Color: color01 #FFA700 214 darkred
|
||||
" Color: color09 #FF0000 196 red
|
||||
" Color: color02 #005F00 22 darkgreen
|
||||
" Color: color10 #00875F 29 green
|
||||
" Color: color03 #FFD7AF 223 darkyellow
|
||||
" Color: color11 #FFFF00 226 yellow
|
||||
" Color: color04 #00008B 18 darkblue
|
||||
" Color: color12 #0000FF 21 blue
|
||||
" Color: color05 #FFAFAF 217 darkmagenta
|
||||
" Color: color13 #FF00FF 201 magenta
|
||||
" Color: color06 #00AFAF 37 darkcyan
|
||||
" Color: color14 #00FFFF 51 cyan
|
||||
" Color: color07 #BCBCBC 250 grey
|
||||
" Color: color15 #FFFFFF 231 white
|
||||
" Color: color16 #262626 235 black
|
||||
" Color: color17 #3A3A3A 237 darkgrey
|
||||
" Color: color04t #87AFFF 111 darkblue
|
||||
" Color: color12t #005FFF 27 blue
|
||||
" Term colors: color00 color01 color02 color03 color04t color05 color06 color07
|
||||
" Term colors: color08 color09 color10 color11 color12t color13 color14 color15
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,26 +1,362 @@
|
||||
" local syntax file - set colors on a per-machine basis:
|
||||
" vim: tw=0 ts=4 sw=4
|
||||
" Vim color file
|
||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||
" Last Change: 2003 May 02
|
||||
" Name: pablo
|
||||
" Author: Ron Aaron <ron@ronware.org>
|
||||
" Maintainer: Original maintainerRon Aaron <ron@ronware.org>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:41 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=dark
|
||||
|
||||
hi clear
|
||||
set background=dark
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
let g:colors_name = "pablo"
|
||||
let g:colors_name = 'pablo'
|
||||
|
||||
highlight Comment ctermfg=8 guifg=#808080
|
||||
highlight Constant ctermfg=14 cterm=none guifg=#00ffff gui=none
|
||||
highlight Identifier ctermfg=6 guifg=#00c0c0
|
||||
highlight Statement ctermfg=3 cterm=bold guifg=#c0c000 gui=bold
|
||||
highlight PreProc ctermfg=10 guifg=#00ff00
|
||||
highlight Type ctermfg=2 guifg=#00c000
|
||||
highlight Special ctermfg=12 guifg=#0000ff
|
||||
highlight Error ctermbg=9 guibg=#ff0000
|
||||
highlight Todo ctermfg=4 ctermbg=3 guifg=#000080 guibg=#c0c000
|
||||
highlight Directory ctermfg=2 guifg=#00c000
|
||||
highlight StatusLine ctermfg=11 ctermbg=12 cterm=none guifg=#ffff00 guibg=#0000ff gui=none
|
||||
highlight Normal guifg=#ffffff guibg=#000000
|
||||
highlight Search ctermbg=3 guibg=#c0c000
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#000000', '#cd0000', '#00cd00', '#cdcd00', '#0000ee', '#cd00cd', '#00cdcd', '#e5e5e5', '#7f7f7f', '#ff0000', '#00ff00', '#ffff00', '#5c5cff', '#ff00ff', '#00ffff', '#ffffff']
|
||||
endif
|
||||
hi Normal guifg=#ffffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Comment guifg=#808080 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#00c0c0 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#c0c000 guibg=NONE gui=bold cterm=NONE
|
||||
hi PreProc guifg=#00ff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Type guifg=#00c000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#0000ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Underlined guifg=#80a0ff guibg=NONE gui=underline cterm=underline
|
||||
hi Ignore guifg=#000000 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi Error guifg=#ffffff guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi Todo guifg=#000000 guibg=#c0c000 gui=NONE cterm=NONE
|
||||
hi Conceal guifg=#e5e5e5 guibg=#a9a9a9 gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#000000 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi lCursor guifg=#000000 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi CursorIM guifg=NONE guibg=fg gui=NONE cterm=NONE
|
||||
hi Title guifg=#ff00ff guibg=NONE gui=bold cterm=NONE
|
||||
hi Directory guifg=#00c000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Search guifg=#000000 guibg=#c0c000 gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#ffffff guibg=NONE gui=reverse cterm=reverse
|
||||
hi NonText guifg=#0000ff guibg=NONE gui=bold cterm=NONE
|
||||
hi EndOfBuffer guifg=#0000ff guibg=NONE gui=bold cterm=NONE
|
||||
hi ErrorMsg guifg=#ffffff guibg=#cd0000 gui=NONE cterm=NONE
|
||||
hi WarningMsg guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=#00ffff guibg=#a9a9a9 gui=NONE cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#4d4d4d gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#7f7f7f guibg=#303030 gui=NONE cterm=NONE
|
||||
hi Folded guifg=#7f7f7f guibg=#303030 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#3a3a3a gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#3a3a3a gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#ffff00 guibg=#3a3a3a gui=bold cterm=NONE
|
||||
hi Visual guifg=#00008b guibg=#a9a9a9 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=NONE guibg=#000000 gui=bold,underline cterm=underline
|
||||
hi LineNr guifg=#7f7f7f guibg=NONE gui=NONE cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi MatchParen guifg=NONE guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi ModeMsg guifg=NONE guibg=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#5c5cff guibg=NONE gui=bold cterm=NONE
|
||||
hi Question guifg=#00ff00 guibg=NONE gui=bold cterm=NONE
|
||||
hi SpecialKey guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#00cdcd gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#5c5cff guibg=NONE guisp=#5c5cff gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#ff00ff guibg=NONE guisp=#ff00ff gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#ffff00 guibg=NONE guisp=#ffff00 gui=undercurl cterm=underline
|
||||
hi StatusLine guifg=#ffff00 guibg=#0000ee gui=NONE cterm=NONE
|
||||
hi StatusLineNC guifg=#000000 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#000000 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#ffffff guibg=#7f7f7f gui=NONE cterm=NONE
|
||||
hi TabLineFill guifg=NONE guibg=#000000 gui=reverse cterm=reverse
|
||||
hi TabLineSel guifg=#ffffff guibg=#000000 gui=bold cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=#000000 gui=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#000000 guibg=#e5e5e5 gui=bold cterm=NONE
|
||||
hi Pmenu guifg=fg guibg=#303030 gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#e5e5e5 gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Comment ctermfg=244 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=37 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=142 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=34 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=111 ctermbg=NONE cterm=underline
|
||||
hi Ignore ctermfg=16 ctermbg=16 cterm=NONE
|
||||
hi Error ctermfg=231 ctermbg=196 cterm=NONE
|
||||
hi Todo ctermfg=16 ctermbg=142 cterm=NONE
|
||||
hi Conceal ctermfg=254 ctermbg=248 cterm=NONE
|
||||
hi Cursor ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi lCursor ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi Title ctermfg=225 ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=34 ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=16 ctermbg=142 cterm=NONE
|
||||
hi IncSearch ctermfg=231 ctermbg=NONE cterm=reverse
|
||||
hi NonText ctermfg=63 ctermbg=NONE cterm=NONE
|
||||
hi EndOfBuffer ctermfg=63 ctermbg=NONE cterm=NONE
|
||||
hi ErrorMsg ctermfg=231 ctermbg=160 cterm=NONE
|
||||
hi WarningMsg ctermfg=224 ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=51 ctermbg=248 cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=239 cterm=NONE
|
||||
hi FoldColumn ctermfg=102 ctermbg=236 cterm=NONE
|
||||
hi Folded ctermfg=102 ctermbg=236 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=237 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=237 cterm=NONE
|
||||
hi CursorLineNr ctermfg=226 ctermbg=237 cterm=NONE
|
||||
hi Visual ctermfg=20 ctermbg=248 cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=16 cterm=underline
|
||||
hi LineNr ctermfg=102 ctermbg=NONE cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi MatchParen ctermfg=NONE ctermbg=44 cterm=NONE
|
||||
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=63 ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=121 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=81 ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=44 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=63 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=201 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=226 ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=226 ctermbg=20 cterm=NONE
|
||||
hi StatusLineNC ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi VertSplit ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi TabLine ctermfg=231 ctermbg=102 cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=16 cterm=reverse
|
||||
hi TabLineSel ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=16 cterm=NONE
|
||||
hi ToolbarButton ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi Pmenu ctermfg=fg ctermbg=236 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=231 cterm=NONE
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=white ctermbg=black cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi Comment ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=darkgreen ctermbg=NONE cterm=underline
|
||||
hi Ignore ctermfg=black ctermbg=black cterm=NONE
|
||||
hi Error ctermfg=white ctermbg=red cterm=NONE
|
||||
hi Todo ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi Conceal ctermfg=grey ctermbg=grey cterm=NONE
|
||||
hi Cursor ctermfg=black ctermbg=white cterm=NONE
|
||||
hi lCursor ctermfg=black ctermbg=white cterm=NONE
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi Title ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi IncSearch ctermfg=white ctermbg=NONE cterm=reverse
|
||||
hi NonText ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi EndOfBuffer ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi ErrorMsg ctermfg=white ctermbg=darkred cterm=NONE
|
||||
hi WarningMsg ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=cyan ctermbg=black cterm=NONE
|
||||
hi ColorColumn ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi FoldColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi Visual ctermfg=darkblue ctermbg=grey cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=black cterm=underline
|
||||
hi LineNr ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi MatchParen ctermfg=NONE ctermbg=darkcyan cterm=NONE
|
||||
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi QuickFixLine ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=magenta ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=yellow ctermbg=darkblue cterm=NONE
|
||||
hi StatusLineNC ctermfg=black ctermbg=white cterm=NONE
|
||||
hi VertSplit ctermfg=black ctermbg=white cterm=NONE
|
||||
hi TabLine ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=black cterm=reverse
|
||||
hi TabLineSel ctermfg=white ctermbg=black cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi ToolbarButton ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi Pmenu ctermfg=fg ctermbg=darkgrey cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: dark
|
||||
" Color: color00 #000000 16 black
|
||||
" Color: color08 #7f7f7f 102 darkgrey
|
||||
" Color: color01 #cd0000 160 darkred
|
||||
" Color: color09 #ff0000 196 red
|
||||
" Color: color02 #00cd00 40 darkgreen
|
||||
" Color: color10 #00ff00 46 green
|
||||
" Color: color03 #cdcd00 184 darkyellow
|
||||
" Color: color11 #ffff00 226 yellow
|
||||
" Color: color04 #0000ee 20 darkblue
|
||||
" Color: color12 #5c5cff 63 blue
|
||||
" Color: color05 #cd00cd 164 darkmagenta
|
||||
" Color: color13 #ff00ff 201 magenta
|
||||
" Color: color06 #00cdcd 44 darkcyan
|
||||
" Color: color14 #00ffff 51 cyan
|
||||
" Color: color07 #e5e5e5 254 grey
|
||||
" Color: color15 #ffffff 231 white
|
||||
" Term colors: color00 color01 color02 color03 color04 color05 color06 color07
|
||||
" Term colors: color08 color09 color10 color11 color12 color13 color14 color15
|
||||
" Color: rgbGrey30 #4d4d4d 239 darkgrey
|
||||
" Color: rgbGrey40 #666666 241 darkgrey
|
||||
" Color: rgbDarkGrey #a9a9a9 248 grey
|
||||
" Color: rgbDarkBlue #00008b 20 darkblue
|
||||
" Color: rgbDarkMagenta #8b008b 164 darkmagenta
|
||||
" Color: rgbBlue #0000ff 63 blue
|
||||
" Color: rgbDarkCyan #008b8b 44 darkcyan
|
||||
" Color: rgbSeaGreen #2e8b57 121 darkgreen
|
||||
" Color: rgbGrey #bebebe 248 grey
|
||||
" Color: Question #00ff00 121 green
|
||||
" Color: SignColumn #a9a9a9 248 black
|
||||
" Color: SpecialKey #00ffff 81 cyan
|
||||
" Color: StatusLineTerm #90ee90 121 darkgreen
|
||||
" Color: Title #ff00ff 225 magenta
|
||||
" Color: WarningMsg #ff0000 224 darkred
|
||||
" Color: ToolbarLine #7f7f7f 242 darkgrey
|
||||
" Color: ToolbarButton #d3d3d3 254 grey
|
||||
" Color: Underlined #80a0ff 111 darkgreen
|
||||
" Color: Comment #808080 244 darkgrey
|
||||
" Color: Constant #00ffff 51 cyan
|
||||
" Color: Special #0000ff 21 blue
|
||||
" Color: Identifier #00c0c0 37 darkcyan
|
||||
" Color: Search #c0c000 142 darkyellow
|
||||
" Color: Statement #c0c000 142 darkyellow
|
||||
" Color: Todo #c0c000 142 darkyellow
|
||||
" Color: PreProc #00ff00 46 green
|
||||
" Color: Type #00c000 34 darkgreen
|
||||
" Color: Directory #00c000 34 darkgreen
|
||||
" Color: Pmenu #303030 236 darkgrey
|
||||
" Color: Folded #303030 236 darkgrey
|
||||
" Color: Cursorline #3a3a3a 237 darkgrey
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,60 +1,335 @@
|
||||
" Vim color file
|
||||
" Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
|
||||
" Last Change: 2003-04-23
|
||||
" URL: http://trific.ath.cx/Ftp/vim/colors/peachpuff.vim
|
||||
" Name: peachpuff
|
||||
" Description: This color scheme uses a peachpuff background (what you've expected when it's " called peachpuff?).
|
||||
" Author: Original author David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
|
||||
" Maintainer: Original maintainer David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:43 2022
|
||||
|
||||
" This color scheme uses a peachpuff background (what you've expected when it's
|
||||
" called peachpuff?).
|
||||
"
|
||||
" Note: Only GUI colors differ from default, on terminal it's just `light'.
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
" First remove all existing highlighting.
|
||||
set background=light
|
||||
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
let g:colors_name = 'peachpuff'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#ffdab9', '#a52a2a', '#c00058', '#cd00cd', '#008b8b', '#2e8b57', '#6a5acd', '#737373', '#406090', '#a52a2a', '#c00058', '#cd00cd', '#008b8b', '#2e8b57', '#6a5acd', '#000000']
|
||||
endif
|
||||
hi Normal guifg=#000000 guibg=#ffdab9 gui=NONE cterm=NONE
|
||||
hi Folded guifg=#000000 guibg=#e3c1a5 gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#f5c195 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#f5c195 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#cd0000 guibg=NONE gui=bold cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#ffaf87 gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#737373 guibg=NONE gui=NONE cterm=NONE
|
||||
hi StatusLine guifg=#ffffff guibg=#000000 gui=bold cterm=NONE
|
||||
hi StatusLineNC guifg=#ffdab9 guibg=#737373 gui=bold cterm=NONE
|
||||
hi StatusLineTerm guifg=#ffffff guibg=#2e8b57 gui=bold cterm=NONE
|
||||
hi StatusLineTermNC guifg=#ffdab9 guibg=#008b8b gui=bold cterm=NONE
|
||||
hi VertSplit guifg=#ffdab9 guibg=#737373 gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#000000 guibg=#ffaf87 gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#f5c195 gui=bold cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=#ffdab9 gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#737373 gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#ffdab9 guibg=#737373 gui=underline cterm=underline
|
||||
hi TabLineFill guifg=NONE guibg=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel guifg=#000000 guibg=#ffdab9 gui=bold cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#ffdab9 guibg=#737373 gui=bold cterm=NONE
|
||||
hi NonText guifg=#737373 guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#737373 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Visual guifg=#000000 guibg=#cccccc gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=NONE guibg=#406090 gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#cd0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#406090 guibg=NONE gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined guifg=#6a5acd guibg=NONE gui=underline cterm=underline
|
||||
hi Error guifg=#ff0000 guibg=#ffffff gui=bold,reverse cterm=reverse
|
||||
hi ErrorMsg guifg=#ff0000 guibg=#ffffff gui=bold,reverse cterm=reverse
|
||||
hi WarningMsg guifg=#cd00cd guibg=#ffdab9 gui=bold cterm=NONE
|
||||
hi MoreMsg guifg=#2e8b57 guibg=#ffdab9 gui=bold cterm=NONE
|
||||
hi ModeMsg guifg=#000000 guibg=#ffdab9 gui=bold cterm=NONE
|
||||
hi Question guifg=#c00058 guibg=NONE gui=bold cterm=NONE
|
||||
hi Todo guifg=#6a5acd guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=#ffdab9 guibg=#6a5acd gui=NONE cterm=NONE
|
||||
hi Search guifg=#ffdab9 guibg=#cd00cd gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#2e8b57 guibg=NONE gui=reverse cterm=reverse
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=bold cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#eeeeee gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#ffdab9 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi lCursor guifg=#000000 guibg=#c00058 gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#008b8b guibg=NONE guisp=#008b8b gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#cd00cd guibg=NONE guisp=#cd00cd gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#6a5acd guibg=NONE guisp=#6a5acd gui=undercurl cterm=underline
|
||||
hi Comment guifg=#406090 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#c00058 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#008b8b guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#a52a2a guibg=NONE gui=bold cterm=NONE
|
||||
hi PreProc guifg=#cd00cd guibg=NONE gui=NONE cterm=NONE
|
||||
hi Type guifg=#2e8b57 guibg=NONE gui=bold cterm=NONE
|
||||
hi Special guifg=#6a5acd guibg=NONE gui=NONE cterm=NONE
|
||||
hi Directory guifg=#008b8b guibg=NONE gui=bold cterm=NONE
|
||||
hi Conceal guifg=#406090 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title guifg=#cd00cd guibg=NONE gui=bold cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=16 ctermbg=223 cterm=NONE
|
||||
hi Folded ctermfg=16 ctermbg=252 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=180 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=180 cterm=NONE
|
||||
hi CursorLineNr ctermfg=160 ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=216 cterm=NONE
|
||||
hi EndOfBuffer ctermfg=243 ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi StatusLineNC ctermfg=223 ctermbg=243 cterm=NONE
|
||||
hi StatusLineTerm ctermfg=231 ctermbg=29 cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=223 ctermbg=30 cterm=NONE
|
||||
hi VertSplit ctermfg=223 ctermbg=243 cterm=NONE
|
||||
hi Pmenu ctermfg=16 ctermbg=216 cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=180 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=223 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=243 cterm=NONE
|
||||
hi TabLine ctermfg=223 ctermbg=243 cterm=underline
|
||||
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel ctermfg=16 ctermbg=223 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=223 ctermbg=243 cterm=NONE
|
||||
hi NonText ctermfg=243 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=243 ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=16 ctermbg=252 cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=25 cterm=NONE
|
||||
hi LineNr ctermfg=160 ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=25 ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=62 ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi ErrorMsg ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi WarningMsg ctermfg=164 ctermbg=223 cterm=NONE
|
||||
hi MoreMsg ctermfg=29 ctermbg=223 cterm=NONE
|
||||
hi ModeMsg ctermfg=16 ctermbg=223 cterm=NONE
|
||||
hi Question ctermfg=161 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=62 ctermbg=226 cterm=NONE
|
||||
hi MatchParen ctermfg=223 ctermbg=62 cterm=NONE
|
||||
hi Search ctermfg=223 ctermbg=164 cterm=NONE
|
||||
hi IncSearch ctermfg=29 ctermbg=NONE cterm=reverse
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=255 cterm=NONE
|
||||
hi Cursor ctermfg=223 ctermbg=16 cterm=NONE
|
||||
hi lCursor ctermfg=16 ctermbg=161 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=30 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=164 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=62 ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=25 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=161 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=124 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=164 ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=62 ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=25 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=164 ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
let colors_name = "peachpuff"
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=black ctermbg=white cterm=NONE
|
||||
hi Folded ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi QuickFixLine ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi EndOfBuffer ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=white ctermbg=black cterm=NONE
|
||||
hi StatusLineNC ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi StatusLineTerm ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=white ctermbg=darkcyan cterm=NONE
|
||||
hi VertSplit ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi Pmenu ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=darkgrey cterm=NONE
|
||||
hi TabLine ctermfg=white ctermbg=darkgrey cterm=underline
|
||||
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel ctermfg=black ctermbg=white cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi NonText ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=darkgrey cterm=NONE
|
||||
hi LineNr ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=darkblue ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=darkred ctermbg=white cterm=reverse
|
||||
hi ErrorMsg ctermfg=darkred ctermbg=white cterm=reverse
|
||||
hi WarningMsg ctermfg=darkmagenta ctermbg=white cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=white cterm=NONE
|
||||
hi ModeMsg ctermfg=black ctermbg=white cterm=NONE
|
||||
hi Question ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=darkblue ctermbg=yellow cterm=NONE
|
||||
hi MatchParen ctermfg=white ctermbg=darkblue cterm=NONE
|
||||
hi Search ctermfg=white ctermbg=darkmagenta cterm=NONE
|
||||
hi IncSearch ctermfg=darkgreen ctermbg=NONE cterm=reverse
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi Cursor ctermfg=white ctermbg=black cterm=NONE
|
||||
hi lCursor ctermfg=black ctermbg=darkred cterm=NONE
|
||||
hi SpellBad ctermfg=darkred ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=darkcyan ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=darkmagenta ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=darkblue ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
hi Normal guibg=PeachPuff guifg=Black
|
||||
|
||||
hi SpecialKey term=bold ctermfg=4 guifg=Blue
|
||||
hi NonText term=bold cterm=bold ctermfg=4 gui=bold guifg=Blue
|
||||
hi Directory term=bold ctermfg=4 guifg=Blue
|
||||
hi ErrorMsg term=standout cterm=bold ctermfg=7 ctermbg=1 gui=bold guifg=White guibg=Red
|
||||
hi IncSearch term=reverse cterm=reverse gui=reverse
|
||||
hi Search term=reverse ctermbg=3 guibg=Gold2
|
||||
hi MoreMsg term=bold ctermfg=2 gui=bold guifg=SeaGreen
|
||||
hi ModeMsg term=bold cterm=bold gui=bold
|
||||
hi LineNr term=underline ctermfg=3 guifg=Red3
|
||||
hi Question term=standout ctermfg=2 gui=bold guifg=SeaGreen
|
||||
hi StatusLine term=bold,reverse cterm=bold,reverse gui=bold guifg=White guibg=Black
|
||||
hi StatusLineNC term=reverse cterm=reverse gui=bold guifg=PeachPuff guibg=Gray45
|
||||
hi VertSplit term=reverse cterm=reverse gui=bold guifg=White guibg=Gray45
|
||||
hi Title term=bold ctermfg=5 gui=bold guifg=DeepPink3
|
||||
hi Visual term=reverse cterm=reverse gui=reverse guifg=Grey80 guibg=fg
|
||||
hi VisualNOS term=bold,underline cterm=bold,underline gui=bold,underline
|
||||
hi WarningMsg term=standout ctermfg=1 gui=bold guifg=Red
|
||||
hi WildMenu term=standout ctermfg=0 ctermbg=3 guifg=Black guibg=Yellow
|
||||
hi Folded term=standout ctermfg=4 ctermbg=7 guifg=Black guibg=#e3c1a5
|
||||
hi FoldColumn term=standout ctermfg=4 ctermbg=7 guifg=DarkBlue guibg=Gray80
|
||||
hi DiffAdd term=bold ctermbg=4 guibg=White
|
||||
hi DiffChange term=bold ctermbg=5 guibg=#edb5cd
|
||||
hi DiffDelete term=bold cterm=bold ctermfg=4 ctermbg=6 gui=bold guifg=LightBlue guibg=#f6e8d0
|
||||
hi DiffText term=reverse cterm=bold ctermbg=1 gui=bold guibg=#ff8060
|
||||
hi Cursor guifg=bg guibg=fg
|
||||
hi lCursor guifg=bg guibg=fg
|
||||
|
||||
" Colors for syntax highlighting
|
||||
hi Comment term=bold ctermfg=4 guifg=#406090
|
||||
hi Constant term=underline ctermfg=1 guifg=#c00058
|
||||
hi Special term=bold ctermfg=5 guifg=SlateBlue
|
||||
hi Identifier term=underline ctermfg=6 guifg=DarkCyan
|
||||
hi Statement term=bold ctermfg=3 gui=bold guifg=Brown
|
||||
hi PreProc term=underline ctermfg=5 guifg=Magenta3
|
||||
hi Type term=underline ctermfg=2 gui=bold guifg=SeaGreen
|
||||
hi Ignore cterm=bold ctermfg=7 guifg=bg
|
||||
hi Error term=reverse cterm=bold ctermfg=7 ctermbg=1 gui=bold guifg=White guibg=Red
|
||||
hi Todo term=standout ctermfg=0 ctermbg=3 guifg=Blue guibg=Yellow
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: light
|
||||
" Color: comment #406090 25 darkgrey
|
||||
" Color: constant #c00058 161 darkred
|
||||
" Color: identifier #008b8b 30 darkcyan
|
||||
" Color: statement #a52a2a 124 darkred
|
||||
" Color: preproc #cd00cd 164 darkmagenta
|
||||
" Color: type #2e8b57 29 darkgreen
|
||||
" Color: special #6a5acd 62 darkblue
|
||||
" Color: fg0 #000000 16 black
|
||||
" Color: bg0 #ffdab9 223 white
|
||||
" Color: fg1 #ffffff 231 white
|
||||
" Color: bg1 #737373 243 darkgrey
|
||||
" Color: visual #cccccc 252 grey
|
||||
" Color: folded #e3c1a5 252 cyan
|
||||
" Color: folded_fg #000000 16 black
|
||||
" Color: cursorline #f5c195 180 yellow
|
||||
" Color: pmenu #ffaf87 216 grey
|
||||
" Color: wildmenu #ffff00 226 yellow
|
||||
" Color: error #ff0000 196 darkred
|
||||
" Color: linenr #cd0000 160 red
|
||||
" Color: blue #0000ff 21 darkblue
|
||||
" Color: red #ff0000 196 darkred
|
||||
" Color: colorcolumn #eeeeee 255 grey
|
||||
" Term colors: bg0 statement constant preproc identifier type special bg1
|
||||
" Term colors: comment statement constant preproc identifier type special fg0
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,45 +1,378 @@
|
||||
" local syntax file - set colors on a per-machine basis:
|
||||
" vim: tw=0 ts=4 sw=4
|
||||
" Vim color file
|
||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||
" Last Change: 2013 May 24
|
||||
" Name: ron
|
||||
" Author: original author Ron Aaron <ron@ronware.org>
|
||||
" Maintainer: original maintainer Ron Aaron <ron@ronware.org>
|
||||
" Website: https://www.github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:43 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=dark
|
||||
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
let g:colors_name = 'ron'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
hi! link Terminal Normal
|
||||
hi! link Boolean Constant
|
||||
hi! link Character Constant
|
||||
hi! link Conditional Statement
|
||||
hi! link Debug Special
|
||||
hi! link Define PreProc
|
||||
hi! link Delimiter Special
|
||||
hi! link Exception Statement
|
||||
hi! link Float Constant
|
||||
hi! link Function Identifier
|
||||
hi! link Include PreProc
|
||||
hi! link Keyword Statement
|
||||
hi! link Macro PreProc
|
||||
hi! link Number Constant
|
||||
hi! link PopupSelected PmenuSel
|
||||
hi! link PreCondit PreProc
|
||||
hi! link Repeat Statement
|
||||
hi! link SpecialChar Special
|
||||
hi! link SpecialComment Special
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi! link StorageClass Type
|
||||
hi! link String Constant
|
||||
hi! link Structure Type
|
||||
hi! link Tag Special
|
||||
hi! link Typedef Type
|
||||
hi! link lCursor Cursor
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#000000', '#cd0000', '#00cd00', '#cdcd00', '#0000ee', '#cd00cd', '#00cdcd', '#e5e5e5', '#7f7f7f', '#ff0000', '#00ff00', '#ffff00', '#5c5cff', '#ff00ff', '#00ffff', '#ffffff']
|
||||
endif
|
||||
let g:colors_name = "ron"
|
||||
hi Normal guifg=cyan guibg=black
|
||||
hi NonText guifg=yellow guibg=#303030
|
||||
hi comment guifg=green
|
||||
hi constant guifg=cyan gui=bold
|
||||
hi identifier guifg=cyan gui=NONE
|
||||
hi statement guifg=lightblue gui=NONE
|
||||
hi preproc guifg=Pink2
|
||||
hi type guifg=seagreen gui=bold
|
||||
hi special guifg=yellow
|
||||
hi ErrorMsg guifg=Black guibg=Red
|
||||
hi WarningMsg guifg=Black guibg=Green
|
||||
hi Error guibg=Red
|
||||
hi Todo guifg=Black guibg=orange
|
||||
hi Cursor guibg=#60a060 guifg=#00ff00
|
||||
hi Search guibg=darkgray guifg=black gui=bold
|
||||
hi IncSearch gui=NONE guibg=steelblue
|
||||
hi LineNr guifg=darkgrey
|
||||
hi title guifg=darkgrey
|
||||
hi ShowMarksHL ctermfg=cyan ctermbg=lightblue cterm=bold guifg=yellow guibg=black gui=bold
|
||||
hi StatusLineNC gui=NONE guifg=lightblue guibg=darkblue
|
||||
hi StatusLine gui=bold guifg=cyan guibg=blue
|
||||
hi label guifg=gold2
|
||||
hi operator guifg=orange
|
||||
hi clear Visual
|
||||
hi Visual term=reverse cterm=reverse gui=reverse
|
||||
hi DiffChange guibg=darkgreen
|
||||
hi DiffText guibg=olivedrab
|
||||
hi DiffAdd guibg=slateblue
|
||||
hi DiffDelete guibg=coral
|
||||
hi Folded guibg=gray30
|
||||
hi FoldColumn guibg=gray30 guifg=white
|
||||
hi cIf0 guifg=gray
|
||||
hi diffOnly guifg=red gui=bold
|
||||
hi Normal guifg=#00ffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#cd0000 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#666666 gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#666666 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#ffff00 guibg=NONE gui=bold cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#00cdcd gui=NONE cterm=NONE
|
||||
hi Conceal guifg=#e5e5e5 guibg=#a9a9a9 gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#ffffff guibg=#60a060 gui=NONE cterm=NONE
|
||||
hi Directory guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#ffff00 guibg=#303030 gui=NONE cterm=NONE
|
||||
hi ErrorMsg guifg=#ff0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi FoldColumn guifg=#ffffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Folded guifg=NONE guibg=#4d4d4d gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=NONE guibg=#4682b4 gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#a9a9a9 guibg=NONE gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=NONE guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi ModeMsg guifg=NONE guibg=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#2e8b57 guibg=NONE gui=bold cterm=NONE
|
||||
hi NonText guifg=#ffff00 guibg=#303030 gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#ffffff guibg=#444444 gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=#000000 gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#00cdcd gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#e5e5e5 gui=NONE cterm=NONE
|
||||
hi Question guifg=#00ff00 guibg=#000000 gui=bold cterm=NONE
|
||||
hi Search guifg=#000000 guibg=#a9a9a9 gui=bold cterm=NONE
|
||||
hi SignColumn guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi StatusLine guifg=#00ffff guibg=#0000ff gui=bold cterm=NONE
|
||||
hi StatusLineNC guifg=#add8e6 guibg=#00008b gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#add8e6 guibg=#00008b gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#000000 guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi TabLineFill guifg=#a9a9a9 guibg=#7f7f7f gui=NONE cterm=NONE
|
||||
hi TabLineSel guifg=#00ffff guibg=#000000 gui=bold cterm=NONE
|
||||
hi Terminal guifg=#00ffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi Title guifg=#a9a9a9 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Visual guifg=NONE guibg=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi VisualNOS guifg=NONE guibg=#000000 gui=bold,underline cterm=underline
|
||||
hi WarningMsg guifg=#ffff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#ffffff guibg=NONE guisp=#ffffff gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#ffff00 guibg=NONE guisp=#ffff00 gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#ff00ff guibg=NONE guisp=#ff00ff gui=undercurl cterm=underline
|
||||
hi Comment guifg=#00ff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#00ffff guibg=NONE gui=bold cterm=NONE
|
||||
hi Error guifg=#ff0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi Identifier guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=#000000 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi Label guifg=#eec900 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Operator guifg=#ffa500 guibg=NONE gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#eea9b8 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#ffff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#add8e6 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Todo guifg=#000000 guibg=#ffa500 gui=NONE cterm=NONE
|
||||
hi Type guifg=#2e8b57 guibg=NONE gui=bold cterm=NONE
|
||||
hi Underlined guifg=#80a0ff guibg=NONE gui=underline cterm=underline
|
||||
hi CursorIM guifg=NONE guibg=fg gui=NONE cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#000000 guibg=#e5e5e5 gui=bold cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=51 ctermbg=16 cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=160 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=59 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=59 cterm=NONE
|
||||
hi CursorLineNr ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=44 cterm=NONE
|
||||
hi Conceal ctermfg=254 ctermbg=145 cterm=NONE
|
||||
hi Cursor ctermfg=231 ctermbg=71 cterm=NONE
|
||||
hi Directory ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi EndOfBuffer ctermfg=226 ctermbg=236 cterm=NONE
|
||||
hi ErrorMsg ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi FoldColumn ctermfg=231 ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=NONE ctermbg=239 cterm=NONE
|
||||
hi IncSearch ctermfg=NONE ctermbg=67 cterm=NONE
|
||||
hi LineNr ctermfg=145 ctermbg=NONE cterm=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=44 cterm=NONE
|
||||
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=226 ctermbg=236 cterm=NONE
|
||||
hi Pmenu ctermfg=231 ctermbg=238 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=16 cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=44 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=254 cterm=NONE
|
||||
hi Question ctermfg=46 ctermbg=16 cterm=NONE
|
||||
hi Search ctermfg=16 ctermbg=145 cterm=NONE
|
||||
hi SignColumn ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=51 ctermbg=21 cterm=NONE
|
||||
hi StatusLineNC ctermfg=152 ctermbg=20 cterm=NONE
|
||||
hi VertSplit ctermfg=152 ctermbg=20 cterm=NONE
|
||||
hi TabLine ctermfg=16 ctermbg=44 cterm=NONE
|
||||
hi TabLineFill ctermfg=145 ctermbg=102 cterm=NONE
|
||||
hi TabLineSel ctermfg=51 ctermbg=16 cterm=NONE
|
||||
hi Terminal ctermfg=51 ctermbg=16 cterm=NONE
|
||||
hi Title ctermfg=145 ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi VisualNOS ctermfg=NONE ctermbg=16 cterm=underline
|
||||
hi WarningMsg ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=231 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=226 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=201 ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi Error ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi Identifier ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=16 ctermbg=16 cterm=NONE
|
||||
hi Label ctermfg=220 ctermbg=NONE cterm=NONE
|
||||
hi Operator ctermfg=214 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=217 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=226 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=152 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=16 ctermbg=214 cterm=NONE
|
||||
hi Type ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=111 ctermbg=NONE cterm=underline
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=cyan ctermbg=black cterm=NONE
|
||||
hi ColorColumn ctermfg=cyan ctermbg=darkred cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi QuickFixLine ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi Conceal ctermfg=grey ctermbg=grey cterm=NONE
|
||||
hi Cursor ctermfg=white ctermbg=green cterm=NONE
|
||||
hi Directory ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi EndOfBuffer ctermfg=yellow ctermbg=darkgrey cterm=NONE
|
||||
hi ErrorMsg ctermfg=red ctermbg=white cterm=reverse
|
||||
hi FoldColumn ctermfg=white ctermbg=NONE cterm=NONE
|
||||
hi Folded ctermfg=NONE ctermbg=darkgrey cterm=NONE
|
||||
hi IncSearch ctermfg=NONE ctermbg=blue cterm=NONE
|
||||
hi LineNr ctermfg=grey ctermbg=NONE cterm=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=darkcyan cterm=NONE
|
||||
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi NonText ctermfg=yellow ctermbg=darkgrey cterm=NONE
|
||||
hi Pmenu ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi Question ctermfg=green ctermbg=black cterm=NONE
|
||||
hi Search ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi SignColumn ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=cyan ctermbg=darkblue cterm=NONE
|
||||
hi StatusLineNC ctermfg=darkcyan ctermbg=darkblue cterm=NONE
|
||||
hi VertSplit ctermfg=darkcyan ctermbg=darkblue cterm=NONE
|
||||
hi TabLine ctermfg=black ctermbg=darkcyan cterm=NONE
|
||||
hi TabLineFill ctermfg=grey ctermbg=darkgrey cterm=NONE
|
||||
hi TabLineSel ctermfg=cyan ctermbg=black cterm=NONE
|
||||
hi Terminal ctermfg=cyan ctermbg=black cterm=NONE
|
||||
hi Title ctermfg=grey ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi VisualNOS ctermfg=NONE ctermbg=black cterm=underline
|
||||
hi WarningMsg ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=white ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=magenta ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Error ctermfg=red ctermbg=white cterm=reverse
|
||||
hi Identifier ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=black ctermbg=black cterm=NONE
|
||||
hi Label ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Operator ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi Type ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: dark
|
||||
" Color: xterm0 #000000 16 black
|
||||
" Color: xterm1 #cd0000 160 darkred
|
||||
" Color: xterm2 #00cd00 40 darkgreen
|
||||
" Color: xterm3 #cdcd00 184 darkyellow
|
||||
" Color: xterm4 #0000ee 20 darkblue
|
||||
" Color: xterm5 #cd00cd 164 darkmagenta
|
||||
" Color: xterm6 #00cdcd 44 darkcyan
|
||||
" Color: xterm7 #e5e5e5 254 grey
|
||||
" Color: xterm8 #7f7f7f 102 darkgrey
|
||||
" Color: xterm9 #ff0000 196 red
|
||||
" Color: xterm10 #00ff00 46 green
|
||||
" Color: xterm11 #ffff00 226 yellow
|
||||
" Color: xterm12 #5c5cff 63 blue
|
||||
" Color: xterm13 #ff00ff 201 magenta
|
||||
" Color: xterm14 #00ffff 51 cyan
|
||||
" Color: xterm15 #ffffff 231 white
|
||||
" Color: rgbGrey40 #666666 59 darkgrey
|
||||
" Color: rgbDarkGrey #a9a9a9 145 grey
|
||||
" Color: rgbDarkBlue #00008b 20 darkblue
|
||||
" Color: rgbBlue #0000ff 21 darkblue
|
||||
" Color: rgbDarkCyan #008b8b 44 darkcyan
|
||||
" Color: Directory #00ffff 51 cyan
|
||||
" Color: rgbSeaGreen #2e8b57 29 darkgreen
|
||||
" Color: rgbGrey #bebebe 250 grey
|
||||
" Color: Question #00ff00 46 green
|
||||
" Color: SignColumn #a9a9a9 248 grey
|
||||
" Color: SpecialKey #00ffff 51 cyan
|
||||
" Color: StatusLineTerm #90ee90 120 darkgreen
|
||||
" Color: ToolbarLine #7f7f7f 244 darkgrey
|
||||
" Color: Underlined #80a0ff 111 blue
|
||||
" Color: Pmenu #444444 238 darkgrey
|
||||
" Color: ron303030 #303030 236 darkgrey
|
||||
" Color: ronLightBlue #add8e6 152 darkcyan
|
||||
" Color: ronPink2 #eea9b8 217 darkmagenta
|
||||
" Color: ronOrange #ffa500 214 darkyellow
|
||||
" Color: ronCursor #60a060 71 green
|
||||
" Color: ronSteelBlue #4682b4 67 blue
|
||||
" Color: ronGold2 #eec900 220 yellow
|
||||
" Color: ronDarkGreen #006400 22 darkgreen
|
||||
" Color: ronSlateBlue #6a5acd 62 blue
|
||||
" Color: ronOliveDrab #6b8e23 64 green
|
||||
" Color: ronCoral #ff7f50 209 red
|
||||
" Color: ronGray30 #4d4d4d 239 darkgrey
|
||||
" Term colors: xterm0 xterm1 xterm2 xterm3 xterm4 xterm5 xterm6 xterm7
|
||||
" Term colors: xterm8 xterm9 xterm10 xterm11 xterm12 xterm13
|
||||
" Term colors: xterm14 xterm15
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,60 +1,353 @@
|
||||
" Vim color file
|
||||
" Maintainer: Yasuhiro Matsumoto <mattn@mail.goo.ne.jp>
|
||||
" Last Change: 2001 May 25
|
||||
" Name: shine
|
||||
" Description: Light colorscheme inspired by normal text editors.
|
||||
" Author: Original author is Yasuhiro Matsumoto <mattn@mail.goo.ne.jp>
|
||||
" Maintainer: Original maintainer is Yasuhiro Matsumoto <mattn@mail.goo.ne.jp>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:44 2022
|
||||
|
||||
" This look like normal text editor.
|
||||
" This color scheme uses a light background.
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
" First remove all existing highlighting.
|
||||
set background=light
|
||||
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
let g:colors_name = 'shine'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#000000', '#8b0000', '#006400', '#ffff00', '#00008b', '#6a0dad', '#008b8b', '#dadada', '#767676', '#ffafaf', '#90ee90', '#ffff60', '#add8e6', '#ff00ff', '#00ffff', '#ffffff']
|
||||
endif
|
||||
hi Normal guifg=#000000 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi Folded guifg=#00008b guibg=#dadada gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#dadada gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#dadada gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=NONE guibg=#dadada gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#ff8c00 gui=NONE cterm=NONE
|
||||
hi! link EndOfBuffer NonText
|
||||
hi StatusLine guifg=#ffffff guibg=#000000 gui=bold cterm=NONE
|
||||
hi StatusLineNC guifg=#ffffff guibg=#a8a8a8 gui=NONE cterm=NONE
|
||||
hi StatusLineTerm guifg=#000000 guibg=#90ee90 gui=bold cterm=NONE
|
||||
hi StatusLineTermNC guifg=#dadada guibg=#006400 gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#a8a8a8 guibg=#a8a8a8 gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#000000 guibg=#a8a8a8 gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#ffff60 gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=#ffffff guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=#767676 guibg=#767676 gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#000000 guibg=#dadada gui=underline cterm=underline
|
||||
hi TabLineFill guifg=NONE guibg=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel guifg=#000000 guibg=#ffffff gui=bold cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=NONE guibg=#a8a8a8 gui=bold cterm=NONE
|
||||
hi NonText guifg=#add8e6 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#add8e6 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Visual guifg=#000000 guibg=#a8a8a8 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=NONE guibg=NONE gui=bold,underline ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi LineNr guifg=#767676 guibg=NONE gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#767676 guibg=NONE gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined guifg=#6a0dad guibg=NONE gui=underline cterm=underline
|
||||
hi Error guifg=#ff0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi! link ErrorMsg Error
|
||||
hi WarningMsg guifg=#6a0dad guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#006400 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi ModeMsg guifg=#000000 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi Question guifg=#a07070 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Todo guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=#ffffff guibg=#ffafaf gui=NONE cterm=NONE
|
||||
hi Search guifg=#ffffff guibg=#6a0dad gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#008b8b guibg=#ffff00 gui=reverse cterm=reverse
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=bold cterm=NONE
|
||||
hi ColorColumn guifg=#000000 guibg=#ffafaf gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#ffffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi lCursor guifg=#000000 guibg=#a07070 gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#2e8b57 guibg=NONE guisp=#2e8b57 gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#ff00ff guibg=NONE guisp=#ff00ff gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#00008b guibg=NONE guisp=#00008b gui=undercurl cterm=underline
|
||||
hi Identifier guifg=#008b8b guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#006400 guibg=NONE gui=bold cterm=NONE
|
||||
hi Constant guifg=#a07070 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Number guifg=#a07070 guibg=NONE gui=bold cterm=NONE
|
||||
hi Float guifg=#a07070 guibg=NONE gui=bold cterm=NONE
|
||||
hi PreProc guifg=#6a0dad guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#ff8c00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialChar guifg=#00008b guibg=NONE gui=NONE cterm=NONE
|
||||
hi! link Tag Special
|
||||
hi Type guifg=#2e8b57 guibg=NONE gui=bold cterm=NONE
|
||||
hi! link Operator Statement
|
||||
hi Directory guifg=#008b8b guibg=NONE gui=bold cterm=NONE
|
||||
hi Comment guifg=#a8a8a8 guibg=NONE gui=bold cterm=NONE
|
||||
hi StorageClass guifg=#ff0000 guibg=NONE gui=bold cterm=NONE
|
||||
hi Conceal guifg=#dadada guibg=#767676 gui=NONE cterm=NONE
|
||||
hi Ignore guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title guifg=#006400 guibg=NONE gui=bold cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi Folded ctermfg=18 ctermbg=253 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=253 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=253 cterm=NONE
|
||||
hi CursorLineNr ctermfg=NONE ctermbg=253 cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=208 cterm=NONE
|
||||
hi! link EndOfBuffer NonText
|
||||
hi StatusLine ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi StatusLineNC ctermfg=231 ctermbg=248 cterm=NONE
|
||||
hi StatusLineTerm ctermfg=16 ctermbg=120 cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=253 ctermbg=22 cterm=NONE
|
||||
hi VertSplit ctermfg=248 ctermbg=248 cterm=NONE
|
||||
hi Pmenu ctermfg=16 ctermbg=248 cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=228 cterm=NONE
|
||||
hi PmenuSbar ctermfg=231 ctermbg=231 cterm=NONE
|
||||
hi PmenuThumb ctermfg=243 ctermbg=243 cterm=NONE
|
||||
hi TabLine ctermfg=16 ctermbg=253 cterm=underline
|
||||
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=NONE ctermbg=248 cterm=NONE
|
||||
hi NonText ctermfg=153 ctermbg=231 cterm=NONE
|
||||
hi SpecialKey ctermfg=153 ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=16 ctermbg=248 cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi LineNr ctermfg=243 ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=243 ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=55 ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi! link ErrorMsg Error
|
||||
hi WarningMsg ctermfg=55 ctermbg=231 cterm=NONE
|
||||
hi MoreMsg ctermfg=22 ctermbg=231 cterm=NONE
|
||||
hi ModeMsg ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi Question ctermfg=95 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi MatchParen ctermfg=231 ctermbg=217 cterm=NONE
|
||||
hi Search ctermfg=231 ctermbg=55 cterm=NONE
|
||||
hi IncSearch ctermfg=30 ctermbg=226 cterm=reverse
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi ColorColumn ctermfg=16 ctermbg=217 cterm=NONE
|
||||
hi Cursor ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi lCursor ctermfg=16 ctermbg=95 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=29 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=201 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=18 ctermbg=NONE cterm=underline
|
||||
hi Identifier ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=22 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=95 ctermbg=NONE cterm=NONE
|
||||
hi Number ctermfg=95 ctermbg=NONE cterm=NONE
|
||||
hi Float ctermfg=95 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=55 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=208 ctermbg=NONE cterm=NONE
|
||||
hi SpecialChar ctermfg=18 ctermbg=NONE cterm=NONE
|
||||
hi! link Tag Special
|
||||
hi Type ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi! link Operator Statement
|
||||
hi Directory ctermfg=30 ctermbg=NONE cterm=NONE
|
||||
hi Comment ctermfg=248 ctermbg=NONE cterm=NONE
|
||||
hi StorageClass ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=253 ctermbg=243 cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=22 ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
let colors_name = "shine"
|
||||
|
||||
hi Normal ctermbg=White ctermfg=Black guifg=Black guibg=White
|
||||
|
||||
" Groups used in the 'highlight' and 'guicursor' options default value.
|
||||
hi ErrorMsg term=standout ctermbg=DarkRed ctermfg=White guibg=Red guifg=White
|
||||
hi IncSearch term=reverse cterm=reverse gui=reverse
|
||||
hi ModeMsg term=bold cterm=bold gui=bold
|
||||
hi StatusLine term=reverse,bold cterm=reverse,bold gui=reverse,bold
|
||||
hi StatusLineNC term=reverse cterm=reverse gui=reverse
|
||||
hi VertSplit term=reverse cterm=reverse gui=reverse
|
||||
hi Visual term=reverse cterm=reverse gui=reverse guifg=Grey guibg=fg
|
||||
hi VisualNOS term=underline,bold cterm=underline,bold gui=underline,bold
|
||||
hi DiffText term=reverse cterm=bold ctermbg=Red gui=bold guibg=Red
|
||||
hi Cursor ctermbg=Green guibg=Green guifg=Black
|
||||
hi lCursor guibg=Cyan guifg=Black
|
||||
hi Directory term=bold ctermfg=LightRed guifg=Red
|
||||
hi LineNr term=underline ctermfg=Yellow guifg=Yellow
|
||||
hi MoreMsg term=bold ctermfg=LightGreen gui=bold guifg=SeaGreen
|
||||
hi NonText term=bold ctermfg=LightBlue gui=bold guifg=LightBlue guibg=grey90
|
||||
hi Question term=standout ctermfg=LightGreen gui=bold guifg=Green
|
||||
hi Search term=reverse ctermbg=Yellow ctermfg=Black guibg=Yellow guifg=Black
|
||||
hi SpecialKey term=bold ctermfg=LightBlue guifg=Blue
|
||||
hi Title term=bold ctermfg=LightMagenta gui=bold guifg=Magenta
|
||||
hi WarningMsg term=standout ctermfg=LightRed guifg=Red
|
||||
hi WildMenu term=standout ctermbg=Yellow ctermfg=Black guibg=Yellow guifg=Black
|
||||
hi Folded term=standout ctermbg=LightGrey ctermfg=DarkBlue guibg=LightGrey guifg=DarkBlue
|
||||
hi FoldColumn term=standout ctermbg=LightGrey ctermfg=DarkBlue guibg=Grey guifg=DarkBlue
|
||||
hi DiffAdd term=bold ctermbg=DarkBlue guibg=DarkBlue
|
||||
hi DiffChange term=bold ctermbg=DarkMagenta guibg=DarkMagenta
|
||||
hi DiffDelete term=bold ctermfg=Blue ctermbg=DarkCyan gui=bold guifg=Blue guibg=DarkCyan
|
||||
|
||||
hi Comment ctermfg=DarkGrey ctermbg=White guifg=DarkGrey gui=bold
|
||||
hi SpecialChar ctermfg=DarkGrey ctermbg=White guifg=DarkGrey gui=bold
|
||||
hi StorageClass ctermfg=Red ctermbg=White guifg=Red gui=bold
|
||||
hi Number ctermfg=LightRed ctermbg=White guifg=LightRed gui=bold
|
||||
|
||||
" Groups for syntax highlighting
|
||||
hi Constant term=underline ctermfg=Magenta guifg=#a07070 guibg=grey80
|
||||
hi Special term=bold ctermfg=LightRed guifg=DarkOrange guibg=grey80
|
||||
if &t_Co > 8
|
||||
hi Statement term=bold cterm=bold ctermfg=DarkGreen ctermbg=White guifg=#ffff60 gui=bold
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=black ctermbg=white cterm=NONE
|
||||
hi Folded ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi QuickFixLine ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi! link EndOfBuffer NonText
|
||||
hi StatusLine ctermfg=white ctermbg=black cterm=NONE
|
||||
hi StatusLineNC ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi StatusLineTerm ctermfg=black ctermbg=green cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=grey ctermbg=darkgreen cterm=NONE
|
||||
hi VertSplit ctermfg=darkgrey ctermbg=darkgrey cterm=NONE
|
||||
hi Pmenu ctermfg=black ctermbg=darkgrey cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi PmenuSbar ctermfg=white ctermbg=white cterm=NONE
|
||||
hi PmenuThumb ctermfg=darkgrey ctermbg=darkgrey cterm=NONE
|
||||
hi TabLine ctermfg=black ctermbg=grey cterm=underline
|
||||
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel ctermfg=black ctermbg=white cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=NONE ctermbg=darkgrey cterm=NONE
|
||||
hi NonText ctermfg=blue ctermbg=white cterm=NONE
|
||||
hi SpecialKey ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=black ctermbg=darkgrey cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi LineNr ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=darkmagenta ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=red ctermbg=white cterm=reverse
|
||||
hi! link ErrorMsg Error
|
||||
hi WarningMsg ctermfg=darkmagenta ctermbg=white cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=white cterm=NONE
|
||||
hi ModeMsg ctermfg=black ctermbg=white cterm=NONE
|
||||
hi Question ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi MatchParen ctermfg=white ctermbg=red cterm=NONE
|
||||
hi Search ctermfg=white ctermbg=darkmagenta cterm=NONE
|
||||
hi IncSearch ctermfg=darkcyan ctermbg=yellow cterm=reverse
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi ColorColumn ctermfg=black ctermbg=red cterm=NONE
|
||||
hi Cursor ctermfg=white ctermbg=black cterm=NONE
|
||||
hi lCursor ctermfg=black ctermbg=darkred cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=darkgreen ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=magenta ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=darkblue ctermbg=NONE cterm=underline
|
||||
hi Identifier ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Number ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Float ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi SpecialChar ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi! link Tag Special
|
||||
hi Type ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi! link Operator Statement
|
||||
hi Directory ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Comment ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi StorageClass ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=grey ctermbg=darkgrey cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
hi Ignore ctermfg=LightGrey guifg=grey90
|
||||
|
||||
" vim: sw=2
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: light
|
||||
" Color: Black #000000 16 black
|
||||
" Color: DarkGrey #767676 243 darkgrey
|
||||
" Color: MediumGrey #A8A8A8 248 darkgrey
|
||||
" Color: LightGrey #DADADA 253 grey
|
||||
" Color: White #ffffff 231 white
|
||||
" Color: Cyan #00ffff 51 cyan
|
||||
" Color: Magenta #ff00ff 201 magenta
|
||||
" Color: Red #ff0000 196 red
|
||||
" Color: Yellow #ffff00 226 yellow
|
||||
" Color: SeaGreen #2e8b57 29 darkgreen
|
||||
" Color: DarkBlue #00008b 18 darkblue
|
||||
" Color: DarkCyan #008b8b 30 darkcyan
|
||||
" Color: DarkGreen #006400 22 darkgreen
|
||||
" Color: DarkOrange #ff8c00 208 darkyellow
|
||||
" Color: DarkRed #8b0000 88 darkred
|
||||
" Color: LightBlue #add8e6 153 blue
|
||||
" Color: LightGreen #90ee90 120 green
|
||||
" Color: LightMagenta#ff83fa 213 magenta
|
||||
" Color: LightRed #ffafaf 217 red
|
||||
" Color: MutedRed #a07070 95 darkred
|
||||
" Color: MutedYellow #ffff60 228 yellow
|
||||
" Color: Purple #6a0dad 55 darkmagenta
|
||||
" Term colors: Black DarkRed DarkGreen Yellow DarkBlue Purple DarkCyan LightGrey
|
||||
" Term colors: DarkGrey LightRed LightGreen MutedYellow LightBlue Magenta Cyan White
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,56 +1,350 @@
|
||||
"%% SiSU Vim color file
|
||||
" Slate Maintainer: Ralph Amissah <ralph@amissah.com>
|
||||
" (originally looked at desert Hans Fugal <hans@fugal.net> http://hans.fugal.net/vim/colors/desert.vim (2003/05/06)
|
||||
:set background=dark
|
||||
:highlight clear
|
||||
if version > 580
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
" Name: slate
|
||||
" Description: Remake of slate
|
||||
" Author: Original maintainer Ralph Amissah <ralph@amissah.com>
|
||||
" Maintainer: Original maintainer Ralph Amissah <ralph@amissah.com>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:45 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=dark
|
||||
|
||||
hi clear
|
||||
let g:colors_name = 'slate'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#000000', '#ff0000', '#5f8700', '#ffff00', '#87d7ff', '#d7d787', '#ffd7af', '#666666', '#333333', '#ffafaf', '#00875f', '#ffd700', '#5f87d7', '#afaf87', '#ff8787', '#ffffff']
|
||||
endif
|
||||
let colors_name = "slate"
|
||||
:hi Normal guifg=White guibg=grey15
|
||||
:hi Cursor guibg=khaki guifg=slategrey
|
||||
:hi VertSplit guibg=#c2bfa5 guifg=grey40 gui=none cterm=reverse
|
||||
:hi Folded guibg=black guifg=grey40 ctermfg=grey ctermbg=darkgrey
|
||||
:hi FoldColumn guibg=black guifg=grey20 ctermfg=4 ctermbg=7
|
||||
:hi IncSearch guifg=green guibg=black cterm=none ctermfg=yellow ctermbg=green
|
||||
:hi ModeMsg guifg=goldenrod cterm=none ctermfg=brown
|
||||
:hi MoreMsg guifg=SeaGreen ctermfg=darkgreen
|
||||
:hi NonText guifg=RoyalBlue guibg=grey15 cterm=bold ctermfg=blue
|
||||
:hi Question guifg=springgreen ctermfg=green
|
||||
:hi Search guibg=peru guifg=wheat cterm=none ctermfg=grey ctermbg=blue
|
||||
:hi SpecialKey guifg=yellowgreen ctermfg=darkgreen
|
||||
:hi StatusLine guibg=#c2bfa5 guifg=black gui=none cterm=bold,reverse
|
||||
:hi StatusLineNC guibg=#c2bfa5 guifg=grey40 gui=none cterm=reverse
|
||||
:hi Title guifg=gold gui=bold cterm=bold ctermfg=yellow
|
||||
:hi Statement guifg=CornflowerBlue ctermfg=lightblue
|
||||
:hi Visual gui=none guifg=khaki guibg=olivedrab cterm=reverse
|
||||
:hi WarningMsg guifg=salmon ctermfg=1
|
||||
:hi String guifg=SkyBlue ctermfg=darkcyan
|
||||
:hi Comment term=bold ctermfg=11 guifg=grey40
|
||||
:hi Constant guifg=#ffa0a0 ctermfg=brown
|
||||
:hi Special guifg=darkkhaki ctermfg=brown
|
||||
:hi Identifier guifg=salmon ctermfg=red
|
||||
:hi Include guifg=red ctermfg=red
|
||||
:hi PreProc guifg=red guibg=white ctermfg=red
|
||||
:hi Operator guifg=Red ctermfg=Red
|
||||
:hi Define guifg=gold gui=bold ctermfg=yellow
|
||||
:hi Type guifg=CornflowerBlue ctermfg=2
|
||||
:hi Function guifg=navajowhite ctermfg=brown
|
||||
:hi Structure guifg=green ctermfg=green
|
||||
:hi LineNr guifg=grey50 ctermfg=3
|
||||
:hi Ignore guifg=grey40 cterm=bold ctermfg=7
|
||||
:hi Todo guifg=orangered guibg=yellow2
|
||||
:hi Directory ctermfg=darkcyan
|
||||
:hi ErrorMsg cterm=bold guifg=White guibg=Red cterm=bold ctermfg=7 ctermbg=1
|
||||
:hi VisualNOS cterm=bold,underline
|
||||
:hi WildMenu ctermfg=0 ctermbg=3
|
||||
:hi DiffAdd ctermbg=4
|
||||
:hi DiffChange ctermbg=5
|
||||
:hi DiffDelete cterm=bold ctermfg=4 ctermbg=6
|
||||
:hi DiffText cterm=bold ctermbg=1
|
||||
:hi Underlined cterm=underline ctermfg=5
|
||||
:hi Error guifg=White guibg=Red cterm=bold ctermfg=7 ctermbg=1
|
||||
:hi SpellErrors guifg=White guibg=Red cterm=bold ctermfg=7 ctermbg=1
|
||||
hi Normal guifg=#ffffff guibg=#262626 gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#5f87d7 guibg=NONE gui=NONE cterm=NONE
|
||||
hi StatusLine guifg=#000000 guibg=#afaf87 gui=NONE cterm=NONE
|
||||
hi StatusLineNC guifg=#666666 guibg=#afaf87 gui=NONE cterm=NONE
|
||||
hi StatusLineTerm guifg=#000000 guibg=#afaf87 gui=NONE cterm=NONE
|
||||
hi StatusLineTermNC guifg=#666666 guibg=#afaf87 gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#666666 guibg=#afaf87 gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#262626 guibg=#d7d787 gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=NONE guibg=#4a4a4a gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=#262626 gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#ffd700 gui=NONE cterm=NONE
|
||||
hi TabLineSel guifg=#000000 guibg=#afaf87 gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#666666 guibg=#333333 gui=NONE cterm=NONE
|
||||
hi TabLineFill guifg=#ff8787 guibg=#333333 gui=NONE cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#262626 guibg=#d7d787 gui=NONE cterm=NONE
|
||||
hi NonText guifg=#5f87d7 guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#00875f guibg=NONE gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#5f87d7 gui=NONE cterm=NONE
|
||||
hi Folded guifg=#666666 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#5f87d7 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#333333 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#333333 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=NONE guibg=#333333 gui=NONE cterm=NONE
|
||||
hi Visual guifg=#d7d787 guibg=#5f8700 gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=NONE guibg=#262626 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=#d7d787 guibg=#5f8700 gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#666666 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Underlined guifg=#5f87d7 guibg=NONE gui=underline cterm=underline
|
||||
hi Error guifg=#ff0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi ErrorMsg guifg=#ff0000 guibg=#000000 gui=reverse cterm=reverse
|
||||
hi ModeMsg guifg=#262626 guibg=#ffd700 gui=NONE cterm=NONE
|
||||
hi WarningMsg guifg=#ff8787 guibg=NONE gui=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#00875f guibg=NONE gui=NONE cterm=NONE
|
||||
hi Question guifg=#ffd700 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Todo guifg=#ff0000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=#000000 guibg=#ffd700 gui=NONE cterm=NONE
|
||||
hi Search guifg=#000000 guibg=#d7875f gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#000000 guibg=#00ff00 gui=NONE cterm=NONE
|
||||
hi WildMenu guifg=#262626 guibg=#d7d787 gui=NONE cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#000000 gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#333333 guibg=#d7d787 gui=NONE cterm=NONE
|
||||
hi lCursor guifg=#262626 guibg=#ffafaf gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#ffff00 guibg=NONE guisp=#ffff00 gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#ffafaf guibg=NONE guisp=#ffafaf gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#ffd7af guibg=NONE guisp=#ffd7af gui=undercurl cterm=underline
|
||||
hi Comment guifg=#666666 guibg=NONE gui=NONE cterm=NONE
|
||||
hi String guifg=#87d7ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#ff8787 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Function guifg=#ffd7af guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#d7d787 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#5f87d7 guibg=NONE gui=bold cterm=NONE
|
||||
hi Constant guifg=#ffafaf guibg=NONE gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#d7875f guibg=NONE gui=NONE cterm=NONE
|
||||
hi Type guifg=#5f87d7 guibg=NONE gui=bold cterm=NONE
|
||||
hi Operator guifg=#d7875f guibg=NONE gui=NONE cterm=NONE
|
||||
hi Define guifg=#ffd700 guibg=NONE gui=bold cterm=NONE
|
||||
hi Structure guifg=#00ff00 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Directory guifg=#00875f guibg=NONE gui=bold cterm=NONE
|
||||
hi Conceal guifg=#666666 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title guifg=#ffd700 guibg=NONE gui=bold cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=231 ctermbg=235 cterm=NONE
|
||||
hi EndOfBuffer ctermfg=68 ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=16 ctermbg=144 cterm=NONE
|
||||
hi StatusLineNC ctermfg=241 ctermbg=144 cterm=NONE
|
||||
hi StatusLineTerm ctermfg=16 ctermbg=144 cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=241 ctermbg=144 cterm=NONE
|
||||
hi VertSplit ctermfg=241 ctermbg=144 cterm=NONE
|
||||
hi PmenuSel ctermfg=235 ctermbg=186 cterm=NONE
|
||||
hi Pmenu ctermfg=NONE ctermbg=239 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=235 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=220 cterm=NONE
|
||||
hi TabLineSel ctermfg=16 ctermbg=144 cterm=NONE
|
||||
hi TabLine ctermfg=241 ctermbg=236 cterm=NONE
|
||||
hi TabLineFill ctermfg=210 ctermbg=236 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=235 ctermbg=186 cterm=NONE
|
||||
hi NonText ctermfg=68 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=68 cterm=NONE
|
||||
hi Folded ctermfg=241 ctermbg=16 cterm=NONE
|
||||
hi FoldColumn ctermfg=68 ctermbg=16 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=236 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=236 cterm=NONE
|
||||
hi CursorLineNr ctermfg=NONE ctermbg=236 cterm=NONE
|
||||
hi Visual ctermfg=186 ctermbg=64 cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=235 cterm=NONE
|
||||
hi VisualNOS ctermfg=186 ctermbg=64 cterm=NONE
|
||||
hi LineNr ctermfg=241 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=68 ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi ErrorMsg ctermfg=196 ctermbg=16 cterm=reverse
|
||||
hi ModeMsg ctermfg=235 ctermbg=220 cterm=NONE
|
||||
hi WarningMsg ctermfg=210 ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=220 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=196 ctermbg=226 cterm=NONE
|
||||
hi MatchParen ctermfg=16 ctermbg=220 cterm=NONE
|
||||
hi Search ctermfg=16 ctermbg=173 cterm=NONE
|
||||
hi IncSearch ctermfg=16 ctermbg=46 cterm=NONE
|
||||
hi WildMenu ctermfg=235 ctermbg=186 cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=16 cterm=NONE
|
||||
hi Cursor ctermfg=236 ctermbg=186 cterm=NONE
|
||||
hi lCursor ctermfg=235 ctermbg=217 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=226 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=217 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=223 ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=241 ctermbg=NONE cterm=NONE
|
||||
hi String ctermfg=117 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=210 ctermbg=NONE cterm=NONE
|
||||
hi Function ctermfg=223 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=186 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=68 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=217 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=173 ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=68 ctermbg=NONE cterm=NONE
|
||||
hi Operator ctermfg=173 ctermbg=NONE cterm=NONE
|
||||
hi Define ctermfg=220 ctermbg=NONE cterm=NONE
|
||||
hi Structure ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=241 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=220 ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=white ctermbg=black cterm=NONE
|
||||
hi EndOfBuffer ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi StatusLineNC ctermfg=darkgrey ctermbg=grey cterm=NONE
|
||||
hi StatusLineTerm ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=darkgrey ctermbg=grey cterm=NONE
|
||||
hi VertSplit ctermfg=darkgrey ctermbg=grey cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi Pmenu ctermfg=NONE ctermbg=darkgrey cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=yellow cterm=NONE
|
||||
hi TabLineSel ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi TabLine ctermfg=grey ctermbg=darkgrey cterm=NONE
|
||||
hi TabLineFill ctermfg=cyan ctermbg=darkgrey cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi ToolbarButton ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi NonText ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=black ctermbg=blue cterm=NONE
|
||||
hi Folded ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi ColorColumn ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi Visual ctermfg=yellow ctermbg=darkgreen cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi VisualNOS ctermfg=darkmagenta ctermbg=darkgreen cterm=NONE
|
||||
hi LineNr ctermfg=grey ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=darkred ctermbg=white cterm=reverse
|
||||
hi ErrorMsg ctermfg=darkred ctermbg=black cterm=reverse
|
||||
hi ModeMsg ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi WarningMsg ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=darkred ctermbg=darkyellow cterm=NONE
|
||||
hi MatchParen ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi Search ctermfg=black ctermbg=darkmagenta cterm=NONE
|
||||
hi IncSearch ctermfg=black ctermbg=darkgreen cterm=NONE
|
||||
hi WildMenu ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi ColorColumn ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi Cursor ctermfg=darkgrey ctermbg=darkmagenta cterm=NONE
|
||||
hi lCursor ctermfg=black ctermbg=red cterm=NONE
|
||||
hi SpellBad ctermfg=darkred ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=darkyellow ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=darkcyan ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi String ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Function ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=darkyellow ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Operator ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Define ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi Structure ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=grey ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: dark
|
||||
" Color: foreground #FFFFFF 231 white
|
||||
" Color: background #262626 235 black
|
||||
" Color: color00 #000000 16 black
|
||||
" Color: color08 #333333 236 darkgrey
|
||||
" Color: color01 #FF0000 196 darkred
|
||||
" Color: color09 #FFAFAF 217 red
|
||||
" Color: color02 #5F8700 64 darkgreen
|
||||
" Color: color10 #00875F 29 green
|
||||
" Color: color03 #ffff00 226 darkyellow
|
||||
" Color: color11 #FFD700 220 yellow
|
||||
" Color: color04 #87d7FF 117 darkblue
|
||||
" Color: color12 #5F87D7 68 blue
|
||||
" Color: color05 #d7d787 186 darkmagenta
|
||||
" Color: color13 #AFAF87 144 magenta
|
||||
" Color: color06 #FFD7AF 223 darkcyan
|
||||
" Color: color14 #FF8787 210 cyan
|
||||
" Color: color07 #666666 241 grey
|
||||
" Color: color15 #FFFFFF 231 white
|
||||
" Color: color16 #D7875F 173 darkmagenta
|
||||
" Color: color17 #00FF00 46 darkgreen
|
||||
" Color: Pmenu #4A4A4A 239 darkgrey
|
||||
" Term colors: color00 color01 color02 color03 color04 color05 color06 color07
|
||||
" Term colors: color08 color09 color10 color11 color12 color13 color14 color15
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,238 +1,207 @@
|
||||
" This script tests a color scheme for some errors and lists potential errors.
|
||||
" Load the scheme and source this script, like this:
|
||||
" :edit colors/desert.vim | :so colors/tools/check_colors.vim
|
||||
vim9script
|
||||
# This script tests a color scheme for some errors and lists potential errors.
|
||||
# Load the scheme and source this script, like this:
|
||||
# :edit colors/desert.vim | :ru colors/tools/check_colors.vim
|
||||
|
||||
let s:save_cpo= &cpo
|
||||
set cpo&vim
|
||||
def Test_check_colors()
|
||||
const savedview = winsaveview()
|
||||
cursor(1, 1)
|
||||
var err = {}
|
||||
|
||||
func! Test_check_colors()
|
||||
let l:savedview = winsaveview()
|
||||
call cursor(1,1)
|
||||
let err = {}
|
||||
|
||||
" 1) Check g:colors_name is existing
|
||||
if !search('\<\%(g:\)\?colors_name\>', 'cnW')
|
||||
let err['colors_name'] = 'g:colors_name not set'
|
||||
else
|
||||
let err['colors_name'] = 'OK'
|
||||
endif
|
||||
|
||||
" 2) Check for some well-defined highlighting groups
|
||||
let hi_groups = [
|
||||
\ 'ColorColumn',
|
||||
\ 'Comment',
|
||||
\ 'Conceal',
|
||||
\ 'Constant',
|
||||
\ 'Cursor',
|
||||
\ 'CursorColumn',
|
||||
\ 'CursorLine',
|
||||
\ 'CursorLineNr',
|
||||
\ 'DiffAdd',
|
||||
\ 'DiffChange',
|
||||
\ 'DiffDelete',
|
||||
\ 'DiffText',
|
||||
\ 'Directory',
|
||||
\ 'EndOfBuffer',
|
||||
\ 'Error',
|
||||
\ 'ErrorMsg',
|
||||
\ 'FoldColumn',
|
||||
\ 'Folded',
|
||||
\ 'Identifier',
|
||||
\ 'Ignore',
|
||||
\ 'IncSearch',
|
||||
\ 'LineNr',
|
||||
\ 'MatchParen',
|
||||
\ 'ModeMsg',
|
||||
\ 'MoreMsg',
|
||||
\ 'NonText',
|
||||
\ 'Normal',
|
||||
\ 'Pmenu',
|
||||
\ 'PmenuSbar',
|
||||
\ 'PmenuSel',
|
||||
\ 'PmenuThumb',
|
||||
\ 'PreProc',
|
||||
\ 'Question',
|
||||
\ 'QuickFixLine',
|
||||
\ 'Search',
|
||||
\ 'SignColumn',
|
||||
\ 'Special',
|
||||
\ 'SpecialKey',
|
||||
\ 'SpellBad',
|
||||
\ 'SpellCap',
|
||||
\ 'SpellLocal',
|
||||
\ 'SpellRare',
|
||||
\ 'Statement',
|
||||
\ 'StatusLine',
|
||||
\ 'StatusLineNC',
|
||||
\ 'StatusLineTerm',
|
||||
\ 'StatusLineTermNC',
|
||||
\ 'TabLine',
|
||||
\ 'TabLineFill',
|
||||
\ 'TabLineSel',
|
||||
\ 'Title',
|
||||
\ 'Todo',
|
||||
\ 'ToolbarButton',
|
||||
\ 'ToolbarLine',
|
||||
\ 'Type',
|
||||
\ 'Underlined',
|
||||
\ 'VertSplit',
|
||||
\ 'Visual',
|
||||
\ 'VisualNOS',
|
||||
\ 'WarningMsg',
|
||||
\ 'WildMenu',
|
||||
\ ]
|
||||
let groups = {}
|
||||
for group in hi_groups
|
||||
if search('\c@suppress\s\+\<' .. group .. '\>', 'cnW')
|
||||
" skip check, if the script contains a line like
|
||||
" @suppress Visual:
|
||||
continue
|
||||
endif
|
||||
if search('hi\%[ghlight]!\= \+link \+' .. group, 'cnW') " Linked group
|
||||
continue
|
||||
endif
|
||||
if !search('hi\%[ghlight] \+\<' .. group .. '\>', 'cnW')
|
||||
let groups[group] = 'No highlight definition for ' .. group
|
||||
continue
|
||||
endif
|
||||
if !search('hi\%[ghlight] \+\<' .. group .. '\>.*[bf]g=', 'cnW')
|
||||
let groups[group] = 'Missing foreground or background color for ' .. group
|
||||
continue
|
||||
endif
|
||||
if search('hi\%[ghlight] \+\<' .. group .. '\>.*guibg=', 'cnW') &&
|
||||
\ !search('hi\%[ghlight] \+\<' .. group .. '\>.*ctermbg=', 'cnW')
|
||||
\ && group != 'Cursor'
|
||||
let groups[group] = 'Missing bg terminal color for ' .. group
|
||||
continue
|
||||
endif
|
||||
if !search('hi\%[ghlight] \+\<' .. group .. '\>.*guifg=', 'cnW')
|
||||
\ && group !~ '^Diff'
|
||||
let groups[group] = 'Missing guifg definition for ' .. group
|
||||
continue
|
||||
endif
|
||||
if !search('hi\%[ghlight] \+\<' .. group .. '\>.*ctermfg=', 'cnW')
|
||||
\ && group !~ '^Diff'
|
||||
\ && group != 'Cursor'
|
||||
let groups[group] = 'Missing ctermfg definition for ' .. group
|
||||
continue
|
||||
endif
|
||||
" do not check for background colors, they could be intentionally left out
|
||||
call cursor(1,1)
|
||||
endfor
|
||||
let err['highlight'] = groups
|
||||
|
||||
" 3) Check, that it does not set background highlighting
|
||||
" Doesn't ':hi Normal ctermfg=253 ctermfg=233' also set the background sometimes?
|
||||
let bg_set = '\(set\?\|setl\(ocal\)\?\) .*\(background\|bg\)=\(dark\|light\)'
|
||||
let bg_let = 'let \%([&]\%([lg]:\)\?\)\%(background\|bg\)\s*=\s*\([''"]\?\)\w\+\1'
|
||||
let bg_pat = '\%(' .. bg_set .. '\|' .. bg_let .. '\)'
|
||||
let line = search(bg_pat, 'cnW')
|
||||
if search(bg_pat, 'cnW')
|
||||
exe line
|
||||
if search('hi \U\w\+\s\+\S', 'cbnW')
|
||||
let err['background'] = 'Should not set background option after :hi statement'
|
||||
endif
|
||||
else
|
||||
let err['background'] = 'OK'
|
||||
endif
|
||||
call cursor(1,1)
|
||||
|
||||
" 4) Check, that t_Co is checked
|
||||
let pat = '[&]t_Co\s*[<>=]=\?\s*\d\+'
|
||||
if !search(pat, 'ncW')
|
||||
let err['t_Co'] = 'Does not check terminal for capable colors'
|
||||
endif
|
||||
|
||||
" 5) Initializes correctly, e.g. should have a section like
|
||||
" hi clear
|
||||
" if exists("syntax_on")
|
||||
" syntax reset
|
||||
" endif
|
||||
let pat = 'hi\%[ghlight]\s*clear\n\s*if\s*exists(\([''"]\)syntax_on\1)\n\s*syn\%[tax]\s*reset\n\s*endif'
|
||||
if !search(pat, 'cnW')
|
||||
let err['init'] = 'No initialization'
|
||||
endif
|
||||
|
||||
" 6) Does not use :syn on
|
||||
if search('syn\%[tax]\s\+on', 'cnW')
|
||||
let err['background'] = 'Should not issue :syn on'
|
||||
endif
|
||||
|
||||
" 7) Does not define filetype specific groups like vimCommand, htmlTag,
|
||||
let hi_groups = filter(getcompletion('', 'filetype'), { _,v -> v !~# '\%[no]syn\%(color\|load\|tax\)' })
|
||||
let ft_groups = []
|
||||
" let group = '\%('.join(hi_groups, '\|').'\)' " More efficient than a for loop, but less informative
|
||||
for group in hi_groups
|
||||
let pat = '\Chi\%[ghlight]!\= *\%[link] \+\zs' .. group .. '\w\+\>\ze \+.' " Skips `hi clear`
|
||||
if search(pat, 'cW')
|
||||
call add(ft_groups, matchstr(getline('.'), pat))
|
||||
endif
|
||||
call cursor(1,1)
|
||||
endfor
|
||||
if !empty(ft_groups)
|
||||
let err['filetype'] = get(err, 'filetype', 'Should not define: ') . join(uniq(sort(ft_groups)))
|
||||
endif
|
||||
|
||||
" 8) Were debugPC and debugBreakpoint defined?
|
||||
for group in ['debugPC', 'debugBreakpoint']
|
||||
let pat = '\Chi\%[ghlight]!\= *\%[link] \+\zs' .. group .. '\>'
|
||||
if search(pat, 'cnW')
|
||||
let line = search(pat, 'cW')
|
||||
let err['filetype'] = get(err, 'filetype', 'Should not define: ') . matchstr(getline('.'), pat). ' '
|
||||
endif
|
||||
call cursor(1,1)
|
||||
endfor
|
||||
|
||||
" 9) Normal should be defined first, not use reverse, fg or bg
|
||||
call cursor(1,1)
|
||||
let pat = 'hi\%[ghlight] \+\%(link\|clear\)\@!\w\+\>'
|
||||
call search(pat, 'cW') " Look for the first hi def, skipping `hi link` and `hi clear`
|
||||
if getline('.') !~# '\m\<Normal\>'
|
||||
let err['highlight']['Normal'] = 'Should be defined first'
|
||||
elseif getline('.') =~# '\m\%(=\%(fg\|bg\)\)'
|
||||
let err['highlight']['Normal'] = "Should not use 'fg' or 'bg'"
|
||||
elseif getline('.') =~# '\m=\%(inv\|rev\)erse'
|
||||
let err['highlight']['Normal'] = 'Should not use reverse mode'
|
||||
endif
|
||||
|
||||
call winrestview(l:savedview)
|
||||
let g:err = err
|
||||
|
||||
" print Result
|
||||
call Result(err)
|
||||
endfu
|
||||
|
||||
fu! Result(err)
|
||||
let do_groups = 0
|
||||
echohl Title|echomsg "---------------"|echohl Normal
|
||||
for key in sort(keys(a:err))
|
||||
if key is# 'highlight'
|
||||
let do_groups = !empty(a:err[key])
|
||||
continue
|
||||
# 1) Check g:colors_name is existing
|
||||
if !search('\<\%(g:\)\?colors_name\>', 'cnW')
|
||||
err['colors_name'] = 'g:colors_name not set'
|
||||
else
|
||||
if a:err[key] !~ 'OK'
|
||||
echohl Title
|
||||
endif
|
||||
echomsg printf("%15s: %s", key, a:err[key])
|
||||
echohl Normal
|
||||
err['colors_name'] = 'OK'
|
||||
endif
|
||||
endfor
|
||||
echohl Title|echomsg "---------------"|echohl Normal
|
||||
if do_groups
|
||||
echohl Title | echomsg "Groups" | echohl Normal
|
||||
for v1 in sort(keys(a:err['highlight']))
|
||||
echomsg printf("%25s: %s", v1, a:err['highlight'][v1])
|
||||
endfor
|
||||
endif
|
||||
endfu
|
||||
|
||||
try
|
||||
call Test_check_colors()
|
||||
catch
|
||||
echohl ErrorMsg
|
||||
echomsg v:exception
|
||||
echohl NONE
|
||||
finally
|
||||
let &cpo = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
endtry
|
||||
# 2) Check for some well-defined highlighting groups
|
||||
const hi_groups = [
|
||||
'ColorColumn',
|
||||
'Comment',
|
||||
'Conceal',
|
||||
'Constant',
|
||||
'CurSearch',
|
||||
'Cursor',
|
||||
'CursorColumn',
|
||||
'CursorLine',
|
||||
'CursorLineNr',
|
||||
'CursorLineFold',
|
||||
'CursorLineSign',
|
||||
'DiffAdd',
|
||||
'DiffChange',
|
||||
'DiffDelete',
|
||||
'DiffText',
|
||||
'Directory',
|
||||
'EndOfBuffer',
|
||||
'Error',
|
||||
'ErrorMsg',
|
||||
'FoldColumn',
|
||||
'Folded',
|
||||
'Identifier',
|
||||
'Ignore',
|
||||
'IncSearch',
|
||||
'LineNr',
|
||||
'LineNrAbove',
|
||||
'LineNrBelow',
|
||||
'MatchParen',
|
||||
'ModeMsg',
|
||||
'MoreMsg',
|
||||
'NonText',
|
||||
'Normal',
|
||||
'Pmenu',
|
||||
'PmenuSbar',
|
||||
'PmenuSel',
|
||||
'PmenuThumb',
|
||||
'PreProc',
|
||||
'Question',
|
||||
'QuickFixLine',
|
||||
'Search',
|
||||
'SignColumn',
|
||||
'Special',
|
||||
'SpecialKey',
|
||||
'SpellBad',
|
||||
'SpellCap',
|
||||
'SpellLocal',
|
||||
'SpellRare',
|
||||
'Statement',
|
||||
'StatusLine',
|
||||
'StatusLineNC',
|
||||
'StatusLineTerm',
|
||||
'StatusLineTermNC',
|
||||
'TabLine',
|
||||
'TabLineFill',
|
||||
'TabLineSel',
|
||||
'Title',
|
||||
'Todo',
|
||||
'ToolbarButton',
|
||||
'ToolbarLine',
|
||||
'Type',
|
||||
'Underlined',
|
||||
'VertSplit',
|
||||
'Visual',
|
||||
'VisualNOS',
|
||||
'WarningMsg',
|
||||
'WildMenu',
|
||||
'debugPC',
|
||||
'debugBreakpoint',
|
||||
]
|
||||
var groups = {}
|
||||
for group in hi_groups
|
||||
if search('\c@suppress\s\+\<' .. group .. '\>', 'cnW') != 0
|
||||
# skip check, if the script contains a line like
|
||||
# @suppress Visual:
|
||||
continue
|
||||
endif
|
||||
if search('hi\%[ghlight]!\= \+link \+' .. group, 'cnW') != 0 # Linked group
|
||||
continue
|
||||
endif
|
||||
if search('hi\%[ghlight] \+\<' .. group .. '\>', 'cnW') == 0
|
||||
groups[group] = 'No highlight definition for ' .. group
|
||||
continue
|
||||
endif
|
||||
if search('hi\%[ghlight] \+\<' .. group .. '\>.*[bf]g=', 'cnW') == 0
|
||||
groups[group] = 'Missing foreground or background color for ' .. group
|
||||
continue
|
||||
endif
|
||||
if search('hi\%[ghlight] \+\<' .. group .. '\>.*guibg=', 'cnW') != 0
|
||||
&& search('hi\%[ghlight] \+\<' .. group .. '\>.*ctermbg=', 'cnW') == 0
|
||||
&& group != 'Cursor'
|
||||
groups[group] = 'Missing bg terminal color for ' .. group
|
||||
continue
|
||||
endif
|
||||
if search('hi\%[ghlight] \+\<' .. group .. '\>.*guifg=', 'cnW') == 0
|
||||
&& group !~ '^Diff'
|
||||
groups[group] = 'Missing guifg definition for ' .. group
|
||||
continue
|
||||
endif
|
||||
if search('hi\%[ghlight] \+\<' .. group .. '\>.*ctermfg=', 'cnW') == 0
|
||||
&& group !~ '^Diff'
|
||||
&& group != 'Cursor'
|
||||
groups[group] = 'Missing ctermfg definition for ' .. group
|
||||
continue
|
||||
endif
|
||||
# do not check for background colors, they could be intentionally left out
|
||||
cursor(1, 1)
|
||||
endfor
|
||||
err['highlight'] = groups
|
||||
|
||||
# 3) Check, that it does not set background highlighting
|
||||
# Doesn't ':hi Normal ctermfg=253 ctermfg=233' also set the background sometimes?
|
||||
const bg_set = '\(set\?\|setl\(ocal\)\?\) .*\(background\|bg\)=\(dark\|light\)'
|
||||
const bg_let = 'let \%([&]\%([lg]:\)\?\)\%(background\|bg\)\s*=\s*\([''"]\?\)\w\+\1'
|
||||
const bg_pat = '\%(' .. bg_set .. '\|' .. bg_let .. '\)'
|
||||
const line = search(bg_pat, 'cnW')
|
||||
if search(bg_pat, 'cnW') != 0
|
||||
exe ":" .. line
|
||||
if search('hi \U\w\+\s\+\S', 'cbnW') != 0
|
||||
err['background'] = 'Should not set background option after :hi statement'
|
||||
endif
|
||||
else
|
||||
err['background'] = 'OK'
|
||||
endif
|
||||
cursor(1, 1)
|
||||
|
||||
# 4) Check, that t_Co is checked
|
||||
var pat = '[&]t_Co\s*[<>=]=\?\s*\d\+'
|
||||
if search(pat, 'ncW') == 0
|
||||
err['t_Co'] = 'Does not check terminal for capable colors'
|
||||
endif
|
||||
|
||||
# 5) Initializes correctly, e.g. should have at least:
|
||||
# hi clear
|
||||
pat = '^\s*hi\%[ghlight]\s*clear\s*$'
|
||||
if search(pat, 'cnW') == 0
|
||||
err['init'] = 'No initialization'
|
||||
endif
|
||||
|
||||
# 6) Does not use :syn on
|
||||
if search('syn\%[tax]\s\+on', 'cnW') != 0
|
||||
err['background'] = 'Should not issue :syn on'
|
||||
endif
|
||||
|
||||
# 7) Normal should be defined first, not use reverse, fg or bg
|
||||
cursor(1, 1)
|
||||
pat = 'hi\%[light] \+\%(link\|clear\)\@!\w\+\>'
|
||||
search(pat, 'cW') # Look for the first hi def, skipping `hi link` and `hi clear`
|
||||
if getline('.') !~# '\m\<Normal\>'
|
||||
err['highlight']['Normal'] = 'Should be defined first'
|
||||
elseif getline('.') =~# '\m\%(=\%(fg\|bg\)\)'
|
||||
err['highlight']['Normal'] = "Should not use 'fg' or 'bg'"
|
||||
elseif getline('.') =~# '\m=\%(inv\|rev\)erse'
|
||||
err['highlight']['Normal'] = 'Should not use reverse mode'
|
||||
endif
|
||||
|
||||
# 8) TODO: XXX: Check if g:terminal_ansi_colors are defined
|
||||
|
||||
winrestview(savedview)
|
||||
g:err = err
|
||||
|
||||
Result(err)
|
||||
enddef
|
||||
|
||||
def Result(err: any)
|
||||
var do_groups: bool = v:false
|
||||
echohl Title | echomsg "---------------" | echohl Normal
|
||||
for key in sort(keys(err))
|
||||
if key is 'highlight'
|
||||
do_groups = !empty(err[key])
|
||||
continue
|
||||
else
|
||||
if err[key] !~ 'OK'
|
||||
echohl Title
|
||||
endif
|
||||
echomsg printf("%15s: %s", key, err[key])
|
||||
echohl Normal
|
||||
endif
|
||||
endfor
|
||||
echohl Title | echomsg "---------------" | echohl Normal
|
||||
if do_groups
|
||||
echohl Title | echomsg "Groups" | echohl Normal
|
||||
for v1 in sort(keys(err['highlight']))
|
||||
echomsg printf("%25s: %s", v1, err['highlight'][v1])
|
||||
endfor
|
||||
endif
|
||||
enddef
|
||||
|
||||
Test_check_colors()
|
||||
|
||||
@@ -1,50 +1,362 @@
|
||||
" Vim color file
|
||||
" Maintainer: Thorsten Maerz <info@netztorte.de>
|
||||
" Last Change: 2006 Dec 07
|
||||
" grey on black
|
||||
" optimized for TFT panels
|
||||
" Name: torte
|
||||
" Description: Remake of torte (grey on black)
|
||||
" Author: Original maintainer Thorsten Maerz <info@netztorte.de>
|
||||
" Maintainer: Original maintainer Thorsten Maerz <info@netztorte.de>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:46 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=dark
|
||||
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
let g:colors_name = 'torte'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#000000', '#cd0000', '#00cd00', '#cdcd00', '#0000ee', '#cd00cd', '#00cdcd', '#e5e5e5', '#7f7f7f', '#ff0000', '#00ff00', '#ffff00', '#5c5cff', '#ff00ff', '#00ffff', '#ffffff']
|
||||
endif
|
||||
"colorscheme default
|
||||
let g:colors_name = "torte"
|
||||
hi Normal guifg=#cccccc guibg=#000000 gui=NONE cterm=NONE
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi Comment guifg=#80a0ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#ffa0a0 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#40ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#ffff60 guibg=NONE gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#ff80ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Type guifg=#60ff60 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#ffa500 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Underlined guifg=#80a0ff guibg=NONE gui=underline cterm=underline
|
||||
hi Ignore guifg=#000000 guibg=#000000 gui=NONE cterm=NONE
|
||||
hi Error guifg=#ffffff guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi Todo guifg=#ffff00 guibg=#000000 gui=reverse cterm=reverse
|
||||
hi Folded guifg=#00cdcd guibg=#3a3a3a gui=NONE cterm=NONE
|
||||
hi Visual guifg=#000000 guibg=#a9a9a9 gui=bold cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#666666 gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#666666 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#ffff00 guibg=#666666 gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi ColorColumn guifg=#cccccc guibg=#8b0000 gui=NONE cterm=NONE
|
||||
hi Conceal guifg=#e5e5e5 guibg=#a9a9a9 gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#000000 guibg=#00ff00 gui=bold cterm=NONE
|
||||
hi lCursor guifg=#000000 guibg=#e5e5e5 gui=NONE cterm=NONE
|
||||
hi CursorIM guifg=NONE guibg=fg gui=NONE cterm=NONE
|
||||
hi Title guifg=#ff00ff guibg=NONE gui=bold cterm=NONE
|
||||
hi Directory guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Search guifg=#ff0000 guibg=#000000 gui=reverse cterm=reverse
|
||||
hi IncSearch guifg=#00cd00 guibg=#000000 gui=reverse cterm=reverse
|
||||
hi NonText guifg=#0000ff guibg=NONE gui=bold cterm=NONE
|
||||
hi EndOfBuffer guifg=#0000ff guibg=NONE gui=bold cterm=NONE
|
||||
hi ErrorMsg guifg=#ffffff guibg=#cd0000 gui=NONE cterm=NONE
|
||||
hi WarningMsg guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#7f7f7f guibg=NONE gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=NONE guibg=#008b8b gui=NONE cterm=NONE
|
||||
hi ModeMsg guifg=NONE guibg=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#2e8b57 guibg=NONE gui=bold cterm=NONE
|
||||
hi Question guifg=#00ff00 guibg=NONE gui=bold cterm=NONE
|
||||
hi SpecialKey guifg=#00ffff guibg=NONE gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=NONE guibg=#000000 gui=bold,underline cterm=underline
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi QuickFixLine guifg=#000000 guibg=#cdcd00 gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#5c5cff guibg=NONE guisp=#5c5cff gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#ff00ff guibg=NONE guisp=#ff00ff gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#00ffff guibg=NONE guisp=#00ffff gui=undercurl cterm=underline
|
||||
hi StatusLine guifg=#ffffff guibg=#0000ee gui=bold cterm=NONE
|
||||
hi StatusLineNC guifg=#000000 guibg=#e5e5e5 gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#000000 guibg=#e5e5e5 gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#ffffff guibg=#7f7f7f gui=NONE cterm=NONE
|
||||
hi TabLineFill guifg=NONE guibg=#000000 gui=reverse cterm=reverse
|
||||
hi TabLineSel guifg=#cccccc guibg=#000000 gui=bold cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=#000000 gui=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=#000000 guibg=#e5e5e5 gui=bold cterm=NONE
|
||||
hi Pmenu guifg=fg guibg=#303030 gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#bebebe gui=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
" hardcoded colors :
|
||||
" GUI Comment : #80a0ff = Light blue
|
||||
|
||||
" GUI
|
||||
highlight Normal guifg=Grey80 guibg=Black
|
||||
highlight Search guifg=Black guibg=Red gui=bold
|
||||
highlight Visual guifg=#404040 gui=bold
|
||||
highlight Cursor guifg=Black guibg=Green gui=bold
|
||||
highlight Special guifg=Orange
|
||||
highlight Comment guifg=#80a0ff
|
||||
highlight StatusLine guifg=blue guibg=white
|
||||
highlight Statement guifg=Yellow gui=NONE
|
||||
highlight Type gui=NONE
|
||||
|
||||
" Console
|
||||
highlight Normal ctermfg=LightGrey ctermbg=Black
|
||||
highlight Search ctermfg=Black ctermbg=Red cterm=NONE
|
||||
highlight Visual cterm=reverse
|
||||
highlight Cursor ctermfg=Black ctermbg=Green cterm=bold
|
||||
highlight Special ctermfg=Brown
|
||||
highlight Comment ctermfg=Blue
|
||||
highlight StatusLine ctermfg=blue ctermbg=white
|
||||
highlight Statement ctermfg=Yellow cterm=NONE
|
||||
highlight Type cterm=NONE
|
||||
|
||||
" only for vim 5
|
||||
if has("unix")
|
||||
if v:version<600
|
||||
highlight Normal ctermfg=Grey ctermbg=Black cterm=NONE guifg=Grey80 guibg=Black gui=NONE
|
||||
highlight Search ctermfg=Black ctermbg=Red cterm=bold guifg=Black guibg=Red gui=bold
|
||||
highlight Visual ctermfg=Black ctermbg=yellow cterm=bold guifg=#404040 gui=bold
|
||||
highlight Special ctermfg=LightBlue cterm=NONE guifg=LightBlue gui=NONE
|
||||
highlight Comment ctermfg=Cyan cterm=NONE guifg=LightBlue gui=NONE
|
||||
endif
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=251 ctermbg=16 cterm=NONE
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi Comment ctermfg=111 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=217 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=87 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=227 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=213 ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=83 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=214 ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=111 ctermbg=NONE cterm=underline
|
||||
hi Ignore ctermfg=16 ctermbg=16 cterm=NONE
|
||||
hi Error ctermfg=231 ctermbg=196 cterm=NONE
|
||||
hi Todo ctermfg=226 ctermbg=16 cterm=reverse
|
||||
hi Folded ctermfg=44 ctermbg=237 cterm=NONE
|
||||
hi Visual ctermfg=16 ctermbg=248 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=242 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=242 cterm=NONE
|
||||
hi CursorLineNr ctermfg=226 ctermbg=242 cterm=NONE
|
||||
hi SignColumn ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi ColorColumn ctermfg=251 ctermbg=88 cterm=NONE
|
||||
hi Conceal ctermfg=254 ctermbg=248 cterm=NONE
|
||||
hi Cursor ctermfg=16 ctermbg=46 cterm=NONE
|
||||
hi lCursor ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi Title ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=196 ctermbg=16 cterm=reverse
|
||||
hi IncSearch ctermfg=40 ctermbg=16 cterm=reverse
|
||||
hi NonText ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi EndOfBuffer ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi ErrorMsg ctermfg=231 ctermbg=160 cterm=NONE
|
||||
hi WarningMsg ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi LineNr ctermfg=102 ctermbg=NONE cterm=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=30 cterm=NONE
|
||||
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=29 ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=46 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=51 ctermbg=NONE cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=16 cterm=underline
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi QuickFixLine ctermfg=16 ctermbg=184 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=63 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=201 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=51 ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=231 ctermbg=20 cterm=NONE
|
||||
hi StatusLineNC ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi VertSplit ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi TabLine ctermfg=231 ctermbg=102 cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=16 cterm=reverse
|
||||
hi TabLineSel ctermfg=251 ctermbg=16 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=16 cterm=NONE
|
||||
hi ToolbarButton ctermfg=16 ctermbg=254 cterm=NONE
|
||||
hi Pmenu ctermfg=fg ctermbg=236 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=250 cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=white ctermbg=black cterm=NONE
|
||||
hi! link StatusLineTerm StatusLine
|
||||
hi! link StatusLineTermNC StatusLineNC
|
||||
hi Comment ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=yellow ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi Ignore ctermfg=black ctermbg=black cterm=NONE
|
||||
hi Error ctermfg=white ctermbg=red cterm=NONE
|
||||
hi Todo ctermfg=yellow ctermbg=black cterm=reverse
|
||||
hi Folded ctermfg=darkcyan ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=yellow ctermbg=NONE cterm=underline
|
||||
hi SignColumn ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi ColorColumn ctermfg=white ctermbg=darkred cterm=NONE
|
||||
hi Conceal ctermfg=grey ctermbg=grey cterm=NONE
|
||||
hi Cursor ctermfg=black ctermbg=green cterm=NONE
|
||||
hi lCursor ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi CursorIM ctermfg=NONE ctermbg=fg cterm=NONE
|
||||
hi Title ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi Search ctermfg=red ctermbg=black cterm=reverse
|
||||
hi IncSearch ctermfg=darkgreen ctermbg=black cterm=reverse
|
||||
hi NonText ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi EndOfBuffer ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi ErrorMsg ctermfg=white ctermbg=darkred cterm=NONE
|
||||
hi WarningMsg ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi LineNr ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi MatchParen ctermfg=NONE ctermbg=darkcyan cterm=NONE
|
||||
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi MoreMsg ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Question ctermfg=green ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=cyan ctermbg=NONE cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=black cterm=underline
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi QuickFixLine ctermfg=black ctermbg=darkyellow cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=magenta ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=cyan ctermbg=NONE cterm=underline
|
||||
hi StatusLine ctermfg=white ctermbg=darkblue cterm=NONE
|
||||
hi StatusLineNC ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi VertSplit ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi TabLine ctermfg=white ctermbg=darkgrey cterm=NONE
|
||||
hi TabLineFill ctermfg=NONE ctermbg=black cterm=reverse
|
||||
hi TabLineSel ctermfg=white ctermbg=black cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi ToolbarButton ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi Pmenu ctermfg=fg ctermbg=darkgrey cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: dark
|
||||
" Color: foreground #CCCCCC 251 white
|
||||
" Color: background #000000 16 black
|
||||
" Color: color00 #000000 16 black
|
||||
" Color: color08 #7f7f7f 102 darkgrey
|
||||
" Color: color01 #cd0000 160 darkred
|
||||
" Color: color09 #ff0000 196 red
|
||||
" Color: color02 #00cd00 40 darkgreen
|
||||
" Color: color10 #00ff00 46 green
|
||||
" Color: color03 #cdcd00 184 darkyellow
|
||||
" Color: color11 #ffff00 226 yellow
|
||||
" Color: color04 #0000ee 20 darkblue
|
||||
" Color: color12 #5c5cff 63 blue
|
||||
" Color: color05 #cd00cd 164 darkmagenta
|
||||
" Color: color13 #ff00ff 201 magenta
|
||||
" Color: color06 #00cdcd 44 darkcyan
|
||||
" Color: color14 #00ffff 51 cyan
|
||||
" Color: color07 #e5e5e5 254 grey
|
||||
" Color: color15 #ffffff 231 white
|
||||
" Term colors: color00 color01 color02 color03 color04 color05 color06 color07
|
||||
" Term colors: color08 color09 color10 color11 color12 color13 color14 color15
|
||||
" Color: rgbGrey40 #666666 242 grey
|
||||
" Color: rgbDarkGrey #a9a9a9 248 grey
|
||||
" Color: rgbDarkBlue #00008b 18 darkblue
|
||||
" Color: rgbDarkMagenta #8b008b 90 darkmagenta
|
||||
" Color: rgbBlue #0000ff 21 blue
|
||||
" Color: rgbDarkCyan #008b8b 30 darkcyan
|
||||
" Color: Directory #00ffff 51 cyan
|
||||
" Color: rgbSeaGreen #2e8b57 29 darkgreen
|
||||
" Color: rgbGrey #bebebe 250 grey
|
||||
" Color: Question #00ff00 46 green
|
||||
" Color: SignColumn #a9a9a9 248 black
|
||||
" Color: SpecialKey #00ffff 51 cyan
|
||||
" Color: StatusLineTerm #90ee90 120 darkgreen
|
||||
" Color: Title #ff00ff 201 magenta
|
||||
" Color: WarningMsg #ff0000 196 red
|
||||
" Color: ToolbarLine #7f7f7f 243 black
|
||||
" Color: ToolbarButton #d3d3d3 252 darkgrey
|
||||
" Color: Comment #80a0ff 111 blue
|
||||
" Color: Constant #ffa0a0 217 darkmagenta
|
||||
" Color: Special #ffa500 214 darkred
|
||||
" Color: Identifier #40ffff 87 cyan
|
||||
" Color: Statement #ffff60 227 yellow
|
||||
" Color: PreProc #ff80ff 213 darkcyan
|
||||
" Color: Type #60ff60 83 green
|
||||
" Color: Underlined #80a0ff 111 blue
|
||||
" Color: FoldedBG #3a3a3a 237 darkgrey
|
||||
" Color: Pmenu #303030 236 darkgrey
|
||||
" Color: rgbDarkRed #8b0000 88 darkred
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,54 +1,341 @@
|
||||
" local syntax file - set colors on a per-machine basis:
|
||||
" vim: tw=0 ts=4 sw=4
|
||||
" Vim color file
|
||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||
" Last Change: 2003 May 02
|
||||
" Name: zellner
|
||||
" Description: Light background colorscheme.
|
||||
" Author: Original author Ron Aaron <ron@ronware.org>
|
||||
" Maintainer: Original maintainer Ron Aaron <ron@ronware.org>
|
||||
" Website: https://github.com/vim/colorschemes
|
||||
" License: Same as Vim
|
||||
" Last Updated: Wed May 11 22:56:47 2022
|
||||
|
||||
" Generated by Colortemplate v2.2.0
|
||||
|
||||
set background=light
|
||||
hi clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
let g:colors_name = "zellner"
|
||||
|
||||
hi Comment term=bold ctermfg=Red guifg=Red
|
||||
hi Normal guifg=black guibg=white
|
||||
hi Constant term=underline ctermfg=Magenta guifg=Magenta
|
||||
hi Special term=bold ctermfg=Magenta guifg=Magenta
|
||||
hi Identifier term=underline ctermfg=Blue guifg=Blue
|
||||
hi Statement term=bold ctermfg=DarkRed gui=NONE guifg=Brown
|
||||
hi PreProc term=underline ctermfg=Magenta guifg=Purple
|
||||
hi Type term=underline ctermfg=Blue gui=NONE guifg=Blue
|
||||
hi Visual term=reverse ctermfg=Yellow ctermbg=Red gui=NONE guifg=Black guibg=Yellow
|
||||
hi Search term=reverse ctermfg=Black ctermbg=Cyan gui=NONE guifg=Black guibg=Cyan
|
||||
hi Tag term=bold ctermfg=DarkGreen guifg=DarkGreen
|
||||
hi Error term=reverse ctermfg=15 ctermbg=9 guibg=Red guifg=White
|
||||
hi Todo term=standout ctermbg=Yellow ctermfg=Black guifg=Blue guibg=Yellow
|
||||
hi StatusLine term=bold,reverse cterm=NONE ctermfg=Yellow ctermbg=DarkGray gui=NONE guifg=Yellow guibg=DarkGray
|
||||
hi! link MoreMsg Comment
|
||||
hi! link ErrorMsg Visual
|
||||
hi! link WarningMsg ErrorMsg
|
||||
hi! link Question Comment
|
||||
hi link String Constant
|
||||
hi link Character Constant
|
||||
hi link Number Constant
|
||||
hi link Boolean Constant
|
||||
hi link Float Number
|
||||
hi link Function Identifier
|
||||
hi link Conditional Statement
|
||||
hi link Repeat Statement
|
||||
hi link Label Statement
|
||||
hi link Operator Statement
|
||||
hi link Keyword Statement
|
||||
hi link Exception Statement
|
||||
hi link Include PreProc
|
||||
hi link Define PreProc
|
||||
hi link Macro PreProc
|
||||
hi link PreCondit PreProc
|
||||
hi link StorageClass Type
|
||||
hi link Structure Type
|
||||
hi link Typedef Type
|
||||
hi link SpecialChar Special
|
||||
hi link Delimiter Special
|
||||
hi link SpecialComment Special
|
||||
hi link Debug Special
|
||||
hi clear
|
||||
let g:colors_name = 'zellner'
|
||||
|
||||
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 1
|
||||
|
||||
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||
let g:terminal_ansi_colors = ['#ffffff', '#a52a2a', '#ff00ff', '#a020f0', '#0000ff', '#0000ff', '#ff00ff', '#a9a9a9', '#ff0000', '#a52a2a', '#ff00ff', '#a020f0', '#0000ff', '#0000ff', '#ff00ff', '#000000']
|
||||
endif
|
||||
hi Normal guifg=#000000 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi Folded guifg=#00008b guibg=#d3d3d3 gui=NONE cterm=NONE
|
||||
hi CursorLine guifg=NONE guibg=#e5e5e5 gui=NONE cterm=NONE
|
||||
hi CursorColumn guifg=NONE guibg=#e5e5e5 gui=NONE cterm=NONE
|
||||
hi CursorLineNr guifg=#a52a2a guibg=NONE gui=bold cterm=NONE
|
||||
hi QuickFixLine guifg=#ffffff guibg=#6a5acd gui=NONE cterm=NONE
|
||||
hi EndOfBuffer guifg=#a9a9a9 guibg=NONE gui=NONE cterm=NONE
|
||||
hi StatusLine guifg=#ffff00 guibg=#a9a9a9 gui=NONE cterm=NONE
|
||||
hi StatusLineNC guifg=#ffffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi StatusLineTerm guifg=#ffffff guibg=#006400 gui=NONE cterm=NONE
|
||||
hi StatusLineTermNC guifg=#ffffff guibg=#0000ff gui=NONE cterm=NONE
|
||||
hi VertSplit guifg=#ffffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi Pmenu guifg=#000000 guibg=#dadada gui=NONE cterm=NONE
|
||||
hi PmenuSel guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi PmenuSbar guifg=NONE guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi PmenuThumb guifg=NONE guibg=#a9a9a9 gui=NONE cterm=NONE
|
||||
hi TabLine guifg=#000000 guibg=#a9a9a9 gui=underline cterm=underline
|
||||
hi TabLineFill guifg=NONE guibg=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel guifg=#000000 guibg=#ffffff gui=bold cterm=NONE
|
||||
hi ToolbarLine guifg=NONE guibg=#d3d3d3 gui=NONE cterm=NONE
|
||||
hi ToolbarButton guifg=NONE guibg=#a9a9a9 gui=bold cterm=NONE
|
||||
hi NonText guifg=#a9a9a9 guibg=NONE gui=NONE cterm=NONE
|
||||
hi SpecialKey guifg=#a9a9a9 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Visual guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi VisualNOS guifg=NONE guibg=#ff0000 gui=NONE cterm=NONE
|
||||
hi LineNr guifg=#a52a2a guibg=NONE gui=NONE cterm=NONE
|
||||
hi FoldColumn guifg=#00008b guibg=NONE gui=NONE cterm=NONE
|
||||
hi SignColumn guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined guifg=#6a5acd guibg=NONE gui=underline cterm=underline
|
||||
hi Error guifg=#ff0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi ErrorMsg guifg=#ff0000 guibg=#ffffff gui=reverse cterm=reverse
|
||||
hi WarningMsg guifg=#a020f0 guibg=#ffffff gui=NONE cterm=NONE
|
||||
hi MoreMsg guifg=#000000 guibg=#ffffff gui=bold cterm=NONE
|
||||
hi ModeMsg guifg=#000000 guibg=#ffffff gui=bold cterm=NONE
|
||||
hi Question guifg=#ff00ff guibg=NONE gui=bold cterm=NONE
|
||||
hi Todo guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi MatchParen guifg=#ffffff guibg=#ff00ff gui=NONE cterm=NONE
|
||||
hi Search guifg=#ffffff guibg=#a020f0 gui=NONE cterm=NONE
|
||||
hi IncSearch guifg=#000000 guibg=NONE gui=reverse cterm=reverse
|
||||
hi WildMenu guifg=#000000 guibg=#ffff00 gui=NONE cterm=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#eeeeee gui=NONE cterm=NONE
|
||||
hi Cursor guifg=#ffffff guibg=#000000 gui=NONE cterm=NONE
|
||||
hi lCursor guifg=#000000 guibg=#ff00ff gui=NONE cterm=NONE
|
||||
hi SpellBad guifg=#ff0000 guibg=NONE guisp=#ff0000 gui=undercurl cterm=underline
|
||||
hi SpellCap guifg=#0000ff guibg=NONE guisp=#0000ff gui=undercurl cterm=underline
|
||||
hi SpellLocal guifg=#878700 guibg=NONE guisp=#878700 gui=undercurl cterm=underline
|
||||
hi SpellRare guifg=#008787 guibg=NONE guisp=#008787 gui=undercurl cterm=underline
|
||||
hi Comment guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Constant guifg=#ff00ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Identifier guifg=#0000ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Statement guifg=#a52a2a guibg=NONE gui=NONE cterm=NONE
|
||||
hi PreProc guifg=#a020f0 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Type guifg=#0000ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Special guifg=#ff00ff guibg=NONE gui=NONE cterm=NONE
|
||||
hi Tag guifg=#006400 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Directory guifg=#0000ff guibg=NONE gui=bold cterm=NONE
|
||||
hi Conceal guifg=#ff0000 guibg=NONE gui=NONE cterm=NONE
|
||||
hi Ignore guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title guifg=#a020f0 guibg=NONE gui=bold cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd guifg=#ffffff guibg=#5f875f gui=NONE cterm=NONE
|
||||
hi DiffChange guifg=#ffffff guibg=#5f87af gui=NONE cterm=NONE
|
||||
hi DiffText guifg=#000000 guibg=#c6c6c6 gui=NONE cterm=NONE
|
||||
hi DiffDelete guifg=#ffffff guibg=#af5faf gui=NONE cterm=NONE
|
||||
|
||||
if s:t_Co >= 256
|
||||
hi Normal ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi Folded ctermfg=18 ctermbg=252 cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=254 cterm=NONE
|
||||
hi CursorColumn ctermfg=NONE ctermbg=254 cterm=NONE
|
||||
hi CursorLineNr ctermfg=124 ctermbg=NONE cterm=NONE
|
||||
hi QuickFixLine ctermfg=231 ctermbg=62 cterm=NONE
|
||||
hi EndOfBuffer ctermfg=248 ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=226 ctermbg=248 cterm=NONE
|
||||
hi StatusLineNC ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi StatusLineTerm ctermfg=231 ctermbg=22 cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=231 ctermbg=21 cterm=NONE
|
||||
hi VertSplit ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi Pmenu ctermfg=16 ctermbg=253 cterm=NONE
|
||||
hi PmenuSel ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=231 cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=248 cterm=NONE
|
||||
hi TabLine ctermfg=16 ctermbg=248 cterm=underline
|
||||
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=252 cterm=NONE
|
||||
hi ToolbarButton ctermfg=NONE ctermbg=248 cterm=NONE
|
||||
hi NonText ctermfg=248 ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=248 ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=196 cterm=NONE
|
||||
hi LineNr ctermfg=124 ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=18 ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=62 ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi ErrorMsg ctermfg=196 ctermbg=231 cterm=reverse
|
||||
hi WarningMsg ctermfg=129 ctermbg=231 cterm=NONE
|
||||
hi MoreMsg ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi ModeMsg ctermfg=16 ctermbg=231 cterm=NONE
|
||||
hi Question ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi MatchParen ctermfg=231 ctermbg=201 cterm=NONE
|
||||
hi Search ctermfg=231 ctermbg=129 cterm=NONE
|
||||
hi IncSearch ctermfg=16 ctermbg=NONE cterm=reverse
|
||||
hi WildMenu ctermfg=16 ctermbg=226 cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=255 cterm=NONE
|
||||
hi Cursor ctermfg=231 ctermbg=16 cterm=NONE
|
||||
hi lCursor ctermfg=16 ctermbg=201 cterm=NONE
|
||||
hi SpellBad ctermfg=196 ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=21 ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=100 ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=30 ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=124 ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=129 ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=201 ctermbg=NONE cterm=NONE
|
||||
hi Tag ctermfg=22 ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=21 ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=196 ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=129 ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=231 ctermbg=65 cterm=NONE
|
||||
hi DiffChange ctermfg=231 ctermbg=67 cterm=NONE
|
||||
hi DiffText ctermfg=16 ctermbg=251 cterm=NONE
|
||||
hi DiffDelete ctermfg=231 ctermbg=133 cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 16
|
||||
hi Normal ctermfg=black ctermbg=white cterm=NONE
|
||||
hi Folded ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi CursorLine ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorColumn ctermfg=NONE ctermbg=NONE cterm=underline
|
||||
hi CursorLineNr ctermfg=darkred ctermbg=NONE cterm=underline
|
||||
hi QuickFixLine ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi EndOfBuffer ctermfg=darkgrey ctermbg=NONE cterm=NONE
|
||||
hi StatusLine ctermfg=yellow ctermbg=darkgrey cterm=NONE
|
||||
hi StatusLineNC ctermfg=white ctermbg=black cterm=NONE
|
||||
hi StatusLineTerm ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi StatusLineTermNC ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi VertSplit ctermfg=white ctermbg=black cterm=NONE
|
||||
hi Pmenu ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi PmenuSel ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi PmenuSbar ctermfg=NONE ctermbg=white cterm=NONE
|
||||
hi PmenuThumb ctermfg=NONE ctermbg=darkgrey cterm=NONE
|
||||
hi TabLine ctermfg=black ctermbg=grey cterm=underline
|
||||
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||
hi TabLineSel ctermfg=black ctermbg=white cterm=NONE
|
||||
hi ToolbarLine ctermfg=NONE ctermbg=black cterm=NONE
|
||||
hi ToolbarButton ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi NonText ctermfg=grey ctermbg=NONE cterm=NONE
|
||||
hi SpecialKey ctermfg=grey ctermbg=NONE cterm=NONE
|
||||
hi Visual ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi VisualNOS ctermfg=NONE ctermbg=red cterm=NONE
|
||||
hi LineNr ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi FoldColumn ctermfg=darkblue ctermbg=NONE cterm=NONE
|
||||
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Underlined ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi Error ctermfg=red ctermbg=white cterm=reverse
|
||||
hi ErrorMsg ctermfg=red ctermbg=white cterm=reverse
|
||||
hi WarningMsg ctermfg=darkmagenta ctermbg=white cterm=NONE
|
||||
hi MoreMsg ctermfg=black ctermbg=white cterm=NONE
|
||||
hi ModeMsg ctermfg=black ctermbg=white cterm=NONE
|
||||
hi Question ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Todo ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi MatchParen ctermfg=white ctermbg=magenta cterm=NONE
|
||||
hi Search ctermfg=white ctermbg=darkmagenta cterm=NONE
|
||||
hi IncSearch ctermfg=black ctermbg=NONE cterm=reverse
|
||||
hi WildMenu ctermfg=black ctermbg=yellow cterm=NONE
|
||||
hi ColorColumn ctermfg=NONE ctermbg=grey cterm=NONE
|
||||
hi Cursor ctermfg=white ctermbg=black cterm=NONE
|
||||
hi lCursor ctermfg=black ctermbg=magenta cterm=NONE
|
||||
hi SpellBad ctermfg=red ctermbg=NONE cterm=underline
|
||||
hi SpellCap ctermfg=blue ctermbg=NONE cterm=underline
|
||||
hi SpellLocal ctermfg=darkyellow ctermbg=NONE cterm=underline
|
||||
hi SpellRare ctermfg=darkcyan ctermbg=NONE cterm=underline
|
||||
hi Comment ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi Constant ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Identifier ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Statement ctermfg=darkred ctermbg=NONE cterm=NONE
|
||||
hi PreProc ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi Type ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Special ctermfg=magenta ctermbg=NONE cterm=NONE
|
||||
hi Tag ctermfg=darkgreen ctermbg=NONE cterm=NONE
|
||||
hi Directory ctermfg=blue ctermbg=NONE cterm=NONE
|
||||
hi Conceal ctermfg=red ctermbg=NONE cterm=NONE
|
||||
hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=darkmagenta ctermbg=NONE cterm=NONE
|
||||
hi! link Terminal Normal
|
||||
hi! link LineNrAbove LineNr
|
||||
hi! link LineNrBelow LineNr
|
||||
hi! link CurSearch Search
|
||||
hi! link CursorLineFold CursorLine
|
||||
hi! link CursorLineSign CursorLine
|
||||
hi DiffAdd ctermfg=white ctermbg=darkgreen cterm=NONE
|
||||
hi DiffChange ctermfg=white ctermbg=blue cterm=NONE
|
||||
hi DiffText ctermfg=black ctermbg=grey cterm=NONE
|
||||
hi DiffDelete ctermfg=white ctermbg=magenta cterm=NONE
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
if s:t_Co >= 0
|
||||
hi Normal term=NONE
|
||||
hi ColorColumn term=reverse
|
||||
hi Conceal term=NONE
|
||||
hi Cursor term=reverse
|
||||
hi CursorColumn term=NONE
|
||||
hi CursorLine term=underline
|
||||
hi CursorLineNr term=bold
|
||||
hi DiffAdd term=reverse
|
||||
hi DiffChange term=NONE
|
||||
hi DiffDelete term=reverse
|
||||
hi DiffText term=reverse
|
||||
hi Directory term=NONE
|
||||
hi EndOfBuffer term=NONE
|
||||
hi ErrorMsg term=bold,reverse
|
||||
hi FoldColumn term=NONE
|
||||
hi Folded term=NONE
|
||||
hi IncSearch term=bold,reverse,underline
|
||||
hi LineNr term=NONE
|
||||
hi MatchParen term=bold,underline
|
||||
hi ModeMsg term=bold
|
||||
hi MoreMsg term=NONE
|
||||
hi NonText term=NONE
|
||||
hi Pmenu term=reverse
|
||||
hi PmenuSbar term=reverse
|
||||
hi PmenuSel term=bold
|
||||
hi PmenuThumb term=NONE
|
||||
hi Question term=standout
|
||||
hi Search term=reverse
|
||||
hi SignColumn term=reverse
|
||||
hi SpecialKey term=bold
|
||||
hi SpellBad term=underline
|
||||
hi SpellCap term=underline
|
||||
hi SpellLocal term=underline
|
||||
hi SpellRare term=underline
|
||||
hi StatusLine term=bold,reverse
|
||||
hi StatusLineNC term=bold,underline
|
||||
hi TabLine term=bold,underline
|
||||
hi TabLineFill term=NONE
|
||||
hi Terminal term=NONE
|
||||
hi TabLineSel term=bold,reverse
|
||||
hi Title term=NONE
|
||||
hi VertSplit term=NONE
|
||||
hi Visual term=reverse
|
||||
hi VisualNOS term=NONE
|
||||
hi WarningMsg term=standout
|
||||
hi WildMenu term=bold
|
||||
hi CursorIM term=NONE
|
||||
hi ToolbarLine term=reverse
|
||||
hi ToolbarButton term=bold,reverse
|
||||
hi CurSearch term=reverse
|
||||
hi CursorLineFold term=underline
|
||||
hi CursorLineSign term=underline
|
||||
hi Comment term=bold
|
||||
hi Constant term=NONE
|
||||
hi Error term=bold,reverse
|
||||
hi Identifier term=NONE
|
||||
hi Ignore term=NONE
|
||||
hi PreProc term=NONE
|
||||
hi Special term=NONE
|
||||
hi Statement term=NONE
|
||||
hi Todo term=bold,reverse
|
||||
hi Type term=NONE
|
||||
hi Underlined term=underline
|
||||
unlet s:t_Co
|
||||
finish
|
||||
endif
|
||||
|
||||
" Background: light
|
||||
" Color: comment #ff0000 196 red
|
||||
" Color: constant #ff00ff 201 magenta
|
||||
" Color: identifier #0000ff 21 blue
|
||||
" Color: statement #a52a2a 124 darkred
|
||||
" Color: preproc #a020f0 129 darkmagenta
|
||||
" Color: type #0000ff 21 blue
|
||||
" Color: special #ff00ff 201 magenta
|
||||
" Color: tag #006400 22 darkgreen
|
||||
" Color: fg0 #000000 16 black
|
||||
" Color: bg0 #ffffff 231 white
|
||||
" Color: bg1 #a9a9a9 248 grey
|
||||
" Color: status #a9a9a9 248 darkgrey
|
||||
" Color: visual #ffff00 226 yellow
|
||||
" Color: folded #d3d3d3 252 black
|
||||
" Color: folded_fg #00008b 18 darkblue
|
||||
" Color: cursorline #e5e5e5 254 black
|
||||
" Color: pmenu #dadada 253 grey
|
||||
" Color: wildmenu #ffff00 226 yellow
|
||||
" Color: error #ff0000 196 red
|
||||
" Color: linenr #a52a2a 124 darkred
|
||||
" Color: colorcolumn #eeeeee 255 grey
|
||||
" Color: slateblue #6a5acd 62 blue
|
||||
" Color: darkcyan #008787 30 darkcyan
|
||||
" Color: darkgreen #008700 28 darkgreen
|
||||
" Color: darkyellow #878700 100 darkyellow
|
||||
" Term colors: bg0 statement constant preproc identifier type special bg1
|
||||
" Term colors: comment statement constant preproc identifier type special fg0
|
||||
" Color: bgDiffA #5F875F 65 darkgreen
|
||||
" Color: bgDiffC #5F87AF 67 blue
|
||||
" Color: bgDiffD #AF5FAF 133 magenta
|
||||
" Color: bgDiffT #C6C6C6 251 grey
|
||||
" Color: fgDiffW #FFFFFF 231 white
|
||||
" Color: fgDiffB #000000 16 black
|
||||
" vim: et ts=2 sw=2
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
" scdoc compiler for Vim
|
||||
" Compiler: scdoc
|
||||
" Maintainer: Greg Anders <greg@gpanders.com>
|
||||
" Maintainer: Gregory Anders <contact@gpanders.com>
|
||||
" Last Updated: 2019-10-24
|
||||
" Upstream: https://github.com/gpanders/vim-scdoc
|
||||
|
||||
if exists('current_compiler')
|
||||
finish
|
||||
|
||||
@@ -144,7 +144,9 @@ DOCS = \
|
||||
usr_43.txt \
|
||||
usr_44.txt \
|
||||
usr_45.txt \
|
||||
usr_46.txt \
|
||||
usr_50.txt \
|
||||
usr_51.txt \
|
||||
usr_52.txt \
|
||||
usr_90.txt \
|
||||
usr_toc.txt \
|
||||
various.txt \
|
||||
@@ -290,7 +292,9 @@ HTMLS = \
|
||||
usr_43.html \
|
||||
usr_44.html \
|
||||
usr_45.html \
|
||||
usr_46.html \
|
||||
usr_50.html \
|
||||
usr_51.html \
|
||||
usr_52.html \
|
||||
usr_90.html \
|
||||
usr_toc.html \
|
||||
various.html \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*autocmd.txt* For Vim version 8.2. Last change: 2022 Apr 17
|
||||
*autocmd.txt* For Vim version 8.2. Last change: 2022 May 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -47,6 +47,28 @@ effects. Be careful not to destroy your text.
|
||||
It's a good idea to use the same autocommands for the File* and Buf* events
|
||||
when possible.
|
||||
|
||||
Recommended use:
|
||||
- Always use a group, so that it's easy to delete the autocommand.
|
||||
- Keep the command itself short, call a function to do more work.
|
||||
- Make it so that the script it is defined in can be sourced several times
|
||||
without the autocommand being repeated.
|
||||
|
||||
Example in Vim9 script: >
|
||||
autocmd_add({replace: true,
|
||||
group: 'DemoGroup',
|
||||
event: 'BufEnter',
|
||||
pattern: '*.txt',
|
||||
cmd: 'call DemoBufEnter()'
|
||||
})
|
||||
|
||||
In legacy script: >
|
||||
call autocmd_add(#{replace: v:true,
|
||||
\ group: 'DemoGroup',
|
||||
\ event: 'BufEnter',
|
||||
\ pattern: '*.txt',
|
||||
\ cmd: 'call DemoBufEnter()'
|
||||
\ })
|
||||
|
||||
==============================================================================
|
||||
2. Defining autocommands *autocmd-define*
|
||||
|
||||
@@ -82,6 +104,10 @@ triggered.
|
||||
/<start
|
||||
}
|
||||
|
||||
The |autocmd_add()| function can be used to add a list of autocmds and autocmd
|
||||
groups from a Vim script. It is preferred if you have anything that would
|
||||
require using `:execute` with `:autocmd`.
|
||||
|
||||
Note: The ":autocmd" command can only be followed by another command when the
|
||||
'|' appears where the pattern is expected. This works: >
|
||||
:augroup mine | au! BufRead | augroup END
|
||||
@@ -146,6 +172,9 @@ prompt. When one command outputs two messages this can happen anyway.
|
||||
==============================================================================
|
||||
3. Removing autocommands *autocmd-remove*
|
||||
|
||||
In addition to the below described commands, the |autocmd_delete()| function can
|
||||
be used to remove a list of autocmds and autocmd groups from a Vim script.
|
||||
|
||||
:au[tocmd]! [group] {event} {aupat} [++once] [++nested] {cmd}
|
||||
Remove all autocommands associated with {event} and
|
||||
{aupat}, and add the command {cmd}.
|
||||
@@ -198,6 +227,9 @@ argument behavior differs from that for defining and removing autocommands.
|
||||
In order to list buffer-local autocommands, use a pattern in the form <buffer>
|
||||
or <buffer=N>. See |autocmd-buflocal|.
|
||||
|
||||
The |autocmd_get()| function can be used from a Vim script to get a list of
|
||||
autocmds.
|
||||
|
||||
*:autocmd-verbose*
|
||||
When 'verbose' is non-zero, listing an autocommand will also display where it
|
||||
was last defined. Example: >
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
*change.txt* For Vim version 8.2. Last change: 2022 Mar 05
|
||||
*change.txt* For Vim version 8.2. Last change: 2022 May 26
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1272,7 +1272,7 @@ to their previous contents. When the '>' flag is present in 'cpoptions' then
|
||||
a line break is inserted before the appended text.
|
||||
|
||||
5. Read-only registers ":, ". and "%
|
||||
These are '%', '#', ':' and '.'. You can use them only with the "p", "P",
|
||||
These are '%', ':' and '.'. You can use them only with the "p", "P",
|
||||
and ":put" commands and with CTRL-R.
|
||||
*quote_.* *quote.* *E29*
|
||||
". Contains the last inserted text (the same as what is inserted
|
||||
@@ -1673,9 +1673,9 @@ readability.
|
||||
|
||||
letter meaning when present in 'formatoptions' ~
|
||||
*fo-t*
|
||||
t Auto-wrap text using textwidth
|
||||
t Auto-wrap text using 'textwidth'
|
||||
*fo-c*
|
||||
c Auto-wrap comments using textwidth, inserting the current comment
|
||||
c Auto-wrap comments using 'textwidth', inserting the current comment
|
||||
leader automatically.
|
||||
*fo-r*
|
||||
r Automatically insert the current comment leader after hitting
|
||||
@@ -1684,6 +1684,9 @@ r Automatically insert the current comment leader after hitting
|
||||
o Automatically insert the current comment leader after hitting 'o' or
|
||||
'O' in Normal mode. In case comment is unwanted in a specific place
|
||||
use CTRL-U to quickly delete it. |i_CTRL-U|
|
||||
*fo-/*
|
||||
/ When 'o' is included: do not insert the comment leader for a //
|
||||
comment after a statement, only when // is at the start of the line.
|
||||
*fo-q*
|
||||
q Allow formatting of comments with "gq".
|
||||
Note that formatting will not change blank lines or lines containing
|
||||
@@ -1746,8 +1749,8 @@ B When joining lines, don't insert a space between two multibyte
|
||||
1 Don't break a line after a one-letter word. It's broken before it
|
||||
instead (if possible).
|
||||
*fo-]*
|
||||
] Respect textwidth rigorously. With this flag set, no line can be
|
||||
longer than textwidth, unless line-break-prohibition rules make this
|
||||
] Respect 'textwidth' rigorously. With this flag set, no line can be
|
||||
longer than 'textwidth', unless line-break-prohibition rules make this
|
||||
impossible. Mainly for CJK scripts and works only if 'encoding' is
|
||||
"utf-8".
|
||||
*fo-j*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*channel.txt* For Vim version 8.2. Last change: 2022 Apr 16
|
||||
*channel.txt* For Vim version 8.2. Last change: 2022 Jun 04
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -628,15 +628,18 @@ ch_logfile({fname} [, {mode}]) *ch_logfile()*
|
||||
Start logging channel activity to {fname}.
|
||||
When {fname} is an empty string: stop logging.
|
||||
|
||||
When {mode} is omitted or "a" append to the file.
|
||||
When {mode} is "w" start with an empty file.
|
||||
When {mode} is omitted or contains "a" or is "o" then append
|
||||
to the file.
|
||||
When {mode} contains "w" and not "a" start with an empty file.
|
||||
When {mode} contains "o" then log all terminal output.
|
||||
Otherwise only some interesting terminal output is logged.
|
||||
|
||||
Use |ch_log()| to write log messages. The file is flushed
|
||||
after every message, on Unix you can use "tail -f" to see what
|
||||
is going on in real time.
|
||||
|
||||
To enable the log very early, to see what is received from a
|
||||
terminal during startup, use |--log|: >
|
||||
terminal during startup, use |--log| (this uses mode "ao"): >
|
||||
vim --log logfile
|
||||
<
|
||||
This function is not available in the |sandbox|.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*cmdline.txt* For Vim version 8.2. Last change: 2022 Apr 09
|
||||
*cmdline.txt* For Vim version 8.2. Last change: 2022 Apr 29
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 8.2. Last change: 2022 Apr 17
|
||||
*eval.txt* For Vim version 8.2. Last change: 2022 Jun 03
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -183,10 +183,15 @@ You will not get an error if you try to change the type of a variable.
|
||||
1.2 Function references ~
|
||||
*Funcref* *E695* *E718* *E1192*
|
||||
A Funcref variable is obtained with the |function()| function, the |funcref()|
|
||||
function or created with the lambda expression |expr-lambda|. It can be used
|
||||
in an expression in the place of a function name, before the parenthesis
|
||||
around the arguments, to invoke the function it refers to. Example: >
|
||||
function, (in |Vim9| script) the name of a function, or created with the
|
||||
lambda expression |expr-lambda|. It can be used in an expression in the place
|
||||
of a function name, before the parenthesis around the arguments, to invoke the
|
||||
function it refers to. Example in |Vim9| script: >
|
||||
|
||||
:var Fn = MyFunc
|
||||
:echo Fn()
|
||||
|
||||
Legacy script: >
|
||||
:let Fn = function("MyFunc")
|
||||
:echo Fn()
|
||||
< *E704* *E705* *E707*
|
||||
@@ -523,8 +528,8 @@ only appear once. Examples: >
|
||||
A key is always a String. You can use a Number, it will be converted to a
|
||||
String automatically. Thus the String '4' and the number 4 will find the same
|
||||
entry. Note that the String '04' and the Number 04 are different, since the
|
||||
Number will be converted to the String '4'. The empty string can also be used
|
||||
as a key.
|
||||
Number will be converted to the String '4', leading zeros are dropped. The
|
||||
empty string can also be used as a key.
|
||||
|
||||
In |Vim9| script literaly keys can be used if the key consists of alphanumeric
|
||||
characters, underscore and dash, see |vim9-literal-dict|.
|
||||
@@ -534,7 +539,8 @@ legacy script. This does require the key to consist only of ASCII letters,
|
||||
digits, '-' and '_'. Example: >
|
||||
:let mydict = #{zero: 0, one_key: 1, two-key: 2, 333: 3}
|
||||
Note that 333 here is the string "333". Empty keys are not possible with #{}.
|
||||
In |Vim9| script the #{} form cannot be used.
|
||||
In |Vim9| script the #{} form cannot be used because it can be confused with
|
||||
the start of a comment.
|
||||
|
||||
A value can be any expression. Using a Dictionary for a value creates a
|
||||
nested Dictionary: >
|
||||
@@ -867,33 +873,36 @@ Expression syntax summary, from least to most significant:
|
||||
expr5 isnot expr5 different |List|, |Dictionary| or |Blob|
|
||||
instance
|
||||
|
||||
|expr5| expr6
|
||||
expr6 + expr6 ... number addition, list or blob concatenation
|
||||
expr6 - expr6 ... number subtraction
|
||||
expr6 . expr6 ... string concatenation
|
||||
expr6 .. expr6 ... string concatenation
|
||||
|expr5| expr6 << expr6 bitwise left shift
|
||||
expr6 >> expr6 bitwise right shift
|
||||
|
||||
|expr6| expr7
|
||||
expr7 * expr7 ... number multiplication
|
||||
expr7 / expr7 ... number division
|
||||
expr7 % expr7 ... number modulo
|
||||
expr7 + expr7 ... number addition, list or blob concatenation
|
||||
expr7 - expr7 ... number subtraction
|
||||
expr7 . expr7 ... string concatenation
|
||||
expr7 .. expr7 ... string concatenation
|
||||
|
||||
|expr7| expr8
|
||||
<type>expr8 type check and conversion (|Vim9| only)
|
||||
expr8 * expr8 ... number multiplication
|
||||
expr8 / expr8 ... number division
|
||||
expr8 % expr8 ... number modulo
|
||||
|
||||
|expr8| expr9
|
||||
! expr8 logical NOT
|
||||
- expr8 unary minus
|
||||
+ expr8 unary plus
|
||||
<type>expr9 type check and conversion (|Vim9| only)
|
||||
|
||||
|expr9| expr10
|
||||
expr9[expr1] byte of a String or item of a |List|
|
||||
expr9[expr1 : expr1] substring of a String or sublist of a |List|
|
||||
expr9.name entry in a |Dictionary|
|
||||
expr9(expr1, ...) function call with |Funcref| variable
|
||||
expr9->name(expr1, ...) |method| call
|
||||
! expr9 logical NOT
|
||||
- expr9 unary minus
|
||||
+ expr9 unary plus
|
||||
|
||||
|expr10| number number constant
|
||||
|expr10| expr11
|
||||
expr10[expr1] byte of a String or item of a |List|
|
||||
expr10[expr1 : expr1] substring of a String or sublist of a |List|
|
||||
expr10.name entry in a |Dictionary|
|
||||
expr10(expr1, ...) function call with |Funcref| variable
|
||||
expr10->name(expr1, ...) |method| call
|
||||
|
||||
|expr11| number number constant
|
||||
"string" string constant, backslash is special
|
||||
'string' string constant, ' is doubled
|
||||
[expr1, ...] |List|
|
||||
@@ -1127,14 +1136,27 @@ can be matched like an ordinary character. Examples:
|
||||
"foo\nbar" =~ "\\n" evaluates to 0
|
||||
|
||||
|
||||
expr5 and expr6 *expr5* *expr6* *E1036* *E1051*
|
||||
---------------
|
||||
expr6 + expr6 Number addition, |List| or |Blob| concatenation *expr-+*
|
||||
expr6 - expr6 Number subtraction *expr--*
|
||||
expr6 . expr6 String concatenation *expr-.*
|
||||
expr6 .. expr6 String concatenation *expr-..*
|
||||
expr5 *expr5* *bitwise-shift*
|
||||
-----
|
||||
expr6 << expr6 bitwise left shift *expr-<<*
|
||||
expr6 >> expr6 bitwise right shift *expr->>*
|
||||
*E1282* *E1283*
|
||||
The "<<" and ">>" operators can be used to perform bitwise left or right shift
|
||||
of the left operand by the number of bits specified by the right operand. The
|
||||
operands are used as positive numbers. When shifting right with ">>" the
|
||||
topmost bit (somtimes called the sign bit) is cleared. If the right operand
|
||||
(shift amount) is more than the maximum number of bits in a number
|
||||
(|v:numbersize|) the result is zero.
|
||||
|
||||
For |Lists| only "+" is possible and then both expr6 must be a list. The
|
||||
|
||||
expr6 and expr7 *expr6* *expr7* *E1036* *E1051*
|
||||
---------------
|
||||
expr7 + expr7 Number addition, |List| or |Blob| concatenation *expr-+*
|
||||
expr7 - expr7 Number subtraction *expr--*
|
||||
expr7 . expr7 String concatenation *expr-.*
|
||||
expr7 .. expr7 String concatenation *expr-..*
|
||||
|
||||
For |Lists| only "+" is possible and then both expr7 must be a list. The
|
||||
result is a new list with the two lists Concatenated.
|
||||
|
||||
For String concatenation ".." is preferred, since "." is ambiguous, it is also
|
||||
@@ -1146,9 +1168,9 @@ In |Vim9| script the arguments of ".." are converted to String for simple
|
||||
types: Number, Float, Special and Bool. For other types |string()| should be
|
||||
used.
|
||||
|
||||
expr7 * expr7 Number multiplication *expr-star*
|
||||
expr7 / expr7 Number division *expr-/*
|
||||
expr7 % expr7 Number modulo *expr-%*
|
||||
expr8 * expr8 Number multiplication *expr-star*
|
||||
expr8 / expr8 Number division *expr-/*
|
||||
expr8 % expr8 Number modulo *expr-%*
|
||||
|
||||
In legacy script, for all operators except "." and "..", Strings are converted
|
||||
to Numbers.
|
||||
@@ -1190,18 +1212,18 @@ None of these work for |Funcref|s.
|
||||
".", ".." and "%" do not work for Float. *E804* *E1035*
|
||||
|
||||
|
||||
expr7 *expr7*
|
||||
expr8 *expr8*
|
||||
-----
|
||||
<type>expr8
|
||||
<type>expr9
|
||||
|
||||
This is only available in |Vim9| script, see |type-casting|.
|
||||
|
||||
|
||||
expr8 *expr8*
|
||||
expr9 *expr9*
|
||||
-----
|
||||
! expr8 logical NOT *expr-!*
|
||||
- expr8 unary minus *expr-unary--*
|
||||
+ expr8 unary plus *expr-unary-+*
|
||||
! expr9 logical NOT *expr-!*
|
||||
- expr9 unary minus *expr-unary--*
|
||||
+ expr9 unary plus *expr-unary-+*
|
||||
|
||||
For '!' |TRUE| becomes |FALSE|, |FALSE| becomes |TRUE| (one).
|
||||
For '-' the sign of the number is changed.
|
||||
@@ -1223,21 +1245,21 @@ These three can be repeated and mixed. Examples:
|
||||
--9 == 9
|
||||
|
||||
|
||||
expr9 *expr9*
|
||||
-----
|
||||
This expression is either |expr10| or a sequence of the alternatives below,
|
||||
expr10 *expr10*
|
||||
------
|
||||
This expression is either |expr11| or a sequence of the alternatives below,
|
||||
in any order. E.g., these are all possible:
|
||||
expr9[expr1].name
|
||||
expr9.name[expr1]
|
||||
expr9(expr1, ...)[expr1].name
|
||||
expr9->(expr1, ...)[expr1]
|
||||
expr10[expr1].name
|
||||
expr10.name[expr1]
|
||||
expr10(expr1, ...)[expr1].name
|
||||
expr10->(expr1, ...)[expr1]
|
||||
Evaluation is always from left to right.
|
||||
|
||||
expr9[expr1] item of String or |List| *expr-[]* *E111*
|
||||
expr10[expr1] item of String or |List| *expr-[]* *E111*
|
||||
*E909* *subscript* *E1062*
|
||||
In legacy Vim script:
|
||||
If expr9 is a Number or String this results in a String that contains the
|
||||
expr1'th single byte from expr9. expr9 is used as a String (a number is
|
||||
If expr10 is a Number or String this results in a String that contains the
|
||||
expr1'th single byte from expr10. expr10 is used as a String (a number is
|
||||
automatically converted to a String), expr1 as a Number. This doesn't
|
||||
recognize multibyte encodings, see `byteidx()` for an alternative, or use
|
||||
`split()` to turn the string into a list of characters. Example, to get the
|
||||
@@ -1245,8 +1267,8 @@ byte under the cursor: >
|
||||
:let c = getline(".")[col(".") - 1]
|
||||
|
||||
In |Vim9| script: *E1147* *E1148*
|
||||
If expr9 is a String this results in a String that contains the expr1'th
|
||||
single character (including any composing characters) from expr9. To use byte
|
||||
If expr10 is a String this results in a String that contains the expr1'th
|
||||
single character (including any composing characters) from expr10. To use byte
|
||||
indexes use |strpart()|.
|
||||
|
||||
Index zero gives the first byte or character. Careful: text column numbers
|
||||
@@ -1257,7 +1279,7 @@ String. A negative index always results in an empty string (reason: backward
|
||||
compatibility). Use [-1:] to get the last byte or character.
|
||||
In Vim9 script a negative index is used like with a list: count from the end.
|
||||
|
||||
If expr9 is a |List| then it results the item at index expr1. See |list-index|
|
||||
If expr10 is a |List| then it results the item at index expr1. See |list-index|
|
||||
for possible index values. If the index is out of range this results in an
|
||||
error. Example: >
|
||||
:let item = mylist[-1] " get last item
|
||||
@@ -1267,14 +1289,14 @@ Generally, if a |List| index is equal to or higher than the length of the
|
||||
error.
|
||||
|
||||
|
||||
expr9[expr1a : expr1b] substring or sublist *expr-[:]*
|
||||
expr10[expr1a : expr1b] substring or sublist *expr-[:]*
|
||||
|
||||
If expr9 is a String this results in the substring with the bytes or
|
||||
characters from expr1a to and including expr1b. expr9 is used as a String,
|
||||
If expr10 is a String this results in the substring with the bytes or
|
||||
characters from expr1a to and including expr1b. expr10 is used as a String,
|
||||
expr1a and expr1b are used as a Number.
|
||||
|
||||
In legacy Vim script the indexes are byte indexes. This doesn't recognize
|
||||
multibyte encodings, see |byteidx()| for computing the indexes. If expr9 is
|
||||
multibyte encodings, see |byteidx()| for computing the indexes. If expr10 is
|
||||
a Number it is first converted to a String.
|
||||
|
||||
In Vim9 script the indexes are character indexes and include composing
|
||||
@@ -1301,20 +1323,20 @@ Examples: >
|
||||
:let s = s[:-3] " remove last two bytes
|
||||
<
|
||||
*slice*
|
||||
If expr9 is a |List| this results in a new |List| with the items indicated by
|
||||
If expr10 is a |List| this results in a new |List| with the items indicated by
|
||||
the indexes expr1a and expr1b. This works like with a String, as explained
|
||||
just above. Also see |sublist| below. Examples: >
|
||||
:let l = mylist[:3] " first four items
|
||||
:let l = mylist[4:4] " List with one item
|
||||
:let l = mylist[:] " shallow copy of a List
|
||||
|
||||
If expr9 is a |Blob| this results in a new |Blob| with the bytes in the
|
||||
If expr10 is a |Blob| this results in a new |Blob| with the bytes in the
|
||||
indexes expr1a and expr1b, inclusive. Examples: >
|
||||
:let b = 0zDEADBEEF
|
||||
:let bs = b[1:2] " 0zADBE
|
||||
:let bs = b[:] " copy of 0zDEADBEEF
|
||||
|
||||
Using expr9[expr1] or expr9[expr1a : expr1b] on a |Funcref| results in an
|
||||
Using expr10[expr1] or expr10[expr1a : expr1b] on a |Funcref| results in an
|
||||
error.
|
||||
|
||||
Watch out for confusion between a namespace and a variable followed by a colon
|
||||
@@ -1323,11 +1345,11 @@ for a sublist: >
|
||||
mylist[s:] " uses namespace s:, error!
|
||||
|
||||
|
||||
expr9.name entry in a |Dictionary| *expr-entry*
|
||||
expr10.name entry in a |Dictionary| *expr-entry*
|
||||
*E1203* *E1229*
|
||||
If expr9 is a |Dictionary| and it is followed by a dot, then the following
|
||||
If expr10 is a |Dictionary| and it is followed by a dot, then the following
|
||||
name will be used as a key in the |Dictionary|. This is just like:
|
||||
expr9[name].
|
||||
expr10[name].
|
||||
|
||||
The name must consist of alphanumeric characters, just like a variable name,
|
||||
but it may start with a number. Curly braces cannot be used.
|
||||
@@ -1344,17 +1366,17 @@ Note that the dot is also used for String concatenation. To avoid confusion
|
||||
always put spaces around the dot for String concatenation.
|
||||
|
||||
|
||||
expr9(expr1, ...) |Funcref| function call *E1085*
|
||||
expr10(expr1, ...) |Funcref| function call *E1085*
|
||||
|
||||
When expr9 is a |Funcref| type variable, invoke the function it refers to.
|
||||
When expr10 is a |Funcref| type variable, invoke the function it refers to.
|
||||
|
||||
|
||||
expr9->name([args]) method call *method* *->*
|
||||
expr9->{lambda}([args])
|
||||
expr10->name([args]) method call *method* *->*
|
||||
expr10->{lambda}([args])
|
||||
*E260* *E276* *E1265*
|
||||
For methods that are also available as global functions this is the same as: >
|
||||
name(expr9 [, args])
|
||||
There can also be methods specifically for the type of "expr9".
|
||||
name(expr10 [, args])
|
||||
There can also be methods specifically for the type of "expr10".
|
||||
|
||||
This allows for chaining, passing the value that one method returns to the
|
||||
next method: >
|
||||
@@ -1363,7 +1385,7 @@ next method: >
|
||||
Example of using a lambda: >
|
||||
GetPercentage()->{x -> x * 100}()->printf('%d%%')
|
||||
<
|
||||
When using -> the |expr8| operators will be applied first, thus: >
|
||||
When using -> the |expr9| operators will be applied first, thus: >
|
||||
-1.234->string()
|
||||
Is equivalent to: >
|
||||
(-1.234)->string()
|
||||
@@ -1392,7 +1414,7 @@ When using the lambda form there must be no white space between the } and the
|
||||
(.
|
||||
|
||||
|
||||
*expr10*
|
||||
*expr11*
|
||||
number
|
||||
------
|
||||
number number constant *expr-number*
|
||||
@@ -1401,6 +1423,10 @@ number number constant *expr-number*
|
||||
Decimal, Hexadecimal (starting with 0x or 0X), Binary (starting with 0b or 0B)
|
||||
and Octal (starting with 0, 0o or 0O).
|
||||
|
||||
Assuming 64 bit numbers are used (see |v:numbersize|) an unsigned number is
|
||||
truncated to 0x7fffffffffffffff or 9223372036854775807. You can use -1 to get
|
||||
0xffffffffffffffff.
|
||||
|
||||
*floating-point-format*
|
||||
Floating point numbers can be written in two forms:
|
||||
|
||||
@@ -1523,7 +1549,7 @@ to be doubled. These two commands are equivalent: >
|
||||
if a =~ '\s*'
|
||||
|
||||
|
||||
interpolated-string *interp-string* *E256*
|
||||
interpolated-string *$quote* *interp-string* *E256*
|
||||
--------------------
|
||||
$"string" interpolated string constant *expr-$quote*
|
||||
$'string' interpolated literal string constant *expr-$'*
|
||||
@@ -1533,14 +1559,22 @@ allowing the inclusion of Vim script expressions (see |expr1|). Any
|
||||
expression returning a value can be enclosed between curly braces. The value
|
||||
is converted to a string. All the text and results of the expressions
|
||||
are concatenated to make a new string.
|
||||
|
||||
*E1278*
|
||||
To include an opening brace '{' or closing brace '}' in the string content
|
||||
double it.
|
||||
double it. For double quoted strings using a backslash also works. A single
|
||||
closing brace '}' will result in an error.
|
||||
|
||||
Examples: >
|
||||
let your_name = input("What's your name? ")
|
||||
< What's your name? Peter ~
|
||||
>
|
||||
echo
|
||||
echo $"Hello, {your_name}!"
|
||||
echo $"The square root of 9 is {sqrt(9)}"
|
||||
< Hello, Peter! ~
|
||||
>
|
||||
echo $"The square root of {{9}} is {sqrt(9)}"
|
||||
< The square root of {9} is 3.0 ~
|
||||
|
||||
|
||||
option *expr-option* *E112* *E113*
|
||||
------
|
||||
@@ -2951,7 +2985,7 @@ the "autoload" directory in 'runtimepath'.
|
||||
|
||||
Using an autocommand ~
|
||||
|
||||
This is introduced in the user manual, section |41.14|.
|
||||
This is introduced in the user manual, section |51.4|.
|
||||
|
||||
The autocommand is useful if you have a plugin that is a long Vim script file.
|
||||
You can define the autocommand and quickly quit the script with `:finish`.
|
||||
@@ -2969,7 +3003,7 @@ The file "~/vim/bufnetfuncs.vim" should then define functions that start with
|
||||
|
||||
Using an autoload script ~
|
||||
*autoload* *E746*
|
||||
This is introduced in the user manual, section |41.15|.
|
||||
This is introduced in the user manual, section |52.2|.
|
||||
|
||||
Using a script in the "autoload" directory is simpler, but requires using
|
||||
exactly the right file name. A function that can be autoloaded has a name
|
||||
@@ -3252,20 +3286,20 @@ text...
|
||||
{endmarker}.
|
||||
|
||||
If "eval" is not specified, then each line of text is
|
||||
used as a |literal-string|. If "eval" is specified,
|
||||
then any Vim expression in the form ``={expr}`` is
|
||||
evaluated and the result replaces the expression.
|
||||
used as a |literal-string|, except that single quotes
|
||||
doe not need to be doubled.
|
||||
If "eval" is specified, then any Vim expression in the
|
||||
form {expr} is evaluated and the result replaces the
|
||||
expression, like with |interp-string|.
|
||||
Example where $HOME is expanded: >
|
||||
let lines =<< trim eval END
|
||||
some text
|
||||
See the file `=$HOME`/.vimrc
|
||||
See the file {$HOME}/.vimrc
|
||||
more text
|
||||
END
|
||||
< There can be multiple Vim expressions in a single line
|
||||
but an expression cannot span multiple lines. If any
|
||||
expression evaluation fails, then the assignment fails.
|
||||
once the "`=" has been found {expr} and a backtick
|
||||
must follow. {expr} cannot be empty.
|
||||
|
||||
{endmarker} must not contain white space.
|
||||
{endmarker} cannot start with a lower case character.
|
||||
@@ -3318,10 +3352,10 @@ text...
|
||||
DATA
|
||||
|
||||
let code =<< trim eval CODE
|
||||
let v = `=10 + 20`
|
||||
let h = "`=$HOME`"
|
||||
let s = "`=Str1()` abc `=Str2()`"
|
||||
let n = `=MyFunc(3, 4)`
|
||||
let v = {10 + 20}
|
||||
let h = "{$HOME}"
|
||||
let s = "{Str1()} abc {Str2()}"
|
||||
let n = {MyFunc(3, 4)}
|
||||
CODE
|
||||
<
|
||||
*E121*
|
||||
@@ -3537,8 +3571,8 @@ text...
|
||||
:for {var} in {object} *:for* *E690* *E732*
|
||||
:endfo[r] *:endfo* *:endfor*
|
||||
Repeat the commands between `:for` and `:endfor` for
|
||||
each item in {object}. {object} can be a |List| or
|
||||
a |Blob|. *E1177*
|
||||
each item in {object}. {object} can be a |List|,
|
||||
a |Blob| or a |String|. *E1177*
|
||||
|
||||
Variable {var} is set to the value of each item.
|
||||
In |Vim9| script the loop variable must not have been
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*help.txt* For Vim version 8.2. Last change: 2022 Feb 26
|
||||
*help.txt* For Vim version 8.2. Last change: 2022 May 13
|
||||
|
||||
VIM - main help file
|
||||
k
|
||||
@@ -88,12 +88,15 @@ Tuning Vim ~
|
||||
|usr_43.txt| Using filetypes
|
||||
|usr_44.txt| Your own syntax highlighted
|
||||
|usr_45.txt| Select your language
|
||||
|usr_46.txt| Write plugins using Vim9 script
|
||||
|
||||
Writing Vim scripts ~
|
||||
|usr_50.txt| Advanced Vim script writing
|
||||
|usr_51.txt| Create a plugin
|
||||
|usr_52.txt| Write plugins using Vim9 script
|
||||
|
||||
Making Vim Run ~
|
||||
|usr_90.txt| Installing Vim
|
||||
|
||||
|
||||
REFERENCE MANUAL: These files explain every detail of Vim. *reference_toc*
|
||||
|
||||
General subjects ~
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*indent.txt* For Vim version 8.2. Last change: 2022 Apr 07
|
||||
*indent.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -22,9 +22,6 @@ indent and do not perform other formatting. There are additional options that
|
||||
affect other kinds of formatting as well as indenting, see |format-comments|,
|
||||
|fo-table|, |gq| and |formatting| for the main ones.
|
||||
|
||||
Note that this will not work when the |+smartindent| or |+cindent| features
|
||||
have been disabled at compile time.
|
||||
|
||||
There are in fact four main methods available for indentation, each one
|
||||
overrides the previous if it is enabled, or non-empty for 'indentexpr':
|
||||
'autoindent' uses the indent from the previous line.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*index.txt* For Vim version 8.2. Last change: 2022 Mar 05
|
||||
*index.txt* For Vim version 8.2. Last change: 2022 Jun 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -295,7 +295,7 @@ tag char note action in Normal mode ~
|
||||
|/| /{pattern}<CR> 1 search forward for the Nth occurrence of
|
||||
{pattern}
|
||||
|/<CR>| /<CR> 1 search forward for {pattern} of last search
|
||||
|count| 0 1 cursor to the first char of the line
|
||||
|0| 0 1 cursor to the first char of the line
|
||||
|count| 1 prepend to command to give a count
|
||||
|count| 2 "
|
||||
|count| 3 "
|
||||
|
||||
@@ -671,7 +671,7 @@ Note: The keys that are valid in CTRL-X mode are not mapped. This allows for
|
||||
ends CTRL-X mode (any key that is not a valid CTRL-X mode command) is mapped.
|
||||
Also, when doing completion with 'complete' mappings apply as usual.
|
||||
|
||||
*E578* *E565*
|
||||
*E565*
|
||||
Note: While completion is active Insert mode can't be used recursively and
|
||||
buffer text cannot be changed. Mappings that somehow invoke ":normal i.."
|
||||
will generate an E565 error.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*map.txt* For Vim version 8.2. Last change: 2022 Apr 14
|
||||
*map.txt* For Vim version 8.2. Last change: 2022 Jun 02
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -63,6 +63,7 @@ modes.
|
||||
allows for nested and recursive use of mappings.
|
||||
Note: Trailing spaces are included in the {rhs},
|
||||
because space is a valid Normal mode command.
|
||||
See |map-trailing-white|.
|
||||
|
||||
*:nore* *:norem*
|
||||
:no[remap] {lhs} {rhs} |mapmode-nvo| *:no* *:noremap* *:nor*
|
||||
@@ -100,10 +101,8 @@ modes.
|
||||
for other modes where it applies.
|
||||
It also works when {lhs} matches the {rhs} of a
|
||||
mapping. This is for when an abbreviation applied.
|
||||
Note: Trailing spaces are included in the {lhs}. This
|
||||
unmap does NOT work: >
|
||||
:map @@ foo
|
||||
:unmap @@ | print
|
||||
Note: Trailing spaces are included in the {lhs}.
|
||||
See |map-trailing-white|.
|
||||
|
||||
:mapc[lear] |mapmode-nvo| *:mapc* *:mapclear*
|
||||
:nmapc[lear] |mapmode-n| *:nmapc* *:nmapclear*
|
||||
@@ -120,7 +119,8 @@ modes.
|
||||
command applies.
|
||||
Use the <buffer> argument to remove buffer-local
|
||||
mappings |:map-<buffer>|
|
||||
Warning: This also removes the default mappings.
|
||||
Warning: This also removes the |mac-standard-mappings|
|
||||
and the |dos-standard-mappings|.
|
||||
|
||||
:map |mapmode-nvo|
|
||||
:nm[ap] |mapmode-n|
|
||||
@@ -167,6 +167,27 @@ that mapping won't get expanded yet, Vim is waiting for another character.
|
||||
If you type a space, then "foo" will get inserted, plus the space. If you
|
||||
type "a", then "bar" will get inserted.
|
||||
|
||||
Trailing white space ~
|
||||
*map-trailing-white*
|
||||
This unmap command does NOT work: >
|
||||
:map @@ foo
|
||||
:unmap @@ | print
|
||||
|
||||
Because it tries to unmap "@@ ", including the white space before the command
|
||||
separator "|". Other examples with trailing white space: >
|
||||
unmap @@
|
||||
unmap @@ # Vim9 script comment
|
||||
unmap @@ " legacy comment
|
||||
|
||||
An error will be issued, which is very hard to identify, because the ending
|
||||
whitespace character in `unmap @@ ` is not visible.
|
||||
|
||||
A generic solution is to put the command separator "|" right after the mapped
|
||||
keys. After that white space and a comment may follow: >
|
||||
|
||||
unmap @@| # Vim9 scriptcomment
|
||||
unmap @@| " legacy scriptcomment
|
||||
|
||||
|
||||
1.2 SPECIAL ARGUMENTS *:map-arguments*
|
||||
|
||||
@@ -700,6 +721,7 @@ not to be matched with any key sequence. This is useful in plugins
|
||||
*<MouseMove>*
|
||||
The special key name "<MouseMove>" can be used to handle mouse movement. It
|
||||
needs to be enabled with 'mousemoveevent'. Currently only works in the GUI.
|
||||
The |getmousepos()| function can be used to obtain the mouse position.
|
||||
|
||||
*<Char>* *<Char->*
|
||||
To map a character by its decimal, octal or hexadecimal number the <Char>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 8.2. Last change: 2022 Apr 13
|
||||
*options.txt* For Vim version 8.2. Last change: 2022 Jun 07
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1621,8 +1621,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'cindent'* *'cin'* *'nocindent'* *'nocin'*
|
||||
'cindent' 'cin' boolean (default off)
|
||||
local to buffer
|
||||
{not available when compiled without the |+cindent|
|
||||
feature}
|
||||
Enables automatic C program indenting. See 'cinkeys' to set the keys
|
||||
that trigger reindenting in insert mode and 'cinoptions' to set your
|
||||
preferred indent style.
|
||||
@@ -1639,8 +1637,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'cinkeys'* *'cink'*
|
||||
'cinkeys' 'cink' string (default "0{,0},0),0],:,0#,!^F,o,O,e")
|
||||
local to buffer
|
||||
{not available when compiled without the |+cindent|
|
||||
feature}
|
||||
A list of keys that, when typed in Insert mode, cause reindenting of
|
||||
the current line. Only used if 'cindent' is on and 'indentexpr' is
|
||||
empty.
|
||||
@@ -1650,8 +1646,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'cinoptions'* *'cino'*
|
||||
'cinoptions' 'cino' string (default "")
|
||||
local to buffer
|
||||
{not available when compiled without the |+cindent|
|
||||
feature}
|
||||
The 'cinoptions' affect the way 'cindent' reindents lines in a C
|
||||
program. See |cinoptions-values| for the values of this option, and
|
||||
|C-indenting| for info on C indenting in general.
|
||||
@@ -1660,8 +1654,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'cinwords'* *'cinw'*
|
||||
'cinwords' 'cinw' string (default "if,else,while,do,for,switch")
|
||||
local to buffer
|
||||
{not available when compiled without both the
|
||||
|+cindent| and the |+smartindent| features}
|
||||
These keywords start an extra indent in the next line when
|
||||
'smartindent' or 'cindent' is set. For 'cindent' this is only done at
|
||||
an appropriate place (inside {}).
|
||||
@@ -1672,8 +1664,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'cinscopedecls'* *'cinsd'*
|
||||
'cinscopedecls' 'cinsd' string (default "public,protected,private")
|
||||
local to buffer
|
||||
{not available when compiled without the |+cindent|
|
||||
feature}
|
||||
Keywords that are interpreted as a C++ scope declaration by |cino-g|.
|
||||
Useful e.g. for working with the Qt framework that defines additional
|
||||
scope declarations "signals", "public slots" and "private slots": >
|
||||
@@ -4274,7 +4264,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
The type of highlighting used can be set with the 'l' occasion in the
|
||||
'highlight' option. This uses the "Search" highlight group by
|
||||
default. Note that only the matching text is highlighted, any offsets
|
||||
are not applied.
|
||||
are not applied. If the "CurSearch" highlight group is set then the
|
||||
current match is highlighted with that.
|
||||
See also: 'incsearch' and |:match|.
|
||||
When you get bored looking at the highlighted matches, you can turn it
|
||||
off with |:nohlsearch|. This does not change the option value, as
|
||||
@@ -4578,8 +4569,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'indentexpr'* *'inde'*
|
||||
'indentexpr' 'inde' string (default "")
|
||||
local to buffer
|
||||
{not available when compiled without the |+cindent|
|
||||
or |+eval| features}
|
||||
{not available when compiled without the |+eval|
|
||||
feature}
|
||||
Expression which is evaluated to obtain the proper indent for a line.
|
||||
It is used when a new line is created, for the |=| operator and
|
||||
in Insert mode as specified with the 'indentkeys' option.
|
||||
@@ -4624,8 +4615,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'indentkeys'* *'indk'*
|
||||
'indentkeys' 'indk' string (default "0{,0},0),0],:,0#,!^F,o,O,e")
|
||||
local to buffer
|
||||
{not available when compiled without the |+cindent|
|
||||
feature}
|
||||
A list of keys that, when typed in Insert mode, cause reindenting of
|
||||
the current line. Only happens if 'indentexpr' isn't empty.
|
||||
The format is identical to 'cinkeys', see |indentkeys-format|.
|
||||
@@ -5013,8 +5002,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'lisp'* *'nolisp'*
|
||||
'lisp' boolean (default off)
|
||||
local to buffer
|
||||
{not available when compiled without the |+lispindent|
|
||||
feature}
|
||||
Lisp mode: When <Enter> is typed in insert mode set the indent for
|
||||
the next line to Lisp standards (well, sort of). Also happens with
|
||||
"cc" or "S". 'autoindent' must also be on for this to work. The 'p'
|
||||
@@ -5028,8 +5015,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'lispwords'* *'lw'*
|
||||
'lispwords' 'lw' string (default is very long)
|
||||
global or local to buffer |global-local|
|
||||
{not available when compiled without the |+lispindent|
|
||||
feature}
|
||||
Comma-separated list of words that influence the Lisp indenting.
|
||||
|'lisp'|
|
||||
|
||||
@@ -5091,14 +5076,23 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
"space" setting is used. For example,
|
||||
`:set listchars=multispace:---+` shows ten consecutive
|
||||
spaces as:
|
||||
---+---+--
|
||||
---+---+-- ~
|
||||
*lcs-lead*
|
||||
lead:c Character to show for leading spaces. When omitted,
|
||||
leading spaces are blank. Overrides the "space" and
|
||||
"multispace" settings for leading spaces. You can
|
||||
combine it with "tab:", for example: >
|
||||
:set listchars+=tab:>-,lead:.
|
||||
< *lcs-trail*
|
||||
< *lcs-leadmultispace*
|
||||
leadmultispace:c...
|
||||
Like multispace value, but only for leading whitespace
|
||||
Overrides |lcs-lead| for leading multiple spaces.
|
||||
`:set listchars=leadmultispace:---+` shows ten consecutive
|
||||
leading spaces as:
|
||||
---+---+--XXX ~
|
||||
Where "XXX" denotes the first non-blank characters in
|
||||
the line.
|
||||
*lcs-trail*
|
||||
trail:c Character to show for trailing spaces. When omitted,
|
||||
trailing spaces are blank. Overrides the "space" and
|
||||
"multispace" settings for trailing spaces.
|
||||
@@ -7222,8 +7216,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
*'smartindent'* *'si'* *'nosmartindent'* *'nosi'*
|
||||
'smartindent' 'si' boolean (default off)
|
||||
local to buffer
|
||||
{not available when compiled without the
|
||||
|+smartindent| feature}
|
||||
Do smart autoindenting when starting a new line. Works for C-like
|
||||
programs, but can also be used for other languages. 'cindent' does
|
||||
something like this, works better in most cases, but is more strict,
|
||||
@@ -7642,10 +7634,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
|
||||
If the statusline is not updated when you want it (e.g., after setting
|
||||
a variable that's used in an expression), you can force an update by
|
||||
setting an option without changing its value. Example: >
|
||||
:let &ro = &ro
|
||||
using `:redrawstatus`.
|
||||
|
||||
< A result of all digits is regarded a number for display purposes.
|
||||
A result of all digits is regarded a number for display purposes.
|
||||
Otherwise the result is taken as flag text and applied to the rules
|
||||
described above.
|
||||
|
||||
@@ -8079,6 +8070,13 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
< This requires Vim to be built with the |+vtp| feature.
|
||||
|
||||
Note that the "cterm" attributes are still used, not the "gui" ones.
|
||||
|
||||
When using Vim with Windows Terminal, the background of Windows
|
||||
Terminal is normally filled with the Vim background color. Setting
|
||||
'termguicolors' and the guibg of the Normal highlight group to NONE
|
||||
will make the background transparent: >
|
||||
:hi Normal guibg=NONE
|
||||
<
|
||||
NOTE: This option is reset when 'compatible' is set.
|
||||
|
||||
*'termwinkey'* *'twk'*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*os_win32.txt* For Vim version 8.2. Last change: 2022 Feb 14
|
||||
*os_win32.txt* For Vim version 8.2. Last change: 2022 May 24
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by George Reilly
|
||||
@@ -7,7 +7,7 @@
|
||||
*win32* *Win32* *MS-Windows*
|
||||
This file documents the idiosyncrasies of the Win32 version of Vim.
|
||||
|
||||
The Win32 version of Vim works on Windows XP, Vista, 7, 8 and 10. There are
|
||||
The Win32 version of Vim works on Windows XP, Vista, 7, 8, 10 and 11. There are
|
||||
both console and GUI versions.
|
||||
|
||||
The 32 bit version also runs on 64 bit MS-Windows systems.
|
||||
@@ -42,6 +42,11 @@ The GUI version was made by George V. Reilly and Robert Webb.
|
||||
|
||||
For compiling see "src/INSTALLpc.txt". *win32-compiling*
|
||||
|
||||
*WSL*
|
||||
When using Vim on WSL (Windows Subsystem for Linux) the remarks here do not
|
||||
apply, `has('win32')` will return false then. In case you need to know
|
||||
whether Vim is running on WSL you can use `exists('$WSLENV')`.
|
||||
|
||||
==============================================================================
|
||||
1. Known problems *win32-problems*
|
||||
|
||||
|
||||
@@ -379,7 +379,7 @@ Vim includes two regexp engines:
|
||||
1. An old, backtracking engine that supports everything.
|
||||
2. A new, NFA engine that works much faster on some patterns, possibly slower
|
||||
on some patterns.
|
||||
|
||||
*E1281*
|
||||
Vim will automatically select the right engine for you. However, if you run
|
||||
into a problem or want to specifically select one engine or the other, you can
|
||||
prepend one of the following to the pattern:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*popup.txt* For Vim version 8.2. Last change: 2022 Apr 04
|
||||
*popup.txt* For Vim version 8.2. Last change: 2022 Jun 06
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -147,7 +147,8 @@ A special case is running a terminal in a popup window. Many rules are then
|
||||
different: *E863*
|
||||
- The popup window always has focus, it is not possible to switch to another
|
||||
window.
|
||||
- When the job ends, the popup window closes.
|
||||
- When the job ends, the popup window shows the buffer in Terminal-Normal
|
||||
mode. Use `:q` to close it or use "term_finish" value "close".
|
||||
- The popup window can be closed with `popup_close()`, the terminal buffer
|
||||
then becomes hidden.
|
||||
- It is not possible to open a second popup window with a terminal. *E861*
|
||||
@@ -998,20 +999,23 @@ To make the four corners transparent:
|
||||
==============================================================================
|
||||
4. Examples *popup-examples*
|
||||
|
||||
These examples use |Vim9| script.
|
||||
|
||||
TODO: more interesting examples
|
||||
|
||||
*popup_dialog-example*
|
||||
Prompt the user to press y/Y or n/N: >
|
||||
|
||||
func MyDialogHandler(id, result)
|
||||
if a:result
|
||||
" ... 'y' or 'Y' was pressed
|
||||
endif
|
||||
endfunc
|
||||
|
||||
call popup_dialog('Continue? y/n', #{
|
||||
\ filter: 'popup_filter_yesno',
|
||||
\ callback: 'MyDialogHandler',
|
||||
\ })
|
||||
popup_dialog('Continue? y/n', {
|
||||
filter: 'popup_filter_yesno',
|
||||
callback: (id, result) => {
|
||||
if result == 1
|
||||
echomsg "'y' or 'Y' was pressed"
|
||||
else
|
||||
echomsg "'y' or 'Y' was NOT pressed"
|
||||
endif
|
||||
},
|
||||
})
|
||||
<
|
||||
*popup_menu-shortcut-example*
|
||||
Extend popup_filter_menu() with shortcut keys: >
|
||||
@@ -1039,6 +1043,10 @@ Extend popup_filter_menu() with shortcut keys: >
|
||||
" No shortcut, pass to generic filter
|
||||
return popup_filter_menu(a:id, a:key)
|
||||
endfunc
|
||||
|
||||
func MyMenuHandler(id, result)
|
||||
echo $'Result: {a:result}'
|
||||
endfunc
|
||||
<
|
||||
*popup_beval_example*
|
||||
Example for using a popup window for 'ballooneval': >
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*quickref.txt* For Vim version 8.2. Last change: 2022 Apr 06
|
||||
*quickref.txt* For Vim version 8.2. Last change: 2022 May 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1350,7 +1350,7 @@ Context-sensitive completion on the command-line:
|
||||
|CTRL-W_^| CTRL-W ^ split window and edit alternate file
|
||||
|CTRL-W_n| CTRL-W n or :new create new empty window
|
||||
|CTRL-W_q| CTRL-W q or :q[uit] quit editing and close window
|
||||
|CTRL-W_c| CTRL-W c or :cl[ose] make buffer hidden and close window
|
||||
|CTRL-W_c| CTRL-W c or :clo[se] make buffer hidden and close window
|
||||
|CTRL-W_o| CTRL-W o or :on[ly] make current window only one on the
|
||||
screen
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*scroll.txt* For Vim version 8.2. Last change: 2022 Apr 03
|
||||
*scroll.txt* For Vim version 8.2. Last change: 2022 May 07
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -237,31 +237,34 @@ it works depends on your system. It might also work in an xterm
|
||||
|xterm-mouse-wheel|. By default only vertical scroll wheels are supported,
|
||||
but some GUIs also support horizontal scroll wheels.
|
||||
|
||||
For the Win32 GUI the scroll action is hard coded. It works just like
|
||||
dragging the scrollbar of the current window. How many lines are scrolled
|
||||
depends on your mouse driver. If the scroll action causes input focus
|
||||
problems, see |intellimouse-wheel-problems|.
|
||||
On MS-Windows, if the scroll action causes input focus -problems, see
|
||||
|intellimouse-wheel-problems|.
|
||||
|
||||
For the X11 GUIs (Motif and GTK) scrolling the wheel generates key
|
||||
For Win32 and the X11 GUIs (Motif and GTK) scrolling the wheel generates key
|
||||
presses <ScrollWheelUp>, <ScrollWheelDown>, <ScrollWheelLeft> and
|
||||
<ScrollWheelRight>. For example, if you push the scroll wheel upwards a
|
||||
<ScrollWheelUp> key press is generated causing the window to scroll upwards
|
||||
(while the text is actually moving downwards). The default action for these
|
||||
keys are:
|
||||
<ScrollWheelUp> scroll three lines up *<ScrollWheelUp>*
|
||||
<ScrollWheelUp> scroll N lines up *<ScrollWheelUp>*
|
||||
<S-ScrollWheelUp> scroll one page up *<S-ScrollWheelUp>*
|
||||
<C-ScrollWheelUp> scroll one page up *<C-ScrollWheelUp>*
|
||||
<ScrollWheelDown> scroll three lines down *<ScrollWheelDown>*
|
||||
<ScrollWheelDown> scroll N lines down *<ScrollWheelDown>*
|
||||
<S-ScrollWheelDown> scroll one page down *<S-ScrollWheelDown>*
|
||||
<C-ScrollWheelDown> scroll one page down *<C-ScrollWheelDown>*
|
||||
<ScrollWheelLeft> scroll six columns left *<ScrollWheelLeft>*
|
||||
<ScrollWheelLeft> scroll N columns left *<ScrollWheelLeft>*
|
||||
<S-ScrollWheelLeft> scroll one page left *<S-ScrollWheelLeft>*
|
||||
<C-ScrollWheelLeft> scroll one page left *<C-ScrollWheelLeft>*
|
||||
<ScrollWheelRight> scroll six columns right *<ScrollWheelRight>*
|
||||
<ScrollWheelRight> scroll N columns right *<ScrollWheelRight>*
|
||||
<S-ScrollWheelRight> scroll one page right *<S-ScrollWheelRight>*
|
||||
<C-ScrollWheelRight> scroll one page right *<C-ScrollWheelRight>*
|
||||
This should work in all modes, except when editing the command line.
|
||||
|
||||
The value of N depends on the system. By default Vim scrolls three lines when
|
||||
moving vertically, and six columns when moving horizontally. On MS-Windows
|
||||
the amount of lines and columns for each scroll action is taken from the
|
||||
system-wide settings.
|
||||
|
||||
Note that horizontal scrolling only works if 'nowrap' is set. Also, unless
|
||||
the "h" flag in 'guioptions' is set, the cursor moves to the longest visible
|
||||
line if the cursor line is about to be scrolled off the screen (similarly to
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*sponsor.txt* For Vim version 8.2. Last change: 2021 Jul 07
|
||||
*sponsor.txt* For Vim version 8.2. Last change: 2022 May 26
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*starting.txt* For Vim version 8.2. Last change: 2022 Apr 12
|
||||
*starting.txt* For Vim version 8.2. Last change: 2022 Jun 04
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -346,7 +346,7 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
|
||||
<
|
||||
--log {filename} *--log*
|
||||
Start logging and write entries to {filename}.
|
||||
This works like calling `ch_logfile({filename}, 'a')` very
|
||||
This works like calling `ch_logfile({filename}, 'ao')` very
|
||||
early during startup.
|
||||
{only available with the +channel feature}
|
||||
|
||||
@@ -737,6 +737,7 @@ In Evim these options are changed from their default value:
|
||||
:set guioptions-=a non-Unix only: don't do auto-select
|
||||
|
||||
Key mappings:
|
||||
<CTRL-Q> quit, using `:confirm` prompt if there are changes
|
||||
<Down> moves by screen lines rather than file lines
|
||||
<Up> idem
|
||||
Q does "gq", formatting, instead of Ex mode
|
||||
@@ -747,7 +748,6 @@ Key mappings:
|
||||
<C-Insert> idem
|
||||
CTRL-V Pastes from the clipboard (in any mode)
|
||||
<S-Insert> idem
|
||||
CTRL-Q do what CTRL-V used to do
|
||||
CTRL-Z undo
|
||||
CTRL-Y redo
|
||||
<M-Space> system menu
|
||||
@@ -764,6 +764,8 @@ Additionally:
|
||||
One hint: If you want to go to Normal mode to be able to type a sequence of
|
||||
commands, use CTRL-L. |i_CTRL-L|
|
||||
|
||||
There is no way to stop "easy mode", you need to exit Vim.
|
||||
|
||||
==============================================================================
|
||||
4. Initialization *initialization* *startup*
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 8.2. Last change: 2022 Apr 24
|
||||
*syntax.txt* For Vim version 8.2. Last change: 2022 Jun 10
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -32,13 +32,14 @@ In the User Manual:
|
||||
10. Including syntax files |:syn-include|
|
||||
11. Synchronizing |:syn-sync|
|
||||
12. Listing syntax items |:syntax|
|
||||
13. Highlight command |:highlight|
|
||||
14. Linking groups |:highlight-link|
|
||||
15. Cleaning up |:syn-clear|
|
||||
16. Highlighting tags |tag-highlight|
|
||||
17. Window-local syntax |:ownsyntax|
|
||||
18. Color xterms |xterm-color|
|
||||
19. When syntax is slow |:syntime|
|
||||
13. Colorschemes |color-schemes|
|
||||
14. Highlight command |:highlight|
|
||||
15. Linking groups |:highlight-link|
|
||||
16. Cleaning up |:syn-clear|
|
||||
17. Highlighting tags |tag-highlight|
|
||||
18. Window-local syntax |:ownsyntax|
|
||||
19. Color xterms |xterm-color|
|
||||
20. When syntax is slow |:syntime|
|
||||
|
||||
{Vi does not have any of these commands}
|
||||
|
||||
@@ -488,7 +489,7 @@ your own highlight colors for the progress bar. Example: >
|
||||
hi TOhtmlProgress guifg=#c0ffee ctermbg=7
|
||||
<
|
||||
*g:html_number_lines*
|
||||
Default: current 'number' setting.
|
||||
Default: Current 'number' setting.
|
||||
When 0, buffer text is displayed in the generated HTML without line numbering.
|
||||
When 1, a column of line numbers is added to the generated HTML with the same
|
||||
highlighting as the line number column in Vim (|hl-LineNr|).
|
||||
@@ -577,7 +578,7 @@ folded text will open the fold as if |g:html_hover_unfold| were set.
|
||||
:let g:html_no_foldcolumn = 1
|
||||
<
|
||||
*TOhtml-uncopyable-text* *g:html_prevent_copy*
|
||||
Default: empty string.
|
||||
Default: Empty string.
|
||||
This option prevents certain regions of the generated HTML from being copied,
|
||||
when you select all text in document rendered in a browser and copy it. Useful
|
||||
for allowing users to copy-paste only the source text even if a fold column or
|
||||
@@ -603,7 +604,7 @@ uncopyable regions. In some browsers, especially older browsers, after
|
||||
selecting an entire page and copying the selection, the <input> tags are not
|
||||
pasted with the page text. If |g:html_no_invalid| is 0, the <input> tags have
|
||||
invalid type; this works in more browsers, but the page will not validate.
|
||||
Note: this method does NOT work in recent versions of Chrome and equivalent
|
||||
Note: This method does NOT work in recent versions of Chrome and equivalent
|
||||
browsers; the <input> tags get pasted with the text.
|
||||
|
||||
When "fallback" (default value), the same <input> elements are generated for
|
||||
@@ -659,12 +660,12 @@ To append a string "_mystring" to the end of each ID: >
|
||||
|
||||
:let g:html_id_expr = '"_mystring"'
|
||||
<
|
||||
Note, when converting a diff view to HTML, the expression will only be
|
||||
Note: When converting a diff view to HTML, the expression will only be
|
||||
evaluated for the first window in the diff, and the result used for all the
|
||||
windows.
|
||||
|
||||
*TOhtml-wrap-text* *g:html_pre_wrap*
|
||||
Default: current 'wrap' setting.
|
||||
Default: Current 'wrap' setting.
|
||||
When 0, if |g:html_no_pre| is 0 or unset, the text in the generated HTML does
|
||||
not wrap at the edge of the browser window.
|
||||
When 1, if |g:html_use_css| is 1, the CSS 2.0 "white-space:pre-wrap" value is
|
||||
@@ -724,7 +725,7 @@ wide browser support. However, you can override this to support specific
|
||||
encodings that may not be automatically detected by default (see options
|
||||
below). See http://www.iana.org/assignments/character-sets for the IANA names.
|
||||
|
||||
Note, by default all Unicode encodings are converted to UTF-8 with no BOM in
|
||||
Note: By default all Unicode encodings are converted to UTF-8 with no BOM in
|
||||
the generated HTML, as recommended by W3C:
|
||||
|
||||
http://www.w3.org/International/questions/qa-choosing-encodings
|
||||
@@ -1328,8 +1329,8 @@ the global or buffer-local variable load_doxygen_syntax. This is done by
|
||||
adding the following to your .vimrc. >
|
||||
:let g:load_doxygen_syntax=1
|
||||
|
||||
There are a couple of variables that have an effect on syntax highlighting, and
|
||||
are to do with non-standard highlighting options.
|
||||
There are a couple of variables that have an effect on syntax highlighting,
|
||||
and are to do with non-standard highlighting options.
|
||||
|
||||
Variable Default Effect ~
|
||||
g:doxygen_enhanced_color
|
||||
@@ -1471,8 +1472,8 @@ To enable highlighting some special atoms, put this in your vimrc: >
|
||||
|
||||
ELIXIR *elixir.vim* *ft-elixir-syntax*
|
||||
|
||||
Elixir is a dynamic, functional language for building scalable and maintainable
|
||||
applications.
|
||||
Elixir is a dynamic, functional language for building scalable and
|
||||
maintainable applications.
|
||||
|
||||
The following file extensions are auto-detected as Elixir file types:
|
||||
|
||||
@@ -1488,7 +1489,7 @@ Elixir.
|
||||
FLEXWIKI *flexwiki.vim* *ft-flexwiki-syntax*
|
||||
|
||||
FlexWiki is an ASP.NET-based wiki package available at http://www.flexwiki.com
|
||||
NOTE: this site currently doesn't work, on Wikipedia is mentioned that
|
||||
NOTE: This site currently doesn't work, on Wikipedia is mentioned that
|
||||
development stopped in 2009.
|
||||
|
||||
Syntax highlighting is available for the most common elements of FlexWiki
|
||||
@@ -1511,7 +1512,7 @@ modes Conditional, Number, Statement, Comment, PreProc, Type, and String,
|
||||
following the language specifications in 'Symbolic Manipulation with FORM' by
|
||||
J.A.M. Vermaseren, CAN, Netherlands, 1991.
|
||||
|
||||
If you want include your own changes to the default colors, you have to
|
||||
If you want to include your own changes to the default colors, you have to
|
||||
redefine the following syntax groups:
|
||||
|
||||
- formConditional
|
||||
@@ -1568,8 +1569,8 @@ syntax highlighting will not be correct if the form is incorrectly set.
|
||||
When you create a new fortran file, the syntax script assumes fixed source
|
||||
form. If you always use free source form, then >
|
||||
:let fortran_free_source=1
|
||||
in your .vimrc prior to the :syntax on command. If you always use fixed source
|
||||
form, then >
|
||||
in your .vimrc prior to the :syntax on command. If you always use fixed
|
||||
source form, then >
|
||||
:let fortran_fixed_source=1
|
||||
in your .vimrc prior to the :syntax on command.
|
||||
|
||||
@@ -1840,8 +1841,8 @@ ends with -->) you can define >
|
||||
|
||||
JavaScript and Visual Basic embedded inside HTML documents are highlighted as
|
||||
'Special' with statements, comments, strings and so on colored as in standard
|
||||
programming languages. Note that only JavaScript and Visual Basic are currently
|
||||
supported, no other scripting language has been added yet.
|
||||
programming languages. Note that only JavaScript and Visual Basic are
|
||||
currently supported, no other scripting language has been added yet.
|
||||
|
||||
Embedded and inlined cascading style sheets (CSS) are highlighted too.
|
||||
|
||||
@@ -1945,8 +1946,8 @@ The java.vim syntax highlighting file offers several options:
|
||||
|
||||
In Java 1.0.2 it was never possible to have braces inside parens, so this was
|
||||
flagged as an error. Since Java 1.1 this is possible (with anonymous
|
||||
classes), and therefore is no longer marked as an error. If you prefer the old
|
||||
way, put the following line into your vim startup file: >
|
||||
classes), and therefore is no longer marked as an error. If you prefer the
|
||||
old way, put the following line into your vim startup file: >
|
||||
:let java_mark_braces_in_parens_as_errors=1
|
||||
|
||||
All identifiers in java.lang.* are always visible in all classes. To
|
||||
@@ -2064,10 +2065,10 @@ LISP *lisp.vim* *ft-lisp-syntax*
|
||||
|
||||
The lisp syntax highlighting provides two options: >
|
||||
|
||||
g:lisp_instring : if it exists, then "(...)" strings are highlighted
|
||||
g:lisp_instring : If it exists, then "(...)" strings are highlighted
|
||||
as if the contents of the string were lisp.
|
||||
Useful for AutoLisp.
|
||||
g:lisp_rainbow : if it exists and is nonzero, then differing levels
|
||||
g:lisp_rainbow : If it exists and is nonzero, then differing levels
|
||||
of parenthesization will receive different
|
||||
highlighting.
|
||||
<
|
||||
@@ -2474,8 +2475,8 @@ If you do not want complex things like '@{${"foo"}}' to be parsed: >
|
||||
|
||||
(In Vim 6.x it was the other way around: "perl_extended_vars" enabled it.)
|
||||
|
||||
The coloring strings can be changed. By default strings and qq friends will be
|
||||
highlighted like the first line. If you set the variable
|
||||
The coloring strings can be changed. By default strings and qq friends will
|
||||
be highlighted like the first line. If you set the variable
|
||||
perl_string_as_statement, it will be highlighted as in the second line.
|
||||
|
||||
"hello world!"; qq|hello world|;
|
||||
@@ -2487,8 +2488,8 @@ perl_string_as_statement, it will be highlighted as in the second line.
|
||||
The syncing has 3 options. The first two switch off some triggering of
|
||||
synchronization and should only be needed in case it fails to work properly.
|
||||
If while scrolling all of a sudden the whole screen changes color completely
|
||||
then you should try and switch off one of those. Let me know if you can figure
|
||||
out the line that causes the mistake.
|
||||
then you should try and switch off one of those. Let me know if you can
|
||||
figure out the line that causes the mistake.
|
||||
|
||||
One triggers on "^\s*sub\s*" and the other on "^[$@%]" more or less. >
|
||||
|
||||
@@ -2525,7 +2526,7 @@ behavior, set 'perl_nofold_packages': >
|
||||
|
||||
PHP3 and PHP4 *php.vim* *php3.vim* *ft-php-syntax* *ft-php3-syntax*
|
||||
|
||||
[note: previously this was called "php3", but since it now also supports php4
|
||||
[Note: Previously this was called "php3", but since it now also supports php4
|
||||
it has been renamed to "php"]
|
||||
|
||||
There are the following options for the php syntax highlighting.
|
||||
@@ -2595,15 +2596,15 @@ PPWizard is a preprocessor for HTML and OS/2 INF files
|
||||
|
||||
This syntax file has the options:
|
||||
|
||||
- ppwiz_highlight_defs : determines highlighting mode for PPWizard's
|
||||
- ppwiz_highlight_defs : Determines highlighting mode for PPWizard's
|
||||
definitions. Possible values are
|
||||
|
||||
ppwiz_highlight_defs = 1 : PPWizard #define statements retain the
|
||||
colors of their contents (e.g. PPWizard macros and variables)
|
||||
colors of their contents (e.g. PPWizard macros and variables).
|
||||
|
||||
ppwiz_highlight_defs = 2 : preprocessor #define and #evaluate
|
||||
ppwiz_highlight_defs = 2 : Preprocessor #define and #evaluate
|
||||
statements are shown in a single color with the exception of line
|
||||
continuation symbols
|
||||
continuation symbols.
|
||||
|
||||
The default setting for ppwiz_highlight_defs is 1.
|
||||
|
||||
@@ -2642,7 +2643,7 @@ highlighted by defining the postscr_level variable as follows: >
|
||||
If this variable is not defined it defaults to 2 (level 2) since this is
|
||||
the most prevalent version currently.
|
||||
|
||||
Note, not all PS interpreters will support all language features for a
|
||||
Note: Not all PS interpreters will support all language features for a
|
||||
particular language level. In particular the %!PS-Adobe-3.0 at the start of
|
||||
PS files does NOT mean the PostScript present is level 3 PostScript!
|
||||
|
||||
@@ -2744,7 +2745,7 @@ If you want all possible Python highlighting (the same as setting the
|
||||
preceding last option and unsetting all other ones): >
|
||||
:let python_highlight_all = 1
|
||||
|
||||
Note: only existence of these options matter, not their value. You can replace
|
||||
Note: Only existence of these options matter, not their value. You can replace
|
||||
1 above with anything.
|
||||
|
||||
QUAKE *quake.vim* *ft-quake-syntax*
|
||||
@@ -3184,16 +3185,16 @@ The Speedup syntax file has some options:
|
||||
the DECLARE section; if you defined own types, you have to include
|
||||
them in the syntax file.
|
||||
|
||||
- oneline_comments : this value ranges from 1 to 3 and determines the
|
||||
- oneline_comments : This value ranges from 1 to 3 and determines the
|
||||
highlighting of # style comments.
|
||||
|
||||
oneline_comments = 1 : allow normal Speedup code after an even
|
||||
oneline_comments = 1 : Allow normal Speedup code after an even
|
||||
number of #s.
|
||||
|
||||
oneline_comments = 2 : show code starting with the second # as
|
||||
oneline_comments = 2 : Show code starting with the second # as
|
||||
error. This is the default setting.
|
||||
|
||||
oneline_comments = 3 : show the whole line as error if it contains
|
||||
oneline_comments = 3 : Show the whole line as error if it contains
|
||||
more than one #.
|
||||
|
||||
Since especially OPERATION sections tend to become very large due to
|
||||
@@ -3232,8 +3233,8 @@ This covers the shell named "tcsh". It is a superset of csh. See |csh.vim|
|
||||
for how the filetype is detected.
|
||||
|
||||
Tcsh does not allow \" in strings unless the "backslash_quote" shell variable
|
||||
is set. If you want VIM to assume that no backslash quote constructs exist add
|
||||
this line to your .vimrc: >
|
||||
is set. If you want VIM to assume that no backslash quote constructs exist
|
||||
add this line to your .vimrc: >
|
||||
|
||||
:let tcsh_backslash_quote = 0
|
||||
|
||||
@@ -3599,7 +3600,7 @@ start and end tags. This can be turned on by >
|
||||
:let g:xml_syntax_folding = 1
|
||||
:set foldmethod=syntax
|
||||
|
||||
Note: syntax folding might slow down syntax highlighting significantly,
|
||||
Note: Syntax folding might slow down syntax highlighting significantly,
|
||||
especially for large files.
|
||||
|
||||
|
||||
@@ -4845,20 +4846,14 @@ Note that the ":syntax" command can be abbreviated to ":sy", although ":syn"
|
||||
is mostly used, because it looks better.
|
||||
|
||||
==============================================================================
|
||||
13. Highlight command *:highlight* *:hi* *E28* *E411* *E415*
|
||||
|
||||
There are three types of highlight groups:
|
||||
- The ones used for specific languages. For these the name starts with the
|
||||
name of the language. Many of these don't have any attributes, but are
|
||||
linked to a group of the second type.
|
||||
- The ones used for all syntax languages.
|
||||
- The ones used for the 'highlight' option.
|
||||
*hitest.vim*
|
||||
You can see all the groups currently active with this command: >
|
||||
:so $VIMRUNTIME/syntax/hitest.vim
|
||||
This will open a new window containing all highlight group names, displayed
|
||||
in their own color.
|
||||
13. Colorschemes *color-schemes*
|
||||
|
||||
In the next section you can find information about indivisual highlight groups
|
||||
and how to specify colors for them. Most likely you want to just select a set
|
||||
of colors by using the `:colorscheme` command, for example: >
|
||||
|
||||
colorscheme pablo
|
||||
<
|
||||
*:colo* *:colorscheme* *E185*
|
||||
:colo[rscheme] Output the name of the currently active color scheme.
|
||||
This is basically the same as >
|
||||
@@ -4876,30 +4871,70 @@ in their own color.
|
||||
Doesn't work recursively, thus you can't use
|
||||
":colorscheme" in a color scheme script.
|
||||
|
||||
You have two options for customizing a color scheme.
|
||||
For changing the appearance of specific colors, you
|
||||
can redefine a color name before loading the scheme.
|
||||
The desert scheme uses the khaki color for the cursor.
|
||||
To use a darker variation of the same color: >
|
||||
You have two options for customizing a color scheme. For changing the
|
||||
appearance of specific colors, you can redefine a color name before loading
|
||||
the scheme. The desert scheme uses the khaki color for the cursor. To use a
|
||||
darker variation of the same color: >
|
||||
|
||||
let v:colornames['khaki'] = '#bdb76b'
|
||||
colorscheme desert
|
||||
let v:colornames['khaki'] = '#bdb76b'
|
||||
colorscheme desert
|
||||
<
|
||||
For further customization, such as changing
|
||||
|:highlight-link| associations, use another name, e.g.
|
||||
"~/.vim/colors/mine.vim", and use `:runtime` to load
|
||||
the original color scheme: >
|
||||
runtime colors/evening.vim
|
||||
hi Statement ctermfg=Blue guifg=Blue
|
||||
For further customization, such as changing |:highlight-link| associations,
|
||||
use another name, e.g. "~/.vim/colors/mine.vim", and use `:runtime` to load
|
||||
the original color scheme: >
|
||||
runtime colors/evening.vim
|
||||
hi Statement ctermfg=Blue guifg=Blue
|
||||
|
||||
< Before the color scheme will be loaded all default
|
||||
color list scripts (`colors/lists/default.vim`) will
|
||||
be executed and then the |ColorSchemePre| autocommand
|
||||
event is triggered. After the color scheme has been
|
||||
loaded the |ColorScheme| autocommand event is
|
||||
triggered.
|
||||
For info about writing a color scheme file: >
|
||||
:edit $VIMRUNTIME/colors/README.txt
|
||||
Before the color scheme will be loaded all default color list scripts
|
||||
(`colors/lists/default.vim`) will be executed and then the |ColorSchemePre|
|
||||
autocommand event is triggered. After the color scheme has been loaded the
|
||||
|ColorScheme| autocommand event is triggered.
|
||||
|
||||
If a color scheme is almost right, you can add modifications on top of it by
|
||||
using the |ColorScheme| autocommand. For example, to remove the background
|
||||
color (can make it transparent in some terminals): >
|
||||
augroup my_colorschemes
|
||||
au!
|
||||
au Colorscheme pablo hi Normal ctermbg=NONE
|
||||
augroup END
|
||||
|
||||
Change a couple more colors: >
|
||||
augroup my_colorschemes
|
||||
au!
|
||||
au Colorscheme pablo hi Normal ctermbg=NONE
|
||||
\ | higlight Special ctermfg=63
|
||||
\ | highlight Identifier ctermfg=44
|
||||
augroup END
|
||||
|
||||
If you make a lot of changes it might be better to copy the distributed
|
||||
colorscheme to your home directory and change it: >
|
||||
:!cp $VIMRUNTIME/colors/pablo.vim ~/.vim/colors
|
||||
:edit ~/.vim/colors/pablo.vim
|
||||
|
||||
With Vim 9.0 the collection of color schemes was updated and made work in many
|
||||
different terminals. One change was to often define the Normal highlight
|
||||
group to make sure the colors work well. In case you prefer the old version,
|
||||
you can find them here:
|
||||
https://github.com/vim/colorschemes/blob/master/legacy_colors/
|
||||
|
||||
For info about writing a color scheme file: >
|
||||
:edit $VIMRUNTIME/colors/README.txt
|
||||
|
||||
|
||||
==============================================================================
|
||||
14. Highlight command *:highlight* *:hi* *E28* *E411* *E415*
|
||||
|
||||
There are three types of highlight groups:
|
||||
- The ones used for specific languages. For these the name starts with the
|
||||
name of the language. Many of these don't have any attributes, but are
|
||||
linked to a group of the second type.
|
||||
- The ones used for all syntax languages.
|
||||
- The ones used for the 'highlight' option.
|
||||
*hitest.vim*
|
||||
You can see all the groups currently active with this command: >
|
||||
:so $VIMRUNTIME/syntax/hitest.vim
|
||||
This will open a new window containing all highlight group names, displayed
|
||||
in their own color.
|
||||
|
||||
:hi[ghlight] List all the current highlight groups that have
|
||||
attributes set.
|
||||
@@ -5098,8 +5133,8 @@ ctermul={color-nr} *highlight-ctermul*
|
||||
|
||||
The case of the color names is ignored.
|
||||
Note that for 16 color ansi style terminals (including xterms), the
|
||||
numbers in the NR-8 column is used. Here '*' means 'add 8' so that Blue
|
||||
is 12, DarkGray is 8 etc.
|
||||
numbers in the NR-8 column is used. Here '*' means 'add 8' so that
|
||||
Blue is 12, DarkGray is 8 etc.
|
||||
|
||||
Note that for some color terminals these names may result in the wrong
|
||||
colors!
|
||||
@@ -5206,7 +5241,7 @@ guisp={color-name} *highlight-guisp*
|
||||
All values are hexadecimal, range from "00" to "ff". Examples: >
|
||||
:highlight Comment guifg=#11f0c3 guibg=#ff00ff
|
||||
<
|
||||
If you are authoring a color scheme and use the same hexademical value
|
||||
If you are authoring a color scheme and use the same hexadecimal value
|
||||
repeatedly, you can define a name for it in |v:colornames|. For
|
||||
example: >
|
||||
|
||||
@@ -5238,49 +5273,50 @@ These are the default highlighting groups. These groups are used by the
|
||||
'highlight' option default. Note that the highlighting depends on the value
|
||||
of 'background'. You can see the current settings with the ":highlight"
|
||||
command.
|
||||
When possible the name is highlighted in the used colors. If this makes it
|
||||
unreadable use Visual selection.
|
||||
|
||||
*hl-ColorColumn*
|
||||
ColorColumn used for the columns set with 'colorcolumn'
|
||||
ColorColumn Used for the columns set with 'colorcolumn'.
|
||||
*hl-Conceal*
|
||||
Conceal placeholder characters substituted for concealed
|
||||
text (see 'conceallevel')
|
||||
Conceal Placeholder characters substituted for concealed
|
||||
text (see 'conceallevel').
|
||||
*hl-Cursor*
|
||||
Cursor the character under the cursor
|
||||
lCursor the character under the cursor when |language-mapping|
|
||||
is used (see 'guicursor')
|
||||
Cursor Character under the cursor.
|
||||
lCursor Character under the cursor when |language-mapping|
|
||||
is used (see 'guicursor').
|
||||
*hl-CursorIM*
|
||||
CursorIM like Cursor, but used when in IME mode |CursorIM|
|
||||
CursorIM Like Cursor, but used when in IME mode. |CursorIM|
|
||||
*hl-CursorColumn*
|
||||
CursorColumn the screen column that the cursor is in when 'cursorcolumn' is
|
||||
set
|
||||
CursorColumn Screen column that the cursor is in when 'cursorcolumn' is set.
|
||||
*hl-CursorLine*
|
||||
CursorLine the screen line that the cursor is in when 'cursorline' is
|
||||
set
|
||||
CursorLine Screen line that the cursor is in when 'cursorline' is set.
|
||||
*hl-Directory*
|
||||
Directory directory names (and other special names in listings)
|
||||
Directory Directory names (and other special names in listings).
|
||||
*hl-DiffAdd*
|
||||
DiffAdd diff mode: Added line |diff.txt|
|
||||
DiffAdd Diff mode: Added line. |diff.txt|
|
||||
*hl-DiffChange*
|
||||
DiffChange diff mode: Changed line |diff.txt|
|
||||
DiffChange Diff mode: Changed line. |diff.txt|
|
||||
*hl-DiffDelete*
|
||||
DiffDelete diff mode: Deleted line |diff.txt|
|
||||
DiffDelete Diff mode: Deleted line. |diff.txt|
|
||||
*hl-DiffText*
|
||||
DiffText diff mode: Changed text within a changed line |diff.txt|
|
||||
DiffText Diff mode: Changed text within a changed line. |diff.txt|
|
||||
*hl-EndOfBuffer*
|
||||
EndOfBuffer filler lines (~) after the last line in the buffer.
|
||||
EndOfBuffer Filler lines (~) after the last line in the buffer.
|
||||
By default, this is highlighted like |hl-NonText|.
|
||||
*hl-ErrorMsg*
|
||||
ErrorMsg error messages on the command line
|
||||
ErrorMsg Error messages on the command line.
|
||||
*hl-VertSplit*
|
||||
VertSplit the column separating vertically split windows
|
||||
VertSplit Column separating vertically split windows.
|
||||
*hl-Folded*
|
||||
Folded line used for closed folds
|
||||
Folded Line used for closed folds.
|
||||
*hl-FoldColumn*
|
||||
FoldColumn 'foldcolumn'
|
||||
*hl-SignColumn*
|
||||
SignColumn column where |signs| are displayed
|
||||
SignColumn Column where |signs| are displayed.
|
||||
*hl-IncSearch*
|
||||
IncSearch 'incsearch' highlighting; also used for the text replaced with
|
||||
":s///c"
|
||||
":s///c".
|
||||
*hl-LineNr*
|
||||
LineNr Line number for ":number" and ":#" commands, and when 'number'
|
||||
or 'relativenumber' option is set.
|
||||
@@ -5298,11 +5334,11 @@ CursorLineSign Like SignColumn when 'cursorline' is set for the cursor line.
|
||||
*hl-CursorLineFold*
|
||||
CursorLineFold Like FoldColumn when 'cursorline' is set for the cursor line.
|
||||
*hl-MatchParen*
|
||||
MatchParen The character under the cursor or just before it, if it
|
||||
MatchParen Character under the cursor or just before it, if it
|
||||
is a paired bracket, and its match. |pi_paren.txt|
|
||||
|
||||
*hl-ModeMsg*
|
||||
ModeMsg 'showmode' message (e.g., "-- INSERT --")
|
||||
ModeMsg 'showmode' message (e.g., "-- INSERT --").
|
||||
*hl-MoreMsg*
|
||||
MoreMsg |more-prompt|
|
||||
*hl-NonText*
|
||||
@@ -5311,17 +5347,17 @@ NonText '@' at the end of the window, characters from 'showbreak'
|
||||
(e.g., ">" displayed when a double-wide character doesn't
|
||||
fit at the end of the line).
|
||||
*hl-Normal*
|
||||
Normal normal text
|
||||
Normal Normal text.
|
||||
*hl-Pmenu*
|
||||
Pmenu Popup menu: normal item.
|
||||
Pmenu Popup menu: Normal item.
|
||||
*hl-PmenuSel*
|
||||
PmenuSel Popup menu: selected item.
|
||||
PmenuSel Popup menu: Selected item.
|
||||
*hl-PmenuSbar*
|
||||
PmenuSbar Popup menu: scrollbar.
|
||||
PmenuSbar Popup menu: Scrollbar.
|
||||
*hl-PmenuThumb*
|
||||
PmenuThumb Popup menu: Thumb of the scrollbar.
|
||||
*hl-Question*
|
||||
Question |hit-enter| prompt and yes/no questions
|
||||
Question |hit-enter| prompt and yes/no questions.
|
||||
*hl-QuickFixLine*
|
||||
QuickFixLine Current |quickfix| item in the quickfix window.
|
||||
*hl-Search*
|
||||
@@ -5329,10 +5365,12 @@ Search Last search pattern highlighting (see 'hlsearch').
|
||||
Also used for similar items that need to stand out.
|
||||
*hl-CurSearch*
|
||||
CurSearch Current match for the last search pattern (see 'hlsearch').
|
||||
Note: This is correct after a search, but may get outdated if
|
||||
changes are made or the screen is redrawn.
|
||||
*hl-SpecialKey*
|
||||
SpecialKey Meta and special keys listed with ":map", also for text used
|
||||
to show unprintable characters in the text, 'listchars'.
|
||||
Generally: text that is displayed differently from what it
|
||||
Generally: Text that is displayed differently from what it
|
||||
really is.
|
||||
*hl-SpellBad*
|
||||
SpellBad Word that is not recognized by the spellchecker. |spell|
|
||||
@@ -5349,35 +5387,35 @@ SpellRare Word that is recognized by the spellchecker as one that is
|
||||
hardly ever used. |spell|
|
||||
This will be combined with the highlighting used otherwise.
|
||||
*hl-StatusLine*
|
||||
StatusLine status line of current window
|
||||
StatusLine Status line of current window.
|
||||
*hl-StatusLineNC*
|
||||
StatusLineNC status lines of not-current windows
|
||||
Note: if this is equal to "StatusLine" Vim will use "^^^" in
|
||||
Note: If this is equal to "StatusLine", Vim will use "^^^" in
|
||||
the status line of the current window.
|
||||
*hl-StatusLineTerm*
|
||||
StatusLineTerm status line of current window, if it is a |terminal| window.
|
||||
StatusLineTerm Status line of current window, if it is a |terminal| window.
|
||||
*hl-StatusLineTermNC*
|
||||
StatusLineTermNC status lines of not-current windows that is a |terminal|
|
||||
window.
|
||||
StatusLineTermNC Status lines of not-current windows that is a
|
||||
|terminal| window.
|
||||
*hl-TabLine*
|
||||
TabLine tab pages line, not active tab page label
|
||||
TabLine Tab pages line, not active tab page label.
|
||||
*hl-TabLineFill*
|
||||
TabLineFill tab pages line, where there are no labels
|
||||
TabLineFill Tab pages line, where there are no labels.
|
||||
*hl-TabLineSel*
|
||||
TabLineSel tab pages line, active tab page label
|
||||
TabLineSel Tab pages line, active tab page label.
|
||||
*hl-Terminal*
|
||||
Terminal |terminal| window (see |terminal-size-color|)
|
||||
Terminal |terminal| window (see |terminal-size-color|).
|
||||
*hl-Title*
|
||||
Title titles for output from ":set all", ":autocmd" etc.
|
||||
Title Titles for output from ":set all", ":autocmd" etc.
|
||||
*hl-Visual*
|
||||
Visual Visual mode selection
|
||||
Visual Visual mode selection.
|
||||
*hl-VisualNOS*
|
||||
VisualNOS Visual mode selection when vim is "Not Owning the Selection".
|
||||
Only X11 Gui's |gui-x11| and |xterm-clipboard| supports this.
|
||||
*hl-WarningMsg*
|
||||
WarningMsg warning messages
|
||||
WarningMsg Warning messages.
|
||||
*hl-WildMenu*
|
||||
WildMenu current match in 'wildmenu' completion
|
||||
WildMenu Current match in 'wildmenu' completion.
|
||||
|
||||
*hl-User1* *hl-User1..9* *hl-User9*
|
||||
The 'statusline' syntax allows the use of 9 different highlights in the
|
||||
@@ -5413,7 +5451,7 @@ Tooltip Current font, background and foreground of the tooltips.
|
||||
set.
|
||||
|
||||
==============================================================================
|
||||
14. Linking groups *:hi-link* *:highlight-link* *E412* *E413*
|
||||
15. Linking groups *:hi-link* *:highlight-link* *E412* *E413*
|
||||
|
||||
When you want to use the same highlighting for several syntax groups, you
|
||||
can do this more easily by linking the groups into one common highlight
|
||||
@@ -5457,7 +5495,7 @@ another color scheme, put a command like this in the
|
||||
highlight! default link cComment Question
|
||||
|
||||
==============================================================================
|
||||
15. Cleaning up *:syn-clear* *E391*
|
||||
16. Cleaning up *:syn-clear* *E391*
|
||||
|
||||
If you want to clear the syntax stuff for the current buffer, you can use this
|
||||
command: >
|
||||
@@ -5549,7 +5587,7 @@ syntax/syncolor.vim files are loaded:
|
||||
them.
|
||||
|
||||
==============================================================================
|
||||
16. Highlighting tags *tag-highlight*
|
||||
17. Highlighting tags *tag-highlight*
|
||||
|
||||
If you want to highlight all the tags in your file, you can use the following
|
||||
mappings.
|
||||
@@ -5585,7 +5623,7 @@ And put these lines in your .vimrc: >
|
||||
autocmd BufRead,BufNewFile *.[ch] endif
|
||||
|
||||
==============================================================================
|
||||
17. Window-local syntax *:ownsyntax*
|
||||
18. Window-local syntax *:ownsyntax*
|
||||
|
||||
Normally all windows on a buffer share the same syntax settings. It is
|
||||
possible, however, to set a particular window on a file to have its own
|
||||
@@ -5615,7 +5653,7 @@ is loaded into that window or the file is reloaded.
|
||||
When splitting the window, the new window will use the original syntax.
|
||||
|
||||
==============================================================================
|
||||
18. Color xterms *xterm-color* *color-xterm*
|
||||
19. Color xterms *xterm-color* *color-xterm*
|
||||
|
||||
Most color xterms have only eight colors. If you don't get colors with the
|
||||
default setup, it should work with these lines in your .vimrc: >
|
||||
@@ -5759,7 +5797,7 @@ that Setup / Font / Enable Bold is NOT enabled.
|
||||
|
||||
|
||||
==============================================================================
|
||||
19. When syntax is slow *:syntime*
|
||||
20. When syntax is slow *:syntime*
|
||||
|
||||
This is aimed at authors of a syntax file.
|
||||
|
||||
@@ -5767,7 +5805,7 @@ If your syntax causes redrawing to be slow, here are a few hints on making it
|
||||
faster. To see slowness switch on some features that usually interfere, such
|
||||
as 'relativenumber' and |folding|.
|
||||
|
||||
Note: this is only available when compiled with the |+profile| feature.
|
||||
Note: This is only available when compiled with the |+profile| feature.
|
||||
You many need to build Vim with "huge" features.
|
||||
|
||||
To find out what patterns are consuming most time, get an overview with this
|
||||
|
||||
@@ -12,6 +12,7 @@ $VIM starting.txt /*$VIM*
|
||||
$VIM-use version5.txt /*$VIM-use*
|
||||
$VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
$VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
$quote eval.txt /*$quote*
|
||||
% motion.txt /*%*
|
||||
%:. cmdline.txt /*%:.*
|
||||
%:8 cmdline.txt /*%:8*
|
||||
@@ -1917,10 +1918,6 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
41.10 usr_41.txt /*41.10*
|
||||
41.11 usr_41.txt /*41.11*
|
||||
41.12 usr_41.txt /*41.12*
|
||||
41.13 usr_41.txt /*41.13*
|
||||
41.14 usr_41.txt /*41.14*
|
||||
41.15 usr_41.txt /*41.15*
|
||||
41.16 usr_41.txt /*41.16*
|
||||
41.2 usr_41.txt /*41.2*
|
||||
41.3 usr_41.txt /*41.3*
|
||||
41.4 usr_41.txt /*41.4*
|
||||
@@ -1953,10 +1950,18 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
45.3 usr_45.txt /*45.3*
|
||||
45.4 usr_45.txt /*45.4*
|
||||
45.5 usr_45.txt /*45.5*
|
||||
46.1 usr_46.txt /*46.1*
|
||||
46.2 usr_46.txt /*46.2*
|
||||
46.3 usr_46.txt /*46.3*
|
||||
46.? usr_46.txt /*46.?*
|
||||
50.1 usr_50.txt /*50.1*
|
||||
50.2 usr_50.txt /*50.2*
|
||||
50.3 usr_50.txt /*50.3*
|
||||
51.1 usr_51.txt /*51.1*
|
||||
51.2 usr_51.txt /*51.2*
|
||||
51.3 usr_51.txt /*51.3*
|
||||
51.4 usr_51.txt /*51.4*
|
||||
52.1 usr_52.txt /*52.1*
|
||||
52.2 usr_52.txt /*52.2*
|
||||
52.3 usr_52.txt /*52.3*
|
||||
52.4 usr_52.txt /*52.4*
|
||||
52.5 usr_52.txt /*52.5*
|
||||
8g8 various.txt /*8g8*
|
||||
90.1 usr_90.txt /*90.1*
|
||||
90.2 usr_90.txt /*90.2*
|
||||
@@ -2026,7 +2031,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
:Break terminal.txt /*:Break*
|
||||
:Cfilter quickfix.txt /*:Cfilter*
|
||||
:Clear terminal.txt /*:Clear*
|
||||
:CompilerSet usr_41.txt /*:CompilerSet*
|
||||
:CompilerSet usr_51.txt /*:CompilerSet*
|
||||
:Continue terminal.txt /*:Continue*
|
||||
:DiffOrig diff.txt /*:DiffOrig*
|
||||
:DoMatchParen pi_paren.txt /*:DoMatchParen*
|
||||
@@ -4263,7 +4268,12 @@ E127 eval.txt /*E127*
|
||||
E1270 change.txt /*E1270*
|
||||
E1271 vim9.txt /*E1271*
|
||||
E1274 cmdline.txt /*E1274*
|
||||
E1276 builtin.txt /*E1276*
|
||||
E1278 eval.txt /*E1278*
|
||||
E128 eval.txt /*E128*
|
||||
E1281 pattern.txt /*E1281*
|
||||
E1282 eval.txt /*E1282*
|
||||
E1283 eval.txt /*E1283*
|
||||
E129 eval.txt /*E129*
|
||||
E13 message.txt /*E13*
|
||||
E131 eval.txt /*E131*
|
||||
@@ -4401,6 +4411,7 @@ E252 options.txt /*E252*
|
||||
E253 mbyte.txt /*E253*
|
||||
E254 message.txt /*E254*
|
||||
E255 sign.txt /*E255*
|
||||
E256 eval.txt /*E256*
|
||||
E257 if_cscop.txt /*E257*
|
||||
E258 remote.txt /*E258*
|
||||
E259 if_cscop.txt /*E259*
|
||||
@@ -4744,7 +4755,6 @@ E574 starting.txt /*E574*
|
||||
E575 starting.txt /*E575*
|
||||
E576 starting.txt /*E576*
|
||||
E577 starting.txt /*E577*
|
||||
E578 insert.txt /*E578*
|
||||
E579 eval.txt /*E579*
|
||||
E580 eval.txt /*E580*
|
||||
E581 eval.txt /*E581*
|
||||
@@ -5312,6 +5322,7 @@ Neovim intro.txt /*Neovim*
|
||||
NetBSD-backspace options.txt /*NetBSD-backspace*
|
||||
NetBeans netbeans.txt /*NetBeans*
|
||||
NetUserPass() pi_netrw.txt /*NetUserPass()*
|
||||
NoDefaultCurrentDirectoryInExePath builtin.txt /*NoDefaultCurrentDirectoryInExePath*
|
||||
None eval.txt /*None*
|
||||
Normal intro.txt /*Normal*
|
||||
Normal-mode intro.txt /*Normal-mode*
|
||||
@@ -5511,6 +5522,7 @@ W20 if_pyth.txt /*W20*
|
||||
W21 if_pyth.txt /*W21*
|
||||
W22 eval.txt /*W22*
|
||||
WORD motion.txt /*WORD*
|
||||
WSL os_win32.txt /*WSL*
|
||||
WWW intro.txt /*WWW*
|
||||
Win32 os_win32.txt /*Win32*
|
||||
WinBar gui.txt /*WinBar*
|
||||
@@ -5773,6 +5785,7 @@ autocmd-events autocmd.txt /*autocmd-events*
|
||||
autocmd-events-abc autocmd.txt /*autocmd-events-abc*
|
||||
autocmd-execute autocmd.txt /*autocmd-execute*
|
||||
autocmd-expand autocmd.txt /*autocmd-expand*
|
||||
autocmd-functions usr_41.txt /*autocmd-functions*
|
||||
autocmd-groups autocmd.txt /*autocmd-groups*
|
||||
autocmd-intro autocmd.txt /*autocmd-intro*
|
||||
autocmd-list autocmd.txt /*autocmd-list*
|
||||
@@ -5784,6 +5797,9 @@ autocmd-remove autocmd.txt /*autocmd-remove*
|
||||
autocmd-searchpat autocmd.txt /*autocmd-searchpat*
|
||||
autocmd-use autocmd.txt /*autocmd-use*
|
||||
autocmd.txt autocmd.txt /*autocmd.txt*
|
||||
autocmd_add() builtin.txt /*autocmd_add()*
|
||||
autocmd_delete() builtin.txt /*autocmd_delete()*
|
||||
autocmd_get() builtin.txt /*autocmd_get()*
|
||||
autocmds-kept version5.txt /*autocmds-kept*
|
||||
autocommand autocmd.txt /*autocommand*
|
||||
autocommand-events autocmd.txt /*autocommand-events*
|
||||
@@ -5837,6 +5853,7 @@ beval_winid-variable eval.txt /*beval_winid-variable*
|
||||
beval_winnr-variable eval.txt /*beval_winnr-variable*
|
||||
binary-number eval.txt /*binary-number*
|
||||
bitwise-function usr_41.txt /*bitwise-function*
|
||||
bitwise-shift eval.txt /*bitwise-shift*
|
||||
blob eval.txt /*blob*
|
||||
blob-functions usr_41.txt /*blob-functions*
|
||||
blob-identity eval.txt /*blob-identity*
|
||||
@@ -6184,6 +6201,7 @@ col() builtin.txt /*col()*
|
||||
coldfusion.vim syntax.txt /*coldfusion.vim*
|
||||
collapse tips.txt /*collapse*
|
||||
collate-variable eval.txt /*collate-variable*
|
||||
color-schemes syntax.txt /*color-schemes*
|
||||
color-xterm syntax.txt /*color-xterm*
|
||||
coloring syntax.txt /*coloring*
|
||||
colortest.vim syntax.txt /*colortest.vim*
|
||||
@@ -6489,7 +6507,7 @@ dircolors.vim syntax.txt /*dircolors.vim*
|
||||
dis motion.txt /*dis*
|
||||
disable-menus gui.txt /*disable-menus*
|
||||
discard editing.txt /*discard*
|
||||
distribute-script usr_41.txt /*distribute-script*
|
||||
distribute-script usr_51.txt /*distribute-script*
|
||||
distribution intro.txt /*distribution*
|
||||
diw motion.txt /*diw*
|
||||
dl change.txt /*dl*
|
||||
@@ -6640,6 +6658,8 @@ expr-!=? eval.txt /*expr-!=?*
|
||||
expr-!~ eval.txt /*expr-!~*
|
||||
expr-!~# eval.txt /*expr-!~#*
|
||||
expr-!~? eval.txt /*expr-!~?*
|
||||
expr-$' eval.txt /*expr-$'*
|
||||
expr-$quote eval.txt /*expr-$quote*
|
||||
expr-% eval.txt /*expr-%*
|
||||
expr-&& eval.txt /*expr-&&*
|
||||
expr-' eval.txt /*expr-'*
|
||||
@@ -6650,6 +6670,7 @@ expr-.. eval.txt /*expr-..*
|
||||
expr-/ eval.txt /*expr-\/*
|
||||
expr-< eval.txt /*expr-<*
|
||||
expr-<# eval.txt /*expr-<#*
|
||||
expr-<< eval.txt /*expr-<<*
|
||||
expr-<= eval.txt /*expr-<=*
|
||||
expr-<=# eval.txt /*expr-<=#*
|
||||
expr-<=? eval.txt /*expr-<=?*
|
||||
@@ -6665,6 +6686,7 @@ expr-># eval.txt /*expr->#*
|
||||
expr->= eval.txt /*expr->=*
|
||||
expr->=# eval.txt /*expr->=#*
|
||||
expr->=? eval.txt /*expr->=?*
|
||||
expr->> eval.txt /*expr->>*
|
||||
expr->? eval.txt /*expr->?*
|
||||
expr-[:] eval.txt /*expr-[:]*
|
||||
expr-[] eval.txt /*expr-[]*
|
||||
@@ -6692,6 +6714,7 @@ expr-unary-- eval.txt /*expr-unary--*
|
||||
expr-variable eval.txt /*expr-variable*
|
||||
expr1 eval.txt /*expr1*
|
||||
expr10 eval.txt /*expr10*
|
||||
expr11 eval.txt /*expr11*
|
||||
expr2 eval.txt /*expr2*
|
||||
expr3 eval.txt /*expr3*
|
||||
expr4 eval.txt /*expr4*
|
||||
@@ -6787,6 +6810,7 @@ fname_new-variable eval.txt /*fname_new-variable*
|
||||
fname_out-variable eval.txt /*fname_out-variable*
|
||||
fnameescape() builtin.txt /*fnameescape()*
|
||||
fnamemodify() builtin.txt /*fnamemodify()*
|
||||
fo-/ change.txt /*fo-\/*
|
||||
fo-1 change.txt /*fo-1*
|
||||
fo-2 change.txt /*fo-2*
|
||||
fo-B change.txt /*fo-B*
|
||||
@@ -7021,11 +7045,11 @@ ft_rust.txt ft_rust.txt /*ft_rust.txt*
|
||||
ft_sql.txt ft_sql.txt /*ft_sql.txt*
|
||||
ftdetect filetype.txt /*ftdetect*
|
||||
ftp pi_netrw.txt /*ftp*
|
||||
ftplugin usr_41.txt /*ftplugin*
|
||||
ftplugin usr_51.txt /*ftplugin*
|
||||
ftplugin-docs filetype.txt /*ftplugin-docs*
|
||||
ftplugin-name usr_05.txt /*ftplugin-name*
|
||||
ftplugin-overrule filetype.txt /*ftplugin-overrule*
|
||||
ftplugin-special usr_41.txt /*ftplugin-special*
|
||||
ftplugin-special usr_51.txt /*ftplugin-special*
|
||||
ftplugins usr_05.txt /*ftplugins*
|
||||
fullcommand() builtin.txt /*fullcommand()*
|
||||
funcref() builtin.txt /*funcref()*
|
||||
@@ -7265,6 +7289,7 @@ g:tar_nomax pi_tar.txt /*g:tar_nomax*
|
||||
g:tar_readoptions pi_tar.txt /*g:tar_readoptions*
|
||||
g:tar_secure pi_tar.txt /*g:tar_secure*
|
||||
g:tar_writeoptions pi_tar.txt /*g:tar_writeoptions*
|
||||
g:termdebug_config terminal.txt /*g:termdebug_config*
|
||||
g:termdebugger terminal.txt /*g:termdebugger*
|
||||
g:terminal_ansi_colors terminal.txt /*g:terminal_ansi_colors*
|
||||
g:tex_comment_nospell syntax.txt /*g:tex_comment_nospell*
|
||||
@@ -7351,8 +7376,10 @@ getcharmod() builtin.txt /*getcharmod()*
|
||||
getcharpos() builtin.txt /*getcharpos()*
|
||||
getcharsearch() builtin.txt /*getcharsearch()*
|
||||
getcharstr() builtin.txt /*getcharstr()*
|
||||
getcmdcompltype() builtin.txt /*getcmdcompltype()*
|
||||
getcmdline() builtin.txt /*getcmdline()*
|
||||
getcmdpos() builtin.txt /*getcmdpos()*
|
||||
getcmdscreenpos() builtin.txt /*getcmdscreenpos()*
|
||||
getcmdtype() builtin.txt /*getcmdtype()*
|
||||
getcmdwintype() builtin.txt /*getcmdwintype()*
|
||||
getcompletion() builtin.txt /*getcompletion()*
|
||||
@@ -7912,6 +7939,7 @@ interfaces-5.2 version5.txt /*interfaces-5.2*
|
||||
internal-variables eval.txt /*internal-variables*
|
||||
internal-wordlist spell.txt /*internal-wordlist*
|
||||
internet intro.txt /*internet*
|
||||
interp-string eval.txt /*interp-string*
|
||||
interrupt() builtin.txt /*interrupt()*
|
||||
intro intro.txt /*intro*
|
||||
intro.txt intro.txt /*intro.txt*
|
||||
@@ -7920,6 +7948,7 @@ invert() builtin.txt /*invert()*
|
||||
ip motion.txt /*ip*
|
||||
iquote motion.txt /*iquote*
|
||||
is motion.txt /*is*
|
||||
isabsolutepath() builtin.txt /*isabsolutepath()*
|
||||
isdirectory() builtin.txt /*isdirectory()*
|
||||
isinf() builtin.txt /*isinf()*
|
||||
islocked() builtin.txt /*islocked()*
|
||||
@@ -8020,6 +8049,7 @@ lcs-conceal options.txt /*lcs-conceal*
|
||||
lcs-eol options.txt /*lcs-eol*
|
||||
lcs-extends options.txt /*lcs-extends*
|
||||
lcs-lead options.txt /*lcs-lead*
|
||||
lcs-leadmultispace options.txt /*lcs-leadmultispace*
|
||||
lcs-multispace options.txt /*lcs-multispace*
|
||||
lcs-nbsp options.txt /*lcs-nbsp*
|
||||
lcs-precedes options.txt /*lcs-precedes*
|
||||
@@ -8160,6 +8190,7 @@ map-self-destroy tips.txt /*map-self-destroy*
|
||||
map-space_in_lhs map.txt /*map-space_in_lhs*
|
||||
map-space_in_rhs map.txt /*map-space_in_rhs*
|
||||
map-table map.txt /*map-table*
|
||||
map-trailing-white map.txt /*map-trailing-white*
|
||||
map-typing map.txt /*map-typing*
|
||||
map-which-keys map.txt /*map-which-keys*
|
||||
map.txt map.txt /*map.txt*
|
||||
@@ -8849,8 +8880,8 @@ plaintex.vim syntax.txt /*plaintex.vim*
|
||||
plsql ft_sql.txt /*plsql*
|
||||
plugin usr_05.txt /*plugin*
|
||||
plugin-details filetype.txt /*plugin-details*
|
||||
plugin-filetype usr_41.txt /*plugin-filetype*
|
||||
plugin-special usr_41.txt /*plugin-special*
|
||||
plugin-filetype usr_51.txt /*plugin-filetype*
|
||||
plugin-special usr_51.txt /*plugin-special*
|
||||
plugin_name.txt helphelp.txt /*plugin_name.txt*
|
||||
pmbcs-option print.txt /*pmbcs-option*
|
||||
pmbfn-option print.txt /*pmbfn-option*
|
||||
@@ -9398,7 +9429,7 @@ sound_playevent() builtin.txt /*sound_playevent()*
|
||||
sound_playfile() builtin.txt /*sound_playfile()*
|
||||
sound_stop() builtin.txt /*sound_stop()*
|
||||
soundfold() builtin.txt /*soundfold()*
|
||||
source-vim9-script usr_46.txt /*source-vim9-script*
|
||||
source-vim9-script usr_52.txt /*source-vim9-script*
|
||||
space intro.txt /*space*
|
||||
spec-customizing pi_spec.txt /*spec-customizing*
|
||||
spec-how-to-use-it pi_spec.txt /*spec-how-to-use-it*
|
||||
@@ -10160,8 +10191,8 @@ type-casting vim9.txt /*type-casting*
|
||||
type-checking vim9.txt /*type-checking*
|
||||
type-inference vim9.txt /*type-inference*
|
||||
type-mistakes tips.txt /*type-mistakes*
|
||||
typecorrect-settings usr_41.txt /*typecorrect-settings*
|
||||
typecorrect.txt usr_41.txt /*typecorrect.txt*
|
||||
typecorrect-settings usr_51.txt /*typecorrect-settings*
|
||||
typecorrect.txt usr_51.txt /*typecorrect.txt*
|
||||
typename() builtin.txt /*typename()*
|
||||
u undo.txt /*u*
|
||||
uganda uganda.txt /*uganda*
|
||||
@@ -10171,6 +10202,7 @@ underline syntax.txt /*underline*
|
||||
undo undo.txt /*undo*
|
||||
undo-blocks undo.txt /*undo-blocks*
|
||||
undo-branches undo.txt /*undo-branches*
|
||||
undo-break undo.txt /*undo-break*
|
||||
undo-commands undo.txt /*undo-commands*
|
||||
undo-persistence undo.txt /*undo-persistence*
|
||||
undo-redo undo.txt /*undo-redo*
|
||||
@@ -10178,8 +10210,8 @@ undo-remarks undo.txt /*undo-remarks*
|
||||
undo-tree undo.txt /*undo-tree*
|
||||
undo-two-ways undo.txt /*undo-two-ways*
|
||||
undo.txt undo.txt /*undo.txt*
|
||||
undo_ftplugin usr_41.txt /*undo_ftplugin*
|
||||
undo_indent usr_41.txt /*undo_indent*
|
||||
undo_ftplugin usr_51.txt /*undo_ftplugin*
|
||||
undo_indent usr_51.txt /*undo_indent*
|
||||
undofile() builtin.txt /*undofile()*
|
||||
undotree() builtin.txt /*undotree()*
|
||||
unicode mbyte.txt /*unicode*
|
||||
@@ -10189,7 +10221,6 @@ unlisted-buffer windows.txt /*unlisted-buffer*
|
||||
up-down-motions motion.txt /*up-down-motions*
|
||||
uppercase change.txt /*uppercase*
|
||||
urxvt-mouse options.txt /*urxvt-mouse*
|
||||
use-cpo-save usr_41.txt /*use-cpo-save*
|
||||
use-visual-cmds version4.txt /*use-visual-cmds*
|
||||
useful-mappings tips.txt /*useful-mappings*
|
||||
usenet intro.txt /*usenet*
|
||||
@@ -10197,7 +10228,7 @@ user-cmd-ambiguous map.txt /*user-cmd-ambiguous*
|
||||
user-commands map.txt /*user-commands*
|
||||
user-functions eval.txt /*user-functions*
|
||||
user-manual usr_toc.txt /*user-manual*
|
||||
using-<Plug> usr_41.txt /*using-<Plug>*
|
||||
using-<Plug> usr_51.txt /*using-<Plug>*
|
||||
using-menus gui.txt /*using-menus*
|
||||
using-scripts repeat.txt /*using-scripts*
|
||||
using-xxd tips.txt /*using-xxd*
|
||||
@@ -10233,7 +10264,9 @@ usr_42.txt usr_42.txt /*usr_42.txt*
|
||||
usr_43.txt usr_43.txt /*usr_43.txt*
|
||||
usr_44.txt usr_44.txt /*usr_44.txt*
|
||||
usr_45.txt usr_45.txt /*usr_45.txt*
|
||||
usr_46.txt usr_46.txt /*usr_46.txt*
|
||||
usr_50.txt usr_50.txt /*usr_50.txt*
|
||||
usr_51.txt usr_51.txt /*usr_51.txt*
|
||||
usr_52.txt usr_52.txt /*usr_52.txt*
|
||||
usr_90.txt usr_90.txt /*usr_90.txt*
|
||||
usr_toc.txt usr_toc.txt /*usr_toc.txt*
|
||||
utf-8 mbyte.txt /*utf-8*
|
||||
@@ -10559,7 +10592,7 @@ vim9-const vim9.txt /*vim9-const*
|
||||
vim9-curly vim9.txt /*vim9-curly*
|
||||
vim9-debug repeat.txt /*vim9-debug*
|
||||
vim9-declaration vim9.txt /*vim9-declaration*
|
||||
vim9-declarations usr_46.txt /*vim9-declarations*
|
||||
vim9-declarations usr_41.txt /*vim9-declarations*
|
||||
vim9-differences vim9.txt /*vim9-differences*
|
||||
vim9-export vim9.txt /*vim9-export*
|
||||
vim9-final vim9.txt /*vim9-final*
|
||||
@@ -10578,7 +10611,6 @@ vim9-rationale vim9.txt /*vim9-rationale*
|
||||
vim9-reload vim9.txt /*vim9-reload*
|
||||
vim9-s-namespace vim9.txt /*vim9-s-namespace*
|
||||
vim9-scopes vim9.txt /*vim9-scopes*
|
||||
vim9-script-intro usr_46.txt /*vim9-script-intro*
|
||||
vim9-types vim9.txt /*vim9-types*
|
||||
vim9-unpack-ignore vim9.txt /*vim9-unpack-ignore*
|
||||
vim9-user-command vim9.txt /*vim9-user-command*
|
||||
@@ -10635,6 +10667,7 @@ vimscript-version eval.txt /*vimscript-version*
|
||||
vimscript-versions eval.txt /*vimscript-versions*
|
||||
vimtutor usr_01.txt /*vimtutor*
|
||||
virtcol() builtin.txt /*virtcol()*
|
||||
virtcol2col() builtin.txt /*virtcol2col()*
|
||||
visual-block visual.txt /*visual-block*
|
||||
visual-change visual.txt /*visual-change*
|
||||
visual-examples visual.txt /*visual-examples*
|
||||
@@ -10761,15 +10794,15 @@ workshop workshop.txt /*workshop*
|
||||
workshop-support workshop.txt /*workshop-support*
|
||||
workshop.txt workshop.txt /*workshop.txt*
|
||||
wrap-off intro.txt /*wrap-off*
|
||||
write-compiler-plugin usr_41.txt /*write-compiler-plugin*
|
||||
write-compiler-plugin usr_51.txt /*write-compiler-plugin*
|
||||
write-device editing.txt /*write-device*
|
||||
write-fail editing.txt /*write-fail*
|
||||
write-filetype-plugin usr_41.txt /*write-filetype-plugin*
|
||||
write-library-script usr_41.txt /*write-library-script*
|
||||
write-local-help usr_41.txt /*write-local-help*
|
||||
write-filetype-plugin usr_51.txt /*write-filetype-plugin*
|
||||
write-library-script usr_52.txt /*write-library-script*
|
||||
write-local-help usr_51.txt /*write-local-help*
|
||||
write-permissions editing.txt /*write-permissions*
|
||||
write-plugin usr_41.txt /*write-plugin*
|
||||
write-plugin-quickload usr_41.txt /*write-plugin-quickload*
|
||||
write-plugin usr_51.txt /*write-plugin*
|
||||
write-plugin-quickload usr_52.txt /*write-plugin-quickload*
|
||||
write-quit editing.txt /*write-quit*
|
||||
write-readonly editing.txt /*write-readonly*
|
||||
writefile() builtin.txt /*writefile()*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*terminal.txt* For Vim version 8.2. Last change: 2022 Apr 06
|
||||
*terminal.txt* For Vim version 8.2. Last change: 2022 Jun 09
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -101,7 +101,7 @@ The special key combination CTRL-\ CTRL-N can be used to switch to Normal
|
||||
mode, just like this works in any other mode.
|
||||
*t_CTRL-W_CTRL-C*
|
||||
CTRL-W CTRL-C can be typed to forcefully end the job. On MS-Windows a
|
||||
CTRL-BREAK will also kill the job.
|
||||
CTRL-Break will also kill the job.
|
||||
|
||||
If you type CTRL-C the effect depends on what the pty has been configured to
|
||||
do. For simple commands this causes a SIGINT to be sent to the job, which
|
||||
@@ -1367,7 +1367,7 @@ Four autocommands can be used: >
|
||||
*TermdebugStartPre*
|
||||
TermdebugStartPre Before starting debugging.
|
||||
Not triggered if the debugger is already
|
||||
running or |g:termdebugger| cannot be
|
||||
running or the debugger command cannot be
|
||||
executed.
|
||||
*TermdebugStartPost*
|
||||
TermdebugStartPost After debugging has initialized.
|
||||
@@ -1398,18 +1398,24 @@ in a buffer with 'buftype' set to "prompt". This works slightly differently:
|
||||
|
||||
*termdebug_use_prompt*
|
||||
Prompt mode can be used even when the |+terminal| feature is present with: >
|
||||
let g:termdebug_config['use_prompt'] = 1
|
||||
Or if there is no g:termdebug_config: >
|
||||
let g:termdebug_use_prompt = 1
|
||||
<
|
||||
*termdebug_map_K*
|
||||
The K key is normally mapped to :Evaluate. If you do not want this use: >
|
||||
let g:termdebug_config['map_K'] = 0
|
||||
Or if there is no g:termdebug_config: >
|
||||
let g:termdebug_map_K = 0
|
||||
|
||||
<
|
||||
*termdebug_disasm_window*
|
||||
If you want the Asm window shown by default, set this to 1. Setting to
|
||||
any value greater than 1 will set the Asm window height to that value: >
|
||||
If you want the Asm window shown by default, set the flag to 1.
|
||||
the "disasm_window_height" entry can be used to set the window height: >
|
||||
let g:termdebug_config['disasm_window'] = 1
|
||||
let g:termdebug_config['disasm_window_height'] = 15
|
||||
or, if there is no g:termdebug_config: >
|
||||
let g:termdebug_disasm_window = 15
|
||||
<
|
||||
Any value greater than 1 will set the Asm window height to that value: >
|
||||
|
||||
Communication ~
|
||||
*termdebug-communication*
|
||||
@@ -1426,15 +1432,36 @@ communication channel.
|
||||
|
||||
|
||||
Customizing ~
|
||||
*termdebug-customizing* *g:termdebug_config*
|
||||
In the past several global variables were used for configuration. These are
|
||||
deprecated, using the g:termdebug_config dictionary is preferred. When
|
||||
g:termdebug_config exists the other global variables will not be used.
|
||||
|
||||
GDB command *termdebug-customizing*
|
||||
|
||||
GDB command ~
|
||||
*g:termdebugger*
|
||||
To change the name of the gdb command, set the "g:termdebugger" variable before
|
||||
invoking `:Termdebug`: >
|
||||
To change the name of the gdb command, set "debugger" entry in
|
||||
g:termdebug_config or the "g:termdebugger" variable before invoking
|
||||
`:Termdebug`: >
|
||||
let g:termdebug_config['command'] = "mygdb"
|
||||
Or if there is no g:termdebug_config: >
|
||||
let g:termdebugger = "mygdb"
|
||||
|
||||
If the command needs an argument use a List: >
|
||||
let g:termdebug_config['command'] = ['rr', 'replay', '--']
|
||||
Or if there is no g:termdebug_config: >
|
||||
let g:termdebugger = ['rr', 'replay', '--']
|
||||
< *gdb-version*
|
||||
|
||||
Several arguments will be added to make gdb work well for the debugger.
|
||||
If you want to modify them, add a function to filter the argument list: >
|
||||
let g:termdebug_config['command_filter'] = MyDebugFilter
|
||||
|
||||
If you do not want the arguments to be added, but you do need to set the
|
||||
"pty", use a function to add the necessary arguments: >
|
||||
let g:termdebug_config['command_add_args'] = MyAddArguments
|
||||
The function will be called with the list of arguments so far, and a second
|
||||
argument that is the name of the pty.
|
||||
*gdb-version*
|
||||
Only debuggers fully compatible with gdb will work. Vim uses the GDB/MI
|
||||
interface. The "new-ui" command requires gdb version 7.12 or later. if you
|
||||
get this error:
|
||||
@@ -1442,8 +1469,8 @@ get this error:
|
||||
Then your gdb is too old.
|
||||
|
||||
|
||||
Colors *hl-debugPC* *hl-debugBreakpoint*
|
||||
|
||||
Colors~
|
||||
*hl-debugPC* *hl-debugBreakpoint*
|
||||
The color of the signs can be adjusted with these highlight groups:
|
||||
- debugPC the current position
|
||||
- debugBreakpoint a breakpoint
|
||||
@@ -1473,6 +1500,8 @@ these entries to the popup menu:
|
||||
Clear breakpoint `:Clear`
|
||||
Evaluate `:Evaluate`
|
||||
If you don't want this then disable it with: >
|
||||
let g:termdebug_config['popup'] = 0
|
||||
or if there is no g:termdebug_config: >
|
||||
let g:termdebug_popup = 0
|
||||
|
||||
|
||||
@@ -1480,15 +1509,17 @@ Vim window width *termdebug_wide*
|
||||
|
||||
To change the width of the Vim window when debugging starts and use a vertical
|
||||
split: >
|
||||
let g:termdebug_config['wide'] = 163
|
||||
Or if there is no g:termdebug_config: >
|
||||
let g:termdebug_wide = 163
|
||||
|
||||
This will set 'columns' to 163 when `:Termdebug` is used. The value is
|
||||
restored when quitting the debugger.
|
||||
|
||||
If g:termdebug_wide is set and 'columns' is already a greater value, then a
|
||||
If the wide value is set and 'columns' is already a greater value, then a
|
||||
vertical split will be used without modifying 'columns'.
|
||||
|
||||
Set g:termdebug_wide to 1 to use a vertical split without ever changing
|
||||
Set the wide value to 1 to use a vertical split without ever changing
|
||||
'columns'. This is useful when the terminal can't be resized by Vim.
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*testing.txt* For Vim version 8.2. Last change: 2022 Apr 03
|
||||
*testing.txt* For Vim version 8.2. Last change: 2022 May 16
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -154,9 +154,12 @@ test_gui_event({event}, {args})
|
||||
move: Optional; if used and TRUE then a mouse move
|
||||
event can be generated.
|
||||
Only {args} row: and col: are used and
|
||||
required; they are interpreted as pixels.
|
||||
required; they are interpreted as pixels or
|
||||
screen cells, depending on "cell".
|
||||
Only results in an event when 'mousemoveevent'
|
||||
is set or a popup uses mouse move events.
|
||||
cell: Optional: when present and TRUE then "move"
|
||||
uses screen cells instead of pixel positions
|
||||
|
||||
"scrollbar":
|
||||
Set or drag the left, right or horizontal scrollbar. Only
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 8.2. Last change: 2022 Apr 27
|
||||
*todo.txt* For Vim version 8.2. Last change: 2022 Jun 12
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -38,14 +38,15 @@ browser use: https://github.com/vim/vim/issues/1234
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
Once Vim9 is stable:
|
||||
searchpair() must call function to set timeout, not pass the time limit down
|
||||
(and set it many times). #10562
|
||||
|
||||
Prepare for Vim 9.0 release:
|
||||
- Update the user manual:
|
||||
- Add more to usr_50.txt as an "advanced section" of usr_41.txt
|
||||
- Move some from vim9.txt to the user manual? Keep the specification.
|
||||
- Use Vim9 for more runtime files.
|
||||
- Check code coverage, add more tests if needed.
|
||||
vim9execute.c line 3500
|
||||
vim9expr.c
|
||||
vim9instr.c
|
||||
vim9script.c
|
||||
vim9type.c
|
||||
- Make popup-examples use Vim9 script Issue #10499
|
||||
- Adjust intro message to say "help version9".
|
||||
|
||||
Further Vim9 improvements, possibly after launch:
|
||||
@@ -63,8 +64,6 @@ Further Vim9 improvements, possibly after launch:
|
||||
evaluation.
|
||||
Use the location where the option was set for deciding whether it's to be
|
||||
evaluated in Vim9 script context.
|
||||
- Implement "import lazy" - like autoload but with a relative or absolute
|
||||
path. #9595
|
||||
- implement :type
|
||||
- implement :enum
|
||||
- implement :class and :interface: See |vim9-classes|
|
||||
@@ -85,10 +84,10 @@ Update list of features to vote on:
|
||||
|
||||
Popup windows:
|
||||
- Preview popup not properly updated when it overlaps with completion menu.
|
||||
(Yegappan Lakshmanan, 2021 May 22
|
||||
(Yegappan Lakshmanan, 2021 May 22)
|
||||
- Srollbar thumb sometimes not visible #10492
|
||||
- Add a function to redraw a specific popup window. Esp. to be used when
|
||||
editing the command line, when screen updating doesn't happen. (Shougo)
|
||||
- In some cases prop_remove() does not work correctly. (#8261)
|
||||
- Add a flag to make a popup window focusable?
|
||||
CTRL-W P cycle over any preview window or focusable popup, end up back in
|
||||
current window.
|
||||
@@ -125,13 +124,13 @@ Text properties:
|
||||
where property fits in.
|
||||
Or Should we let the textprop highlight overrule other (e.g. diff) highlight
|
||||
if the priority is above a certain value? (#7392)
|
||||
- Popup attached to text property stays visible when text is deleted with
|
||||
"cc". (#7737) "C" works OK. "dd" also files in a buffer with a single
|
||||
line.
|
||||
- Auto-indenting may cause highlighting to shift. (#7719)
|
||||
- "cc" does not call inserted_bytes(). (Axel Forsman, #5763)
|
||||
- Combining text property with 'cursorline' does not always work (Billie
|
||||
Combining text property with 'cursorline' does not always work (Billie
|
||||
Cleek, #5533)
|
||||
- "C" works OK. "dd" fails to delete text property in a buffer with a single
|
||||
line.
|
||||
- Add text property that shifts text to make room for annotation (e.g.
|
||||
variable type). Like the opposite of conceal. Requires fixing the cursor
|
||||
positioning and mouse clicks as with conceal mode.
|
||||
- See remarks at top of src/textprop.c
|
||||
|
||||
'incsearch' with :s:
|
||||
@@ -149,9 +148,13 @@ Prompt buffer:
|
||||
- add prompt_addtext({buf}, {expr}) none add text to a prompt buffer
|
||||
|
||||
Terminal debugger:
|
||||
- Add a mechanism for configuration. Instead of several global variables use
|
||||
a dictionary. Use callbacks for some things, e.g. opening a debug window in
|
||||
a certain position.
|
||||
- Make prompt-buffer variant work better.
|
||||
- Add option to not open the program window. It's not used when attaching to
|
||||
an already running program. (M. Kelly)
|
||||
- Use the optional token on requests, match the result with it. #10300
|
||||
- When only gdb window exists, on "quit" edit another buffer.
|
||||
- Termdebug does not work when Vim was built with mzscheme: gdb hangs just
|
||||
after "run". Everything else works, including communication channel. Not
|
||||
@@ -203,11 +206,14 @@ Terminal emulator window:
|
||||
- When 'encoding' is not utf-8, or the job is using another encoding, setup
|
||||
conversions.
|
||||
|
||||
Add autocmd functions. PR #10291
|
||||
Autoconf: must use autoconf 2.69, later version generates lots of warnings
|
||||
attempt in ~/tmp/configure.ac
|
||||
- try using autoconf 2.71 and fix all "obsolete" warnings
|
||||
|
||||
Can deref_func_name() and deref_function_name() be merged?
|
||||
|
||||
Some prompts are not translated: #9495
|
||||
After patch 8.2.4915 w_botline is computed much more often. Can this be
|
||||
reduced?
|
||||
|
||||
NFA regexp does not handle composing characters well: #10286
|
||||
[ɔ̃] matches both ɔ and ɔ̃
|
||||
@@ -217,17 +223,9 @@ Improvement in terminal configuration mess: Request the terminfo entry from
|
||||
the terminal itself. The $TERM value then is only relevant for whether this
|
||||
feature is supported or not. Replaces the xterm mechanism to request each
|
||||
entry separately. #6609
|
||||
Multiplexers (screen, tmux) can request it to the underlaying terminal, and
|
||||
Multiplexers (screen, tmux) can request it to the underlying terminal, and
|
||||
pass it on with modifications.
|
||||
|
||||
Test_communicate_ipv6(): is flaky on many systems
|
||||
Fails in line 64 of Ch_communicate, no exception is thrown.
|
||||
|
||||
Patch for Template string: #4634
|
||||
Have another look at the implementation.
|
||||
|
||||
Rename getdigraphlist -> digraph_getlist() etc.
|
||||
|
||||
Can "CSI nr X" be used instead of outputting spaces? Is it faster? #8002
|
||||
|
||||
Valgrind reports memory leaks in test_options.
|
||||
@@ -250,7 +248,8 @@ Memory leaks in test_channel? (or is it because of fork())
|
||||
|
||||
PR to support %e and %k in 'errorformat'. #9624
|
||||
|
||||
PR to add left and right bitwise shift. #8457
|
||||
With a window height of 6 and 'scrolloff' set to 3, using "j" does not scroll
|
||||
evenly. (#10545)
|
||||
|
||||
Idea: when typing ":e /some/dir/" and "dir" does not exist, highlight in red.
|
||||
|
||||
@@ -271,8 +270,6 @@ Add support for "underdouble", "underdot" and "underdash". #9553
|
||||
|
||||
test_arglist func Test_all_not_allowed_from_cmdwin() hangs on MS-Windows.
|
||||
|
||||
Mapping with partial match not executed properly in GTK. (Ingo Karkat, #7082)
|
||||
|
||||
Information for a specific terminal (e.g. gnome, tmux, konsole, alacritty) is
|
||||
spread out. Make a section with copy/paste examples of script and pointers to
|
||||
more information.
|
||||
@@ -289,6 +286,8 @@ Request to use "." for the cursor column in search pattern \%<.c and \%<.v.
|
||||
|
||||
":filter set termcap" only filters terminal codes, not keys. (#9297)
|
||||
|
||||
Add an option to restrict 'incsearch' to not scroll the view. (Tavis Ormandy)
|
||||
|
||||
Remove SPACE_IN_FILENAME ? It is only used for completion.
|
||||
|
||||
When 'term' starts with "foot" then default t_TI and t_TE to the values used
|
||||
@@ -311,11 +310,10 @@ to tell which value from getvvcol() should be used. (#7964)
|
||||
Value returned by virtcol() changes depending on how lines wrap. This is
|
||||
inconsistent with the documentation.
|
||||
|
||||
Making breakat support multibyte characters (Yasuhiro Matsumoto, #6598)
|
||||
Scroll doesn't work correctly, why?
|
||||
|
||||
globpath() does not use 'wildignorecase' at all? (related to #8350)
|
||||
|
||||
Add a "--gui-dialog-file" argument, to be used in tests to avoid getting stuck.
|
||||
|
||||
Add 'termguiattr' option, use "gui=" attributes in the terminal? Would work
|
||||
with 'termguicolors'. #1740
|
||||
|
||||
@@ -328,6 +326,8 @@ Missing filetype test for bashrc, PKGBUILD, etc.
|
||||
Add an option to not fetch terminal codes in xterm, to avoid flicker when t_Co
|
||||
changes.
|
||||
|
||||
Add ??= operator, "a ??= b" works like "a = a ?? b". #10343
|
||||
|
||||
Add an option to start_timer() to return from the input loop with K_IGNORE.
|
||||
This is useful e.g. when a popup was created that disables mappings, we need
|
||||
to return from vgetc() to make this happen. #7011
|
||||
@@ -353,9 +353,6 @@ Should also work without any group:
|
||||
Should add a match/str/list/pos method that also returns the test and position
|
||||
of submatches. #8355
|
||||
|
||||
Syntax highlight for a region does not work with a "nextgroup" if the start
|
||||
match is empty. #8449
|
||||
|
||||
Check out PR #543 (Roland Puntaier).
|
||||
Patch for multibyte characters in langmap and applying a mapping on them.
|
||||
(Christian Brabandt, 2015 Jun 12, update July 25)
|
||||
@@ -478,9 +475,6 @@ Sound: support on Mac? Or does libcanberra work there?
|
||||
|
||||
Python 3.8 doesn't work. (Antonios Hadjigeorgalis, #5509)
|
||||
|
||||
The :syntax cchar value can only be a single character. It would be useful to
|
||||
support combining characters. (Charles Campbell) Also #4687
|
||||
|
||||
"--cleanFOO" does not result in an error. (#5537)
|
||||
|
||||
Output from assert_equalfile() doesn't give a hint about what's different.
|
||||
@@ -649,9 +643,6 @@ that Vim doesn't find the edited file in the buffer list, causing the
|
||||
ATTENTION message? (Tony Mechelynck, 2008 Dec 1)
|
||||
Also: swap files are in ~/tmp/ One has relative file name ".mozilla/...".
|
||||
|
||||
'foldcolumn' in modeline applied to wrong window when using a session. (Teemu
|
||||
Likonen, March 19)
|
||||
|
||||
When using a timer callback vgetc_busy is reset, allowing for using input().
|
||||
But in a channel callback this does not happen. We need to do something
|
||||
similar to check_due_timer(). Also see #3809.
|
||||
@@ -799,13 +790,6 @@ Compiler warning (geeknik, 2017 Oct 26):
|
||||
Add Native language protocol server (LSP) support. (Yegappan Lakshmanan, 2018
|
||||
Oct 28)
|
||||
|
||||
Add more testing of the GTK GUI.
|
||||
- gtk_test_widget_click() can be used to simulate a click in a widget.
|
||||
|
||||
Tests failing for "make testgui" with GTK:
|
||||
- Test_setbufvar_options()
|
||||
- Test_exit_callback_interval()
|
||||
|
||||
Patch to be able to use hex numbers with :digraph. (Lcd, 2015 Sep 6)
|
||||
Update Sep 7. Update by Christian Brabandt, 2015 Sep 8, 2016 Feb 1.
|
||||
Patch to be able to disable default digraphs (incomplete) (Eric Pruitt, 2018
|
||||
@@ -853,10 +837,6 @@ missing: --nofork, -A , -b, -h, etc.
|
||||
":au * * command" should not be allowed, only use * for event when listing or
|
||||
deleting autocmds, not when adding them.
|
||||
|
||||
With 'foldmethod' "indent" and appending an empty line, what follows isn't
|
||||
included in the existing fold. Deleting the empty line and undo fixes it.
|
||||
(Oleg Koshovetc, 2018 Jul 15, #3214)
|
||||
|
||||
Column number is wrong when using 'linebreak' and 'wrap'. (Keith Smiley, 2018
|
||||
Jan 15, #2555)
|
||||
|
||||
@@ -880,9 +860,6 @@ word is re-added to it. (Matej Cepl, 2018 Feb 6)
|
||||
|
||||
Fold at end of the buffer behaves inconsistently. (James McCoy, 2017 Oct 9)
|
||||
|
||||
With foldmethod=syntax and nofoldenable comment highlighting isn't removed.
|
||||
(Marcin Szewczyk, 2017 Apr 26)
|
||||
|
||||
Using 'wildignore' also applies to literally entered file name. Also with
|
||||
:drop (remote commands).
|
||||
|
||||
@@ -942,9 +919,6 @@ Patch to support hunspell. (Matej Cepl, Jan 2018, #2500) Based on older patch
|
||||
in #846)
|
||||
Doesn't work on Windows yet. Not ready to included, hard coded paths.
|
||||
|
||||
Win32 GUI: when running a fast timer, the cursor no longer blinks.
|
||||
Was reported: cursor blinks in terminal on widows with a timer. (xtal8, #2142)
|
||||
|
||||
When a timer is running and typing CTRL-R on the command line, it is not
|
||||
redrawn properly. (xtal8, 2017 Oct 23, #2241)
|
||||
|
||||
@@ -996,8 +970,6 @@ After using :noautocmd CursorMoved may still trigger. (Andy Stewart, 2017 Sep
|
||||
When bracketed paste is used, pasting at the ":append" prompt does not get the
|
||||
line breaks. (Ken Takata, 2017 Aug 22)
|
||||
|
||||
The ":move" command does not honor closed folds. (Ryan Lue, #2351)
|
||||
|
||||
Cannot copy modeless selection when cursor is inside it. (lkintact, #2300)
|
||||
|
||||
Test_writefile_fails_conversion failure on Solaris because if different iconv
|
||||
@@ -1109,10 +1081,6 @@ Suggestion to improve pt-br spell checking. (Marcelo D Montu, 2016 Dec 15,
|
||||
|
||||
Error in test_startup_utf8 on Solaris. (Danek Duvall, 2016 Aug 17)
|
||||
|
||||
GTK: When adding a timer from 'balloonexpr' it won't fire, because
|
||||
g_main_context_iteration() doesn't return. Need to trigger an event when the
|
||||
timer expires.
|
||||
|
||||
Rule to use "^" for statusline does not work if a space is defined with
|
||||
highlighting for both stl and stlnc. Patch by Ken Hamada (itchyny, 2016 Dec 11)
|
||||
|
||||
@@ -1512,8 +1480,6 @@ Result of systemlist() does not show whether text ended in line break.
|
||||
When in 'comments' "n:x" follows after three-part comment directly it repeats
|
||||
any one-character from the previous line. (Kartik Agaram, 2014 Sep 19)
|
||||
|
||||
Syntax highlighting slow (hangs) in SASS file. (Niek Bosch, 2013 Aug 21)
|
||||
|
||||
Adding "~" to 'cdpath' doesn't work for completion? (Davido, 2013 Aug 19)
|
||||
|
||||
Patch: Let rare word highlighting overrule good word highlighting.
|
||||
@@ -1528,11 +1494,6 @@ was already defined.
|
||||
|
||||
Patch for ordered dict. (Ozaki Kiichi, 2015 May 7)
|
||||
|
||||
Patch to make closed folds line up. (Charles Campbell, 2014 Sep 12)
|
||||
Remark from Roland Eggner: does it cause crashes? (2014 Dec 12)
|
||||
Updated patch by Roland Eggner, Dec 16
|
||||
Updated patch from Charles, 2016 Jul 2
|
||||
|
||||
Patch for building a 32bit Vim with 64bit MingW compiler.
|
||||
(Michael Soyka, 2014 Oct 15)
|
||||
|
||||
@@ -1640,9 +1601,6 @@ Also see #2034.
|
||||
|
||||
Patch to define macros for hardcoded values. (Elias Diem, 2013 Dec 14)
|
||||
|
||||
Several syntax file match "^\s*" which may get underlined if that's in the
|
||||
highlight group. Add a "\zs" after it?
|
||||
|
||||
Updated spec ftplugin. (Matěj Cepl, 2013 Oct 16)
|
||||
|
||||
Patch to handle integer overflow. (Aaron Burrow, 2013 Dec 12)
|
||||
@@ -1664,9 +1622,6 @@ When evaluating expression in backticks, autoload doesn't work.
|
||||
Using <nr>ifoobar<esc> can slow down Vim. Patch by Christian Brabandt, 2013
|
||||
Dec 13. Only helps a bit, 10000ii<Esc> is still too slow.
|
||||
|
||||
GTK: problem with 'L' in 'guioptions' changing the window width.
|
||||
(Aaron Cornelius, 2012 Feb 6)
|
||||
|
||||
Javascript file where indent gets stuck on: GalaxyMaster, 2012 May 3.
|
||||
|
||||
The BufUnload event is triggered when re-using the empty buffer.
|
||||
@@ -1692,9 +1647,6 @@ Patch to fix that 'cedit' is recognized after :normal. (Christian Brabandt,
|
||||
|
||||
Patch to view coverage of the tests. (Nazri Ramliy, 2013 Feb 15)
|
||||
|
||||
Patch to invert characters differently in GTK. (Yukihiro Nakadaira, 2013 May
|
||||
5)
|
||||
|
||||
Patch to add "Q" and "A" responses to interactive :substitute. They are
|
||||
carried over when using :global. (Christian Brabandt, 2013 Jun 19)
|
||||
|
||||
@@ -1708,21 +1660,12 @@ Patch to support 'u' in interactive substitute. (Christian Brabandt, 2012 Sep
|
||||
|
||||
Dialog is too big on Linux too. (David Fishburn, 2013 Sep 2)
|
||||
|
||||
Patch to make fold updates much faster. (Christian Brabandt, 2012 Dec)
|
||||
|
||||
- Add regex for 'paragraphs' and 'sections': 'parare' and 'sectre'. Combine
|
||||
the two into a regex for searching. (Ned Konz)
|
||||
Patch by Christian Brabandt, 2013 Apr 20, unfinished.
|
||||
|
||||
Bug: findfile("any", "file:///tmp;") does not work.
|
||||
|
||||
patch to add "combine" flag to syntax commands. (so8res, 2012 Dec 6)
|
||||
Patch to add "combine" to :syntax, combines highlight attributes. (Nate
|
||||
Soares, 2012 Dec 3)
|
||||
|
||||
Syntax update problem in one buffer opened in two windows, bottom window is
|
||||
not correctly updated. (Paul Harris, 2012 Feb 27)
|
||||
|
||||
Patch to add getsid(). (Tyru, 2011 Oct 2) Do we want this? Update Oct 4.
|
||||
Or use expand('<sid>')?
|
||||
|
||||
@@ -1773,10 +1716,6 @@ URXVT:
|
||||
- Use urxvt mouse support also in xterm. Explanations:
|
||||
http://www.midnight-commander.org/ticket/2662
|
||||
|
||||
Patch to have the fold and sign column and at the last line of the buffer.
|
||||
(Marco Hinz, 2014 Sep 25)
|
||||
Alternate suggestion: let all columns continue, also the number column.
|
||||
|
||||
Patch to add tests for if_xcmdsrv.c., Jul 8, need some more work. (Brian Burns)
|
||||
New tests Jul 13. Update Jul 17. Discussion Jul 18.
|
||||
|
||||
@@ -1830,10 +1769,6 @@ On MS-Windows a temp dir with a & init causes system() to fail. (Ben Fritz,
|
||||
Patch 7.3.116 was the wrong solution.
|
||||
Christian Brabandt has another incomplete patch. (2011 Jul 13)
|
||||
|
||||
Syntax region with 'concealends' and a 'cchar' value, 'conceallevel' set to 2,
|
||||
only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug
|
||||
21, Ben Fritz, 2010 Sep 14)
|
||||
|
||||
Win32: Patch to use task dialogs when available. (Sergiu Dotenco, 2011 Sep 17)
|
||||
New feature, requires testing. Made some remarks.
|
||||
|
||||
@@ -1895,18 +1830,12 @@ the help file.
|
||||
After patch 7.3.097 still get E15. (Yukihiro Nakadaira, 2011 Jan 18)
|
||||
Also for another example (ZyX, 2011 Jan 24)
|
||||
|
||||
Build problem with small features on Mac OS X 10.6. (Rainer, 2011 Jan 24)
|
||||
|
||||
"0g@$" puts '] on last byte of multibyte. (ZyX, 2011 Jan 22)
|
||||
|
||||
Patch for :tabrecently. (Hirokazu Yoshida, 2012 Jan 30)
|
||||
|
||||
Problem with "syn sync grouphere". (Gustavo Niemeyer, 2011 Jan 27)
|
||||
|
||||
Using "syn sync breaklines=2" works for when text is changed, but not when
|
||||
scrolling or redrawing. Should start search for syntax patterns above the
|
||||
first drawn line. (#8103)
|
||||
|
||||
Loading autoload script even when usage is inside "if 0". (Christian Brabandt,
|
||||
2010 Dec 18)
|
||||
|
||||
@@ -1939,19 +1868,12 @@ In the sandbox it's not allowed to do many things, but it's possible to change
|
||||
or set variables. Add a way to prevent variables from being changed in the
|
||||
sandbox? E.g.: ":protect g:restore_settings".
|
||||
|
||||
GTK: drawing a double-width combining character over single-width characters
|
||||
doesn't look right. (Dominique Pelle, 2010 Aug 8)
|
||||
|
||||
GTK: tear-off menu does not work. (Kurt Sonnenmoser, 2010 Oct 25)
|
||||
|
||||
Win32: tear-off menu does not work when menu language is German. (Markus
|
||||
Bossler, 2011 Mar 2) Fixed by 7.3.095?
|
||||
|
||||
Wish for NetBeans commands:
|
||||
- make it possible to have 'defineAnnoType' also handle terminal colors.
|
||||
|
||||
Version of netbeans.c for use with MacVim. (Kazuki Sakamoto, 2010 Nov 18)
|
||||
|
||||
7.3.014 changed how backslash at end of line works, but still get a NUL when
|
||||
there is one backslash. (Ray Frush, 2010 Nov 18) What does the original ex
|
||||
do?
|
||||
@@ -1977,9 +1899,6 @@ the command line. (Ingo Karkat, 2011 Jan 25)
|
||||
Since patch 7.2.46 Yankring plugin has become very slow, eventually make Vim
|
||||
crash? (Raiwil, 2010 Nov 17)
|
||||
|
||||
Patch to add FoldedLineNr highlighting: different highlighting for the line
|
||||
number of a closed fold. (eXerigumo Clanjor, 2013 Jul 15)
|
||||
|
||||
Regexp engine performance:
|
||||
- Profiling:
|
||||
./vim -u NONE -s ~/vim/test/ruby.vim
|
||||
@@ -2028,8 +1947,6 @@ C-indenting: A matching { in a comment is ignored, but intermediate { are not
|
||||
checked to be in a comment. Implement FM_SKIPCOMM flag of findmatchlimit().
|
||||
Issue 46.
|
||||
|
||||
Mac with X11: clipboard doesn't work properly. (Raf, 2010 Aug 16)
|
||||
|
||||
Using CompilerSet doesn't record where an option was set from. E.g., in the
|
||||
gcc compiler plugin. (Gary Johnson, 2010 Dec 13)
|
||||
|
||||
@@ -2091,9 +2008,6 @@ like it has ":keepjumps" before it.
|
||||
Coverity: Check if there are new reported defects:
|
||||
https://scan.coverity.com/projects/241
|
||||
|
||||
Patch to use 'foldnestmax' also for "marker" foldmethod. (Arnaud Lacombe, 2011
|
||||
Jan 7)
|
||||
|
||||
Problem with editing file in binary mode. (Ingo Krabbe, 2009 Oct 8)
|
||||
|
||||
Display error when 'tabline' that includes a file name with double-width
|
||||
@@ -2104,11 +2018,6 @@ Problem with stop directory in findfile(). (Adam Simpkins, 2009 Aug 26)
|
||||
Using ']' as the end of a range in a pattern requires double escaping:
|
||||
/[@-\\]] (Andy Wokula, 2011 Jun 28)
|
||||
|
||||
Syntax priority problem. (Charles Campbell, 2011 Sep 15)
|
||||
|
||||
When completion inserts the first match, it may trigger the line to be folded.
|
||||
Disable updating folds while completion is active? (Peter Odding, 2010 Jun 9)
|
||||
|
||||
For running gvim on a USB stick: avoid the OLE registration. Use a command
|
||||
line argument -noregister.
|
||||
|
||||
@@ -2164,8 +2073,6 @@ J. Wang, 2009 Mar 31)
|
||||
When $VIMRUNTIME is set in .vimrc, need to reload lang files. Already done
|
||||
for GTK, how about others? (Ron Aaron, 2010 Apr 10)
|
||||
|
||||
Patch for GTK buttons X1Mouse and X2Mouse. (Christian J. Robinson, 2010 Aug 9)
|
||||
|
||||
":tab split fname" doesn't set the alternate file in the original window,
|
||||
because win_valid() always returns FALSE. Below win_new_tabpage() in
|
||||
ex_docmd.c.
|
||||
@@ -2183,10 +2090,6 @@ Don't load macmap.vim on startup, turn it into a plugin. (Ron Aaron,
|
||||
|
||||
Add "no_hlsearch" to winsaveview().
|
||||
|
||||
When 'foldmethod' is "indent", adding an empty line below a fold and then
|
||||
indented text, creates a new fold instead of joining it with the previous one.
|
||||
(Evan Laforge, 2009 Oct 17)
|
||||
|
||||
Bug: When reloading a buffer changed outside of Vim, BufRead autocommands
|
||||
are applied to the wrong buffer/window. (Ben Fritz, 2009 Apr 2, May 11)
|
||||
Ignore window options when not in the right window?
|
||||
@@ -2203,9 +2106,6 @@ displayed in a window should return the value that's stored for that buffer.
|
||||
|
||||
Diff mode out of sync. (Gary Johnson, 2010 Aug 4)
|
||||
|
||||
Win32 GUI: last message from startup doesn't show up when there is an echoerr
|
||||
command. (Cyril Slobin, 2009 Mar 13)
|
||||
|
||||
Win32: completion of file name ":e c:\!test" results in ":e c:\\!test", which
|
||||
does not work. (Nieko Maatjes, 2009 Jan 8, Ingo Karkat, 2009 Jan 22)
|
||||
|
||||
@@ -2345,10 +2245,6 @@ Win32: Using "gvim --remote-tab-silent elŝuti.txt" doesn't work, the
|
||||
multibyte character isn't passed and edits elsuti.txt.
|
||||
(Raúl Núñez de Arenas Coronado, 2015 Dec 18)
|
||||
|
||||
Problem with 'langmap' being used on the rhs of a mapping. (Nikolai Weibull,
|
||||
2008 May 14)
|
||||
Possibly related problem: Alexey Muranov, 2015 Apr 2
|
||||
|
||||
Problem with CTRL-F. (Charles Campbell, 2008 March 21)
|
||||
Only happens with "gvim -geometry "160x26+4+27" -u NONE -U NONE prop.c".
|
||||
'lines' is 54. (2008 March 27)
|
||||
@@ -2375,21 +2271,6 @@ line doesn't fit. (Dasn, 2008 May 1)
|
||||
GUI: In Normal mode can't yank the modeless selection. Make "gy" do this?
|
||||
Works like CTRL-Y in Command line mode.
|
||||
|
||||
Mac: Move Carbon todo items to os_mac.txt. Note that this version is frozen,
|
||||
try the Cocoa version.
|
||||
|
||||
Mac: After a ":vsplit" the left scrollbar doesn't appear until 'columns' is
|
||||
changed or the window is resized.
|
||||
|
||||
GTK: when setting 'columns' in a startup script and doing ":vertical diffsplit"
|
||||
the window isn't redrawn properly, see two vertical bars.
|
||||
|
||||
Mac: Patch for configure: remove arch from ruby link args. (Knezevic, 2008
|
||||
Mar 5) Alternative: Kazuki Sakamoto, Mar 7.
|
||||
|
||||
Mac: trouble compiling with Motif, requires --disable-darwin. (Raf, 2008 Aug
|
||||
1) Reply by Ben Schmidt.
|
||||
|
||||
C't: On utf-8 system, editing file with umlaut through Gnome results in URL
|
||||
with %nn%nn, which is taken as two characters instead of one.
|
||||
Try to reproduce at work.
|
||||
@@ -2406,15 +2287,9 @@ Problem with 'ts' set to 9 and 'showbreak' to ">>>". (Matthew Winn, 2007 Oct
|
||||
":tab help" always opens a new tab, while ":help" re-uses an existing window.
|
||||
Would be more consistent when an existing tab is re-used. (Tony Mechelynck)
|
||||
|
||||
Add ":nofold". Range will apply without expanding to closed fold.
|
||||
|
||||
Using Aap to build Vim: add remarks about how to set personal preferences.
|
||||
Example on http://www.calmar.ws/tmp/aap.html
|
||||
|
||||
Syntax highlighting wrong for transparent region. (Doug Kearns, 2007 Feb 26)
|
||||
Bug in using a transparent syntax region. (Hanlen in vim-dev maillist, 2007
|
||||
Jul 31)
|
||||
|
||||
When 'diffopt' has "context:0" a single deleted line causes two folds to merge
|
||||
and mess up syncing. (Austin Jennings, 2008 Jan 31)
|
||||
|
||||
@@ -2623,8 +2498,6 @@ Jul 22)
|
||||
|
||||
There should be something about spell checking in the user manual.
|
||||
|
||||
Mac: Using gvim: netrw window disappears. (Nick Lo, 2006 Jun 21)
|
||||
|
||||
Add an option to specify the character to use when a double-width character is
|
||||
moved to the next line. Default '>', set to a space to blank it out. Check
|
||||
that char is single width when it's set (compare with 'listchars').
|
||||
@@ -2675,8 +2548,6 @@ Only skip shortening for ":cc"?
|
||||
Problem with ":call" and dictionary function. Hari Krishna Dara, Charles
|
||||
Campbell 2006 Jul 06.
|
||||
|
||||
Syntax HL error caused by "containedin". (Peter Hodge, 2006 Oct 6)
|
||||
|
||||
A custom completion function in a ":command" cannot be a Funcref. (Andy
|
||||
Wokula, 2007 Aug 25)
|
||||
|
||||
@@ -2709,18 +2580,9 @@ and <notisdir> to autocommand patterns? Also <isfile>?
|
||||
Add command modifier that skips wildcard expansion, so that you don't need to
|
||||
put backslashes before special chars, only for white space.
|
||||
|
||||
Syntax HL: open two windows on the same C code, delete a ")" in one window,
|
||||
resulting in highlighted "{" in that window, not in the other.
|
||||
|
||||
In mswin.vim: Instead of mapping <C-V> for Insert mode in a complicated way,
|
||||
can it be done like ":imap <C-V> <MiddleMouse>" without negative side effects?
|
||||
|
||||
GTK: when the Tab pages bar appears or disappears while the window is
|
||||
maximized the window is no longer maximized. Patch that has some idea but
|
||||
doesn't work from Geoffrey Antos, 2008 May 5.
|
||||
Also: the window may no longer fit on the screen, thus the command line is not
|
||||
visible.
|
||||
|
||||
When right after "vim file", "M" then CTRL-W v the windows are scrolled
|
||||
differently and unexpectedly. Caused by patch 7.2.398?
|
||||
|
||||
@@ -2749,9 +2611,6 @@ When completing from another file that uses a different encoding completion
|
||||
text has the wrong encoding. E.g., when 'encoding' is utf-8 and file is
|
||||
latin1. Example from Gombault Damien, 2007 Mar 24.
|
||||
|
||||
Syntax HL: When using "nextgroup" and the group has an empty match, there is
|
||||
no search at that position for another match. (Lukas Mai, 2008 April 11)
|
||||
|
||||
In gvim the backspace key produces a backspace character, but on Linux the
|
||||
VERASE key is Delete. Set VERASE to Backspace? (patch by Stephane Chazelas,
|
||||
2007 Oct 16)
|
||||
@@ -2772,9 +2631,6 @@ When switching between windows the cursor is often put in the middle.
|
||||
Remember the relative position and restore that, just like lnum and col are
|
||||
restored. (Luc St-Louis)
|
||||
|
||||
Patch to support horizontal scroll wheel in GTK. Untested. (Bjorn Winckler,
|
||||
2010 Jun 30)
|
||||
|
||||
Add an option for a minimal text length before inserting a line break for
|
||||
'textwidth'. Avoids very short lines when a very long word follows.
|
||||
(Kartik Agaram)
|
||||
@@ -3013,7 +2869,7 @@ Vi incompatibility:
|
||||
thing. (only repeat insert for the first line).
|
||||
|
||||
|
||||
GTK+ GUI known bugs:
|
||||
GTK+ GUI:
|
||||
9 Crash with X command server over ssh. (Ciaran McCreesh, 2006 Feb 6)
|
||||
8 GTK 2: Combining UTF-8 characters not displayed properly in menus (Mikolaj
|
||||
Machowski) They are displayed as separate characters. Problem in
|
||||
@@ -3028,6 +2884,33 @@ GTK+ GUI known bugs:
|
||||
- Gnome2: When moving the toolbar out of the dock, so that it becomes
|
||||
floating, it can no longer be moved. Therefore making it float has been
|
||||
blocked for now.
|
||||
- Mapping with partial match not executed properly in GTK. (Ingo Karkat,
|
||||
#7082)
|
||||
- Add more testing of the GTK GUI.
|
||||
- gtk_test_widget_click() can be used to simulate a click in a widget.
|
||||
- Tests failing for "make testgui" with GTK:
|
||||
- Test_setbufvar_options()
|
||||
- Test_exit_callback_interval()
|
||||
- When adding a timer from 'balloonexpr' it won't fire, because
|
||||
g_main_context_iteration() doesn't return. Need to trigger an event when
|
||||
the timer expires.
|
||||
- problem with 'L' in 'guioptions' changing the window width. (Aaron
|
||||
Cornelius, 2012 Feb 6)
|
||||
- Patch to invert characters differently in GTK. (Yukihiro Nakadaira, 2013
|
||||
May 5)
|
||||
- drawing a double-width combining character over single-width characters
|
||||
doesn't look right. (Dominique Pelle, 2010 Aug 8)
|
||||
- tear-off menu does not work. (Kurt Sonnenmoser, 2010 Oct 25)
|
||||
- Patch for GTK buttons X1Mouse and X2Mouse. (Christian J. Robinson, 2010
|
||||
Aug 9)
|
||||
- When setting 'columns' in a startup script and doing ":vertical diffsplit"
|
||||
the window isn't redrawn properly, see two vertical bars.
|
||||
- when the Tab pages bar appears or disappears while the window is maximized
|
||||
the window is no longer maximized. Patch that has some idea but doesn't
|
||||
work from Geoffrey Antos, 2008 May 5. Also: the window may no longer fit
|
||||
on the screen, thus the command line is not visible.
|
||||
- Patch to support horizontal scroll wheel in GTK. Untested. (Bjorn
|
||||
Winckler, 2010 Jun 30)
|
||||
|
||||
|
||||
Win32 GUI known bugs:
|
||||
@@ -3093,6 +2976,10 @@ Win32 GUI known bugs:
|
||||
still be used somewhere. This is too tricky, do the font selection first,
|
||||
then set the new font by name (requires putting all logfont parameters in
|
||||
the font name).
|
||||
- When running a fast timer, the cursor no longer blinks. Was reported:
|
||||
cursor blinks in terminal on widows with a timer. (xtal8, #2142)
|
||||
- Last message from startup doesn't show up when there is an echoerr
|
||||
command. (Cyril Slobin, 2009 Mar 13)
|
||||
|
||||
|
||||
Motif:
|
||||
@@ -3273,6 +3160,18 @@ Macintosh:
|
||||
9 When DiskLock is running, using a swap file causes a crash. Appears to be
|
||||
a problem with writing a file that starts with a dot. (Giacalone)
|
||||
9 In mac_expandpath() check that handling of backslashes is done properly.
|
||||
- Build problem with small features on Mac OS X 10.6. (Rainer, 2011 Jan 24)
|
||||
- Version of netbeans.c for use with MacVim. (Kazuki Sakamoto, 2010 Nov 18)
|
||||
- Mac with X11: clipboard doesn't work properly. (Raf, 2010 Aug 16)
|
||||
- Move Carbon todo items to os_mac.txt. Note that this version is frozen,
|
||||
try the Cocoa version.
|
||||
- After a ":vsplit" the left scrollbar doesn't appear until 'columns' is
|
||||
changed or the window is resized.
|
||||
- Patch for configure: remove arch from ruby link args. (Knezevic, 2008 Mar
|
||||
5) Alternative: Kazuki Sakamoto, Mar 7.
|
||||
- trouble compiling with Motif, requires --disable-darwin. (Raf, 2008 Aug 1)
|
||||
Reply by Ben Schmidt.
|
||||
- Using gvim: netrw window disappears. (Nick Lo, 2006 Jun 21)
|
||||
|
||||
|
||||
"Small" problems:
|
||||
@@ -3803,6 +3702,30 @@ Diff mode:
|
||||
Folding:
|
||||
(commands still available: zI zJ zK zp zP zq zQ zV zy zY;
|
||||
secondary: zB zS zT zZ, z=)
|
||||
- Patch to make closed folds line up. (Charles Campbell, 2014 Sep 12)
|
||||
Remark from Roland Eggner: does it cause crashes? (2014 Dec 12)
|
||||
Updated patch by Roland Eggner, Dec 16
|
||||
Updated patch from Charles, 2016 Jul 2
|
||||
- Patch to make fold updates much faster. (Christian Brabandt, 2012 Dec)
|
||||
- Patch to have the fold and sign column and at the last line of the buffer.
|
||||
(Marco Hinz, 2014 Sep 25)
|
||||
Alternate suggestion: let all columns continue, also the number column.
|
||||
- Patch to add FoldedLineNr highlighting: different highlighting for the
|
||||
line number of a closed fold. (eXerigumo Clanjor, 2013 Jul 15)
|
||||
- Patch to use 'foldnestmax' also for "marker" foldmethod. (Arnaud Lacombe,
|
||||
2011 Jan 7)
|
||||
- 'foldcolumn' in modeline applied to wrong window when using a session.
|
||||
(Teemu Likonen, March 19)
|
||||
- With foldmethod=syntax and nofoldenable comment highlighting isn't
|
||||
removed. (Marcin Szewczyk, 2017 Apr 26)
|
||||
- The ":move" command does not honor closed folds. (Ryan Lue, #2351)
|
||||
- When completion inserts the first match, it may trigger the line to be
|
||||
folded. Disable updating folds while completion is active? (Peter Odding,
|
||||
2010 Jun 9)
|
||||
- When 'foldmethod' is "indent", adding an empty line below a fold and then
|
||||
indented text, creates a new fold instead of joining it with the previous
|
||||
one. (Evan Laforge, 2009 Oct 17)
|
||||
- Add ":nofold". Range will apply without expanding to closed fold.
|
||||
8 Vertical folds: looks like vertically split windows, but the cursor moves
|
||||
through the vertical separator, separator moves when scrolling.
|
||||
8 Add "z/" and "z?" for searching in not folded text only. Or use a regexp
|
||||
@@ -3906,6 +3829,8 @@ Multi-byte characters:
|
||||
table anymore (breakat_flags[]).
|
||||
Simplistic solution: when 'formatoptions' contains "m" also break a line
|
||||
at a multibyte character >= 0x100.
|
||||
Making breakat support multibyte characters (Yasuhiro Matsumoto, #6598)
|
||||
Scroll doesn't work correctly, why?
|
||||
- Add the possibility to enter mappings which are used whenever normal text
|
||||
could be entered. E.g., for "f" command. But not in Normal mode. Sort
|
||||
of opposite of 'langmap'. Use ":amap" command?
|
||||
@@ -3913,6 +3838,9 @@ Multi-byte characters:
|
||||
account. The "linebreak" program from Bruno Haible can do it:
|
||||
ftp://ftp.ilog.fr/pub/Users/haible/gnu/linebreak-0.1.tar.gz
|
||||
But it's very complicated...
|
||||
- Problem with 'langmap' being used on the rhs of a mapping. (Nikolai
|
||||
Weibull, 2008 May 14).
|
||||
Possibly related problem: Alexey Muranov, 2015 Apr 2
|
||||
|
||||
|
||||
Printing:
|
||||
@@ -3936,8 +3864,8 @@ Printing:
|
||||
|
||||
Syntax highlighting:
|
||||
Long term goal: faster, better, etc. Options:
|
||||
- use treesitter, NeoVim uses it
|
||||
- use TextMate, vscode uses it. #9087
|
||||
- use treesitter, NeoVim uses it - Many people don't like it.
|
||||
- use TextMate, vscode uses it. #9087 - possibly a long term solution
|
||||
8 Make ":syn off" use 'runtimepath' instead of $VIMRUNTIME. (Gary Johnson)
|
||||
Should do the same for ":syn on" and ":syn manual".
|
||||
8 Support "containedin" argument for ":syn include", so that the defined
|
||||
@@ -4086,6 +4014,34 @@ Syntax highlighting:
|
||||
text, exit at end of file, don't allow editing, etc. moreim? lessim?
|
||||
7 SpecialKey highlighting overrules syntax highlighting. Can't give an
|
||||
unprintable char another color. Would be useful for ^M at end of line.
|
||||
- Syntax highlight for a region does not work with a "nextgroup" if the
|
||||
start match is empty. #8449
|
||||
- The :syntax cchar value can only be a single character. It would be
|
||||
useful to support combining characters. (Charles Campbell) Also #4687
|
||||
- Syntax highlighting slow (hangs) in SASS file. (Niek Bosch, 2013 Aug 21)
|
||||
- Several syntax file match "^\s*" which may get underlined if that's in the
|
||||
highlight group. Add a "\zs" after it?
|
||||
- patch to add "combine" flag to syntax commands. (so8res, 2012 Dec 6)
|
||||
Patch to add "combine" to :syntax, combines highlight attributes. (Nate
|
||||
Soares, 2012 Dec 3)
|
||||
- Syntax update problem in one buffer opened in two windows, bottom window
|
||||
is not correctly updated. (Paul Harris, 2012 Feb 27)
|
||||
- Syntax region with 'concealends' and a 'cchar' value, 'conceallevel' set
|
||||
to 2, only one of the two ends gets the cchar displayed. (Brett Stahlman,
|
||||
2010 Aug 21, Ben Fritz, 2010 Sep 14)
|
||||
- Using "syn sync breaklines=2" works for when text is changed, but not when
|
||||
scrolling or redrawing. Should start search for syntax patterns above the
|
||||
first drawn line. (#8103)
|
||||
- Syntax priority problem. (Charles Campbell, 2011 Sep 15)
|
||||
- Syntax highlighting wrong for transparent region. (Doug Kearns, 2007 Feb
|
||||
26)
|
||||
- Bug in using a transparent syntax region. (Hanlen in vim-dev maillist,
|
||||
2007 Jul 31)
|
||||
- Syntax HL error caused by "containedin". (Peter Hodge, 2006 Oct 6)
|
||||
- Open two windows on the same C code, delete a ")" in one window, resulting
|
||||
in highlighted "{" in that window, not in the other.
|
||||
- When using "nextgroup" and the group has an empty match, there is no
|
||||
search at that position for another match. (Lukas Mai, 2008 April 11)
|
||||
|
||||
|
||||
Vim script language:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*undo.txt* For Vim version 8.2. Last change: 2020 Nov 30
|
||||
*undo.txt* For Vim version 8.2. Last change: 2022 Jun 02
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -105,12 +105,16 @@ change again. But you can do something like this: >
|
||||
|
||||
After this a "u" command will undo the delete command and the previous
|
||||
change.
|
||||
|
||||
*undo-break*
|
||||
To do the opposite, break a change into two undo blocks, in Insert mode use
|
||||
CTRL-G u. This is useful if you want an insert command to be undoable in
|
||||
parts. E.g., for each sentence. |i_CTRL-G_u|
|
||||
|
||||
Setting the value of 'undolevels' also breaks undo. Even when the new value
|
||||
is equal to the old value.
|
||||
is equal to the old value. In |Vim9| script: >
|
||||
&undolevels = &undolevels
|
||||
In legacy script: >
|
||||
let &undolevels = &undolevels
|
||||
|
||||
==============================================================================
|
||||
4. Undo branches *undo-branches* *undo-tree*
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
*usr_45.txt* For Vim version 8.2. Last change: 2020 Jun 11
|
||||
*usr_45.txt* For Vim version 8.2. Last change: 2022 May 13
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -15,7 +15,7 @@ in various languages is explained.
|
||||
|45.4| Editing files with a different encoding
|
||||
|45.5| Entering language text
|
||||
|
||||
Next chapter: |usr_46.txt| Write plugins using Vim9 script
|
||||
Next chapter: |usr_50.txt| Advanced Vim script writing
|
||||
Previous chapter: |usr_44.txt| Your own syntax highlighted
|
||||
Table of contents: |usr_toc.txt|
|
||||
|
||||
@@ -408,6 +408,6 @@ Don't type the spaces. See |i_CTRL-V_digit| for the details.
|
||||
|
||||
==============================================================================
|
||||
|
||||
Next chapter: |usr_46.txt| Write plugins using Vim9 script
|
||||
Next chapter: |usr_50.txt| Advanced Vim script writing
|
||||
|
||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
|
||||
@@ -1,192 +0,0 @@
|
||||
*usr_46.txt* For Vim version 8.2. Last change: 2020 Jun 14
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
Write plugins using Vim9 script
|
||||
|
||||
|
||||
The Vim9 script language is used for writing plugins, especially larger ones
|
||||
that use multiple files. This chapter explains how to split up a plugin into
|
||||
modules, import and export items and keep the rest local.
|
||||
|
||||
|46.1| Introduction
|
||||
|46.2| Variable declarations
|
||||
|46.3| Functions and types
|
||||
|46.?| Using a Vim9 script from legacy script
|
||||
|
||||
Next chapter: |usr_90.txt| Installing Vim
|
||||
Previous chapter: |usr_45.txt| Select your language (locale)
|
||||
Table of contents: |usr_toc.txt|
|
||||
|
||||
==============================================================================
|
||||
*46.1* Introduction *vim9-script-intro*
|
||||
|
||||
Vim9 script was designed to make it easier to write large Vim scripts. It
|
||||
looks more like other script languages, especially Typescript. Also,
|
||||
functions are compiled into instructions that can be executed quickly. This
|
||||
makes Vim9 script a lot faster, up to a 100 times.
|
||||
|
||||
The basic idea is that a script file has items that are private, only used
|
||||
inside the script file, and items that are exported, used outside of the
|
||||
script file. The exported items can then be used by scripts that import them.
|
||||
That makes very clear what is defined where.
|
||||
|
||||
Let's start with an example, a script that exports one function and has one
|
||||
private function: >
|
||||
|
||||
vim9script " This indicates a Vim9 script file.
|
||||
|
||||
export def GetMessage(): string
|
||||
let result = ''
|
||||
...
|
||||
result = GetPart(count)
|
||||
...
|
||||
return result
|
||||
enddef
|
||||
|
||||
def GetPart(nr: number): string
|
||||
if nr == 4
|
||||
return 'yes'
|
||||
else
|
||||
return 'no'
|
||||
endif
|
||||
enddef
|
||||
|
||||
The `vim9script` command must be the very first command in the file. Without
|
||||
it Vim will assume legacy script syntax.
|
||||
|
||||
The `export def GetMessage(): string` line starts with `export`, meaning that
|
||||
this function can be imported and called by other scripts. The line
|
||||
`def GetPart(...` does not start with `export`, this is a script-local
|
||||
function, it can only be used inside this script file.
|
||||
|
||||
In the `export def GetMessage(): string` line you will notice the colon and
|
||||
the return type. Vim9 functions, defined with `def`, require specifying the
|
||||
type of arguments and the return type. That way Vim can compile the code
|
||||
efficiently. The GetPart function defines an argument "nr" of type "number".
|
||||
|
||||
Notice that the assignment `result = GetPart(count)` does not use the `let`
|
||||
command. That is explained in the next section.
|
||||
|
||||
==============================================================================
|
||||
*46.2* Variable declarations *vim9-declarations*
|
||||
|
||||
In Vim9 script variables are declared once with a `:let` or `:const` command.
|
||||
Assigning a value is done without `:let` and it is not possible to `:unlet`
|
||||
the variable.
|
||||
|
||||
In most cases you will want to declare the variable and initialize it at the
|
||||
same time: >
|
||||
let myText = 'some text'
|
||||
...
|
||||
myText = 'other text'
|
||||
|
||||
The type of the variable will be inferred from the expression. In this case
|
||||
it is a string. If you initialize with a number, then the type is number: >
|
||||
let myNumber = 1234
|
||||
...
|
||||
myNumber = 0
|
||||
|
||||
If you try to assign a string to this variable, you will get an error: >
|
||||
let myNumber = 'this fails!'
|
||||
|
||||
In the rare case you want a variable that can take values of any type, you
|
||||
have to specify the type: >
|
||||
let myVar: any = 1234
|
||||
myVar = 'text also works'
|
||||
|
||||
You can also declare a variable without assigning a value. In that case Vim
|
||||
will initialize it to zero or empty: >
|
||||
let word: string
|
||||
if condition
|
||||
word = 'yes'
|
||||
else
|
||||
word = 'no'
|
||||
endif
|
||||
|
||||
Although it's shorter to do: >
|
||||
let word = condition ? 'yes' : 'no'
|
||||
|
||||
==============================================================================
|
||||
*46.3* Functions and types
|
||||
|
||||
Legacy Vim script does have type checking, but this happens at runtime, when
|
||||
the code is executed. And it's permissive, often a computation gives an
|
||||
unexpected value instead of reporting an error. Thus you can define a
|
||||
function and think it's fine, but see a problem only later when it is called: >
|
||||
let s:collected = ''
|
||||
func ExtendAndReturn(add)
|
||||
let s:collected += a:add
|
||||
return s:collected
|
||||
endfunc
|
||||
|
||||
Can you spot the error? Try this: >
|
||||
echo ExtendAndReturn('text')
|
||||
And you'll see zero. Why? Because in legacy Vim script "+=" will convert the
|
||||
arguments to numbers, and any string without a number results in zero!
|
||||
|
||||
With `:def` the type checking happens when compiling the function. For that
|
||||
you need to specify the argument types and the return type. Also notice that
|
||||
the argument is used without the "a:" prefix: >
|
||||
let s:collected = ''
|
||||
def ExtendAndReturn(add: string): string
|
||||
s:collected += add
|
||||
return s:collected
|
||||
enddef
|
||||
defcompile
|
||||
|
||||
Here we use `:defcompile` to do the compilation right away, without it the
|
||||
compilation would happen when the function is called. Vim will tell you what
|
||||
you did wrong: >
|
||||
E1013: type mismatch, expected number but got string
|
||||
|
||||
Vim9 script is strict, it uses the "+" operator only for numbers and floats.
|
||||
For string concatenation ".." must be used. This avoids mistakes and avoids
|
||||
the automatic conversion that gave a surprising result above. So you change
|
||||
the first line of the function to: >
|
||||
s:collected ..= add
|
||||
And now it works.
|
||||
|
||||
If the function does not return anything, just leave out the return type: >
|
||||
def ReportResult(result: string)
|
||||
echo 'The result is: ' .. result
|
||||
enddef
|
||||
|
||||
This is also checked, if you try to return a value you'll get an error.
|
||||
|
||||
In case you don't care about types or have a function that does work with
|
||||
multiple types, you can use the "any" type: >
|
||||
def Store(key: string, value: any)
|
||||
resultDict[key] = value
|
||||
enddef
|
||||
|
||||
==============================================================================
|
||||
*46.?* Using a Vim9 script from legacy script *source-vim9-script*
|
||||
|
||||
In some cases you have a legacy Vim script where you want to use items from a
|
||||
Vim9 script. For example in your .vimrc you want to initialize a plugin. The
|
||||
best way to do this is to use `:import`. For example: >
|
||||
|
||||
import Init as NiceInit from 'myNicePlugin.vim'
|
||||
call NiceInit('today')
|
||||
|
||||
This finds the exported function "Init" in the Vim9 script file and makes it
|
||||
available as script-local item "NiceInit". `:import` always uses the script
|
||||
namespace, even when "s:" is not given. If "myNicePlugin.vim" was already
|
||||
sourced it is not sourced again.
|
||||
|
||||
Besides avoiding putting any items in the global namespace (where name clashes
|
||||
can cause unexpected errors), this also means the script is sourced only once,
|
||||
no matter how many times items from it are imported.
|
||||
|
||||
In some cases, e.g. for testing, you may just want to source the Vim9 script.
|
||||
That is OK, but then only global items will be available. The Vim9 script
|
||||
will have to make sure to use a unique name for these global items. Example: >
|
||||
source ~/.vim/extra/myNicePlugin.vim
|
||||
call g:NicePluginTest()
|
||||
|
||||
==============================================================================
|
||||
|
||||
Next chapter: |usr_90.txt| Installing Vim
|
||||
|
||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
144
runtime/doc/usr_50.txt
Normal file
144
runtime/doc/usr_50.txt
Normal file
@@ -0,0 +1,144 @@
|
||||
*usr_50.txt* For Vim version 8.2. Last change: 2022 Jun 03
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
Advanced Vim script writing
|
||||
|
||||
|
||||
|50.1| Exceptions
|
||||
|50.2| Function with variable number of arguments
|
||||
|50.3| Restoring the view
|
||||
|
||||
Next chapter: |usr_51.txt| Create a plugin
|
||||
Previous chapter: |usr_45.txt| Select your language (local)
|
||||
Table of contents: |usr_toc.txt|
|
||||
|
||||
==============================================================================
|
||||
*50.1* Exceptions
|
||||
|
||||
Let's start with an example: >
|
||||
|
||||
try
|
||||
read ~/templates/pascal.tmpl
|
||||
catch /E484:/
|
||||
echo "Sorry, the Pascal template file cannot be found."
|
||||
endtry
|
||||
|
||||
The `read` command will fail if the file does not exist. Instead of
|
||||
generating an error message, this code catches the error and gives the user a
|
||||
message with more information.
|
||||
|
||||
For the commands in between `try` and `endtry` errors are turned into
|
||||
exceptions. An exception is a string. In the case of an error the string
|
||||
contains the error message. And every error message has a number. In this
|
||||
case, the error we catch contains "E484:". This number is guaranteed to stay
|
||||
the same (the text may change, e.g., it may be translated).
|
||||
|
||||
Besides being able to give a nice error message, Vim will also continue
|
||||
executing commands after the `:endtry`. Otherwise, once an uncaught error is
|
||||
encountered, execution of the script/function/mapping will be aborted.
|
||||
|
||||
When the `read` command causes another error, the pattern "E484:" will not
|
||||
match in it. Thus this exception will not be caught and result in the usual
|
||||
error message and execution is aborted.
|
||||
|
||||
You might be tempted to do this: >
|
||||
|
||||
try
|
||||
read ~/templates/pascal.tmpl
|
||||
catch
|
||||
echo "Sorry, the Pascal template file cannot be found."
|
||||
endtry
|
||||
|
||||
This means all errors are caught. But then you will not see an error that
|
||||
would indicate a completely different problem, such as "E21: Cannot make
|
||||
changes, 'modifiable' is off". Think twice before you catch any error!
|
||||
|
||||
Another useful mechanism is the `finally` command: >
|
||||
|
||||
var tmp = tempname()
|
||||
try
|
||||
exe ":.,$write " .. tmp
|
||||
exe "!filter " .. tmp
|
||||
:.,$delete
|
||||
exe ":$read " .. tmp
|
||||
finally
|
||||
delete(tmp)
|
||||
endtry
|
||||
|
||||
This filters the lines from the cursor until the end of the file through the
|
||||
"filter" command, which takes a file name argument. No matter if the
|
||||
filtering works, if something goes wrong in between `try` and `finally` or the
|
||||
user cancels the filtering by pressing CTRL-C, the `delete(tmp)` call is
|
||||
always executed. This makes sure you don't leave the temporary file behind.
|
||||
|
||||
The `finally` does not catch the exception, the error will still abort
|
||||
further execution.
|
||||
|
||||
More information about exception handling can be found in the reference
|
||||
manual: |exception-handling|.
|
||||
|
||||
==============================================================================
|
||||
*50.2* Function with variable number of arguments
|
||||
|
||||
Vim enables you to define functions that have a variable number of arguments.
|
||||
The following command, for instance, defines a function that must have 1
|
||||
argument (start) and can have up to 20 additional arguments: >
|
||||
|
||||
def Show(start: string, ...items: list<string>)
|
||||
|
||||
The variable "items" will be a list in the function containing the extra
|
||||
arguments. You can use it like any list, for example: >
|
||||
|
||||
def Show(start: string, ...items: list<string>)
|
||||
echohl Title
|
||||
echo "start is " .. start
|
||||
echohl None
|
||||
for index in range(len(items))
|
||||
echon $" Arg {index} is {items[index]}"
|
||||
endfor
|
||||
echo
|
||||
enddef
|
||||
|
||||
You can call it like this: >
|
||||
|
||||
Show('Title', 'one', 'two', 'three')
|
||||
< start is Title Arg 0 is one Arg 1 is two Arg 2 is three ~
|
||||
|
||||
This uses the `echohl` command to specify the highlighting used for the
|
||||
following `echo` command. `echohl None` stops it again. The `echon` command
|
||||
works like `echo`, but doesn't output a line break.
|
||||
|
||||
If you call it with one argument the "items" list will be empty.
|
||||
`range(len(items))` returns a list with the indexes, what `for` loops over,
|
||||
we'll explain that further down.
|
||||
|
||||
==============================================================================
|
||||
*50.3* Restoring the view
|
||||
|
||||
Sometimes you want to make a change and go back to where the cursor was.
|
||||
Restoring the relative position would also be nice, so that the same line
|
||||
appears at the top of the window.
|
||||
|
||||
This example yanks the current line, puts it above the first line in the file
|
||||
and then restores the view: >
|
||||
|
||||
map ,p ma"aYHmbgg"aP`bzt`a
|
||||
|
||||
What this does: >
|
||||
ma"aYHmbgg"aP`bzt`a
|
||||
< ma set mark a at cursor position
|
||||
"aY yank current line into register a
|
||||
Hmb go to top line in window and set mark b there
|
||||
gg go to first line in file
|
||||
"aP put the yanked line above it
|
||||
`b go back to top line in display
|
||||
zt position the text in the window as before
|
||||
`a go back to saved cursor position
|
||||
|
||||
|
||||
==============================================================================
|
||||
|
||||
Next chapter: |usr_51.txt| Create a plugin
|
||||
|
||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
694
runtime/doc/usr_51.txt
Normal file
694
runtime/doc/usr_51.txt
Normal file
@@ -0,0 +1,694 @@
|
||||
*usr_51.txt* For Vim version 8.2. Last change: 2022 Jun 03
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
Write plugins
|
||||
|
||||
|
||||
Plugins can be used to define settings for a specific type of file, syntax
|
||||
highlighting and many other things. This chapter explains how to write the
|
||||
most common Vim plugins.
|
||||
|
||||
|51.1| Writing a generic plugin
|
||||
|51.2| Writing a filetype plugin
|
||||
|51.3| Writing a compiler plugin
|
||||
|51.4| Distributing Vim scripts
|
||||
|
||||
Next chapter: |usr_52.txt| Write large plugins
|
||||
Previous chapter: |usr_50.txt| Advanced Vim script writing
|
||||
Table of contents: |usr_toc.txt|
|
||||
|
||||
==============================================================================
|
||||
*51.1* Writing a generic plugin *write-plugin*
|
||||
|
||||
You can write a Vim script in such a way that many people can use it. This is
|
||||
called a plugin. Vim users can drop your script in their plugin directory and
|
||||
use its features right away |add-plugin|.
|
||||
|
||||
There are actually two types of plugins:
|
||||
|
||||
global plugins: For all types of files.
|
||||
filetype plugins: Only for files of a specific type.
|
||||
|
||||
In this section the first type is explained. Most items are also relevant for
|
||||
writing filetype plugins. The specifics for filetype plugins are in the next
|
||||
section |write-filetype-plugin|.
|
||||
|
||||
We will use |Vim9| syntax here, the recommended way to write new plugins.
|
||||
Make sure the file starts with the `vim9script` command.
|
||||
|
||||
|
||||
NAME
|
||||
|
||||
First of all you must choose a name for your plugin. The features provided
|
||||
by the plugin should be clear from its name. And it should be unlikely that
|
||||
someone else writes a plugin with the same name but which does something
|
||||
different.
|
||||
|
||||
A script that corrects typing mistakes could be called "typecorrect.vim". We
|
||||
will use it here as an example.
|
||||
|
||||
For the plugin to work for everybody, it should follow a few guidelines. This
|
||||
will be explained step-by-step. The complete example plugin is at the end.
|
||||
|
||||
|
||||
BODY
|
||||
|
||||
Let's start with the body of the plugin, the lines that do the actual work: >
|
||||
|
||||
12 iabbrev teh the
|
||||
13 iabbrev otehr other
|
||||
14 iabbrev wnat want
|
||||
15 iabbrev synchronisation
|
||||
16 \ synchronization
|
||||
|
||||
The actual list should be much longer, of course.
|
||||
|
||||
The line numbers have only been added to explain a few things, don't put them
|
||||
in your plugin file!
|
||||
|
||||
|
||||
FIRST LINE
|
||||
>
|
||||
1 vim9script noclear
|
||||
|
||||
You need to use `vimscript` as the very first command. Best is to put it in
|
||||
the very first line.
|
||||
|
||||
The script we are writing will have a `finish` command to bail out when it is
|
||||
loaded a second time. To avoid that the items defined in the script are lost
|
||||
the "noclear" argument is used. More info about this at |vim9-reload|.
|
||||
|
||||
|
||||
HEADER
|
||||
|
||||
You will probably add new corrections to the plugin and soon have several
|
||||
versions lying around. And when distributing this file, people will want to
|
||||
know who wrote this wonderful plugin and where they can send remarks.
|
||||
Therefore, put a header at the top of your plugin: >
|
||||
|
||||
2 # Vim global plugin for correcting typing mistakes
|
||||
3 # Last Change: 2021 Dec 30
|
||||
4 # Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
|
||||
About copyright and licensing: Since plugins are very useful and it's hardly
|
||||
worth restricting their distribution, please consider making your plugin
|
||||
either public domain or use the Vim |license|. A short note about this near
|
||||
the top of the plugin should be sufficient. Example: >
|
||||
|
||||
5 # License: This file is placed in the public domain.
|
||||
|
||||
|
||||
NOT LOADING
|
||||
|
||||
It is possible that a user doesn't always want to load this plugin. Or the
|
||||
system administrator has dropped it in the system-wide plugin directory, but a
|
||||
user has his own plugin he wants to use. Then the user must have a chance to
|
||||
disable loading this specific plugin. These lines will make it possible: >
|
||||
|
||||
7 if exists("g:loaded_typecorrect")
|
||||
8 finish
|
||||
9 endif
|
||||
10 g:loaded_typecorrect = 1
|
||||
|
||||
This also avoids that when the script is loaded twice it would pointlessly
|
||||
redefine functions and cause trouble for autocommands that are added twice.
|
||||
|
||||
The name is recommended to start with "g:loaded_" and then the file name of
|
||||
the plugin, literally. The "g:" is prepended to make the variable global, so
|
||||
that other places can check whether its functionality is available. Without
|
||||
"g:" it would be local to the script.
|
||||
|
||||
Using `finish` stops Vim from reading the rest of the file, it's much quicker
|
||||
than using if-endif around the whole file, since Vim would still need to parse
|
||||
the commands to find the `endif`.
|
||||
|
||||
|
||||
MAPPING
|
||||
|
||||
Now let's make the plugin more interesting: We will add a mapping that adds a
|
||||
correction for the word under the cursor. We could just pick a key sequence
|
||||
for this mapping, but the user might already use it for something else. To
|
||||
allow the user to define which keys a mapping in a plugin uses, the <Leader>
|
||||
item can be used: >
|
||||
|
||||
20 map <unique> <Leader>a <Plug>TypecorrAdd;
|
||||
|
||||
The "<Plug>TypecorrAdd;" thing will do the work, more about that further on.
|
||||
|
||||
The user can set the "g:mapleader" variable to the key sequence that he wants
|
||||
plugin mappings to start with. Thus if the user has done: >
|
||||
|
||||
g:mapleader = "_"
|
||||
|
||||
the mapping will define "_a". If the user didn't do this, the default value
|
||||
will be used, which is a backslash. Then a map for "\a" will be defined.
|
||||
|
||||
Note that <unique> is used, this will cause an error message if the mapping
|
||||
already happened to exist. |:map-<unique>|
|
||||
|
||||
But what if the user wants to define his own key sequence? We can allow that
|
||||
with this mechanism: >
|
||||
|
||||
19 if !hasmapto('<Plug>TypecorrAdd;')
|
||||
20 map <unique> <Leader>a <Plug>TypecorrAdd;
|
||||
21 endif
|
||||
|
||||
This checks if a mapping to "<Plug>TypecorrAdd;" already exists, and only
|
||||
defines the mapping from "<Leader>a" if it doesn't. The user then has a
|
||||
chance of putting this in his vimrc file: >
|
||||
|
||||
map ,c <Plug>TypecorrAdd;
|
||||
|
||||
Then the mapped key sequence will be ",c" instead of "_a" or "\a".
|
||||
|
||||
|
||||
PIECES
|
||||
|
||||
If a script gets longer, you often want to break up the work in pieces. You
|
||||
can use functions or mappings for this. But you don't want these functions
|
||||
and mappings to interfere with the ones from other scripts. For example, you
|
||||
could define a function Add(), but another script could try to define the same
|
||||
function. To avoid this, we define the function local to the script.
|
||||
Fortunately, in |Vim9| script this is the default. In a legacy script you
|
||||
would need to prefix the name with "s:".
|
||||
|
||||
We will define a function that adds a new typing correction: >
|
||||
|
||||
28 def Add(from: string, correct: bool)
|
||||
29 var to = input($"type the correction for {from}: ")
|
||||
30 exe $":iabbrev {from} {to}"
|
||||
...
|
||||
34 enddef
|
||||
|
||||
Now we can call the function Add() from within this script. If another
|
||||
script also defines Add(), it will be local to that script and can only
|
||||
be called from that script. There can also be a global g:Add() function,
|
||||
which is again another function.
|
||||
|
||||
<SID> can be used with mappings. It generates a script ID, which identifies
|
||||
the current script. In our typing correction plugin we use it like this: >
|
||||
|
||||
22 noremap <unique> <script> <Plug>TypecorrAdd; <SID>Add
|
||||
...
|
||||
26 noremap <SID>Add :call <SID>Add(expand("<cword>"), true)<CR>
|
||||
|
||||
Thus when a user types "\a", this sequence is invoked: >
|
||||
|
||||
\a -> <Plug>TypecorrAdd; -> <SID>Add -> :call <SID>Add(...)
|
||||
|
||||
If another script also maps <SID>Add, it will get another script ID and
|
||||
thus define another mapping.
|
||||
|
||||
Note that instead of Add() we use <SID>Add() here. That is because the
|
||||
mapping is typed by the user, thus outside of the script context. The <SID>
|
||||
is translated to the script ID, so that Vim knows in which script to look for
|
||||
the Add() function.
|
||||
|
||||
This is a bit complicated, but it's required for the plugin to work together
|
||||
with other plugins. The basic rule is that you use <SID>Add() in mappings and
|
||||
Add() in other places (the script itself, autocommands, user commands).
|
||||
|
||||
We can also add a menu entry to do the same as the mapping: >
|
||||
|
||||
24 noremenu <script> Plugin.Add\ Correction <SID>Add
|
||||
|
||||
The "Plugin" menu is recommended for adding menu items for plugins. In this
|
||||
case only one item is used. When adding more items, creating a submenu is
|
||||
recommended. For example, "Plugin.CVS" could be used for a plugin that offers
|
||||
CVS operations "Plugin.CVS.checkin", "Plugin.CVS.checkout", etc.
|
||||
|
||||
Note that in line 28 ":noremap" is used to avoid that any other mappings cause
|
||||
trouble. Someone may have remapped ":call", for example. In line 24 we also
|
||||
use ":noremap", but we do want "<SID>Add" to be remapped. This is why
|
||||
"<script>" is used here. This only allows mappings which are local to the
|
||||
script. |:map-<script>| The same is done in line 26 for ":noremenu".
|
||||
|:menu-<script>|
|
||||
|
||||
|
||||
<SID> AND <Plug> *using-<Plug>*
|
||||
|
||||
Both <SID> and <Plug> are used to avoid that mappings of typed keys interfere
|
||||
with mappings that are only to be used from other mappings. Note the
|
||||
difference between using <SID> and <Plug>:
|
||||
|
||||
<Plug> is visible outside of the script. It is used for mappings which the
|
||||
user might want to map a key sequence to. <Plug> is a special code
|
||||
that a typed key will never produce.
|
||||
To make it very unlikely that other plugins use the same sequence of
|
||||
characters, use this structure: <Plug> scriptname mapname
|
||||
In our example the scriptname is "Typecorr" and the mapname is "Add".
|
||||
We add a semicolon as the terminator. This results in
|
||||
"<Plug>TypecorrAdd;". Only the first character of scriptname and
|
||||
mapname is uppercase, so that we can see where mapname starts.
|
||||
|
||||
<SID> is the script ID, a unique identifier for a script.
|
||||
Internally Vim translates <SID> to "<SNR>123_", where "123" can be any
|
||||
number. Thus a function "<SID>Add()" will have a name "<SNR>11_Add()"
|
||||
in one script, and "<SNR>22_Add()" in another. You can see this if
|
||||
you use the ":function" command to get a list of functions. The
|
||||
translation of <SID> in mappings is exactly the same, that's how you
|
||||
can call a script-local function from a mapping.
|
||||
|
||||
|
||||
USER COMMAND
|
||||
|
||||
Now let's add a user command to add a correction: >
|
||||
|
||||
36 if !exists(":Correct")
|
||||
37 command -nargs=1 Correct :call Add(<q-args>, false)
|
||||
38 endif
|
||||
|
||||
The user command is defined only if no command with the same name already
|
||||
exists. Otherwise we would get an error here. Overriding the existing user
|
||||
command with ":command!" is not a good idea, this would probably make the user
|
||||
wonder why the command he defined himself doesn't work. |:command|
|
||||
If it did happen you can find out who to blame with: >
|
||||
|
||||
verbose command Correct
|
||||
|
||||
|
||||
SCRIPT VARIABLES
|
||||
|
||||
When a variable starts with "s:" it is a script variable. It can only be used
|
||||
inside a script. Outside the script it's not visible. This avoids trouble
|
||||
with using the same variable name in different scripts. The variables will be
|
||||
kept as long as Vim is running. And the same variables are used when sourcing
|
||||
the same script again. |s:var|
|
||||
|
||||
The nice thing about |Vim9| script is that variables are local to the script
|
||||
by default. You can prepend "s:" if you like, but you do not need to. And
|
||||
functions in the script can also use the script variables without a prefix
|
||||
(they must be declared before the function for this to work).
|
||||
|
||||
Script-local variables can also be used in functions, autocommands and user
|
||||
commands that are defined in the script. Thus they are the perfect way to
|
||||
share information between parts of your plugin, without it leaking out. In
|
||||
our example we can add a few lines to count the number of corrections: >
|
||||
|
||||
17 var count = 4
|
||||
...
|
||||
28 def Add(from: string, correct: bool)
|
||||
...
|
||||
32 count += 1
|
||||
33 echo "you now have " .. count .. " corrections"
|
||||
34 enddef
|
||||
|
||||
"count" is declared and initialized to 4 in the script itself. When later
|
||||
the Add() function is called, it increments "count". It doesn't matter from
|
||||
where the function was called, since it has been defined in the script, it
|
||||
will use the local variables from this script.
|
||||
|
||||
|
||||
THE RESULT
|
||||
|
||||
Here is the resulting complete example: >
|
||||
|
||||
1 vim9script noclear
|
||||
2 # Vim global plugin for correcting typing mistakes
|
||||
3 # Last Change: 2021 Dec 30
|
||||
4 # Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
5 # License: This file is placed in the public domain.
|
||||
6
|
||||
7 if exists("g:loaded_typecorrect")
|
||||
8 finish
|
||||
9 endif
|
||||
10 g:loaded_typecorrect = 1
|
||||
11
|
||||
12 iabbrev teh the
|
||||
13 iabbrev otehr other
|
||||
14 iabbrev wnat want
|
||||
15 iabbrev synchronisation
|
||||
16 \ synchronization
|
||||
17 var count = 4
|
||||
18
|
||||
19 if !hasmapto('<Plug>TypecorrAdd;')
|
||||
20 map <unique> <Leader>a <Plug>TypecorrAdd;
|
||||
21 endif
|
||||
22 noremap <unique> <script> <Plug>TypecorrAdd; <SID>Add
|
||||
23
|
||||
24 noremenu <script> Plugin.Add\ Correction <SID>Add
|
||||
25
|
||||
26 noremap <SID>Add :call <SID>Add(expand("<cword>"), true)<CR>
|
||||
27
|
||||
28 def Add(from: string, correct: bool)
|
||||
29 var to = input("type the correction for " .. from .. ": ")
|
||||
30 exe ":iabbrev " .. from .. " " .. to
|
||||
31 if correct | exe "normal viws\<C-R>\" \b\e" | endif
|
||||
32 count += 1
|
||||
33 echo "you now have " .. count .. " corrections"
|
||||
34 enddef
|
||||
35
|
||||
36 if !exists(":Correct")
|
||||
37 command -nargs=1 Correct call Add(<q-args>, false)
|
||||
38 endif
|
||||
|
||||
Line 31 wasn't explained yet. It applies the new correction to the word under
|
||||
the cursor. The |:normal| command is used to use the new abbreviation. Note
|
||||
that mappings and abbreviations are expanded here, even though the function
|
||||
was called from a mapping defined with ":noremap".
|
||||
|
||||
|
||||
DOCUMENTATION *write-local-help*
|
||||
|
||||
It's a good idea to also write some documentation for your plugin. Especially
|
||||
when its behavior can be changed by the user. See |add-local-help| for how
|
||||
they are installed.
|
||||
|
||||
Here is a simple example for a plugin help file, called "typecorrect.txt": >
|
||||
|
||||
1 *typecorrect.txt* Plugin for correcting typing mistakes
|
||||
2
|
||||
3 If you make typing mistakes, this plugin will have them corrected
|
||||
4 automatically.
|
||||
5
|
||||
6 There are currently only a few corrections. Add your own if you like.
|
||||
7
|
||||
8 Mappings:
|
||||
9 <Leader>a or <Plug>TypecorrAdd;
|
||||
10 Add a correction for the word under the cursor.
|
||||
11
|
||||
12 Commands:
|
||||
13 :Correct {word}
|
||||
14 Add a correction for {word}.
|
||||
15
|
||||
16 *typecorrect-settings*
|
||||
17 This plugin doesn't have any settings.
|
||||
|
||||
The first line is actually the only one for which the format matters. It will
|
||||
be extracted from the help file to be put in the "LOCAL ADDITIONS:" section of
|
||||
help.txt |local-additions|. The first "*" must be in the first column of the
|
||||
first line. After adding your help file do ":help" and check that the entries
|
||||
line up nicely.
|
||||
|
||||
You can add more tags inside ** in your help file. But be careful not to use
|
||||
existing help tags. You would probably use the name of your plugin in most of
|
||||
them, like "typecorrect-settings" in the example.
|
||||
|
||||
Using references to other parts of the help in || is recommended. This makes
|
||||
it easy for the user to find associated help.
|
||||
|
||||
|
||||
SUMMARY *plugin-special*
|
||||
|
||||
Summary of special things to use in a plugin:
|
||||
|
||||
var name Variable local to the script.
|
||||
|
||||
<SID> Script-ID, used for mappings and functions local to
|
||||
the script.
|
||||
|
||||
hasmapto() Function to test if the user already defined a mapping
|
||||
for functionality the script offers.
|
||||
|
||||
<Leader> Value of "mapleader", which the user defines as the
|
||||
keys that plugin mappings start with.
|
||||
|
||||
map <unique> Give a warning if a mapping already exists.
|
||||
|
||||
noremap <script> Use only mappings local to the script, not global
|
||||
mappings.
|
||||
|
||||
exists(":Cmd") Check if a user command already exists.
|
||||
|
||||
==============================================================================
|
||||
*51.2* Writing a filetype plugin *write-filetype-plugin* *ftplugin*
|
||||
|
||||
A filetype plugin is like a global plugin, except that it sets options and
|
||||
defines mappings for the current buffer only. See |add-filetype-plugin| for
|
||||
how this type of plugin is used.
|
||||
|
||||
First read the section on global plugins above |51.1|. All that is said there
|
||||
also applies to filetype plugins. There are a few extras, which are explained
|
||||
here. The essential thing is that a filetype plugin should only have an
|
||||
effect on the current buffer.
|
||||
|
||||
|
||||
DISABLING
|
||||
|
||||
If you are writing a filetype plugin to be used by many people, they need a
|
||||
chance to disable loading it. Put this at the top of the plugin: >
|
||||
|
||||
# Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
b:did_ftplugin = 1
|
||||
|
||||
This also needs to be used to avoid that the same plugin is executed twice for
|
||||
the same buffer (happens when using an ":edit" command without arguments).
|
||||
|
||||
Now users can disable loading the default plugin completely by making a
|
||||
filetype plugin with only these lines: >
|
||||
|
||||
vim9script
|
||||
b:did_ftplugin = 1
|
||||
|
||||
This does require that the filetype plugin directory comes before $VIMRUNTIME
|
||||
in 'runtimepath'!
|
||||
|
||||
If you do want to use the default plugin, but overrule one of the settings,
|
||||
you can write the different setting in a script: >
|
||||
|
||||
setlocal textwidth=70
|
||||
|
||||
Now write this in the "after" directory, so that it gets sourced after the
|
||||
distributed "vim.vim" ftplugin |after-directory|. For Unix this would be
|
||||
"~/.vim/after/ftplugin/vim.vim". Note that the default plugin will have set
|
||||
"b:did_ftplugin", it is ignored here.
|
||||
|
||||
|
||||
OPTIONS
|
||||
|
||||
To make sure the filetype plugin only affects the current buffer use the >
|
||||
|
||||
setlocal
|
||||
|
||||
command to set options. And only set options which are local to a buffer (see
|
||||
the help for the option to check that). When using `:setlocal` for global
|
||||
options or options local to a window, the value will change for many buffers,
|
||||
and that is not what a filetype plugin should do.
|
||||
|
||||
When an option has a value that is a list of flags or items, consider using
|
||||
"+=" and "-=" to keep the existing value. Be aware that the user may have
|
||||
changed an option value already. First resetting to the default value and
|
||||
then changing it is often a good idea. Example: >
|
||||
|
||||
setlocal formatoptions& formatoptions+=ro
|
||||
|
||||
|
||||
MAPPINGS
|
||||
|
||||
To make sure mappings will only work in the current buffer use the >
|
||||
|
||||
map <buffer>
|
||||
|
||||
command. This needs to be combined with the two-step mapping explained above.
|
||||
An example of how to define functionality in a filetype plugin: >
|
||||
|
||||
if !hasmapto('<Plug>JavaImport;')
|
||||
map <buffer> <unique> <LocalLeader>i <Plug>JavaImport;
|
||||
endif
|
||||
noremap <buffer> <unique> <Plug>JavaImport; oimport ""<Left><Esc>
|
||||
|
||||
|hasmapto()| is used to check if the user has already defined a map to
|
||||
<Plug>JavaImport;. If not, then the filetype plugin defines the default
|
||||
mapping. This starts with |<LocalLeader>|, which allows the user to select
|
||||
the key(s) he wants filetype plugin mappings to start with. The default is a
|
||||
backslash.
|
||||
"<unique>" is used to give an error message if the mapping already exists or
|
||||
overlaps with an existing mapping.
|
||||
|:noremap| is used to avoid that any other mappings that the user has defined
|
||||
interferes. You might want to use ":noremap <script>" to allow remapping
|
||||
mappings defined in this script that start with <SID>.
|
||||
|
||||
The user must have a chance to disable the mappings in a filetype plugin,
|
||||
without disabling everything. Here is an example of how this is done for a
|
||||
plugin for the mail filetype: >
|
||||
|
||||
# Add mappings, unless the user didn't want this.
|
||||
if !exists("g:no_plugin_maps") && !exists("g:no_mail_maps")
|
||||
# Quote text by inserting "> "
|
||||
if !hasmapto('<Plug>MailQuote;')
|
||||
vmap <buffer> <LocalLeader>q <Plug>MailQuote;
|
||||
nmap <buffer> <LocalLeader>q <Plug>MailQuote;
|
||||
endif
|
||||
vnoremap <buffer> <Plug>MailQuote; :s/^/> /<CR>
|
||||
nnoremap <buffer> <Plug>MailQuote; :.,$s/^/> /<CR>
|
||||
endif
|
||||
|
||||
Two global variables are used:
|
||||
|g:no_plugin_maps| disables mappings for all filetype plugins
|
||||
|g:no_mail_maps| disables mappings for the "mail" filetype
|
||||
|
||||
|
||||
USER COMMANDS
|
||||
|
||||
To add a user command for a specific file type, so that it can only be used in
|
||||
one buffer, use the "-buffer" argument to |:command|. Example: >
|
||||
|
||||
command -buffer Make make %:r.s
|
||||
|
||||
|
||||
VARIABLES
|
||||
|
||||
A filetype plugin will be sourced for each buffer of the type it's for. Local
|
||||
script variables will be shared between all invocations. Use local buffer
|
||||
variables |b:var| if you want a variable specifically for one buffer.
|
||||
|
||||
|
||||
FUNCTIONS
|
||||
|
||||
When defining a function, this only needs to be done once. But the filetype
|
||||
plugin will be sourced every time a file with this filetype will be opened.
|
||||
This construct makes sure the function is only defined once: >
|
||||
|
||||
if !exists("*Func")
|
||||
def Func(arg)
|
||||
...
|
||||
enddef
|
||||
endif
|
||||
<
|
||||
Don't forget to use "noclear" with the `vim9script` command to avoid that the
|
||||
function is deleted when the script is sourced a second time.
|
||||
|
||||
|
||||
UNDO *undo_indent* *undo_ftplugin*
|
||||
|
||||
When the user does ":setfiletype xyz" the effect of the previous filetype
|
||||
should be undone. Set the b:undo_ftplugin variable to the commands that will
|
||||
undo the settings in your filetype plugin. Example: >
|
||||
|
||||
b:undo_ftplugin = "setlocal fo< com< tw< commentstring<"
|
||||
\ .. "| unlet b:match_ignorecase b:match_words b:match_skip"
|
||||
|
||||
Using ":setlocal" with "<" after the option name resets the option to its
|
||||
global value. That is mostly the best way to reset the option value.
|
||||
|
||||
For undoing the effect of an indent script, the b:undo_indent variable should
|
||||
be set accordingly.
|
||||
|
||||
Both these variables use legacy script syntax, not |Vim9| syntax.
|
||||
|
||||
|
||||
FILE NAME
|
||||
|
||||
The filetype must be included in the file name |ftplugin-name|. Use one of
|
||||
these three forms:
|
||||
|
||||
.../ftplugin/stuff.vim
|
||||
.../ftplugin/stuff_foo.vim
|
||||
.../ftplugin/stuff/bar.vim
|
||||
|
||||
"stuff" is the filetype, "foo" and "bar" are arbitrary names.
|
||||
|
||||
|
||||
FILETYPE DETECTION *plugin-filetype*
|
||||
|
||||
If your filetype is not already detected by Vim, you should create a filetype
|
||||
detection snippet in a separate file. It is usually in the form of an
|
||||
autocommand that sets the filetype when the file name matches a pattern.
|
||||
Example: >
|
||||
|
||||
au BufNewFile,BufRead *.foo setlocal filetype=foofoo
|
||||
|
||||
Write this single-line file as "ftdetect/foofoo.vim" in the first directory
|
||||
that appears in 'runtimepath'. For Unix that would be
|
||||
"~/.vim/ftdetect/foofoo.vim". The convention is to use the name of the
|
||||
filetype for the script name.
|
||||
|
||||
You can make more complicated checks if you like, for example to inspect the
|
||||
contents of the file to recognize the language. Also see |new-filetype|.
|
||||
|
||||
|
||||
SUMMARY *ftplugin-special*
|
||||
|
||||
Summary of special things to use in a filetype plugin:
|
||||
|
||||
<LocalLeader> Value of "maplocalleader", which the user defines as
|
||||
the keys that filetype plugin mappings start with.
|
||||
|
||||
map <buffer> Define a mapping local to the buffer.
|
||||
|
||||
noremap <script> Only remap mappings defined in this script that start
|
||||
with <SID>.
|
||||
|
||||
setlocal Set an option for the current buffer only.
|
||||
|
||||
command -buffer Define a user command local to the buffer.
|
||||
|
||||
exists("*s:Func") Check if a function was already defined.
|
||||
|
||||
Also see |plugin-special|, the special things used for all plugins.
|
||||
|
||||
==============================================================================
|
||||
*51.3* Writing a compiler plugin *write-compiler-plugin*
|
||||
|
||||
A compiler plugin sets options for use with a specific compiler. The user can
|
||||
load it with the |:compiler| command. The main use is to set the
|
||||
'errorformat' and 'makeprg' options.
|
||||
|
||||
Easiest is to have a look at examples. This command will edit all the default
|
||||
compiler plugins: >
|
||||
|
||||
next $VIMRUNTIME/compiler/*.vim
|
||||
|
||||
Type `:next` to go to the next plugin file.
|
||||
|
||||
There are two special items about these files. First is a mechanism to allow
|
||||
a user to overrule or add to the default file. The default files start with: >
|
||||
|
||||
vim9script
|
||||
if exists("g:current_compiler")
|
||||
finish
|
||||
endif
|
||||
g:current_compiler = "mine"
|
||||
|
||||
When you write a compiler file and put it in your personal runtime directory
|
||||
(e.g., ~/.vim/compiler for Unix), you set the "current_compiler" variable to
|
||||
make the default file skip the settings.
|
||||
*:CompilerSet*
|
||||
The second mechanism is to use ":set" for ":compiler!" and ":setlocal" for
|
||||
":compiler". Vim defines the ":CompilerSet" user command for this. However,
|
||||
older Vim versions don't, thus your plugin should define it then. This is an
|
||||
example: >
|
||||
|
||||
if exists(":CompilerSet") != 2
|
||||
command -nargs=* CompilerSet setlocal <args>
|
||||
endif
|
||||
CompilerSet errorformat& " use the default 'errorformat'
|
||||
CompilerSet makeprg=nmake
|
||||
|
||||
When you write a compiler plugin for the Vim distribution or for a system-wide
|
||||
runtime directory, use the mechanism mentioned above. When
|
||||
"current_compiler" was already set by a user plugin nothing will be done.
|
||||
|
||||
When you write a compiler plugin to overrule settings from a default plugin,
|
||||
don't check "current_compiler". This plugin is supposed to be loaded
|
||||
last, thus it should be in a directory at the end of 'runtimepath'. For Unix
|
||||
that could be ~/.vim/after/compiler.
|
||||
|
||||
==============================================================================
|
||||
*51.4* Distributing Vim scripts *distribute-script*
|
||||
|
||||
Vim users will look for scripts on the Vim website: http://www.vim.org.
|
||||
If you made something that is useful for others, share it!
|
||||
|
||||
Another place is github. But there you need to know where to find it! The
|
||||
advantage is that most plugin managers fetch plugins from github. You'll have
|
||||
to use your favorite search engine to find them.
|
||||
|
||||
Vim scripts can be used on any system. However, there might not be a tar or
|
||||
gzip command. If you want to pack files together and/or compress them the
|
||||
"zip" utility is recommended.
|
||||
|
||||
For utmost portability use Vim itself to pack scripts together. This can be
|
||||
done with the Vimball utility. See |vimball|.
|
||||
|
||||
It's good if you add a line to allow automatic updating. See |glvs-plugins|.
|
||||
|
||||
==============================================================================
|
||||
|
||||
Next chapter: |usr_52.txt| Write large plugins
|
||||
|
||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
342
runtime/doc/usr_52.txt
Normal file
342
runtime/doc/usr_52.txt
Normal file
@@ -0,0 +1,342 @@
|
||||
*usr_52.txt* For Vim version 8.2. Last change: 2022 Jun 04
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
Write larger plugins
|
||||
|
||||
When plugins do more than simple things, they tend to grow big. This file
|
||||
explains how to make sure they still load fast and how to split them up in
|
||||
smaller parts.
|
||||
|
||||
|52.1| Export and import
|
||||
|52.2| Autoloading
|
||||
|52.3| Autoloading without import/export
|
||||
|52.4| Other mechanisms to use
|
||||
|52.5| Using a Vim9 script from legacy script
|
||||
|
||||
Next chapter: |usr_90.txt| Installing Vim
|
||||
Previous chapter: |usr_51.txt| Create a plugin
|
||||
Table of contents: |usr_toc.txt|
|
||||
|
||||
==============================================================================
|
||||
*52.1* Export and import
|
||||
|
||||
Vim9 script was designed to make it easier to write large Vim scripts. It
|
||||
looks more like other script languages, especially Typescript. Also,
|
||||
functions are compiled into instructions that can be executed quickly. This
|
||||
makes Vim9 script a lot faster, up to a 100 times.
|
||||
|
||||
The basic idea is that a script file has items that are private, only used
|
||||
inside the script file, and items that are exported, which can be used by
|
||||
scripts that import them. That makes very clear what is defined where.
|
||||
|
||||
Let's start with an example, a script that exports one function and has one
|
||||
private function: >
|
||||
|
||||
vim9script
|
||||
|
||||
export def GetMessage(count: string): string
|
||||
var nr = str2nr(count)
|
||||
var result = $'To {nr} we say '
|
||||
result ..= GetReply(nr)
|
||||
return result
|
||||
enddef
|
||||
|
||||
def GetReply(nr: number): string
|
||||
if nr == 42
|
||||
return 'yes'
|
||||
elseif nr = 22
|
||||
return 'maybe'
|
||||
else
|
||||
return 'no'
|
||||
endif
|
||||
enddef
|
||||
|
||||
The `vim9script` command is required, `export` only works in a |Vim9| script.
|
||||
|
||||
The `export def GetMessage(...` line starts with `export`, meaning that this
|
||||
function can be called by other scripts. The line `def GetReply(...` does not
|
||||
start with `export`, this is a script-local function, it can only be used
|
||||
inside this script file.
|
||||
|
||||
Now about the script where this is imported. In this example we use this
|
||||
layout, which works well for a plugin below the "pack" directory:
|
||||
.../plugin/theplugin.vim
|
||||
.../lib/getmessage.vim
|
||||
|
||||
Assuming the "..." directory has been added to 'runtimepath', Vim will look
|
||||
for plugins in the "plugin" directory and source "theplugin.vim". Vim does
|
||||
not recognize the "lib" directory, you can put any scripts there.
|
||||
|
||||
The above script that exports GetMessage() goes in lib/getmessage.vim. The
|
||||
GetMessage() function is used in plugin/theplugin.vim: >
|
||||
|
||||
vim9script
|
||||
|
||||
import "../lib/getmessage.vim"
|
||||
command -nargs=1 ShowMessage echomsg getmessage.GetMessage(<f-args>)
|
||||
|
||||
The `import` command uses a relative path, it starts with "../", which means
|
||||
to go one directory up. For other kinds of paths see the `:import` command.
|
||||
|
||||
How we can try out the command that the plugin provides: >
|
||||
ShowMessage 1
|
||||
< To 1 we say no ~
|
||||
>
|
||||
ShowMessage 22
|
||||
< To 22 we say maybe ~
|
||||
|
||||
Notice that the function GetMessage() is prefixed with the imported script
|
||||
name "getmessage". That way, for every imported function used, you know what
|
||||
script it was imported from. If you import several scripts each of them could
|
||||
define a GetMessage() function: >
|
||||
|
||||
vim9script
|
||||
|
||||
import "../lib/getmessage.vim"
|
||||
import "../lib/getother.vim"
|
||||
command -nargs=1 ShowMessage echomsg getmessage.GetMessage(<f-args>)
|
||||
command -nargs=1 ShowOther echomsg getother.GetMessage(<f-args>)
|
||||
|
||||
If the imported script name is long or you use it in many places, you can
|
||||
shorten it by adding an "as" argument: >
|
||||
import "../lib/getmessage.vim" as msg
|
||||
command -nargs=1 ShowMessage echomsg msg.GetMessage(<f-args>)
|
||||
|
||||
|
||||
RELOADING
|
||||
|
||||
One thing to keep in mind: the imported "lib/getmessage.vim" script will be
|
||||
sourced only once. When it is imported a second time sourcing it will be
|
||||
skipped, since the items in it have already been created. It does not matter
|
||||
if this import command is in another script, or in the same script that is
|
||||
sourced again.
|
||||
|
||||
This is efficient when using a plugin, but when still developing a plugin it
|
||||
means that changing "lib/getmessage.vim" after it has been imported will have
|
||||
no effect. You need to quit Vim and start it again. (Rationale: the items
|
||||
defined in the script could be used in a compiled function, sourcing the
|
||||
script again may break those functions).
|
||||
|
||||
|
||||
USING GLOBALS
|
||||
|
||||
Sometimes you will want to use global variables or functions, so that they can
|
||||
be used anywhere. A good example is a global variable that passes a
|
||||
preference to a plugin. To avoid other scripts using the same name, use a
|
||||
prefix that is very unlikely to be used elsewhere. For example, if you have a
|
||||
"mytags" plugin, you could use: >
|
||||
|
||||
g:mytags_location = '$HOME/project'
|
||||
g:mytags_style = 'fast'
|
||||
|
||||
==============================================================================
|
||||
*52.2* Autoloading
|
||||
|
||||
After splitting your large script into pieces, all the lines will still be
|
||||
loaded and executed the moment the script is used. Every `import` loads the
|
||||
imported script to find the items defined there. Although that is good for
|
||||
finding errors early, it also takes time. Which is wasted if the
|
||||
functionality is not often used.
|
||||
|
||||
Instead of having `import` load the script immediately, it can be postponed
|
||||
until needed. Using the example above, only one change needs to be made in
|
||||
the plugin/theplugin.vim script: >
|
||||
import autoload "../lib/getmessage.vim"
|
||||
|
||||
Nothing in the rest of the script needs to change. However, the types will
|
||||
not be checked. Not even the existence of the GetMessage() function is
|
||||
checked until it is used. You will have to decide what is more important for
|
||||
your script: fast startup or getting errors early. You can also add the
|
||||
"autoload" argument later, after you have checked everything works.
|
||||
|
||||
|
||||
AUTOLOAD DIRECTORY
|
||||
|
||||
Another form is to use autoload with a script name that is not an absolute or
|
||||
relative path: >
|
||||
import autload "monthlib.vim"
|
||||
|
||||
This will search for the script "monthlib.vim" in the autoload directories of
|
||||
'runtimepath'. With Unix one of the directories often is "~/.vim/autoload".
|
||||
|
||||
The main advantage of this is that this script can be easily shared with other
|
||||
scripts. You do need to make sure that the script name is unique, since Vim
|
||||
will search all the "autoload" directories in 'runtimepath', and if you are
|
||||
using several plugins with a plugin manager, it may add a directory to
|
||||
'runtimepath', each of which might have an "autoload" directory.
|
||||
|
||||
Without autoload: >
|
||||
import "monthlib.vim"
|
||||
|
||||
Vim will search for the script "monthlib.vim" in the import directories of
|
||||
'runtimepath'. Note that in this case adding or removing "autoload" changes
|
||||
where the script is found. With a relative or absolute path the location does
|
||||
not change.
|
||||
|
||||
==============================================================================
|
||||
*52.3* Autoloading without import/export
|
||||
|
||||
*write-library-script*
|
||||
A mechanism from before import/export is still useful and some users may find
|
||||
it a bit simpler. The idea is that you call a function with a special name.
|
||||
That function is then in an autoload script. We will call that one script a
|
||||
library script.
|
||||
|
||||
The autoload mechanism is based on a funtion name that has "#" characters: >
|
||||
|
||||
mylib#myfunction(arg)
|
||||
|
||||
Vim will recognize the function name by the embedded "#" character and when
|
||||
it is not defined yet search for the script "autoload/mylib.vim" in
|
||||
'runtimepath'. That script must define the "mylib#myfunction()" function.
|
||||
Obviously the name "mylib" is the part before the "#" and is used as the name
|
||||
of the script, adding ".vim".
|
||||
|
||||
You can put many other functions in the mylib.vim script, you are free to
|
||||
organize your functions in library scripts. But you must use function names
|
||||
where the part before the '#' matches the script name. Otherwise Vim would
|
||||
not know what script to load. This is where it differs from the import/export
|
||||
mechanism.
|
||||
|
||||
If you get really enthusiastic and write lots of library scripts, you may
|
||||
want to use subdirectories. Example: >
|
||||
|
||||
netlib#ftp#read('somefile')
|
||||
|
||||
Here the script name is taken from the function name up to the last "#". The
|
||||
"#" in the middle are replaced by a slash, the last one by ".vim". Thus you
|
||||
get "netlib/ftp.vim". For Unix the library script used for this could be:
|
||||
|
||||
~/.vim/autoload/netlib/ftp.vim
|
||||
|
||||
Where the function is defined like this: >
|
||||
|
||||
def netlib#ftp#read(fname: string)
|
||||
# Read the file fname through ftp
|
||||
enddef
|
||||
|
||||
Notice that the name the function is defined with is exactly the same as the
|
||||
name used for calling the function. And the part before the last '#'
|
||||
exactly matches the subdirectory and script name.
|
||||
|
||||
You can use the same mechanism for variables: >
|
||||
|
||||
var weekdays = dutch#weekdays
|
||||
|
||||
This will load the script "autoload/dutch.vim", which should contain something
|
||||
like: >
|
||||
|
||||
var dutch#weekdays = ['zondag', 'maandag', 'dinsdag', 'woensdag',
|
||||
\ 'donderdag', 'vrijdag', 'zaterdag']
|
||||
|
||||
Further reading: |autoload|.
|
||||
|
||||
==============================================================================
|
||||
*52.4* Other mechanisms to use
|
||||
|
||||
Some may find the use of several files a hassle and prefer to keep everything
|
||||
together in one script. To avoid this resulting in slow startup there is a
|
||||
mechanism that only defines a small part and postpones the rest to when it is
|
||||
actually used. *write-plugin-quickload*
|
||||
|
||||
The basic idea is that the plugin is loaded twice. The first time user
|
||||
commands and mappings are defined that offer the functionality. The second
|
||||
time the functions that implement the functionality are defined.
|
||||
|
||||
It may sound surprising that quickload means loading a script twice. What we
|
||||
mean is that it loads quickly the first time, postponing the bulk of the
|
||||
script to the second time, which only happens when you actually use it. When
|
||||
you always use the functionality it actually gets slower!
|
||||
|
||||
This uses a FuncUndefined autocommand. This works differently from the
|
||||
|autoload| functionality explained above.
|
||||
|
||||
The following example shows how it's done: >
|
||||
|
||||
" Vim global plugin for demonstrating quick loading
|
||||
" Last Change: 2005 Feb 25
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" License: This file is placed in the public domain.
|
||||
|
||||
if !exists("s:did_load")
|
||||
command -nargs=* BNRead call BufNetRead(<f-args>)
|
||||
map <F19> :call BufNetWrite('something')<CR>
|
||||
|
||||
let s:did_load = 1
|
||||
exe 'au FuncUndefined BufNet* source ' .. expand('<sfile>')
|
||||
finish
|
||||
endif
|
||||
|
||||
function BufNetRead(...)
|
||||
echo 'BufNetRead(' .. string(a:000) .. ')'
|
||||
" read functionality here
|
||||
endfunction
|
||||
|
||||
function BufNetWrite(...)
|
||||
echo 'BufNetWrite(' .. string(a:000) .. ')'
|
||||
" write functionality here
|
||||
endfunction
|
||||
|
||||
When the script is first loaded "s:did_load" is not set. The commands between
|
||||
the "if" and "endif" will be executed. This ends in a |:finish| command, thus
|
||||
the rest of the script is not executed.
|
||||
|
||||
The second time the script is loaded "s:did_load" exists and the commands
|
||||
after the "endif" are executed. This defines the (possible long)
|
||||
BufNetRead() and BufNetWrite() functions.
|
||||
|
||||
If you drop this script in your plugin directory Vim will execute it on
|
||||
startup. This is the sequence of events that happens:
|
||||
|
||||
1. The "BNRead" command is defined and the <F19> key is mapped when the script
|
||||
is sourced at startup. A |FuncUndefined| autocommand is defined. The
|
||||
":finish" command causes the script to terminate early.
|
||||
|
||||
2. The user types the BNRead command or presses the <F19> key. The
|
||||
BufNetRead() or BufNetWrite() function will be called.
|
||||
|
||||
3. Vim can't find the function and triggers the |FuncUndefined| autocommand
|
||||
event. Since the pattern "BufNet*" matches the invoked function, the
|
||||
command "source fname" will be executed. "fname" will be equal to the name
|
||||
of the script, no matter where it is located, because it comes from
|
||||
expanding "<sfile>" (see |expand()|).
|
||||
|
||||
4. The script is sourced again, the "s:did_load" variable exists and the
|
||||
functions are defined.
|
||||
|
||||
Notice that the functions that are loaded afterwards match the pattern in the
|
||||
|FuncUndefined| autocommand. You must make sure that no other plugin defines
|
||||
functions that match this pattern.
|
||||
|
||||
==============================================================================
|
||||
*52.5* Using a Vim9 script from legacy script *source-vim9-script*
|
||||
|
||||
In some cases you have a legacy Vim script where you want to use items from a
|
||||
Vim9 script. For example in your .vimrc you want to initialize a plugin. The
|
||||
best way to do this is to use `:import`. For example: >
|
||||
|
||||
import 'myNicePlugin.vim'
|
||||
call myNicePlugin.NiceInit('today')
|
||||
|
||||
This finds the exported function "NiceInit" in the Vim9 script file and makes
|
||||
it available as script-local item "myNicePlugin.NiceInit". `:import` always
|
||||
uses the script namespace, even when "s:" is not given. If "myNicePlugin.vim"
|
||||
was already sourced it is not sourced again.
|
||||
|
||||
Besides avoiding putting any items in the global namespace (where name clashes
|
||||
can cause unexpected errors), this also means the script is sourced only once,
|
||||
no matter how many times items from it are imported.
|
||||
|
||||
In some cases, e.g. for testing, you may just want to source the Vim9 script.
|
||||
That is OK, but then only global items will be available. The Vim9 script
|
||||
will have to make sure to use a unique name for these global items. Example: >
|
||||
source ~/.vim/extra/myNicePlugin.vim
|
||||
call g:NicePluginTest()
|
||||
|
||||
==============================================================================
|
||||
|
||||
Next chapter: |usr_90.txt| Installing Vim
|
||||
|
||||
|
||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_90.txt* For Vim version 8.2. Last change: 2020 Jun 11
|
||||
*usr_90.txt* For Vim version 8.2. Last change: 2022 May 13
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -15,7 +15,7 @@ upgrading to a new version is done.
|
||||
|90.4| Common installation issues
|
||||
|90.5| Uninstalling Vim
|
||||
|
||||
Previous chapter: |usr_46.txt| Write plugins using Vim9 script
|
||||
Previous chapter: |usr_52.txt| Write plugins using Vim9 script
|
||||
Table of contents: |usr_toc.txt|
|
||||
|
||||
==============================================================================
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_toc.txt* For Vim version 8.2. Last change: 2020 Jun 15
|
||||
*usr_toc.txt* For Vim version 8.2. Last change: 2022 Jun 03
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
==============================================================================
|
||||
Overview ~
|
||||
|
||||
Getting Started
|
||||
Getting Started ~
|
||||
|usr_01.txt| About the manuals
|
||||
|usr_02.txt| The first steps in Vim
|
||||
|usr_03.txt| Moving around
|
||||
@@ -21,7 +21,7 @@ Getting Started
|
||||
|usr_11.txt| Recovering from a crash
|
||||
|usr_12.txt| Clever tricks
|
||||
|
||||
Editing Effectively
|
||||
Editing Effectively ~
|
||||
|usr_20.txt| Typing command-line commands quickly
|
||||
|usr_21.txt| Go away and come back
|
||||
|usr_22.txt| Finding the file to edit
|
||||
@@ -36,24 +36,28 @@ Editing Effectively
|
||||
|usr_31.txt| Exploiting the GUI
|
||||
|usr_32.txt| The undo tree
|
||||
|
||||
Tuning Vim
|
||||
Tuning Vim ~
|
||||
|usr_40.txt| Make new commands
|
||||
|usr_41.txt| Write a Vim script
|
||||
|usr_42.txt| Add new menus
|
||||
|usr_43.txt| Using filetypes
|
||||
|usr_44.txt| Your own syntax highlighted
|
||||
|usr_45.txt| Select your language (locale)
|
||||
|usr_46.txt| Write plugins using Vim9 script
|
||||
|
||||
Making Vim Run
|
||||
Writing Vim script ~
|
||||
|usr_50.txt| Advanced Vim script writing
|
||||
|usr_51.txt| Create a plugin
|
||||
|usr_52.txt| Write plugins using Vim9 script
|
||||
|
||||
Making Vim Run ~
|
||||
|usr_90.txt| Installing Vim
|
||||
|
||||
|
||||
Reference manual
|
||||
Reference manual ~
|
||||
|reference_toc| More detailed information for all commands
|
||||
|
||||
The user manual is available as a single, ready to print HTML and PDF file
|
||||
here:
|
||||
The user manual (an older version) is available as a single, ready to print
|
||||
HTML and PDF file here:
|
||||
http://vimdoc.sf.net
|
||||
|
||||
==============================================================================
|
||||
@@ -300,14 +304,10 @@ Make Vim work as you like it.
|
||||
|41.6| Using functions
|
||||
|41.7| Defining a function
|
||||
|41.8| Lists and Dictionaries
|
||||
|41.9| Exceptions
|
||||
|41.10| Various remarks
|
||||
|41.11| Writing a plugin
|
||||
|41.12| Writing a filetype plugin
|
||||
|41.13| Writing a compiler plugin
|
||||
|41.14| Writing a plugin that loads quickly
|
||||
|41.15| Writing library scripts
|
||||
|41.16| Distributing Vim scripts
|
||||
|41.9| White space
|
||||
|41.10| Line continuation
|
||||
|41.11| Comments
|
||||
|41.12| Fileformat
|
||||
|
||||
|usr_42.txt| Add new menus
|
||||
|42.1| Introduction
|
||||
@@ -340,11 +340,26 @@ Make Vim work as you like it.
|
||||
|45.4| Editing files with a different encoding
|
||||
|45.5| Entering language text
|
||||
|
||||
|usr_46.txt| Write plugins using Vim9 script
|
||||
|46.1| Introduction
|
||||
|46.2| Variable declarations
|
||||
|46.3| Functions and types
|
||||
|46.?| Using a Vim9 script from legacy script
|
||||
==============================================================================
|
||||
Writing Vim script ~
|
||||
|
||||
|usr_50.txt| Advanced Vim script writing
|
||||
|50.1| Exceptions
|
||||
|50.2| Function with variable number of arguments
|
||||
|50.3| Restoring the view
|
||||
|
||||
|usr_51.txt| Write plugins
|
||||
|51.1| Writing a generic plugin
|
||||
|51.2| Writing a filetype plugin
|
||||
|51.3| Writing a compiler plugin
|
||||
|51.4| Distributing Vim scripts
|
||||
|
||||
|usr_52.txt| Write larger plugins
|
||||
|52.1| Export and import
|
||||
|52.2| Autoloading
|
||||
|52.3| Autoloading without import/export
|
||||
|52.4| Other mechanisms to use
|
||||
|52.5| Using a Vim9 script from legacy script
|
||||
|
||||
==============================================================================
|
||||
Making Vim Run ~
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*various.txt* For Vim version 8.2. Last change: 2022 Apr 03
|
||||
*various.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -346,7 +346,7 @@ B *++builtin_terms* maximal terminals builtin |builtin-terms|
|
||||
N *+byte_offset* support for 'o' flag in 'statusline' option, "go"
|
||||
and ":goto" commands.
|
||||
m *+channel* inter process communication |channel|
|
||||
N *+cindent* |'cindent'|, C indenting
|
||||
6 *+cindent* |'cindent'|, C indenting
|
||||
N *+clientserver* Unix and Win32: Remote invocation |clientserver|
|
||||
*+clipboard* |clipboard| support compiled-in
|
||||
*+clipboard_working* |clipboard| support compiled-in and working
|
||||
@@ -398,7 +398,7 @@ N *+lambda* |lambda| and |closure|
|
||||
B *+langmap* |'langmap'|
|
||||
N *+libcall* |libcall()|
|
||||
N *+linebreak* |'linebreak'|, |'breakat'| and |'showbreak'|
|
||||
N *+lispindent* |'lisp'|
|
||||
t *+lispindent* |'lisp'|
|
||||
T *+listcmds* Vim commands for the list of buffers |buffer-hidden|
|
||||
and argument list |:argdelete|
|
||||
T *+localmap* Support for mappings local to a buffer |:map-local|
|
||||
@@ -450,7 +450,7 @@ m *+ruby* Ruby interface |ruby|
|
||||
m *+ruby/dyn* Ruby interface |ruby-dynamic| |/dyn|
|
||||
T *+scrollbind* |'scrollbind'|
|
||||
B *+signs* |:sign|
|
||||
N *+smartindent* |'smartindent'|
|
||||
t *+smartindent* |'smartindent'|
|
||||
B *+sodium* compiled with libsodium for better encryption support
|
||||
B *+sound* |sound_playevent()|, |sound_playfile()| functions, etc.
|
||||
N *+spell* spell checking support, see |spell|
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*vim9.txt* For Vim version 8.2. Last change: 2022 Apr 14
|
||||
*vim9.txt* For Vim version 8.2. Last change: 2022 Jun 10
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -86,7 +86,7 @@ script and `:def` functions; details are below:
|
||||
var count = 0
|
||||
count += 3
|
||||
- Constants can be declared with `:final` and `:const`: >
|
||||
final matches = [] # add matches
|
||||
final matches = [] # add to the list later
|
||||
const names = ['Betty', 'Peter'] # cannot be changed
|
||||
- `:final` cannot be used as an abbreviation of `:finally`.
|
||||
- Variables and functions are script-local by default.
|
||||
@@ -177,12 +177,12 @@ created yet. In this case you can call `execute()` to invoke it at runtime. >
|
||||
`:def` has no options like `:function` does: "range", "abort", "dict" or
|
||||
"closure". A `:def` function always aborts on an error (unless `:silent!` was
|
||||
used for the command or the error was caught a `:try` block), does not get a
|
||||
range passed cannot be a "dict" function, and can always be a closure.
|
||||
range passed, cannot be a "dict" function, and can always be a closure.
|
||||
*vim9-no-dict-function*
|
||||
Later classes will be added, which replaces the "dict function" mechanism.
|
||||
For now you will need to pass the dictionary explicitly: >
|
||||
def DictFunc(d: dict<any>, arg: string)
|
||||
echo d[arg]
|
||||
def DictFunc(self: dict<any>, arg: string)
|
||||
echo self[arg]
|
||||
enddef
|
||||
var ad = {item: 'value', func: DictFunc}
|
||||
ad.func(ad, 'item')
|
||||
@@ -223,7 +223,7 @@ The argument "_" (an underscore) can be used to ignore the argument. This is
|
||||
most useful in callbacks where you don't need it, but do need to give an
|
||||
argument to match the call. E.g. when using map() two arguments are passed,
|
||||
the key and the value, to ignore the key: >
|
||||
map(myList, (_, v) => v * 2)
|
||||
map(numberList, (_, v) => v * 2)
|
||||
There is no error for using the "_" argument multiple times. No type needs to
|
||||
be given.
|
||||
|
||||
@@ -234,7 +234,7 @@ When using `:function` or `:def` to specify a new function at the script level
|
||||
in a Vim9 script, the function is local to the script. Like prefixing "s:" in
|
||||
legacy script. To define a global function or variable the "g:" prefix must
|
||||
be used. For functions in a script that is to be imported and in an autoload
|
||||
script "export" needs to be used. >
|
||||
script "export" needs to be used for those to be used elsewhere. >
|
||||
def ThisFunction() # script-local
|
||||
def g:ThatFunction() # global
|
||||
export def Function() # for import and import autoload
|
||||
@@ -250,13 +250,20 @@ argument, pass the function reference itself: >
|
||||
var Fok = function(Inner) # OK
|
||||
var Fbad = function('Inner') # does not work
|
||||
|
||||
It is not possible to define a script-local function. It is possible to
|
||||
define a global function by using the "g:" prefix.
|
||||
Detail: this is because "Inner" will actually become a function reference to a
|
||||
function with a generated name.
|
||||
|
||||
It is not possible to define a script-local function in a function. You can
|
||||
define a local function and assign it to a script-local funcref (it must have
|
||||
been declared at the script level). It is possible to define a global
|
||||
function by using the "g:" prefix.
|
||||
|
||||
When referring to a function and no "s:" or "g:" prefix is used, Vim will
|
||||
search for the function:
|
||||
- in the function scope, in block scopes
|
||||
- in the script scope, possibly imported
|
||||
- in the script scope
|
||||
|
||||
Imported functions are found with the prefix from the `:import` command.
|
||||
|
||||
Since a script-local function reference can be used without "s:" the name must
|
||||
start with an upper case letter even when using the "s:" prefix. In legacy
|
||||
@@ -272,6 +279,7 @@ variables and functions in a legacy script do use "s:", while in a Vim9 script
|
||||
they do not use "s:". This matches what you see in the rest of the file.
|
||||
|
||||
In legacy functions the use of "s:" for script items is required, as before.
|
||||
No matter if the script is Vim9 or legacy.
|
||||
|
||||
In all cases the function must be defined before used. That is when it is
|
||||
called, when `:defcompile` causes it to be compiled, or when code that calls
|
||||
@@ -279,11 +287,13 @@ it is being compiled (to figure out the return type).
|
||||
|
||||
The result is that functions and variables without a namespace can usually be
|
||||
found in the script, either defined there or imported. Global functions and
|
||||
variables could be defined anywhere (good luck finding out where!).
|
||||
variables could be defined anywhere (good luck finding out where! You can
|
||||
often see where it was last set using |:verbose|).
|
||||
*E1102*
|
||||
Global functions can still be defined and deleted at nearly any time. In
|
||||
Vim9 script script-local functions are defined once when the script is sourced
|
||||
and cannot be deleted or replaced.
|
||||
and cannot be deleted or replaced by itself (it can be by reloading the
|
||||
script).
|
||||
|
||||
When compiling a function and a function call is encountered for a function
|
||||
that is not (yet) defined, the |FuncUndefined| autocommand is not triggered.
|
||||
@@ -294,7 +304,8 @@ You can use an autoload function if needed, or call a legacy function and have
|
||||
Reloading a Vim9 script clears functions and variables by default ~
|
||||
*vim9-reload* *E1149* *E1150*
|
||||
When loading a legacy Vim script a second time nothing is removed, the
|
||||
commands will replace existing variables and functions and create new ones.
|
||||
commands will replace existing variables and functions, create new ones, and
|
||||
leave removed things hanging around.
|
||||
|
||||
When loading a Vim9 script a second time all existing script-local functions
|
||||
and variables are deleted, thus you start with a clean slate. This is useful
|
||||
@@ -349,6 +360,13 @@ The declaration must be done earlier: >
|
||||
inner = 0
|
||||
endif
|
||||
echo inner
|
||||
|
||||
Although this is shorter and faster for simple values: >
|
||||
var inner = 0
|
||||
if cond
|
||||
inner = 5
|
||||
endif
|
||||
echo inner
|
||||
< *E1025* *E1128*
|
||||
To intentionally hide a variable from code that follows, a block can be
|
||||
used: >
|
||||
@@ -857,10 +875,16 @@ like in JavaScript: >
|
||||
var dict = {["key" .. nr]: value}
|
||||
|
||||
The key type can be string, number, bool or float. Other types result in an
|
||||
error. A number can be given with and without the []: >
|
||||
var dict = {123: 'without', [456]: 'with'}
|
||||
error. Without using [] the value is used as a string, keeping leading zeros.
|
||||
An expression given with [] is evaluated and then converted to a string.
|
||||
Leading zeros will then be dropped: >
|
||||
var dict = {000123: 'without', [000456]: 'with'}
|
||||
echo dict
|
||||
{'456': 'with', '123': 'without'}
|
||||
{'456': 'with', '000123': 'without'}
|
||||
A float only works inside [] because the dot is not accepted otherwise: >
|
||||
var dict = {[00.013]: 'float'}
|
||||
echo dict
|
||||
{'0.013': 'float'}
|
||||
|
||||
|
||||
No :xit, :t, :k, :append, :change or :insert ~
|
||||
@@ -1203,7 +1227,14 @@ prefix if they do not exist at the time of compiling.
|
||||
*:defc* *:defcompile*
|
||||
:defc[ompile] Compile functions defined in the current script that
|
||||
were not compiled yet.
|
||||
This will report errors found during the compilation.
|
||||
This will report any errors found during compilation.
|
||||
|
||||
:defc[ompile] {func}
|
||||
:defc[ompile] debug {func}
|
||||
:defc[ompile] profile {func}
|
||||
Compile function {func}, if needed. Use "debug" and
|
||||
"profile" to specify the compilation mode.
|
||||
This will report any errors found during compilation.
|
||||
|
||||
*:disa* *:disassemble*
|
||||
:disa[ssemble] {func} Show the instructions generated for {func}.
|
||||
@@ -1581,7 +1612,7 @@ and cannot be accessed by the importing script.
|
||||
This mechanism exists for writing a script that can be sourced (imported) by
|
||||
other scripts, while making sure these other scripts only have access to what
|
||||
you want them to. This also avoids using the global namespace, which has a
|
||||
risc of name collisions. For example when you have two plugins with similar
|
||||
risk of name collisions. For example when you have two plugins with similar
|
||||
functionality.
|
||||
|
||||
You can cheat by using the global namespace explicitly. That should be done
|
||||
@@ -1727,7 +1758,9 @@ used: >
|
||||
|
||||
When the mapping is defined "<SID>name." will be replaced with <SNR> and the
|
||||
script ID of the imported script.
|
||||
|
||||
An even simpler solution is using |<ScriptCmd>|: >
|
||||
noremap ,a <ScriptCmd>name.Function()<CR>
|
||||
<
|
||||
*:import-cycle*
|
||||
The `import` commands are executed when encountered. If script A imports
|
||||
script B, and B (directly or indirectly) imports A, this will be skipped over.
|
||||
@@ -1931,13 +1964,14 @@ We can also remove clutter, mainly things that were done to make Vim script
|
||||
backwards compatible with the good old Vi commands.
|
||||
|
||||
Examples:
|
||||
- Drop `:call` for calling a function and `:eval` for manipulating data.
|
||||
- Drop `:call` for calling a function and `:eval` for evaluating an
|
||||
expression.
|
||||
- Drop using a leading backslash for line continuation, automatically figure
|
||||
out where an expression ends.
|
||||
|
||||
However, this does require that some things need to change:
|
||||
- Comments start with # instead of ", to avoid confusing them with strings.
|
||||
This is good anyway, it is known from several popular languages.
|
||||
This is good anyway, it is also used by several popular languages.
|
||||
- Ex command ranges need to be prefixed with a colon, to avoid confusion with
|
||||
expressions (single quote can be a string or a mark, "/" can be divide or a
|
||||
search command, etc.).
|
||||
@@ -2067,12 +2101,13 @@ values are accepted:
|
||||
false: `false`, `v:false`, `0`, `0 > 9`
|
||||
Note that the number zero is false and the number one is true. This is more
|
||||
permissive than most other languages. It was done because many builtin
|
||||
functions return these values.
|
||||
functions return these values, and changing that causes more problems than it
|
||||
solves. After using this for a while it turned out to work well.
|
||||
|
||||
If you have any type of value and want to use it as a boolean, use the `!!`
|
||||
operator:
|
||||
true: `!!'text'`, `!![99]`, `!!{'x': 1}`, `!!99`
|
||||
false: `!!''`, `!![]`, `!!{}`
|
||||
true: `!!'text'` `!![99]` `!!{'x': 1}` `!!99`
|
||||
false: `!!''` `!![]` `!!{}`
|
||||
|
||||
From a language like JavaScript we have this handy construct: >
|
||||
GetName() || 'unknown'
|
||||
@@ -2094,19 +2129,20 @@ In Vim9 script a mechanism very similar to the JavaScript import and export
|
||||
mechanism is supported. It is a variant to the existing `:source` command
|
||||
that works like one would expect:
|
||||
- Instead of making everything global by default, everything is script-local,
|
||||
unless exported.
|
||||
some of these are exported.
|
||||
- When importing a script the symbols that are imported are explicitly listed,
|
||||
avoiding name conflicts and failures if functionality is added later.
|
||||
- The mechanism allows for writing a big, long script with a very clear API:
|
||||
the exported function(s) and class(es).
|
||||
the exported functions, variables and classes.
|
||||
- By using relative paths loading can be much faster for an import inside of a
|
||||
package, no need to search many directories.
|
||||
- Once an import has been used, it can be cached and loading it again can be
|
||||
avoided.
|
||||
- Once an import has been used, its items are cached and loading it again is
|
||||
not needed.
|
||||
- The Vim-specific use of "s:" to make things script-local can be dropped.
|
||||
|
||||
When sourcing a Vim9 script from a legacy script, only the items defined
|
||||
globally can be used, not the exported items. Alternatives considered:
|
||||
When sourcing a Vim9 script (from a Vim9 or legacy script), only the items
|
||||
defined globally can be used, not the exported items. Alternatives
|
||||
considered:
|
||||
- All the exported items become available as script-local items. This makes
|
||||
it uncontrollable what items get defined and likely soon leads to trouble.
|
||||
- Use the exported items and make them global. Disadvantage is that it's then
|
||||
@@ -2114,7 +2150,7 @@ globally can be used, not the exported items. Alternatives considered:
|
||||
- Completely disallow sourcing a Vim9 script, require using `:import`. That
|
||||
makes it difficult to use scripts for testing, or sourcing them from the
|
||||
command line to try them out.
|
||||
Note that you can also use `:import` in legacy Vim script, see above.
|
||||
Note that you CAN also use `:import` in legacy Vim script, see above.
|
||||
|
||||
|
||||
Compiling functions early ~
|
||||
@@ -2132,17 +2168,17 @@ figure out their type, so that forward references are found, and only then
|
||||
execute the script and compile the functions. This means the script has to be
|
||||
parsed twice, which is slower, and some conditions at the script level, such
|
||||
as checking if a feature is supported, are hard to use. An attempt was made
|
||||
to see if it works, but it turned out to be impossible to make work nicely.
|
||||
to see if it works, but it turned out to be impossible to make work well.
|
||||
|
||||
It would be possible to compile all the functions at the end of the script.
|
||||
The drawback is that if a function never gets called, the overhead of
|
||||
compiling it counts anyway. Since startup speed is very important, in most
|
||||
cases it's better to do it later and accept that syntax and type errors are
|
||||
only reported then. In case these errors should be found early, e.g. when
|
||||
testing, the `:defcompile` command will help out.
|
||||
testing, a `:defcompile` command at the end of the script will help out.
|
||||
|
||||
|
||||
Why not use an embedded language? ~
|
||||
Why not use an existing embedded language? ~
|
||||
|
||||
Vim supports interfaces to Perl, Python, Lua, Tcl and a few others. But
|
||||
these interfaces have never become widely used, for various reasons. When
|
||||
@@ -2151,8 +2187,8 @@ and concentrate on Vim script.
|
||||
|
||||
Still, plugin writers may find other languages more familiar, want to use
|
||||
existing libraries or see a performance benefit. We encourage plugin authors
|
||||
to write code in any language and run it as an external tool, using jobs and
|
||||
channels. We can try to make this easier somehow.
|
||||
to write code in any language and run it as an external process, using jobs
|
||||
and channels. We can try to make this easier somehow.
|
||||
|
||||
Using an external tool also has disadvantages. An alternative is to convert
|
||||
the tool into Vim script. For that to be possible without too much
|
||||
@@ -2168,9 +2204,10 @@ dictionary. With some care this can be made to work, but it does not look
|
||||
like real classes. On top of that, it's quite slow, because of the use of
|
||||
dictionaries.
|
||||
|
||||
The support of classes in Vim9 script is a "minimal common functionality" of
|
||||
class support in most languages. It works much like Java, which is the most
|
||||
popular programming language.
|
||||
It would be good to support real classes, and this is planned for a later
|
||||
version. The support is a "minimal common functionality" of class support in
|
||||
most languages. It will work much like Java, which is the most popular
|
||||
programming language.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*visual.txt* For Vim version 8.2. Last change: 2022 Jan 20
|
||||
*visual.txt* For Vim version 8.2. Last change: 2022 May 06
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*windows.txt* For Vim version 8.2. Last change: 2022 Apr 06
|
||||
*windows.txt* For Vim version 8.2. Last change: 2022 May 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1036,7 +1036,7 @@ modified, but is forced (with '!') to be removed from a window, and
|
||||
'autowrite' is off or the buffer can't be written.
|
||||
|
||||
You can make a hidden buffer not hidden by starting to edit it with any
|
||||
command. Or by deleting it with the ":bdelete" command.
|
||||
command, or by deleting it with the ":bdelete" command.
|
||||
|
||||
The 'hidden' is global, it is used for all buffers. The 'bufhidden' option
|
||||
can be used to make an exception for a specific buffer. It can take these
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
" Vim script for Evim key bindings
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2019 Jan 27
|
||||
" Last Change: 2022 May 10
|
||||
|
||||
" Don't use Vi-compatible mode.
|
||||
set nocompatible
|
||||
@@ -8,6 +8,9 @@ set nocompatible
|
||||
" Use the mswin.vim script for most mappings
|
||||
source <sfile>:p:h/mswin.vim
|
||||
|
||||
" Allow for using CTRL-Q in Insert mode to quit Vim.
|
||||
inoremap <C-Q> <C-O>:confirm qall<CR>
|
||||
|
||||
" Vim is in Insert mode by default
|
||||
set insertmode
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2022 Apr 25
|
||||
" Last Change: 2022 Jun 03
|
||||
|
||||
" Listen very carefully, I will say this only once
|
||||
if exists("did_load_filetypes")
|
||||
@@ -409,7 +409,7 @@ au BufNewFile,BufRead *.cu,*.cuh setf cuda
|
||||
|
||||
" Dockerfile; Podman uses the same syntax with name Containerfile
|
||||
" Also see Dockerfile.* below.
|
||||
au BufNewFile,BufRead Containerfile,Dockerfile,*.Dockerfile setf dockerfile
|
||||
au BufNewFile,BufRead Containerfile,Dockerfile,dockerfile,*.[dD]ockerfile setf dockerfile
|
||||
|
||||
" WildPackets EtherPeek Decoder
|
||||
au BufNewFile,BufRead *.dcd setf dcd
|
||||
@@ -819,6 +819,9 @@ au BufNewFile,BufRead *.hjson setf hjson
|
||||
" Hollywood
|
||||
au BufRead,BufNewFile *.hws setf hollywood
|
||||
|
||||
" Hoon
|
||||
au BufRead,BufNewFile *.hoon setf hoon
|
||||
|
||||
" Tilde (must be before HTML)
|
||||
au BufNewFile,BufRead *.t.html setf tilde
|
||||
|
||||
@@ -1172,6 +1175,9 @@ au BufNewFile,BufRead *.isc,*.monk,*.ssc,*.tsc setf monk
|
||||
" MOO
|
||||
au BufNewFile,BufRead *.moo setf moo
|
||||
|
||||
" Moonscript
|
||||
au BufNewFile,BufRead *.moon setf moonscript
|
||||
|
||||
" Modconf
|
||||
au BufNewFile,BufRead */etc/modules.conf,*/etc/modules,*/etc/conf.modules setf modconf
|
||||
|
||||
@@ -1284,25 +1290,25 @@ au BufNewFile,BufRead opam,*.opam,*.opam.template setf opam
|
||||
au BufNewFile,BufRead [a-zA-Z0-9]*Dict\(.*\)\=,[a-zA-Z]*Properties\(.*\)\=,*Transport\(.*\),fvSchemes,fvSolution,fvConstrains,fvModels,*/constant/g,*/0\(\.orig\)\=/* call dist#ft#FTfoam()
|
||||
|
||||
" OpenROAD
|
||||
au BufNewFile,BufRead *.or setf openroad
|
||||
au BufNewFile,BufRead *.or setf openroad
|
||||
|
||||
" OPL
|
||||
au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl
|
||||
au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl
|
||||
|
||||
" OpenSCAD
|
||||
au BufNewFile,BufRead *.scad setf openscad
|
||||
au BufNewFile,BufRead *.scad setf openscad
|
||||
|
||||
" Oracle config file
|
||||
au BufNewFile,BufRead *.ora setf ora
|
||||
au BufNewFile,BufRead *.ora setf ora
|
||||
|
||||
" Org
|
||||
au BufNewFile,BufRead *.org,*.org_archive setf org
|
||||
au BufNewFile,BufRead *.org,*.org_archive setf org
|
||||
|
||||
" Packet filter conf
|
||||
au BufNewFile,BufRead pf.conf setf pf
|
||||
au BufNewFile,BufRead pf.conf setf pf
|
||||
|
||||
" Pacman config
|
||||
au BufNewFile,BufRead */etc/pacman.conf setf conf
|
||||
" ini style config files, using # comments
|
||||
au BufNewFile,BufRead */etc/pacman.conf,mpv.conf setf confini
|
||||
|
||||
" Pacman hooks
|
||||
au BufNewFile,BufRead *.hook
|
||||
@@ -1317,36 +1323,36 @@ au BufNewFile,BufRead */etc/pam.conf setf pamconf
|
||||
au BufNewFile,BufRead pam_env.conf,.pam_environment setf pamenv
|
||||
|
||||
" PApp
|
||||
au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp
|
||||
au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp
|
||||
|
||||
" Password file
|
||||
au BufNewFile,BufRead */etc/passwd,*/etc/passwd-,*/etc/passwd.edit,*/etc/shadow,*/etc/shadow-,*/etc/shadow.edit,*/var/backups/passwd.bak,*/var/backups/shadow.bak setf passwd
|
||||
|
||||
" Pascal (also *.p, *.pp, *.inc)
|
||||
au BufNewFile,BufRead *.pas setf pascal
|
||||
au BufNewFile,BufRead *.pas setf pascal
|
||||
|
||||
" Pascal or Puppet manifest
|
||||
au BufNewFile,BufRead *.pp call dist#ft#FTpp()
|
||||
au BufNewFile,BufRead *.pp call dist#ft#FTpp()
|
||||
|
||||
" Delphi or Lazarus program file
|
||||
au BufNewFile,BufRead *.dpr,*.lpr setf pascal
|
||||
au BufNewFile,BufRead *.dpr,*.lpr setf pascal
|
||||
|
||||
" Free Pascal makefile definition file
|
||||
au BufNewFile,BufRead *.fpc setf fpcmake
|
||||
au BufNewFile,BufRead *.fpc setf fpcmake
|
||||
|
||||
" PDF
|
||||
au BufNewFile,BufRead *.pdf setf pdf
|
||||
au BufNewFile,BufRead *.pdf setf pdf
|
||||
|
||||
" PCMK - HAE - crm configure edit
|
||||
au BufNewFile,BufRead *.pcmk setf pcmk
|
||||
au BufNewFile,BufRead *.pcmk setf pcmk
|
||||
|
||||
" Perl
|
||||
if has("fname_case")
|
||||
au BufNewFile,BufRead *.pl,*.PL call dist#ft#FTpl()
|
||||
au BufNewFile,BufRead *.pl,*.PL call dist#ft#FTpl()
|
||||
else
|
||||
au BufNewFile,BufRead *.pl call dist#ft#FTpl()
|
||||
au BufNewFile,BufRead *.pl call dist#ft#FTpl()
|
||||
endif
|
||||
au BufNewFile,BufRead *.plx,*.al,*.psgi setf perl
|
||||
au BufNewFile,BufRead *.plx,*.al,*.psgi setf perl
|
||||
|
||||
" Perl, XPM or XPM2
|
||||
au BufNewFile,BufRead *.pm
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Abaqus finite element input file (www.abaqus.com)
|
||||
" Maintainer: Carl Osterwisch <osterwischc@asme.org>
|
||||
" Last Change: 2012 Apr 30
|
||||
" Last Change: 2022 May 09
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin") | finish | endif
|
||||
@@ -86,11 +86,11 @@ let b:undo_ftplugin .= "|unmap <buffer> [[|unmap <buffer> ]]"
|
||||
\ . "|unmap <buffer> <LocalLeader><LocalLeader>"
|
||||
|
||||
" Undo must be done in nocompatible mode for <LocalLeader>.
|
||||
let b:undo_ftplugin = "let s:cpo_save = &cpoptions|"
|
||||
let b:undo_ftplugin = "let b:cpo_save = &cpoptions|"
|
||||
\ . "set cpoptions&vim|"
|
||||
\ . b:undo_ftplugin
|
||||
\ . "|let &cpoptions = s:cpo_save"
|
||||
\ . "|unlet s:cpo_save"
|
||||
\ . "|let &cpoptions = b:cpo_save"
|
||||
\ . "|unlet b:cpo_save"
|
||||
|
||||
" Restore saved compatibility options
|
||||
let &cpoptions = s:cpo_save
|
||||
|
||||
10
runtime/ftplugin/confini.vim
Normal file
10
runtime/ftplugin/confini.vim
Normal file
@@ -0,0 +1,10 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: confini
|
||||
|
||||
" Quit if a ftplugin file was already loaded
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Use the cfg plugin, it's similar enough.
|
||||
runtime! ftplugin/cfg.vim
|
||||
@@ -1,29 +1,43 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: C#
|
||||
" Maintainer: Johannes Zellner <johannes@zellner.org>
|
||||
" Last Change: Tue, 09 Mar 2004 14:09:33 CET
|
||||
" Language: C#
|
||||
" Maintainer: Nick Jensen <nickspoon@gmail.com>
|
||||
" Former Maintainer: Johannes Zellner <johannes@zellner.org>
|
||||
" Last Change: 2021-12-07
|
||||
" License: Vim (see :h license)
|
||||
" Repository: https://github.com/nickspoons/vim-cs
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
|
||||
" Don't load another plugin for this buffer
|
||||
let b:did_ftplugin = 1
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
let s:save_cpo = &cpoptions
|
||||
set cpoptions&vim
|
||||
|
||||
" Set 'formatoptions' to break comment lines but not other lines,
|
||||
" and insert the comment leader when hitting <CR> or using "o".
|
||||
setlocal fo-=t fo+=croql
|
||||
setlocal formatoptions-=t formatoptions+=croql
|
||||
|
||||
" Set 'comments' to format dashed lists in comments.
|
||||
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
|
||||
|
||||
if has("gui_win32") && !exists("b:browsefilter")
|
||||
let b:browsefilter = "C# Source Files (*.cs)\t*.cs\n" .
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
let b:undo_ftplugin = 'setl com< fo<'
|
||||
|
||||
if exists('loaded_matchit') && !exists('b:match_words')
|
||||
" #if/#endif support included by default
|
||||
let b:match_words = '\%(^\s*\)\@<=#\s*region\>:\%(^\s*\)\@<=#\s*endregion\>,'
|
||||
let b:undo_ftplugin .= ' | unlet! b:match_words'
|
||||
endif
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
unlet s:keepcpo
|
||||
if (has('gui_win32') || has('gui_gtk')) && !exists('b:browsefilter')
|
||||
let b:browsefilter = "C# Source Files (*.cs *.csx)\t*.cs;*.csx\n" .
|
||||
\ "C# Project Files (*.csproj)\t*.csproj\n" .
|
||||
\ "Visual Studio Solution Files (*.sln)\t*.sln\n" .
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
let b:undo_ftplugin .= ' | unlet! b:browsefilter'
|
||||
endif
|
||||
|
||||
let &cpoptions = s:save_cpo
|
||||
unlet s:save_cpo
|
||||
|
||||
" vim:et:sw=2:sts=2
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
" Vim settings file
|
||||
" Language: Fortran 2008 (and older: Fortran 2003, 95, 90, 77, 66)
|
||||
" Version: (v53) 2021 April 06
|
||||
" Version: (v53) 2021 April 06 (updated 2022 May 22)
|
||||
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
|
||||
" Usage: For instructions, do :help fortran-plugin from Vim
|
||||
" Credits:
|
||||
@@ -105,12 +105,13 @@ if !exists("b:match_words")
|
||||
let s:notselect = '\%(\<select\s\+\)\@<!'
|
||||
let s:notelse = '\%(\<end\s\+\|\<else\s\+\)\@<!'
|
||||
let s:notprocedure = '\%(\s\+procedure\>\)\@!'
|
||||
let s:nothash = '\%(^\s*#\s*\)\@<!'
|
||||
let b:match_ignorecase = 1
|
||||
let b:match_words =
|
||||
\ '(:),' .
|
||||
\ '\<select\s*case\>:' . s:notselect. '\<case\>:\<end\s*select\>,' .
|
||||
\ s:notelse . '\<if\s*(.\+)\s*then\>:' .
|
||||
\ '\<else\s*\%(if\s*(.\+)\s*then\)\=\>:\<end\s*if\>,'.
|
||||
\ s:nothash . '\<else\s*\%(if\s*(.\+)\s*then\)\=\>:' . s:nothash . '\<end\s*if\>,'.
|
||||
\ 'do\s\+\(\d\+\):\%(^\s*\)\@<=\1\s,'.
|
||||
\ s:notend . '\<do\>:\<end\s*do\>,'.
|
||||
\ s:notelse . '\<where\>:\<elsewhere\>:\<end\s*where\>,'.
|
||||
@@ -122,7 +123,8 @@ if !exists("b:match_words")
|
||||
\ s:notend . '\<subroutine\>:\<end\s*subroutine\>,'.
|
||||
\ s:notend . '\<function\>:\<end\s*function\>,'.
|
||||
\ s:notend . '\<module\>' . s:notprocedure . ':\<end\s*module\>,'.
|
||||
\ s:notend . '\<program\>:\<end\s*program\>'
|
||||
\ s:notend . '\<program\>:\<end\s*program\>,'.
|
||||
\ '\%(^\s*\)\@<=#\s*if\%(def\|ndef\)\=\>:\%(^\s*\)\@<=#\s*\%(elif\|else\)\>:\%(^\s*\)\@<=#\s*endif\>'
|
||||
endif
|
||||
|
||||
" File filters for :browse e
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
" scdoc filetype plugin
|
||||
" Maintainer: Gregory Anders <greg@gpanders.com>
|
||||
" Last Updated: 2021-08-04
|
||||
" Maintainer: Gregory Anders <contact@gpanders.com>
|
||||
" Last Updated: 2022-05-09
|
||||
" Upstream: https://github.com/gpanders/vim-scdoc
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists('b:did_ftplugin')
|
||||
@@ -19,8 +20,3 @@ setlocal softtabstop=0
|
||||
setlocal textwidth=80
|
||||
|
||||
let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<'
|
||||
|
||||
if has('conceal')
|
||||
setlocal conceallevel=2
|
||||
let b:undo_ftplugin .= ' cole<'
|
||||
endif
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
" Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com
|
||||
" Former Maintainer: Gustavo Niemeyer <niemeyer@conectiva.com> (until March 2014)
|
||||
" Last Change: Mon Jun 01 21:15 MSK 2015 Igor Gnatenko
|
||||
" Update by Zdenek Dohnal, 2022 May 17
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@@ -41,8 +42,8 @@ else:
|
||||
headers = spec.sourceHeader
|
||||
version = headers["Version"]
|
||||
release = headers["Release"]
|
||||
vim.command("let ver = " + version)
|
||||
vim.command("let rel = " + release)
|
||||
vim.command("let ver = '" + version + "'")
|
||||
vim.command("let rel = '" + release + "'")
|
||||
PYEND
|
||||
endif
|
||||
endfunction
|
||||
|
||||
29
runtime/ftplugin/wget.vim
Normal file
29
runtime/ftplugin/wget.vim
Normal file
@@ -0,0 +1,29 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Wget configuration file (/etc/wgetrc ~/.wgetrc)
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Last Change: 2022 Apr 28
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
setlocal comments=:#,://
|
||||
setlocal commentstring=#\ %s
|
||||
setlocal formatoptions-=t formatoptions+=croql
|
||||
|
||||
let b:undo_ftplugin = "setl fo< com< cms<"
|
||||
|
||||
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||
let b:browsefilter = "Wget Configuration File (wgetrc, .wgetrc)\twgetrc;.wgetrc\n" .
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
let b:undo_ftplugin ..= " | unlet! b:browsefilter"
|
||||
endif
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: nowrap sw=2 sts=2 ts=8
|
||||
29
runtime/ftplugin/wget2.vim
Normal file
29
runtime/ftplugin/wget2.vim
Normal file
@@ -0,0 +1,29 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Wget2 configuration file (/etc/wget2rc ~/.wget2rc)
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Last Change: 2022 Apr 28
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
setlocal comments=:#,://
|
||||
setlocal commentstring=#\ %s
|
||||
setlocal formatoptions-=t formatoptions+=croql
|
||||
|
||||
let b:undo_ftplugin = "setl fo< com< cms<"
|
||||
|
||||
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||
let b:browsefilter = "Wget2 Configuration File (wget2rc, .wget2rc)\twget2rc;.wget2rc\n" .
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
let b:undo_ftplugin ..= " | unlet! b:browsefilter"
|
||||
endif
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: nowrap sw=2 sts=2 ts=8
|
||||
@@ -5,6 +5,7 @@
|
||||
Name[ca]=GVim
|
||||
Name[de]=GVim
|
||||
Name[eo]=GVim
|
||||
Name[es]=GVim
|
||||
Name[fi]=GVim
|
||||
Name[fr]=GVim
|
||||
Name[ga]=GVim
|
||||
@@ -12,11 +13,13 @@ Name[it]=GVim
|
||||
Name[ru]=GVim
|
||||
Name[sr]=GVim
|
||||
Name[tr]=GVim
|
||||
Name[uk]=GVim
|
||||
Name=GVim
|
||||
# Translators: This is the Generic Application Name used in the Vim desktop file
|
||||
GenericName[ca]=Editor de text
|
||||
GenericName[de]=Texteditor
|
||||
GenericName[eo]=Tekstoredaktilo
|
||||
GenericName[es]=Editor de texto
|
||||
GenericName[fi]=Tekstinmuokkain
|
||||
GenericName[fr]=Éditeur de texte
|
||||
GenericName[ga]=Eagarthóir Téacs
|
||||
@@ -25,11 +28,13 @@ GenericName[ja]=テキストエディタ
|
||||
GenericName[ru]=Текстовый редактор
|
||||
GenericName[sr]=Едитор текст
|
||||
GenericName[tr]=Metin Düzenleyici
|
||||
GenericName[uk]=Редактор Тексту
|
||||
GenericName=Text Editor
|
||||
# Translators: This is the comment used in the Vim desktop file
|
||||
Comment[ca]=Edita fitxers de text
|
||||
Comment[de]=Textdateien bearbeiten
|
||||
Comment[eo]=Redakti tekstajn dosierojn
|
||||
Comment[es]=Editar archivos de texto
|
||||
Comment[fi]=Muokkaa tekstitiedostoja
|
||||
Comment[fr]=Éditer des fichiers texte
|
||||
Comment[ga]=Cuir comhaid téacs in eagar
|
||||
@@ -38,6 +43,7 @@ Comment[ja]=テキストファイルを編集します
|
||||
Comment[ru]=Редактирование текстовых файлов
|
||||
Comment[sr]=Уређујте текст фајлове
|
||||
Comment[tr]=Metin dosyaları düzenleyin
|
||||
Comment[uk]=Редагувати текстові файли
|
||||
Comment=Edit text files
|
||||
# The translations should come from the po file. Leave them here for now, they will
|
||||
# be overwritten by the po file when generating the desktop.file!
|
||||
@@ -58,7 +64,6 @@ Comment[da]=Rediger tekstfiler
|
||||
Comment[el]=Επεξεργασία αρχείων κειμένου
|
||||
Comment[en_CA]=Edit text files
|
||||
Comment[en_GB]=Edit text files
|
||||
Comment[es]=Edita archivos de texto
|
||||
Comment[et]=Redigeeri tekstifaile
|
||||
Comment[eu]=Editatu testu-fitxategiak
|
||||
Comment[fa]=ویرایش پروندههای متنی
|
||||
@@ -97,9 +102,8 @@ Comment[sv]=Redigera textfiler
|
||||
Comment[ta]=உரை கோப்புகளை தொகுக்கவும்
|
||||
Comment[th]=แก้ไขแฟ้มข้อความ
|
||||
Comment[tk]=Metin faýllary editle
|
||||
Comment[uk]=Редактор текстових файлів
|
||||
Comment[vi]=Soạn thảo tập tin văn bản
|
||||
Comment[wa]=Asspougnî des fitchîs tecses
|
||||
Comment[wa]=Asspougnî des fitcs tecses
|
||||
Comment[zh_CN]=编辑文本文件
|
||||
Comment[zh_TW]=編輯文字檔
|
||||
TryExec=gvim
|
||||
@@ -110,6 +114,7 @@ Type=Application
|
||||
Keywords[ca]=Text;editor;
|
||||
Keywords[de]=Text;Editor;
|
||||
Keywords[eo]=Teksto;redaktilo;
|
||||
Keywords[es]=Texto;editor;
|
||||
Keywords[fi]=Teksti;muokkain;editori;
|
||||
Keywords[fr]=Texte;éditeur;
|
||||
Keywords[ga]=Téacs;eagarthóir;
|
||||
@@ -118,6 +123,7 @@ Keywords[ja]=テキスト;エディタ;
|
||||
Keywords[ru]=текст;текстовый редактор;
|
||||
Keywords[sr]=Текст;едитор;
|
||||
Keywords[tr]=Metin;düzenleyici;
|
||||
Keywords[uk]=текст;редактор;
|
||||
Keywords=Text;editor;
|
||||
# Translators: This is the Icon file name. Do NOT translate
|
||||
Icon=gvim
|
||||
|
||||
31
runtime/import/dist/vimhelp.vim
vendored
Normal file
31
runtime/import/dist/vimhelp.vim
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
vim9script
|
||||
|
||||
# Extra functionality for displaying Vim help .
|
||||
|
||||
# Called when editing the doc/syntax.txt file
|
||||
export def HighlightGroups()
|
||||
var save_cursor = getcurpos()
|
||||
var buf: number = bufnr('%')
|
||||
|
||||
var start: number = search('\*highlight-groups\*', 'c')
|
||||
var end: number = search('^======')
|
||||
for lnum in range(start, end)
|
||||
var word: string = getline(lnum)->matchstr('^\w\+\ze\t')
|
||||
if word->hlexists()
|
||||
var type = 'help-hl-' .. word
|
||||
if prop_type_list({bufnr: buf})->index(type) != -1
|
||||
# was called before, delete existing properties
|
||||
prop_remove({type: type, bufnr: buf})
|
||||
prop_type_delete(type, {bufnr: buf})
|
||||
endif
|
||||
prop_type_add(type, {
|
||||
bufnr: buf,
|
||||
highlight: word,
|
||||
combine: false,
|
||||
})
|
||||
prop_add(lnum, 1, {length: word->strlen(), type: type})
|
||||
endif
|
||||
endfor
|
||||
|
||||
setpos('.', save_cursor)
|
||||
enddef
|
||||
10
runtime/indent/confini.vim
Normal file
10
runtime/indent/confini.vim
Normal file
@@ -0,0 +1,10 @@
|
||||
" Vim indent file
|
||||
" Language: confini
|
||||
|
||||
" Quit if an indent file was already loaded.
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Use the cfg indenting, it's similar enough.
|
||||
runtime! indent/cfg.vim
|
||||
@@ -3,13 +3,10 @@
|
||||
" Maintainer: Nick Jensen <nickspoon@gmail.com>
|
||||
" Former Maintainers: Aquila Deus
|
||||
" Johannes Zellner <johannes@zellner.org>
|
||||
" Last Change: 2018-11-21
|
||||
" Filenames: *.cs
|
||||
" Last Change: 2020-03-26
|
||||
" License: Vim (see :h license)
|
||||
" Repository: https://github.com/nickspoons/vim-cs
|
||||
"
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists('b:did_indent')
|
||||
finish
|
||||
endif
|
||||
@@ -22,19 +19,23 @@ set cpoptions&vim
|
||||
setlocal indentexpr=GetCSIndent(v:lnum)
|
||||
|
||||
function! s:IsCompilerDirective(line)
|
||||
return a:line =~? '^\s*#'
|
||||
" Exclude #region and #endregion - these should be indented normally
|
||||
return a:line =~# '^\s*#' && !s:IsRegionDirective(a:line)
|
||||
endf
|
||||
|
||||
function! s:IsRegionDirective(line)
|
||||
return a:line =~# '^\s*#\s*region' || a:line =~# '^\s*#\s*endregion'
|
||||
endf
|
||||
|
||||
function! s:IsAttributeLine(line)
|
||||
return a:line =~? '^\s*\[[A-Za-z]' && a:line =~? '\]$'
|
||||
return a:line =~# '^\s*\[[A-Za-z]' && a:line =~# '\]$'
|
||||
endf
|
||||
|
||||
function! s:FindPreviousNonCompilerDirectiveLine(start_lnum)
|
||||
for delta in range(0, a:start_lnum)
|
||||
let lnum = a:start_lnum - delta
|
||||
let line = getline(lnum)
|
||||
let is_directive = s:IsCompilerDirective(line)
|
||||
if !is_directive
|
||||
if !s:IsCompilerDirective(line) && !s:IsRegionDirective(line)
|
||||
return lnum
|
||||
endif
|
||||
endfor
|
||||
@@ -58,8 +59,9 @@ function! GetCSIndent(lnum) abort
|
||||
let lnum = s:FindPreviousNonCompilerDirectiveLine(a:lnum - 1)
|
||||
let previous_code_line = getline(lnum)
|
||||
if s:IsAttributeLine(previous_code_line)
|
||||
let ind = indent(lnum)
|
||||
return ind
|
||||
return indent(lnum)
|
||||
elseif s:IsRegionDirective(this_line)
|
||||
return cindent(lnum)
|
||||
else
|
||||
return cindent(a:lnum)
|
||||
endif
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
" Vim indent file
|
||||
" Language: Fortran 2008 (and older: Fortran 2003, 95, 90, and 77)
|
||||
" Version: (v48) 2020 October 07
|
||||
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
|
||||
" Version: (v49) 2022 May 14
|
||||
" Maintainer: Ajit J. Thakkar <thakkar.ajit@gmail.com>; <http://www2.unb.ca/~ajit/>
|
||||
" Usage: For instructions, do :help fortran-indent from Vim
|
||||
" Credits:
|
||||
" Version 0.1 was created in September 2000 by Ajit Thakkar.
|
||||
" Since then, useful suggestions and contributions have been made, in order, by:
|
||||
" Albert Oliver Serra, Takuya Fujiwara, Philipp Edelmann, Eisuke Kawashima,
|
||||
" and Louis Cochen.
|
||||
" Louis Cochen, and Doug Kearns.
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -17,6 +17,7 @@ let b:did_indent = 1
|
||||
|
||||
let s:cposet=&cpoptions
|
||||
set cpoptions&vim
|
||||
let b:undo_indent = "setl inde< indk<"
|
||||
|
||||
setlocal indentkeys+==~end,=~case,=~if,=~else,=~do,=~where,=~elsewhere,=~select
|
||||
setlocal indentkeys+==~endif,=~enddo,=~endwhere,=~endselect,=~elseif
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
" PostScript indent file
|
||||
" Language: PostScript
|
||||
" Maintainer: Mike Williams <mrw@netcomuk.co.uk> (Invalid email address)
|
||||
" Doug Kearns <dougkearns@gmail.com>
|
||||
" Maintainer: Mike Williams <mrw@eandem.co.uk>
|
||||
" Last Change: 2022 Apr 06
|
||||
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
|
||||
@@ -13,11 +13,6 @@ map: &anchor
|
||||
map: val
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
map: multiline
|
||||
value
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
map: |
|
||||
line1
|
||||
|
||||
@@ -13,11 +13,6 @@ map: &anchor
|
||||
map: val
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
map: multiline
|
||||
value
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
map: |
|
||||
line1
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: YAML
|
||||
" Maintainer: Nikolai Pavlov <zyx.vim@gmail.com>
|
||||
" Last Update: Lukas Reineke
|
||||
" Last Change: 2021 Aug 13
|
||||
" Last Change: 2022 May 02
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists('b:did_indent')
|
||||
@@ -54,7 +54,7 @@ let s:c_ns_anchor_name = s:c_ns_anchor_char.'+'
|
||||
let s:c_ns_anchor_property = '\v\&'.s:c_ns_anchor_name
|
||||
|
||||
let s:ns_word_char = '\v[[:alnum:]_\-]'
|
||||
let s:ns_tag_char = '\v%('.s:ns_word_char.'|[#/;?:@&=+$.~*''()])'
|
||||
let s:ns_tag_char = '\v%(%\x\x|'.s:ns_word_char.'|[#/;?:@&=+$.~*''()])'
|
||||
let s:c_named_tag_handle = '\v\!'.s:ns_word_char.'+\!'
|
||||
let s:c_secondary_tag_handle = '\v\!\!'
|
||||
let s:c_primary_tag_handle = '\v\!'
|
||||
@@ -63,7 +63,7 @@ let s:c_tag_handle = '\v%('.s:c_named_tag_handle.
|
||||
\ '|'.s:c_primary_tag_handle.')'
|
||||
let s:c_ns_shorthand_tag = '\v'.s:c_tag_handle . s:ns_tag_char.'+'
|
||||
let s:c_non_specific_tag = '\v\!'
|
||||
let s:ns_uri_char = '\v%('.s:ns_word_char.'\v|[#/;?:@&=+$,.!~*''()[\]])'
|
||||
let s:ns_uri_char = '\v%(%\x\x|'.s:ns_word_char.'\v|[#/;?:@&=+$,.!~*''()[\]])'
|
||||
let s:c_verbatim_tag = '\v\!\<'.s:ns_uri_char.'+\>'
|
||||
let s:c_ns_tag_property = '\v'.s:c_verbatim_tag.
|
||||
\ '\v|'.s:c_ns_shorthand_tag.
|
||||
|
||||
129
runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
vendored
129
runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
vendored
@@ -2,7 +2,7 @@
|
||||
"
|
||||
" Author: Bram Moolenaar
|
||||
" Copyright: Vim license applies, see ":help license"
|
||||
" Last Change: 2022 Apr 16
|
||||
" Last Change: 2022 May 23
|
||||
"
|
||||
" WORK IN PROGRESS - The basics works stable, more to come
|
||||
" Note: In general you need at least GDB 7.12 because this provides the
|
||||
@@ -65,11 +65,6 @@ set cpo&vim
|
||||
command -nargs=* -complete=file -bang Termdebug call s:StartDebug(<bang>0, <f-args>)
|
||||
command -nargs=+ -complete=file -bang TermdebugCommand call s:StartDebugCommand(<bang>0, <f-args>)
|
||||
|
||||
" Name of the gdb command, defaults to "gdb".
|
||||
if !exists('g:termdebugger')
|
||||
let g:termdebugger = 'gdb'
|
||||
endif
|
||||
|
||||
let s:pc_id = 12
|
||||
let s:asm_id = 13
|
||||
let s:break_id = 14 " breakpoint number is added to this
|
||||
@@ -99,8 +94,17 @@ call s:Highlight(1, '', &background)
|
||||
hi default debugBreakpoint term=reverse ctermbg=red guibg=red
|
||||
hi default debugBreakpointDisabled term=reverse ctermbg=gray guibg=gray
|
||||
|
||||
" Get the command to execute the debugger as a list, defaults to ["gdb"].
|
||||
func s:GetCommand()
|
||||
return type(g:termdebugger) == v:t_list ? copy(g:termdebugger) : [g:termdebugger]
|
||||
if exists('g:termdebug_config')
|
||||
let cmd = get(g:termdebug_config, 'command', 'gdb')
|
||||
elseif exists('g:termdebugger')
|
||||
let cmd = g:termdebugger
|
||||
else
|
||||
let cmd = 'gdb'
|
||||
endif
|
||||
|
||||
return type(cmd) == v:t_list ? copy(cmd) : [cmd]
|
||||
endfunc
|
||||
|
||||
func s:StartDebug(bang, ...)
|
||||
@@ -144,10 +148,16 @@ func s:StartDebug_internal(dict)
|
||||
|
||||
let s:save_columns = 0
|
||||
let s:allleft = 0
|
||||
if exists('g:termdebug_wide')
|
||||
if &columns < g:termdebug_wide
|
||||
let wide = 0
|
||||
if exists('g:termdebug_config')
|
||||
let wide = get(g:termdebug_config, 'wide', 0)
|
||||
elseif exists('g:termdebug_wide')
|
||||
let wide = g:termdebug_wide
|
||||
endif
|
||||
if wide > 0
|
||||
if &columns < wide
|
||||
let s:save_columns = &columns
|
||||
let &columns = g:termdebug_wide
|
||||
let &columns = wide
|
||||
" If we make the Vim window wider, use the whole left half for the debug
|
||||
" windows.
|
||||
let s:allleft = 1
|
||||
@@ -158,7 +168,12 @@ func s:StartDebug_internal(dict)
|
||||
endif
|
||||
|
||||
" Override using a terminal window by setting g:termdebug_use_prompt to 1.
|
||||
let use_prompt = exists('g:termdebug_use_prompt') && g:termdebug_use_prompt
|
||||
let use_prompt = 0
|
||||
if exists('g:termdebug_config')
|
||||
let use_prompt = get(g:termdebug_config, 'use_prompt', 0)
|
||||
elseif exists('g:termdebug_use_prompt')
|
||||
let use_prompt = g:termdebug_use_prompt
|
||||
endif
|
||||
if has('terminal') && !has('win32') && !use_prompt
|
||||
let s:way = 'terminal'
|
||||
else
|
||||
@@ -171,12 +186,10 @@ func s:StartDebug_internal(dict)
|
||||
call s:StartDebug_term(a:dict)
|
||||
endif
|
||||
|
||||
if exists('g:termdebug_disasm_window')
|
||||
if g:termdebug_disasm_window
|
||||
let curwinid = win_getid(winnr())
|
||||
call s:GotoAsmwinOrCreateIt()
|
||||
call win_gotoid(curwinid)
|
||||
endif
|
||||
if s:GetDisasmWindow()
|
||||
let curwinid = win_getid(winnr())
|
||||
call s:GotoAsmwinOrCreateIt()
|
||||
call win_gotoid(curwinid)
|
||||
endif
|
||||
|
||||
if exists('#User#TermdebugStartPost')
|
||||
@@ -201,8 +214,8 @@ func s:CheckGdbRunning()
|
||||
return 'ok'
|
||||
endfunc
|
||||
|
||||
" Open a terminal window without a job, to run the debugged program in.
|
||||
func s:StartDebug_term(dict)
|
||||
" Open a terminal window without a job, to run the debugged program in.
|
||||
let s:ptybuf = term_start('NONE', {
|
||||
\ 'term_name': 'debugged program',
|
||||
\ 'vertical': s:vertical,
|
||||
@@ -240,18 +253,28 @@ func s:StartDebug_term(dict)
|
||||
let proc_args = get(a:dict, 'proc_args', [])
|
||||
|
||||
let gdb_cmd = s:GetCommand()
|
||||
" Add -quiet to avoid the intro message causing a hit-enter prompt.
|
||||
let gdb_cmd += ['-quiet']
|
||||
" Disable pagination, it causes everything to stop at the gdb
|
||||
let gdb_cmd += ['-iex', 'set pagination off']
|
||||
" Interpret commands while the target is running. This should usually only
|
||||
" be exec-interrupt, since many commands don't work properly while the
|
||||
" target is running (so execute during startup).
|
||||
let gdb_cmd += ['-iex', 'set mi-async on']
|
||||
" Open a terminal window to run the debugger.
|
||||
let gdb_cmd += ['-tty', pty]
|
||||
" Command executed _after_ startup is done, provides us with the necessary feedback
|
||||
let gdb_cmd += ['-ex', 'echo startupdone\n']
|
||||
|
||||
if exists('g:termdebug_config') && has_key(g:termdebug_config, 'command_add_args')
|
||||
let gdb_cmd = g:termdebug_config.command_add_args(gdb_cmd, pty)
|
||||
else
|
||||
" Add -quiet to avoid the intro message causing a hit-enter prompt.
|
||||
let gdb_cmd += ['-quiet']
|
||||
" Disable pagination, it causes everything to stop at the gdb
|
||||
let gdb_cmd += ['-iex', 'set pagination off']
|
||||
" Interpret commands while the target is running. This should usually only
|
||||
" be exec-interrupt, since many commands don't work properly while the
|
||||
" target is running (so execute during startup).
|
||||
let gdb_cmd += ['-iex', 'set mi-async on']
|
||||
" Open a terminal window to run the debugger.
|
||||
let gdb_cmd += ['-tty', pty]
|
||||
" Command executed _after_ startup is done, provides us with the necessary
|
||||
" feedback
|
||||
let gdb_cmd += ['-ex', 'echo startupdone\n']
|
||||
endif
|
||||
|
||||
if exists('g:termdebug_config') && has_key(g:termdebug_config, 'command_filter')
|
||||
let gdb_cmd = g:termdebug_config.command_filter(gdb_cmd)
|
||||
endif
|
||||
|
||||
" Adding arguments requested by the user
|
||||
let gdb_cmd += gdb_args
|
||||
@@ -346,8 +369,8 @@ func s:StartDebug_term(dict)
|
||||
call s:StartDebugCommon(a:dict)
|
||||
endfunc
|
||||
|
||||
" Open a window with a prompt buffer to run gdb in.
|
||||
func s:StartDebug_prompt(dict)
|
||||
" Open a window with a prompt buffer to run gdb in.
|
||||
if s:vertical
|
||||
vertical new
|
||||
else
|
||||
@@ -855,7 +878,13 @@ func s:InstallCommands()
|
||||
command Asm call s:GotoAsmwinOrCreateIt()
|
||||
command Winbar call s:InstallWinbar()
|
||||
|
||||
if !exists('g:termdebug_map_K') || g:termdebug_map_K
|
||||
let map = 1
|
||||
if exists('g:termdebug_config')
|
||||
let map = get(g:termdebug_config, 'map_K', 1)
|
||||
elseif exists('g:termdebug_map_K')
|
||||
let map = g:termdebug_map_K
|
||||
endif
|
||||
if map
|
||||
let s:k_map_saved = maparg('K', 'n', 0, 1)
|
||||
nnoremap K :Evaluate<CR>
|
||||
endif
|
||||
@@ -863,7 +892,13 @@ func s:InstallCommands()
|
||||
if has('menu') && &mouse != ''
|
||||
call s:InstallWinbar()
|
||||
|
||||
if !exists('g:termdebug_popup') || g:termdebug_popup != 0
|
||||
let popup = 1
|
||||
if exists('g:termdebug_config')
|
||||
let popup = get(g:termdebug_config, 'popup', 1)
|
||||
elseif exists('g:termdebug_popup')
|
||||
let popup = g:termdebug_popup
|
||||
endif
|
||||
if popup
|
||||
let s:saved_mousemodel = &mousemodel
|
||||
let &mousemodel = 'popup_setpos'
|
||||
an 1.200 PopUp.-SEP3- <Nop>
|
||||
@@ -915,7 +950,7 @@ func s:DeleteCommands()
|
||||
if empty(s:k_map_saved)
|
||||
nunmap K
|
||||
else
|
||||
call mapset('n', 0, s:k_map_saved)
|
||||
call mapset(s:k_map_saved)
|
||||
endif
|
||||
unlet s:k_map_saved
|
||||
endif
|
||||
@@ -1183,6 +1218,26 @@ func s:GotoSourcewinOrCreateIt()
|
||||
endif
|
||||
endfunc
|
||||
|
||||
func s:GetDisasmWindow()
|
||||
if exists('g:termdebug_config')
|
||||
return get(g:termdebug_config, 'disasm_window', 0)
|
||||
endif
|
||||
if exists('g:termdebug_disasm_window')
|
||||
return g:termdebug_disasm_window
|
||||
endif
|
||||
return 0
|
||||
endfunc
|
||||
|
||||
func s:GetDisasmWindowHeight()
|
||||
if exists('g:termdebug_config')
|
||||
return get(g:termdebug_config, 'disasm_window_height', 0)
|
||||
endif
|
||||
if exists('g:termdebug_disasm_window') && g:termdebug_disasm_window > 1
|
||||
return g:termdebug_disasm_window
|
||||
endif
|
||||
return 0
|
||||
endfunc
|
||||
|
||||
func s:GotoAsmwinOrCreateIt()
|
||||
if !win_gotoid(s:asmwin)
|
||||
if win_gotoid(s:sourcewin)
|
||||
@@ -1206,10 +1261,8 @@ func s:GotoAsmwinOrCreateIt()
|
||||
exe 'file Termdebug-asm-listing'
|
||||
endif
|
||||
|
||||
if exists('g:termdebug_disasm_window')
|
||||
if g:termdebug_disasm_window > 1
|
||||
exe 'resize ' . g:termdebug_disasm_window
|
||||
endif
|
||||
if s:GetDisasmWindowHeight() > 0
|
||||
exe 'resize ' .. s:GetDisasmWindowHeight()
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
" Vim plugin for using Vim as manpager.
|
||||
" Maintainer: Enno Nagel <ennonagel+vim@gmail.com>
|
||||
" Last Change: 2020 Aug 05
|
||||
" Last Change: 2022 Jun 05
|
||||
|
||||
command! -nargs=0 MANPAGER call s:ManPager() | delcommand MANPAGER
|
||||
|
||||
function! s:ManPager()
|
||||
set nocompatible
|
||||
function s:ManPager()
|
||||
" global options, keep these to a minimum to avoid side effects
|
||||
if &compatible
|
||||
set nocompatible
|
||||
endif
|
||||
if exists('+viminfofile')
|
||||
set viminfofile=NONE
|
||||
endif
|
||||
@@ -27,7 +30,7 @@ function! s:ManPager()
|
||||
if n > 1
|
||||
exe "1," . n-1 . "d"
|
||||
endif
|
||||
setlocal nomodified readonly
|
||||
setlocal nomodifiable nomodified readonly nowrite
|
||||
|
||||
syntax on
|
||||
endfunction
|
||||
|
||||
12
runtime/syntax/confini.vim
Normal file
12
runtime/syntax/confini.vim
Normal file
@@ -0,0 +1,12 @@
|
||||
" Vim syntax file
|
||||
" Language: confini
|
||||
|
||||
" Quit if a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Use the cfg syntax for now, it's similar.
|
||||
runtime! syntax/cfg.vim
|
||||
|
||||
let b:current_syntax = 'confini'
|
||||
@@ -3,13 +3,16 @@
|
||||
" Maintainer: Nick Jensen <nickspoon@gmail.com>
|
||||
" Former Maintainers: Anduin Withers <awithers@anduin.com>
|
||||
" Johannes Zellner <johannes@zellner.org>
|
||||
" Last Change: 2020-11-23
|
||||
" Last Change: 2022-03-01
|
||||
" Filenames: *.cs
|
||||
" License: Vim (see :h license)
|
||||
" Repository: https://github.com/nickspoons/vim-cs
|
||||
"
|
||||
" REFERENCES:
|
||||
" [1] ECMA TC39: C# Language Specification (WD13Oct01.doc)
|
||||
" References:
|
||||
" - ECMA-334 5th Edition: C# Language Specification
|
||||
" https://www.ecma-international.org/publications-and-standards/standards/ecma-334/
|
||||
" - C# Language Design: Draft 6th Edition and later proposals
|
||||
" https://github.com/dotnet/csharplang
|
||||
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
@@ -19,37 +22,72 @@ let s:save_cpo = &cpoptions
|
||||
set cpoptions&vim
|
||||
|
||||
syn keyword csType bool byte char decimal double float int long object sbyte short string T uint ulong ushort var void dynamic
|
||||
syn keyword csStorage delegate enum interface namespace struct
|
||||
syn keyword csType nint nuint " contextual
|
||||
|
||||
syn keyword csStorage enum interface namespace struct
|
||||
syn match csStorage "\<delegate\>"
|
||||
syn keyword csRepeat break continue do for foreach goto return while
|
||||
syn keyword csConditional else if switch
|
||||
syn keyword csLabel case default
|
||||
syn match csOperatorError display +::+
|
||||
syn match csGlobal display +global::+
|
||||
" user labels (see [1] 8.6 Statements)
|
||||
syn match csLabel display +^\s*\I\i*\s*:\%([^:]\)\@=+
|
||||
syn keyword csModifier abstract const extern internal override private protected public readonly sealed static virtual volatile
|
||||
syn keyword csConstant false null true
|
||||
syn keyword csException try catch finally throw when
|
||||
syn keyword csLinq ascending by descending equals from group in into join let on orderby select where
|
||||
syn keyword csAsync async await
|
||||
|
||||
syn keyword csUnspecifiedStatement as base checked event fixed in is lock nameof operator out params ref sizeof stackalloc this unchecked unsafe using
|
||||
syn keyword csUnsupportedStatement add remove value
|
||||
syn match csNamespaceAlias "@\=\h\w*\ze\_s*::" display
|
||||
syn match csGlobalNamespaceAlias "global\ze\_s*::" display
|
||||
syn cluster csNamespaceAlias contains=csGlobalNamespaceAlias,csNamespaceAlias,csNamespaceAliasQualifier
|
||||
|
||||
" user labels
|
||||
syn match csLabel display +^\s*\I\i*\s*:\%([^:]\)\@=+
|
||||
|
||||
" Function pointers
|
||||
syn match csType "\<delegate\s*\*" contains=csOpSymbols nextgroup=csManagedModifier skipwhite skipempty
|
||||
syn keyword csManagedModifier managed unmanaged contained
|
||||
|
||||
" Modifiers
|
||||
syn match csUsingModifier "\<global\ze\_s\+using\>"
|
||||
syn keyword csAccessModifier internal private protected public
|
||||
" TODO: in new out
|
||||
syn keyword csModifier abstract const event override readonly sealed static virtual volatile
|
||||
syn match csModifier "\<\%(extern\|fixed\|unsafe\)\>"
|
||||
syn match csModifier "\<partial\ze\_s\+\%(class\|struct\|interface\|record\|void\)\>"
|
||||
|
||||
syn keyword csException try catch finally throw when
|
||||
syn keyword csLinq ascending by descending equals from group in into join let on orderby select
|
||||
syn match csLinq "\<where\>"
|
||||
|
||||
" Type parameter constraint clause
|
||||
syn match csStorage "\<where\>\ze\_s\+@\=\h\w*\_s*:"
|
||||
|
||||
" Async
|
||||
syn keyword csAsyncModifier async
|
||||
syn keyword csAsyncOperator await
|
||||
|
||||
syn match csStorage "\<extern\ze\s\+alias\>"
|
||||
syn match csStorage "\%(\<extern\s\+\)\@16<=alias\>"
|
||||
|
||||
syn match csStatement "\<\%(checked\|unchecked\|unsafe\)\ze\_s*{"
|
||||
syn match csStatement "\<fixed\ze\_s*("
|
||||
syn keyword csStatement lock
|
||||
syn match csStatement "\<yield\ze\_s\+\%(return\|break\)\>"
|
||||
|
||||
syn match csAccessor "\<\%(get\|set\|init\|add\|remove\)\ze\_s*\%([;{]\|=>\)"
|
||||
|
||||
syn keyword csAccess base
|
||||
syn match csAccess "\<this\>"
|
||||
|
||||
" Extension method parameter modifier
|
||||
syn match csModifier "\<this\ze\_s\+@\=\h"
|
||||
|
||||
syn keyword csUnspecifiedStatement as in is nameof operator out params ref sizeof stackalloc using
|
||||
syn keyword csUnsupportedStatement value
|
||||
syn keyword csUnspecifiedKeyword explicit implicit
|
||||
|
||||
" Contextual Keywords
|
||||
syn match csContextualStatement /\<yield[[:space:]\n]\+\%(return\|break\)/me=s+5
|
||||
syn match csContextualStatement /\<partial[[:space:]\n]\+\%(class\|struct\|interface\)/me=s+7
|
||||
syn match csContextualStatement /\<\%(get\|set\)\%(;\|[[:space:]\n]*{\)/me=s+3
|
||||
syn match csContextualStatement /\<\%(get\|set\)\s*=>/me=s+3
|
||||
syn match csContextualStatement /\<where\>[^:]\+:/me=s+5
|
||||
|
||||
" Operators
|
||||
syn keyword csTypeOf typeof contained
|
||||
syn region csTypeOfStatement start="typeof(" end=")" contains=csType, csTypeOf
|
||||
syn keyword csTypeOf typeof nextgroup=csTypeOfOperand,csTypeOfError skipwhite skipempty
|
||||
syn region csTypeOfOperand matchgroup=csParens start="(" end=")" contained contains=csType
|
||||
syn match csTypeOfError "[^([:space:]]" contained
|
||||
syn match csKeywordOperator "\<\%(checked\|unchecked\)\ze\_s*("
|
||||
|
||||
" Punctuation
|
||||
syn match csBraces "[{}\[\]]" display
|
||||
syn match csBraces "[{}[\]]" display
|
||||
syn match csParens "[()]" display
|
||||
syn match csOpSymbols "+\{1,2}" display
|
||||
syn match csOpSymbols "-\{1,2}" display
|
||||
@@ -64,128 +102,173 @@ syn match csLogicSymbols "&&" display
|
||||
syn match csLogicSymbols "||" display
|
||||
syn match csLogicSymbols "?" display
|
||||
syn match csLogicSymbols ":" display
|
||||
syn match csNamespaceAliasQualifier "::" display
|
||||
|
||||
" Generics
|
||||
syn region csGeneric matchgroup=csGenericBraces start="<" end=">" oneline contains=csType,csGeneric,csUserType,csUserIdentifier,csUserInterface,csUserMethod
|
||||
syn region csGeneric matchgroup=csGenericBraces start="<" end=">" oneline contains=csType,csGeneric,@csNamespaceAlias,csUserType,csUserIdentifier,csUserInterface,csUserMethod
|
||||
|
||||
" Comments
|
||||
"
|
||||
" PROVIDES: @csCommentHook
|
||||
syn keyword csTodo contained TODO FIXME XXX NOTE HACK TBD
|
||||
syn region csComment start="/\*" end="\*/" contains=@csCommentHook,csTodo,@Spell
|
||||
syn match csComment "//.*$" contains=@csCommentHook,csTodo,@Spell
|
||||
syn region csBlockComment start="/\*" end="\*/" contains=@csCommentHook,csTodo,@Spell
|
||||
syn match csLineComment "//.*$" contains=@csCommentHook,csTodo,@Spell
|
||||
syn cluster csComment contains=csLineComment,csBlockComment
|
||||
|
||||
" xml markup inside '///' comments
|
||||
syn cluster xmlRegionHook add=csXmlCommentLeader
|
||||
syn cluster xmlCdataHook add=csXmlCommentLeader
|
||||
syn cluster xmlStartTagHook add=csXmlCommentLeader
|
||||
syn keyword csXmlTag contained Libraries Packages Types Excluded ExcludedTypeName ExcludedLibraryName
|
||||
syn keyword csXmlTag contained ExcludedBucketName TypeExcluded Type TypeKind TypeSignature AssemblyInfo
|
||||
syn keyword csXmlTag contained AssemblyName AssemblyPublicKey AssemblyVersion AssemblyCulture Base
|
||||
syn keyword csXmlTag contained BaseTypeName Interfaces Interface InterfaceName Attributes Attribute
|
||||
syn keyword csXmlTag contained AttributeName Members Member MemberSignature MemberType MemberValue
|
||||
syn keyword csXmlTag contained ReturnValue ReturnType Parameters Parameter MemberOfPackage
|
||||
syn keyword csXmlTag contained ThreadingSafetyStatement Docs devdoc example overload remarks returns summary
|
||||
syn keyword csXmlTag contained threadsafe value internalonly nodoc exception param permission platnote
|
||||
syn keyword csXmlTag contained seealso b c i pre sub sup block code note paramref see subscript superscript
|
||||
syn keyword csXmlTag contained list listheader item term description altcompliant altmember
|
||||
syn region csSummary start="^\s*/// <summary" end="^\%\(\s*///\)\@!" transparent fold keepend
|
||||
|
||||
syn cluster xmlTagHook add=csXmlTag
|
||||
" xml markup inside '///' and /**...*/ comments
|
||||
syn cluster xmlRegionHook add=csXmlLineCommentLeader,csXmlBlockCommentMiddle
|
||||
syn cluster xmlCdataHook add=csXmlLineCommentLeader,csXmlBlockCommentMiddle
|
||||
syn cluster xmlStartTagHook add=csXmlLineCommentLeader,csXmlBlockCommentMiddle
|
||||
syn cluster xmlTagHook add=csXmlTag
|
||||
syn cluster xmlAttribHook add=csXmlAttrib
|
||||
|
||||
syn match csXmlCommentLeader "///" contained
|
||||
syn match csXmlComment "///.*$" contains=csXmlCommentLeader,@csXml,@Spell keepend
|
||||
" https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/xmldoc/recommended-tags
|
||||
syn keyword csXmlTag contained summary remarks
|
||||
syn keyword csXmlTag contained returns param paramref exception value
|
||||
syn keyword csXmlTag contained para list c code example
|
||||
syn keyword csXmlTag contained inheritdoc include
|
||||
syn keyword csXmlTag contained see seealso
|
||||
syn keyword csXmlTag contained typeparam typeparamref
|
||||
syn keyword csXmlTag contained b i u br a
|
||||
syn keyword csXmlAttrib contained cref href
|
||||
|
||||
syn match csXmlLineCommentLeader "///" contained
|
||||
syn match csXmlLineComment "///.*$" contains=csXmlLineCommentLeader,@csXml,@Spell keepend
|
||||
syn match csXmlBlockCommentMiddle "^\s*\zs\*" contained
|
||||
syn region csXmlBlockComment start="/\*\*" end="\*/" contains=@csXml,@Spell,csXmlBlockCommentMiddle keepend
|
||||
syn include @csXml syntax/xml.vim
|
||||
hi def link xmlRegion Comment
|
||||
|
||||
" Since syntax/xml.vim contains `syn spell toplevel`, we need to set it back to `default` here.
|
||||
syn spell default
|
||||
|
||||
" [1] 9.5 Pre-processing directives
|
||||
syn region csPreCondit start="^\s*#\s*\%(define\|undef\|if\|elif\|else\|endif\|line\|error\|warning\|pragma\)\>" skip="\\$" end="$" contains=csComment keepend
|
||||
syn region csRegion matchgroup=csPreCondit start="^\s*#\s*region.*$" end="^\s*#\s*endregion" transparent fold contains=TOP
|
||||
syn region csSummary start="^\s*/// <summary" end="^\%\(\s*///\)\@!" transparent fold keepend
|
||||
" Pre-processing directives
|
||||
syn region csPreProcDeclaration start="^\s*\zs#\s*\%(define\|undef\)\>" end="$" contains=csLineComment keepend
|
||||
syn region csPreProcConditional start="^\s*\zs#\s*\%(if\|elif\)\>" end="$" contains=csLineComment keepend
|
||||
syn region csPreProcConditional start="^\s*\zs#\s*\%(else\|endif\)\>" end="$" contains=csLineComment keepend
|
||||
syn region csPreProcLine start="^\s*\zs#\s*line\>" end="$" contains=csLineComment keepend
|
||||
syn region csPreProcDiagnostic start="^\s*\zs#\s*\%(error\|warning\)\>" end="$"
|
||||
syn region csPreProcConditionalSection matchgroup=csPreProcRegion start="^\s*#\s*region\>.*" end="^\s*#\s*endregion\>.*" transparent fold contains=TOP
|
||||
syn region csPreProcPragma start="^\s*\zs#\s*pragma\>" end="$" contains=csLineComment keepend
|
||||
syn region csPreProcNullable start="^\s*\zs#\s*nullable\>" end="$" contains=csLineComment keepend
|
||||
|
||||
if expand('%:e') == 'csx' || getline('1') =~ '^#!.*\<dotnet-script\>'
|
||||
syn region csPreProcInclude start="^\s*\zs#\s*\%(load\|r\)\>" end="$" contains=csLineComment keepend
|
||||
syn match csShebang "\%^#!.*" display
|
||||
endif
|
||||
|
||||
syn region csClassType start="@\@1<!\<class\>"hs=s+6 end="[:\n{]"me=e-1 contains=csClass
|
||||
syn cluster csPreProcessor contains=csPreProc.*
|
||||
|
||||
syn region csClassType start="\<class\>"hs=s+6 end=">" end="[:{]"me=e-1 contains=csClass
|
||||
" csUserType may be defined by user scripts/plugins - it should be contained in csNewType
|
||||
syn region csNewType start="@\@1<!\<new\>"hs=s+4 end="[;\n{(<\[]"me=e-1 contains=csNew,csUserType
|
||||
syn region csNewType start="\<new\>"hs=s+4 end="[;\n{(<\[]"me=e-1 contains=csNew,@csNamespaceAlias,csUserType
|
||||
syn region csIsType start=" is "hs=s+4 end="[A-Za-z0-9]\+" oneline contains=csIsAs
|
||||
syn region csIsType start=" as "hs=s+4 end="[A-Za-z0-9]\+" oneline contains=csIsAs
|
||||
syn keyword csNew new contained
|
||||
syn keyword csClass class contained
|
||||
syn keyword csIsAs is as
|
||||
|
||||
syn keyword csBoolean false true
|
||||
syn keyword csNull null
|
||||
|
||||
" Strings and constants
|
||||
syn match csSpecialError "\\." contained
|
||||
syn match csSpecialCharError "[^']" contained
|
||||
" [1] 9.4.4.4 Character literals
|
||||
syn match csSpecialChar +\\["\\'0abfnrtvx]+ contained display
|
||||
syn match csUnicodeNumber +\\x\x\{2,4}+ contained contains=csUnicodeSpecifier display
|
||||
" Character literals
|
||||
syn match csSpecialChar +\\["\\'0abfnrtv]+ contained display
|
||||
syn match csUnicodeNumber +\\x\x\{1,4}+ contained contains=csUnicodeSpecifier display
|
||||
syn match csUnicodeNumber +\\u\x\{4}+ contained contains=csUnicodeSpecifier display
|
||||
syn match csUnicodeNumber +\\U\x\{8}+ contained contains=csUnicodeSpecifier display
|
||||
syn match csUnicodeSpecifier +\\[uU]+ contained display
|
||||
syn match csUnicodeNumber +\\U00\x\{6}+ contained contains=csUnicodeSpecifier display
|
||||
syn match csUnicodeSpecifier +\\[uUx]+ contained display
|
||||
|
||||
syn region csString matchgroup=csQuote start=+"+ end=+"+ end=+$+ extend contains=csSpecialChar,csSpecialError,csUnicodeNumber,@Spell
|
||||
syn match csCharacter "'[^']*'" contains=csSpecialChar,csSpecialCharError,csUnicodeNumber display
|
||||
syn match csCharacter "'\\''" contains=csSpecialChar display
|
||||
syn match csCharacter "'[^\\]'" display
|
||||
syn match csNumber "\<0[0-7]*[lL]\=\>" display
|
||||
syn match csNumber "\<0[xX][[:xdigit:]_]\+[lL]\=\>" display
|
||||
syn match csNumber "\<0[bB][01_]\+[lL]\=\>" display
|
||||
syn match csNumber "\<[[:digit:]_]\+[lL]\=\>" display
|
||||
syn match csNumber "\<[[:digit:]_]\+\.[[:digit:]_]*\%\([eE][-+]\=[[:digit:]_]\+\)\=[fFdDmM]\=" display
|
||||
syn match csNumber "\.[[:digit:]_]\+\%\([eE][-+]\=[[:digit:]_]\+\)\=[fFdDmM]\=" display
|
||||
syn match csNumber "\<[[:digit:]_]\+[eE][-+]\=[[:digit:]_]\+[fFdDmM]\=\>" display
|
||||
syn match csNumber "\<[[:digit:]_]\+\%\([eE][-+]\=[[:digit:]_]\+\)\=[fFdDmM]\>" display
|
||||
|
||||
" Numbers
|
||||
syn case ignore
|
||||
syn match csInteger "\<0b[01_]*[01]\%([lu]\|lu\|ul\)\=\>" display
|
||||
syn match csInteger "\<\d\+\%(_\+\d\+\)*\%([lu]\|lu\|ul\)\=\>" display
|
||||
syn match csInteger "\<0x[[:xdigit:]_]*\x\%([lu]\|lu\|ul\)\=\>" display
|
||||
syn match csReal "\<\d\+\%(_\+\d\+\)*\.\d\+\%(_\+\d\+\)*\%\(e[-+]\=\d\+\%(_\+\d\+\)*\)\=[fdm]\=" display
|
||||
syn match csReal "\.\d\+\%(_\+\d\+\)*\%(e[-+]\=\d\+\%(_\+\d\+\)*\)\=[fdm]\=\>" display
|
||||
syn match csReal "\<\d\+\%(_\+\d\+\)*e[-+]\=\d\+\%(_\+\d\+\)*[fdm]\=\>" display
|
||||
syn match csReal "\<\d\+\%(_\+\d\+\)*[fdm]\>" display
|
||||
syn case match
|
||||
syn cluster csNumber contains=csInteger,csReal
|
||||
|
||||
syn region csInterpolatedString matchgroup=csQuote start=+\$"+ end=+"+ extend contains=csInterpolation,csEscapedInterpolation,csSpecialChar,csSpecialError,csUnicodeNumber,@Spell
|
||||
|
||||
syn region csInterpolation matchgroup=csInterpolationDelimiter start=+{+ end=+}+ keepend contained contains=@csAll,csBraced,csBracketed,csInterpolationAlign,csInterpolationFormat
|
||||
syn match csEscapedInterpolation "{{" transparent contains=NONE display
|
||||
syn match csEscapedInterpolation "}}" transparent contains=NONE display
|
||||
syn region csInterpolationAlign matchgroup=csInterpolationAlignDel start=+,+ end=+}+ end=+:+me=e-1 contained contains=csNumber,csConstant,csCharacter,csParens,csOpSymbols,csString,csBracketed display
|
||||
syn region csInterpolationAlign matchgroup=csInterpolationAlignDel start=+,+ end=+}+ end=+:+me=e-1 contained contains=@csNumber,csBoolean,csConstant,csCharacter,csParens,csOpSymbols,csString,csBracketed display
|
||||
syn match csInterpolationFormat +:[^}]\+}+ contained contains=csInterpolationFormatDel display
|
||||
syn match csInterpolationAlignDel +,+ contained display
|
||||
syn match csInterpolationFormatDel +:+ contained display
|
||||
|
||||
syn region csVerbatimString matchgroup=csQuote start=+@"+ end=+"+ skip=+""+ extend contains=csVerbatimQuote,@Spell
|
||||
syn match csVerbatimQuote +""+ contained
|
||||
syn match csQuoteError +@$"+he=s+2,me=s+2
|
||||
|
||||
syn region csInterVerbString matchgroup=csQuote start=+\$@"+ end=+"+ skip=+""+ extend contains=csInterpolation,csEscapedInterpolation,csSpecialChar,csSpecialError,csUnicodeNumber,csVerbatimQuote,@Spell
|
||||
syn region csInterVerbString matchgroup=csQuote start=+$@"+ start=+@$"+ end=+"+ skip=+""+ extend contains=csInterpolation,csEscapedInterpolation,csSpecialChar,csSpecialError,csUnicodeNumber,csVerbatimQuote,@Spell
|
||||
|
||||
syn cluster csString contains=csString,csInterpolatedString,csVerbatimString,csInterVerbString
|
||||
|
||||
syn cluster csLiteral contains=csBoolean,@csNumber,csCharacter,@csString,csNull
|
||||
|
||||
syn region csBracketed matchgroup=csParens start=+(+ end=+)+ extend contained transparent contains=@csAll,csBraced,csBracketed
|
||||
syn region csBraced matchgroup=csParens start=+{+ end=+}+ extend contained transparent contains=@csAll,csBraced,csBracketed
|
||||
|
||||
syn cluster csAll contains=csCharacter,csClassType,csComment,csContextualStatement,csEndColon,csIsType,csLabel,csLogicSymbols,csNewType,csConstant,csNumber,csOpSymbols,csOperatorError,csParens,csPreCondit,csRegion,csString,csSummary,csType,csUnicodeNumber,csUnicodeSpecifier,csInterpolatedString,csVerbatimString,csInterVerbString,csUserType,csUserIdentifier,csUserInterface,csUserMethod
|
||||
syn cluster csAll contains=@csLiteral,csClassType,@csComment,csEndColon,csIsType,csLabel,csLogicSymbols,csNewType,csOpSymbols,csParens,@csPreProcessor,csSummary,@csNamespaceAlias,csType,csUnicodeNumber,csUserType,csUserIdentifier,csUserInterface,csUserMethod
|
||||
|
||||
" Keyword identifiers
|
||||
syn match csIdentifier "@\h\w*"
|
||||
|
||||
" The default highlighting.
|
||||
hi def link csType Type
|
||||
hi def link csClassType Type
|
||||
hi def link csIsType Type
|
||||
hi def link csStorage Structure
|
||||
hi def link csClass Structure
|
||||
hi def link csRepeat Repeat
|
||||
hi def link csConditional Conditional
|
||||
hi def link csLabel Label
|
||||
hi def link csModifier StorageClass
|
||||
hi def link csConstant Constant
|
||||
hi def link csException Exception
|
||||
hi def link csTypeOf Keyword
|
||||
hi def link csTypeOfStatement Typedef
|
||||
hi def link csUnspecifiedStatement Statement
|
||||
hi def link csUnsupportedStatement Statement
|
||||
hi def link csUnspecifiedKeyword Keyword
|
||||
|
||||
hi def link csGlobalNamespaceAlias Include
|
||||
|
||||
hi def link csType Type
|
||||
hi def link csClassType Type
|
||||
hi def link csIsType Type
|
||||
|
||||
hi def link csStorage Structure
|
||||
hi def link csClass Structure
|
||||
hi def link csNew Statement
|
||||
hi def link csLinq Statement
|
||||
hi def link csIsAs Keyword
|
||||
hi def link csAsync Keyword
|
||||
hi def link csContextualStatement Statement
|
||||
hi def link csOperatorError Error
|
||||
hi def link csAccessor Keyword
|
||||
hi def link csAccess Keyword
|
||||
|
||||
hi def link csLinq Statement
|
||||
|
||||
hi def link csStatement Statement
|
||||
hi def link csRepeat Repeat
|
||||
hi def link csConditional Conditional
|
||||
hi def link csLabel Label
|
||||
hi def link csException Exception
|
||||
|
||||
hi def link csModifier StorageClass
|
||||
hi def link csAccessModifier csModifier
|
||||
hi def link csAsyncModifier csModifier
|
||||
hi def link csManagedModifier csModifier
|
||||
hi def link csUsingModifier csModifier
|
||||
|
||||
hi def link csTodo Todo
|
||||
hi def link csComment Comment
|
||||
hi def link csLineComment csComment
|
||||
hi def link csBlockComment csComment
|
||||
|
||||
hi def link csKeywordOperator Keyword
|
||||
hi def link csAsyncOperator csKeywordOperator
|
||||
hi def link csTypeOf csKeywordOperator
|
||||
hi def link csTypeOfOperand Typedef
|
||||
hi def link csTypeOfError Error
|
||||
hi def link csOpSymbols Operator
|
||||
hi def link csLogicSymbols Operator
|
||||
|
||||
@@ -193,15 +276,29 @@ hi def link csSpecialError Error
|
||||
hi def link csSpecialCharError Error
|
||||
hi def link csString String
|
||||
hi def link csQuote String
|
||||
hi def link csQuoteError Error
|
||||
hi def link csInterpolatedString String
|
||||
hi def link csVerbatimString String
|
||||
hi def link csInterVerbString String
|
||||
hi def link csVerbatimQuote SpecialChar
|
||||
hi def link csPreCondit PreCondit
|
||||
|
||||
hi def link csPreProc PreProc
|
||||
hi def link csPreProcDeclaration Define
|
||||
hi def link csPreProcConditional PreCondit
|
||||
hi def link csPreProcLine csPreProc
|
||||
hi def link csPreProcDiagnostic csPreProc
|
||||
hi def link csPreProcRegion csPreProc
|
||||
hi def link csPreProcPragma csPreProc
|
||||
hi def link csPreProcNullable csPreProc
|
||||
hi def link csPreProcInclude csPreProc
|
||||
hi def link csShebang csPreProc
|
||||
|
||||
hi def link csConstant Constant
|
||||
hi def link csNull Constant
|
||||
hi def link csBoolean Boolean
|
||||
hi def link csCharacter Character
|
||||
hi def link csSpecialChar SpecialChar
|
||||
hi def link csNumber Number
|
||||
hi def link csInteger Number
|
||||
hi def link csReal Float
|
||||
hi def link csUnicodeNumber SpecialChar
|
||||
hi def link csUnicodeSpecifier SpecialChar
|
||||
hi def link csInterpolationDelimiter Delimiter
|
||||
@@ -212,9 +309,12 @@ hi def link csInterpolationFormatDel csInterpolationDelimiter
|
||||
hi def link csGenericBraces csBraces
|
||||
|
||||
" xml markup
|
||||
hi def link csXmlCommentLeader Comment
|
||||
hi def link csXmlComment Comment
|
||||
hi def link csXmlLineCommentLeader Comment
|
||||
hi def link csXmlLineComment Comment
|
||||
hi def link csXmlBlockComment Comment
|
||||
hi def link csXmlBlockCommentMiddle csXmlBlockComment
|
||||
hi def link csXmlTag Statement
|
||||
hi def link csXmlAttrib Statement
|
||||
|
||||
let b:current_syntax = 'cs'
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
" Maintainer: Debian Vim Maintainers
|
||||
" Former Maintainers: Gerfried Fuchs <alfie@ist.org>
|
||||
" Wichert Akkerman <wakkerma@debian.org>
|
||||
" Last Change: 2022 Mar 28
|
||||
" Last Change: 2022 May 01
|
||||
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debchangelog.vim
|
||||
|
||||
" Standard syntax initialization
|
||||
@@ -24,7 +24,7 @@ let s:supported = [
|
||||
\ 'jessie', 'stretch', 'buster', 'bullseye', 'bookworm',
|
||||
\ 'trixie', 'sid', 'rc-buggy',
|
||||
\
|
||||
\ 'trusty', 'xenial', 'bionic', 'focal', 'impish', 'jammy',
|
||||
\ 'trusty', 'xenial', 'bionic', 'focal', 'impish', 'jammy', 'kinetic',
|
||||
\ 'devel'
|
||||
\ ]
|
||||
let s:unsupported = [
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
" Maintainer: Debian Vim Maintainers
|
||||
" Former Maintainers: Gerfried Fuchs <alfie@ist.org>
|
||||
" Wichert Akkerman <wakkerma@debian.org>
|
||||
" Last Change: 2021 Nov 26
|
||||
" Last Change: 2022 May 11
|
||||
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debcontrol.vim
|
||||
|
||||
" Standard syntax initialization
|
||||
@@ -17,7 +17,7 @@ set cpo&vim
|
||||
" Should match case except for the keys of each field
|
||||
syn case match
|
||||
|
||||
syn iskeyword @,48-57,-,/
|
||||
syn iskeyword @,48-57,-
|
||||
|
||||
" Everything that is not explicitly matched by the rules below
|
||||
syn match debcontrolElse "^.*$"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: Debian sources.list
|
||||
" Maintainer: Debian Vim Maintainers
|
||||
" Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
|
||||
" Last Change: 2022 Mar 28
|
||||
" Last Change: 2022 May 01
|
||||
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debsources.vim
|
||||
|
||||
" Standard syntax initialization
|
||||
@@ -26,7 +26,7 @@ let s:supported = [
|
||||
\ 'jessie', 'stretch', 'buster', 'bullseye', 'bookworm',
|
||||
\ 'trixie', 'sid', 'rc-buggy',
|
||||
\
|
||||
\ 'trusty', 'xenial', 'bionic', 'focal', 'impish', 'jammy',
|
||||
\ 'trusty', 'xenial', 'bionic', 'focal', 'impish', 'jammy', 'kinetic',
|
||||
\ 'devel'
|
||||
\ ]
|
||||
let s:unsupported = [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim help file
|
||||
" Maintainer: Bram Moolenaar (Bram@vim.org)
|
||||
" Last Change: 2021 Jun 13
|
||||
" Last Change: 2022 May 15
|
||||
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -215,6 +215,12 @@ hi def link helpError Error
|
||||
hi def link helpTodo Todo
|
||||
hi def link helpURL String
|
||||
|
||||
if has('textprop') && expand('%:p') =~ '[/\\]doc[/\\]syntax.txt'
|
||||
" highlight groups with their respective color
|
||||
import 'dist/vimhelp.vim'
|
||||
call vimhelp.HighlightGroups()
|
||||
endif
|
||||
|
||||
let b:current_syntax = "help"
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
" Original Author: Mohamed Boughaba <mohamed dot bgb at gmail dot com>
|
||||
" Maintainer: Quentin Hibon (github user hiqua)
|
||||
" Version: 0.4
|
||||
" Last Change: 2022 Jan 15
|
||||
" Last Change: 2022 Jun 05
|
||||
|
||||
" References:
|
||||
" http://i3wm.org/docs/userguide.html#configuring
|
||||
@@ -17,9 +17,6 @@ endif
|
||||
|
||||
scriptencoding utf-8
|
||||
|
||||
" Error
|
||||
syn match i3ConfigError /.*/
|
||||
|
||||
" Todo
|
||||
syn keyword i3ConfigTodo TODO FIXME XXX contained
|
||||
|
||||
@@ -50,6 +47,10 @@ syn match i3ConfigVariable /\$\w\+\(\(-\w\+\)\+\)\?\(\s\|+\)\?/ contains=i3Confi
|
||||
syn keyword i3ConfigInitializeKeyword set contained
|
||||
syn match i3ConfigInitialize /^\s*set\s\+.*$/ contains=i3ConfigVariable,i3ConfigInitializeKeyword,i3ConfigColor,i3ConfigString
|
||||
|
||||
" Include
|
||||
syn keyword i3ConfigIncludeKeyword include contained
|
||||
syn match i3ConfigInclude /^\s*include\s\+.*$/ contains=i3ConfigIncludeKeyword,i3ConfigString,i3ConfigVariable
|
||||
|
||||
" Gaps
|
||||
syn keyword i3ConfigGapStyleKeyword inner outer horizontal vertical top right bottom left current all set plus minus toggle up down contained
|
||||
syn match i3ConfigGapStyle /^\s*\(gaps\)\s\+\(inner\|outer\|horizontal\|vertical\|left\|top\|right\|bottom\)\(\s\+\(current\|all\)\)\?\(\s\+\(set\|plus\|minus\|toggle\)\)\?\(\s\+\(-\?\d\+\|\$.*\)\)$/ contains=i3ConfigGapStyleKeyword,i3ConfigNumber,i3ConfigVariable
|
||||
@@ -176,13 +177,12 @@ syn match i3ConfigDrawingMarks /^\s*show_marks\s\+\(yes\|no\)\s\?$/ contains=i3C
|
||||
|
||||
" Group mode/bar
|
||||
syn keyword i3ConfigBlockKeyword mode bar colors i3bar_command status_command position exec mode hidden_state modifier id position output background statusline tray_output tray_padding separator separator_symbol workspace_min_width workspace_buttons strip_workspace_numbers binding_mode_indicator focused_workspace active_workspace inactive_workspace urgent_workspace binding_mode contained
|
||||
syn region i3ConfigBlock start=+.*s\?{$+ end=+^}$+ contains=i3ConfigBlockKeyword,i3ConfigString,i3ConfigBind,i3ConfigComment,i3ConfigFont,i3ConfigFocusWrappingType,i3ConfigColor,i3ConfigVariable transparent keepend extend
|
||||
syn region i3ConfigBlock start=+^\s*[^#]*s\?{$+ end=+^\s*[^#]*}$+ contains=i3ConfigBlockKeyword,i3ConfigString,i3ConfigBind,i3ConfigComment,i3ConfigFont,i3ConfigFocusWrappingType,i3ConfigColor,i3ConfigVariable transparent keepend extend
|
||||
|
||||
" Line continuation
|
||||
syn region i3ConfigLineCont start=/^.*\\$/ end=/^.*$/ contains=i3ConfigBlockKeyword,i3ConfigString,i3ConfigBind,i3ConfigComment,i3ConfigFont,i3ConfigFocusWrappingType,i3ConfigColor,i3ConfigVariable transparent keepend extend
|
||||
|
||||
" Define the highlighting.
|
||||
hi def link i3ConfigError Error
|
||||
hi def link i3ConfigTodo Todo
|
||||
hi def link i3ConfigComment Comment
|
||||
hi def link i3ConfigFontContent Type
|
||||
@@ -221,6 +221,7 @@ hi def link i3ConfigAssignSpecial Special
|
||||
hi def link i3ConfigFontNamespace PreProc
|
||||
hi def link i3ConfigBindArgument PreProc
|
||||
hi def link i3ConfigNoStartupId PreProc
|
||||
hi def link i3ConfigIncludeKeyword Identifier
|
||||
hi def link i3ConfigFontKeyword Identifier
|
||||
hi def link i3ConfigBindKeyword Identifier
|
||||
hi def link i3ConfigOrientation Identifier
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: Java
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: https://github.com/fleiner/vim/blob/master/runtime/syntax/java.vim
|
||||
" Last Change: 2018 July 26
|
||||
" Last Change: 2022 Jun 08
|
||||
|
||||
" Please check :help java.vim for comments on some of the options available.
|
||||
|
||||
@@ -23,8 +23,6 @@ set cpo&vim
|
||||
syn match javaError "[\\@`]"
|
||||
syn match javaError "<<<\|\.\.\|=>\|||=\|&&=\|\*\/"
|
||||
|
||||
syn match javaOK "\.\.\."
|
||||
|
||||
" use separate name so that it can be deleted in javacc.vim
|
||||
syn match javaError2 "#\|=<"
|
||||
hi def link javaError2 javaError
|
||||
@@ -59,8 +57,12 @@ syn match javaUserLabelRef "\k\+" contained
|
||||
syn match javaVarArg "\.\.\."
|
||||
syn keyword javaScopeDecl public protected private abstract
|
||||
|
||||
function s:isModuleInfoDeclarationCurrentBuffer() abort
|
||||
return fnamemodify(bufname("%"), ":t") =~ '^module-info\%(\.class\>\)\@!'
|
||||
endfunction
|
||||
|
||||
" Java Modules(Since Java 9, for "module-info.java" file)
|
||||
if fnamemodify(bufname("%"), ":t") == "module-info.java"
|
||||
if s:isModuleInfoDeclarationCurrentBuffer()
|
||||
syn keyword javaModuleStorageClass module transitive
|
||||
syn keyword javaModuleStmt open requires exports opens uses provides
|
||||
syn keyword javaModuleExternal to with
|
||||
@@ -72,20 +74,42 @@ if exists("java_highlight_java_lang_ids")
|
||||
endif
|
||||
if exists("java_highlight_all") || exists("java_highlight_java") || exists("java_highlight_java_lang")
|
||||
" java.lang.*
|
||||
syn match javaLangClass "\<System\>"
|
||||
syn keyword javaR_JavaLang NegativeArraySizeException ArrayStoreException IllegalStateException RuntimeException IndexOutOfBoundsException UnsupportedOperationException ArrayIndexOutOfBoundsException ArithmeticException ClassCastException EnumConstantNotPresentException StringIndexOutOfBoundsException IllegalArgumentException IllegalMonitorStateException IllegalThreadStateException NumberFormatException NullPointerException TypeNotPresentException SecurityException
|
||||
"
|
||||
" The keywords of javaR_JavaLang, javaC_JavaLang, javaE_JavaLang,
|
||||
" and javaX_JavaLang are sub-grouped according to the Java version
|
||||
" of their introduction, and sub-group keywords (that is, class
|
||||
" names) are arranged in alphabetical order, so that future newer
|
||||
" keywords can be pre-sorted and appended without disturbing
|
||||
" the current keyword placement. The below _match_es follow suit.
|
||||
|
||||
syn keyword javaR_JavaLang ArithmeticException ArrayIndexOutOfBoundsException ArrayStoreException ClassCastException IllegalArgumentException IllegalMonitorStateException IllegalThreadStateException IndexOutOfBoundsException NegativeArraySizeException NullPointerException NumberFormatException RuntimeException SecurityException StringIndexOutOfBoundsException IllegalStateException UnsupportedOperationException EnumConstantNotPresentException TypeNotPresentException IllegalCallerException LayerInstantiationException
|
||||
syn cluster javaTop add=javaR_JavaLang
|
||||
syn cluster javaClasses add=javaR_JavaLang
|
||||
hi def link javaR_JavaLang javaR_Java
|
||||
syn keyword javaC_JavaLang Process RuntimePermission StringKeySet CharacterData01 Class ThreadLocal ThreadLocalMap CharacterData0E Package Character StringCoding Long ProcessImpl ProcessEnvironment Short AssertionStatusDirectives 1PackageInfoProxy UnicodeBlock InheritableThreadLocal AbstractStringBuilder StringEnvironment ClassLoader ConditionalSpecialCasing CharacterDataPrivateUse StringBuffer StringDecoder Entry StringEntry WrappedHook StringBuilder StrictMath State ThreadGroup Runtime CharacterData02 MethodArray Object CharacterDataUndefined Integer Gate Boolean Enum Variable Subset StringEncoder Void Terminator CharsetSD IntegerCache CharacterCache Byte CharsetSE Thread SystemClassLoaderAction CharacterDataLatin1 StringValues StackTraceElement Shutdown ShortCache String ConverterSD ByteCache Lock EnclosingMethodInfo Math Float Value Double SecurityManager LongCache ProcessBuilder StringEntrySet Compiler Number UNIXProcess ConverterSE ExternalData CaseInsensitiveComparator CharacterData00 NativeLibrary
|
||||
" Member enumerations:
|
||||
syn match javaC_JavaLang "\%(\<Thread\.\)\@<=\<State\>"
|
||||
syn match javaC_JavaLang "\%(\<Character\.\)\@<=\<UnicodeScript\>"
|
||||
syn match javaC_JavaLang "\%(\<ProcessBuilder\.Redirect\.\)\@<=\<Type\>"
|
||||
syn match javaC_JavaLang "\%(\<StackWalker\.\)\@<=\<Option\>"
|
||||
syn match javaC_JavaLang "\%(\<System\.Logger\.\)\@<=\<Level\>"
|
||||
" Member classes:
|
||||
syn match javaC_JavaLang "\%(\<Character\.\)\@<=\<Subset\>"
|
||||
syn match javaC_JavaLang "\%(\<Character\.\)\@<=\<UnicodeBlock\>"
|
||||
syn match javaC_JavaLang "\%(\<ProcessBuilder\.\)\@<=\<Redirect\>"
|
||||
syn match javaC_JavaLang "\%(\<ModuleLayer\.\)\@<=\<Controller\>"
|
||||
syn match javaC_JavaLang "\%(\<Runtime\.\)\@<=\<Version\>"
|
||||
syn match javaC_JavaLang "\%(\<System\.\)\@<=\<LoggerFinder\>"
|
||||
syn match javaC_JavaLang "\%(\<Enum\.\)\@<=\<EnumDesc\>"
|
||||
syn keyword javaC_JavaLang Boolean Character Class ClassLoader Compiler Double Float Integer Long Math Number Object Process Runtime SecurityManager String StringBuffer Thread ThreadGroup Byte Short Void InheritableThreadLocal Package RuntimePermission ThreadLocal StrictMath StackTraceElement Enum ProcessBuilder StringBuilder ClassValue Module ModuleLayer StackWalker Record
|
||||
syn match javaC_JavaLang "\<System\>" " See javaDebug.
|
||||
syn cluster javaTop add=javaC_JavaLang
|
||||
syn cluster javaClasses add=javaC_JavaLang
|
||||
hi def link javaC_JavaLang javaC_Java
|
||||
syn keyword javaE_JavaLang IncompatibleClassChangeError InternalError UnknownError ClassCircularityError AssertionError ThreadDeath IllegalAccessError NoClassDefFoundError ClassFormatError UnsupportedClassVersionError NoSuchFieldError VerifyError ExceptionInInitializerError InstantiationError LinkageError NoSuchMethodError Error UnsatisfiedLinkError StackOverflowError AbstractMethodError VirtualMachineError OutOfMemoryError
|
||||
syn keyword javaE_JavaLang AbstractMethodError ClassCircularityError ClassFormatError Error IllegalAccessError IncompatibleClassChangeError InstantiationError InternalError LinkageError NoClassDefFoundError NoSuchFieldError NoSuchMethodError OutOfMemoryError StackOverflowError ThreadDeath UnknownError UnsatisfiedLinkError VerifyError VirtualMachineError ExceptionInInitializerError UnsupportedClassVersionError AssertionError BootstrapMethodError
|
||||
syn cluster javaTop add=javaE_JavaLang
|
||||
syn cluster javaClasses add=javaE_JavaLang
|
||||
hi def link javaE_JavaLang javaE_Java
|
||||
syn keyword javaX_JavaLang CloneNotSupportedException Exception NoSuchMethodException IllegalAccessException NoSuchFieldException Throwable InterruptedException ClassNotFoundException InstantiationException
|
||||
syn keyword javaX_JavaLang ClassNotFoundException CloneNotSupportedException Exception IllegalAccessException InstantiationException InterruptedException NoSuchMethodException Throwable NoSuchFieldException ReflectiveOperationException
|
||||
syn cluster javaTop add=javaX_JavaLang
|
||||
syn cluster javaClasses add=javaX_JavaLang
|
||||
hi def link javaX_JavaLang javaX_Java
|
||||
@@ -118,7 +142,7 @@ if exists("java_space_errors")
|
||||
endif
|
||||
endif
|
||||
|
||||
syn region javaLabelRegion transparent matchgroup=javaLabel start="\<case\>" matchgroup=NONE end=":" contains=javaNumber,javaCharacter,javaString
|
||||
syn region javaLabelRegion transparent matchgroup=javaLabel start="\<case\>" end="->" matchgroup=NONE end=":" contains=javaNumber,javaCharacter,javaString
|
||||
syn match javaUserLabel "^\s*[_$a-zA-Z][_$a-zA-Z0-9_]*\s*:"he=e-1 contains=javaLabel
|
||||
syn keyword javaLabel default
|
||||
|
||||
@@ -126,7 +150,7 @@ syn keyword javaLabel default
|
||||
" annoying. Was: if !exists("java_allow_cpp_keywords")
|
||||
|
||||
" The following cluster contains all java groups except the contained ones
|
||||
syn cluster javaTop add=javaExternal,javaError,javaError,javaBranch,javaLabelRegion,javaLabel,javaConditional,javaRepeat,javaBoolean,javaConstant,javaTypedef,javaOperator,javaType,javaType,javaStatement,javaStorageClass,javaAssert,javaExceptions,javaMethodDecl,javaClassDecl,javaClassDecl,javaClassDecl,javaScopeDecl,javaError,javaError2,javaUserLabel,javaLangObject,javaAnnotation,javaVarArg
|
||||
syn cluster javaTop add=javaExternal,javaError,javaBranch,javaLabelRegion,javaLabel,javaConditional,javaRepeat,javaBoolean,javaConstant,javaTypedef,javaOperator,javaType,javaStatement,javaStorageClass,javaAssert,javaExceptions,javaMethodDecl,javaClassDecl,javaScopeDecl,javaError2,javaUserLabel,javaLangObject,javaAnnotation,javaVarArg
|
||||
|
||||
|
||||
" Comments
|
||||
@@ -153,7 +177,7 @@ syn cluster javaTop add=javaComment,javaLineComment
|
||||
if !exists("java_ignore_javadoc") && main_syntax != 'jsp'
|
||||
syntax case ignore
|
||||
" syntax coloring for javadoc comments (HTML)
|
||||
syntax include @javaHtml <sfile>:p:h/html.vim
|
||||
syntax include @javaHtml syntax/html.vim
|
||||
unlet b:current_syntax
|
||||
" HTML enables spell checking for all text that is not in a syntax item. This
|
||||
" is wrong for Java (all identifiers would be spell-checked), so it's undone
|
||||
@@ -336,7 +360,7 @@ hi def link htmlComment Special
|
||||
hi def link htmlCommentPart Special
|
||||
hi def link javaSpaceError Error
|
||||
|
||||
if fnamemodify(bufname("%"), ":t") == "module-info.java"
|
||||
if s:isModuleInfoDeclarationCurrentBuffer()
|
||||
hi def link javaModuleStorageClass StorageClass
|
||||
hi def link javaModuleStmt Statement
|
||||
hi def link javaModuleExternal Include
|
||||
@@ -348,6 +372,7 @@ if main_syntax == 'java'
|
||||
unlet main_syntax
|
||||
endif
|
||||
|
||||
delfunction! s:isModuleInfoDeclarationCurrentBuffer
|
||||
let b:spell_options="contained"
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
" (ss) repaired several quoting and grouping glitches
|
||||
" (ss) fixed regex parsing issue with multiple qualifiers [gi]
|
||||
" (ss) additional factoring of keywords, globals, and members
|
||||
" Last Change: 2021 Mar 30
|
||||
" Last Change: 2022 Jun 09
|
||||
" 2013 Jun 12: adjusted javaScriptRegexpString (Kevin Locke)
|
||||
" 2018 Apr 14: adjusted javaScriptRegexpString (LongJohnCoder)
|
||||
|
||||
@@ -39,9 +39,16 @@ syn region javaScriptStringT start=+`+ skip=+\\\\\|\\`+ end=+`+ contai
|
||||
|
||||
syn region javaScriptEmbed start=+${+ end=+}+ contains=@javaScriptEmbededExpr
|
||||
|
||||
" number handling by Christopher Leonard chris.j.leonard@gmx.com
|
||||
syn match javaScriptSpecialCharacter "'\\.'"
|
||||
syn match javaScriptNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
|
||||
syn match javaScriptNumber "-\=\<\d\+\%(_\d\+\)*\>"
|
||||
syn match javaScriptNumber "\<0[bB][0-1]\+\(_[0-1]\+\)*\>"
|
||||
syn match javaScriptNumber "\<0[oO][0-7]\+\(_[0-7]\+\)*\>"
|
||||
syn match javaScriptNumber "\<0\([0-7]\+\(_[0-7]\+\)*\)\?\>"
|
||||
syn match javaScriptNumber "\<0[xX][0-9a-fA-F]\+\(_[0-9a-fA-F]\+\)*\>"
|
||||
syn match javaScriptNumber "\<\d\+\(_\d\+\)*[eE][+-]\?\d\+\>"
|
||||
syn match javaScriptNumber "\<[1-9]\d*\(_\d\+\)*\(\.\(\d\+\(_\d\+\)*\([eE][+-]\?\d\+\)\?\)\?\)\?\>"
|
||||
syn match javaScriptNumber "\<\(\d\+\(_\d\+\)*\)\?\.\d\+\(_\d\+\)*\([eE][+-]\?\d\+\)\?\>"
|
||||
syn match javaScriptNumber "\<\d\+\(_\d\+\)*\.\(\d\+\(_\d\+\)*\([eE][+-]\?\d\+\)\?\)\?\>"
|
||||
syn region javaScriptRegexpString start=+[,(=+]\s*/[^/*]+ms=e-1,me=e-1 skip=+\\\\\|\\/+ end=+/[gimuys]\{0,2\}\s*$+ end=+/[gimuys]\{0,2\}\s*[+;.,)\]}]+me=e-1 end=+/[gimuys]\{0,2\}\s\+\/+me=e-1 contains=@htmlPreproc,javaScriptComment oneline
|
||||
|
||||
syn keyword javaScriptConditional if else switch
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
" Language: M4
|
||||
" Maintainer: Claudio Fleiner (claudio@fleiner.com)
|
||||
" URL: http://www.fleiner.com/vim/syntax/m4.vim
|
||||
" Last Change: 2005 Jan 15
|
||||
" (outdated)
|
||||
" Last Change: 2022 Jun 12
|
||||
|
||||
" This file will highlight user function calls if they use only
|
||||
" capital letters and have at least one argument (i.e. the '('
|
||||
@@ -21,6 +22,7 @@ endif
|
||||
syn match m4Variable contained "\$\d\+"
|
||||
syn match m4Special contained "$[@*#]"
|
||||
syn match m4Comment "\<\(m4_\)\=dnl\>.*" contains=SpellErrors
|
||||
syn match m4Comment "#.*" contains=SpellErrors
|
||||
syn match m4Constants "\<\(m4_\)\=__file__"
|
||||
syn match m4Constants "\<\(m4_\)\=__line__"
|
||||
syn keyword m4Constants divnum sysval m4_divnum m4_sysval
|
||||
@@ -32,7 +34,7 @@ syn region m4Command matchgroup=m4builtin start="\<\(m4_\)\=\(len\|index\|regex
|
||||
syn keyword m4Statement divert undivert
|
||||
syn region m4Command matchgroup=m4Type start="\<\(m4_\)\=\(undefine\|popdef\)("he=e-1 end=")" contains=@m4Top
|
||||
syn region m4Function matchgroup=m4Type start="\<[_A-Z][_A-Z0-9]*("he=e-1 end=")" contains=@m4Top
|
||||
syn region m4String start="`" end="'" contained contains=@m4Top,@m4StringContents,SpellErrors
|
||||
syn region m4String start="`" end="'" contains=SpellErrors
|
||||
syn cluster m4Top contains=m4Comment,m4Constants,m4Special,m4Variable,m4String,m4Paren,m4Command,m4Statement,m4Function
|
||||
|
||||
" Define the default highlighting.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
" Previous Maintainer: Jeff Lanzarotta (jefflanzarotta at yahoo dot com)
|
||||
" Previous Maintainer: C. Laurence Gonsalves (clgonsal@kami.com)
|
||||
" URL: https://github.com/lee-lindley/vim_plsql_syntax
|
||||
" Last Change: April 25, 2022
|
||||
" Last Change: April 28, 2022
|
||||
" History Lee Lindley (lee dot lindley at gmail dot com)
|
||||
" updated to 19c keywords. refined quoting.
|
||||
" separated reserved, non-reserved keywords and functions
|
||||
@@ -23,9 +23,6 @@
|
||||
" To enable folding (It does setlocal foldmethod=syntax)
|
||||
" let plsql_fold = 1
|
||||
"
|
||||
" If you want to try procedure folding, it has issues
|
||||
" let plsql_procedure_fold = 1
|
||||
"
|
||||
" From my vimrc file -- turn syntax and syntax folding on,
|
||||
" associate file suffixes as plsql, open all the folds on file open
|
||||
" let plsql_fold = 1
|
||||
@@ -67,23 +64,23 @@ syn match plsqlSymbol "[;,.()]"
|
||||
|
||||
" Operators. and words that would be something else if not in operator mode
|
||||
syn match plsqlOperator "[-+*/=<>@"]"
|
||||
syn match plsqlOperator "\%\(\^=\|<=\|>=\|:=\|=>\|\.\.\|||\|<<\|>>\|\*\*\|!=\|\~=\)"
|
||||
syn match plsqlOperator "\<\%\(NOT\|AND\|OR\|LIKE\|BETWEEN\|IN\)\>"
|
||||
syn match plsqlOperator "\(\^=\|<=\|>=\|:=\|=>\|\.\.\|||\|<<\|>>\|\*\*\|!=\|\~=\)"
|
||||
syn match plsqlOperator "\<\(NOT\|AND\|OR\|LIKE\|BETWEEN\|IN\)\>"
|
||||
syn match plsqlBooleanLiteral "\<NULL\>"
|
||||
syn match plsqlOperator "\<IS\\_s\+\%\(NOT\_s\+\)\?NULL\>"
|
||||
syn match plsqlOperator "\<IS\\_s\+\(NOT\_s\+\)\?NULL\>"
|
||||
"
|
||||
" conditional compilation Preprocessor directives and sqlplus define sigil
|
||||
syn match plsqlPseudo "$[$a-z][a-z0-9$_#]*"
|
||||
syn match plsqlPseudo "&"
|
||||
|
||||
syn match plsqlReserved "\<\%\(CREATE\|THEN\|UPDATE\|INSERT\|SET\)\>"
|
||||
syn match plsqlKeyword "\<\%\(REPLACE\|PACKAGE\|FUNCTION\|PROCEDURE\|TYPE|BODY\|WHEN\|MATCHED\)\>"
|
||||
syn match plsqlReserved "\<\(CREATE\|THEN\|UPDATE\|INSERT\|SET\)\>"
|
||||
syn match plsqlKeyword "\<\(REPLACE\|PACKAGE\|FUNCTION\|PROCEDURE\|TYPE|BODY\|WHEN\|MATCHED\)\>"
|
||||
syn region plsqlUpdate
|
||||
\ matchgroup=plsqlReserved
|
||||
\ start="\<UPDATE\>"
|
||||
\ end="\<SET\>"
|
||||
\ contains=@plsqlIdentifiers
|
||||
syn match plsqlReserved "\<WHEN\_s\+\%\(NOT\_s\+\)\?MATCHED\_s\+THEN\_s\+\%\(UPDATE\|INSERT\)\%\(\_s\+SET\)\?"
|
||||
syn match plsqlReserved "\<WHEN\_s\+\(NOT\_s\+\)\?MATCHED\_s\+THEN\_s\+\(UPDATE\|INSERT\)\(\_s\+SET\)\?"
|
||||
|
||||
"
|
||||
" Oracle's non-reserved keywords
|
||||
@@ -463,7 +460,9 @@ syn keyword plsqlReserved OCIDURATION OCIINTERVAL OCILOBLOCATOR OCINUMBER OCIRAW
|
||||
syn keyword plsqlReserved OCIROWID OCISTRING OCITYPE OF ON OPTION ORACLE ORADATA ORDER ORLANY ORLVARY
|
||||
syn keyword plsqlReserved OUT OVERRIDING PARALLEL_ENABLE PARAMETER PASCAL PCTFREE PIPE PIPELINED POLYMORPHIC
|
||||
syn keyword plsqlReserved PRAGMA PRIOR PUBLIC RAISE RECORD RELIES_ON REM RENAME RESOURCE RESULT REVOKE ROWID
|
||||
syn keyword plsqlReserved SB1 SB2 SELECT SEPARATE SHARE SHORT SIZE SIZE_T SPARSE SQLCODE SQLDATA
|
||||
syn keyword plsqlReserved SB1 SB2
|
||||
syn match plsqlReserved "\<SELECT\>"
|
||||
syn keyword plsqlReserved SEPARATE SHARE SHORT SIZE SIZE_T SPARSE SQLCODE SQLDATA
|
||||
syn keyword plsqlReserved SQLNAME SQLSTATE STANDARD START STORED STRUCT STYLE SYNONYM TABLE TDO
|
||||
syn keyword plsqlReserved TRANSACTIONAL TRIGGER UB1 UB4 UNION UNIQUE UNSIGNED UNTRUSTED VALIST
|
||||
syn keyword plsqlReserved VALUES VARIABLE VIEW VOID WHERE WITH
|
||||
@@ -517,28 +516,30 @@ syn match plsqlFunction "\.PREV\>"hs=s+1
|
||||
syn match plsqlFunction "\.NEXT\>"hs=s+1
|
||||
|
||||
if exists("plsql_legacy_sql_keywords")
|
||||
" Some of Oracle's SQL keywords.
|
||||
syn keyword plsqlSQLKeyword ABORT ACCESS ACCESSED ADD AFTER ALL ALTER AND ANY
|
||||
syn keyword plsqlSQLKeyword ASC ATTRIBUTE AUDIT AUTHORIZATION AVG BASE_TABLE
|
||||
syn keyword plsqlSQLKeyword BEFORE BETWEEN BY CASCADE CAST CHECK CLUSTER
|
||||
syn keyword plsqlSQLKeyword CLUSTERS COLAUTH COLUMN COMMENT COMPRESS CONNECT
|
||||
syn keyword plsqlSQLKeyword CONSTRAINT CRASH CURRENT DATA DATABASE
|
||||
syn keyword plsqlSQLKeyword DATA_BASE DBA DEFAULT DELAY DELETE DESC DISTINCT
|
||||
syn keyword plsqlSQLKeyword DROP DUAL EXCLUSIVE EXISTS EXTENDS EXTRACT
|
||||
syn keyword plsqlSQLKeyword FILE FORCE FOREIGN FROM GRANT GROUP HAVING HEAP
|
||||
syn keyword plsqlSQLKeyword IDENTIFIED IDENTIFIER IMMEDIATE IN INCLUDING
|
||||
syn keyword plsqlSQLKeyword INCREMENT INDEX INDEXES INITIAL INSERT INSTEAD
|
||||
syn keyword plsqlSQLKeyword INTERSECT INTO INVALIDATE ISOLATION KEY LIBRARY
|
||||
syn keyword plsqlSQLKeyword LIKE LOCK MAXEXTENTS MINUS MODE MODIFY MULTISET
|
||||
syn keyword plsqlSQLKeyword NESTED NOAUDIT NOCOMPRESS NOT NOWAIT OF OFF OFFLINE
|
||||
syn keyword plsqlSQLKeyword ON ONLINE OPERATOR OPTION ORDER ORGANIZATION
|
||||
syn keyword plsqlSQLKeyword PCTFREE PRIMARY PRIOR PRIVATE PRIVILEGES PUBLIC
|
||||
syn keyword plsqlSQLKeyword QUOTA RELEASE RENAME REPLACE RESOURCE REVOKE ROLLBACK
|
||||
syn keyword plsqlSQLKeyword ROW ROWLABEL ROWS SCHEMA SELECT SEPARATE SESSION SET
|
||||
syn keyword plsqlSQLKeyword SHARE SIZE SPACE START STORE SUCCESSFUL SYNONYM
|
||||
syn keyword plsqlSQLKeyword SYSDATE TABLE TABLES TABLESPACE TEMPORARY TO TREAT
|
||||
syn keyword plsqlSQLKeyword TRIGGER TRUNCATE UID UNION UNIQUE UNLIMITED UPDATE
|
||||
syn keyword plsqlSQLKeyword USE USER VALIDATE VALUES VIEW WHENEVER WHERE WITH
|
||||
" Some of Oracle's SQL keywords.
|
||||
syn keyword plsqlSQLKeyword ABORT ACCESS ACCESSED ADD AFTER ALL ALTER AND ANY
|
||||
syn keyword plsqlSQLKeyword ASC ATTRIBUTE AUDIT AUTHORIZATION AVG BASE_TABLE
|
||||
syn keyword plsqlSQLKeyword BEFORE BETWEEN BY CASCADE CAST CHECK CLUSTER
|
||||
syn keyword plsqlSQLKeyword CLUSTERS COLAUTH COLUMN COMMENT COMPRESS CONNECT
|
||||
syn keyword plsqlSQLKeyword CONSTRAINT CRASH CURRENT DATA DATABASE
|
||||
syn keyword plsqlSQLKeyword DATA_BASE DBA DEFAULT DELAY DELETE DESC DISTINCT
|
||||
syn keyword plsqlSQLKeyword DROP DUAL EXCLUSIVE EXISTS EXTENDS EXTRACT
|
||||
syn keyword plsqlSQLKeyword FILE FORCE FOREIGN FROM GRANT GROUP HAVING HEAP
|
||||
syn keyword plsqlSQLKeyword IDENTIFIED IDENTIFIER IMMEDIATE IN INCLUDING
|
||||
syn keyword plsqlSQLKeyword INCREMENT INDEX INDEXES INITIAL INSERT INSTEAD
|
||||
syn keyword plsqlSQLKeyword INTERSECT INTO INVALIDATE ISOLATION KEY LIBRARY
|
||||
syn keyword plsqlSQLKeyword LIKE LOCK MAXEXTENTS MINUS MODE MODIFY MULTISET
|
||||
syn keyword plsqlSQLKeyword NESTED NOAUDIT NOCOMPRESS NOT NOWAIT OF OFF OFFLINE
|
||||
syn keyword plsqlSQLKeyword ON ONLINE OPERATOR OPTION ORDER ORGANIZATION
|
||||
syn keyword plsqlSQLKeyword PCTFREE PRIMARY PRIOR PRIVATE PRIVILEGES PUBLIC
|
||||
syn keyword plsqlSQLKeyword QUOTA RELEASE RENAME REPLACE RESOURCE REVOKE ROLLBACK
|
||||
syn keyword plsqlSQLKeyword ROW ROWLABEL ROWS SCHEMA
|
||||
syn match plsqlSQLKeyword "\<SELECT\>"
|
||||
syn keyword plsqlSQLKeyword SEPARATE SESSION SET
|
||||
syn keyword plsqlSQLKeyword SHARE SIZE SPACE START STORE SUCCESSFUL SYNONYM
|
||||
syn keyword plsqlSQLKeyword SYSDATE TABLE TABLES TABLESPACE TEMPORARY TO TREAT
|
||||
syn keyword plsqlSQLKeyword TRIGGER TRUNCATE UID UNION UNIQUE UNLIMITED UPDATE
|
||||
syn keyword plsqlSQLKeyword USE USER VALIDATE VALUES VIEW WHENEVER WHERE WITH
|
||||
endif
|
||||
|
||||
|
||||
@@ -565,17 +566,16 @@ syn keyword plsqlException TIMEOUT_ON_RESOURCE TOO_MANY_ROWS VALUE_ERROR
|
||||
syn keyword plsqlException ZERO_DIVIDE
|
||||
|
||||
if exists("plsql_highlight_triggers")
|
||||
syn keyword plsqlTrigger INSERTING UPDATING DELETING
|
||||
syn keyword plsqlTrigger INSERTING UPDATING DELETING
|
||||
endif
|
||||
|
||||
" so can not contain it for folding
|
||||
" so can not contain it for folding. May no longer be necessary and can change them to plsqlKeyword
|
||||
syn match plsqlBEGIN "\<BEGIN\>"
|
||||
syn match plsqlEND "\<END\>"
|
||||
syn match plsqlISAS "\<\%\(IS\|AS\)\>"
|
||||
|
||||
syn match plsqlISAS "\<\(IS\|AS\)\>"
|
||||
|
||||
" Various types of comments.
|
||||
syntax region plsqlCommentL start="--" skip="\\$" end="$" keepend extend contains=@plsqlCommentGroup,plsqlSpaceError
|
||||
syntax region plsqlCommentL start="--" skip="\\$" end="$" keepend extend contains=@plsqlCommentGroup,plsqlSpaceError
|
||||
if exists("plsql_fold")
|
||||
syntax region plsqlComment
|
||||
\ start="/\*" end="\*/"
|
||||
@@ -599,11 +599,12 @@ syn match plsqlStringError "'.*$"
|
||||
" Various types of literals.
|
||||
" the + and - get sucked up as operators. Not sure how to take precedence here. Something to do with word boundaries.
|
||||
" most other syntax files do not try to includ +/- in the number token, so leave them as unary operators
|
||||
" even though the oracle documentation counts the sign as part of the numeric literal
|
||||
syn match plsqlNumbers transparent "\<\d\|\.\d" contains=plsqlIntLiteral,plsqlFloatLiteral
|
||||
syn match plsqlNumbersCom contained transparent "\<\d\|\.\d" contains=plsqlIntLiteral,plsqlFloatLiteral
|
||||
syn match plsqlIntLiteral contained "\d\+"
|
||||
syn match plsqlFloatLiteral contained "\d\+\.\%\(\d\+\%\([eE][+-]\?\d\+\)\?\)\?"
|
||||
syn match plsqlFloatLiteral contained "\.\%\(\d\+\%\([eE][+-]\?\d\+\)\?\)"
|
||||
syn match plsqlFloatLiteral contained "\d\+\.\(\d\+\([eE][+-]\?\d\+\)\?\)\?[fd]\?"
|
||||
syn match plsqlFloatLiteral contained "\.\(\d\+\([eE][+-]\?\d\+\)\?\)[fd]\?"
|
||||
|
||||
" double quoted strings in SQL are database object names. Should be a subgroup of Normal.
|
||||
" We will use Character group as a proxy for that so color can be chosen close to Normal
|
||||
@@ -639,146 +640,82 @@ syn match plsqlAttribute "%\(BULK_EXCEPTIONS\|BULK_ROWCOUNT\|ISOPEN\|FOUND\|NOTF
|
||||
syn cluster plsqlParenGroup contains=plsqlParenError,@plsqlCommentGroup,plsqlCommentSkip,plsqlIntLiteral,plsqlFloatLiteral,plsqlNumbersCom
|
||||
|
||||
if exists("plsql_bracket_error")
|
||||
if exists("plsql_fold")
|
||||
syn region plsqlParen start='(' end=')' contains=ALLBUT,@plsqlParenGroup,plsqlErrInBracket fold keepend extend transparent
|
||||
else
|
||||
syn region plsqlParen transparent start='(' end=')' contains=ALLBUT,@plsqlParenGroup,plsqlErrInBracket
|
||||
endif
|
||||
syn match plsqlParenError "[\])]"
|
||||
syn match plsqlErrInParen contained "[{}]"
|
||||
syn region plsqlBracket transparent start='\[' end=']' contains=ALLBUT,@plsqlParenGroup,plsqlErrInParen
|
||||
syn match plsqlErrInBracket contained "[);{}]"
|
||||
" I suspect this code was copied from c.vim and never properly considered. Do
|
||||
" we even use braces or brackets in sql or pl/sql?
|
||||
if exists("plsql_fold")
|
||||
syn region plsqlParen start='(' end=')' contains=ALLBUT,@plsqlParenGroup,plsqlErrInBracket fold keepend extend transparent
|
||||
else
|
||||
syn region plsqlParen transparent start='(' end=')' contains=ALLBUT,@plsqlParenGroup,plsqlErrInBracket
|
||||
endif
|
||||
syn match plsqlParenError "[\])]"
|
||||
syn match plsqlErrInParen contained "[{}]"
|
||||
syn region plsqlBracket transparent start='\[' end=']' contains=ALLBUT,@plsqlParenGroup,plsqlErrInParen
|
||||
syn match plsqlErrInBracket contained "[);{}]"
|
||||
else
|
||||
if exists("plsql_fold")
|
||||
syn region plsqlParen start='(' end=')' contains=ALLBUT,@plsqlParenGroup,@plsqlFoldingGroupIgnore,plsqlErrInParen fold keepend extend transparent
|
||||
else
|
||||
syn region plsqlParen transparent start='(' end=')' contains=ALLBUT,@plsqlParenGroup,@plsqlFoldingGroupIgnore,plsqlErrInParen
|
||||
endif
|
||||
"syn region plsqlParen transparent start='(' end=')' contains=ALLBUT,@plsqlParenGroup,@plsqlProcedureGroup,plsqlBlock,plsqlBlockCont,plsqlPackage,plsqlProcedureJava
|
||||
syn match plsqlParenError ")"
|
||||
syn match plsqlErrInParen contained "[{}]"
|
||||
if exists("plsql_fold")
|
||||
syn region plsqlParen start='(' end=')' contains=ALLBUT,@plsqlParenGroup,plsqlErrInParen fold keepend extend transparent
|
||||
else
|
||||
syn region plsqlParen transparent start='(' end=')' contains=ALLBUT,@plsqlParenGroup,plsqlErrInParen
|
||||
endif
|
||||
syn match plsqlParenError ")"
|
||||
" should this not be parens isntead of brackets? I never quite followed what this was doing
|
||||
syn match plsqlErrInParen contained "[{}]"
|
||||
endif
|
||||
|
||||
syn match plsqlReserved "\<BODY\>"
|
||||
syn match plsqlReserved "\<CREATE\_s\+\%\(OR\_s\+REPLACE\_s\+\)\?"
|
||||
" Loops.
|
||||
syn match plsqlRepeat "\<\%\(FOR\|WHILE\|LOOP\|FORALL\)\>"
|
||||
syn match plsqlRepeat "\<END\_s\+LOOP\>"
|
||||
syn match plsqlConditional "\<\%\(ELSIF\|IF\|ELSE\)\>"
|
||||
"syn match plsqlConditional "\<END\>\_s\+\<IF\>"
|
||||
syn match plsqlReserved "\<CREATE\_s\+\(OR\_s\+REPLACE\_s\+\)\?"
|
||||
" Loops
|
||||
syn match plsqlRepeat "\<\(FOR\|WHILE\|LOOP\|FORALL\)\>"
|
||||
syn match plsqlRepeat "\<END\_s\+LOOP\>"
|
||||
" conditionals
|
||||
syn match plsqlConditional "\<\(ELSIF\|IF\|ELSE\)\>"
|
||||
syn match plsqlConditional "\<END\>\_s\+\<IF\>"
|
||||
syn match plsqlCase "\<END\>\_s\+\<CASE\>"
|
||||
syn match plsqlCase "\<CASE\>"
|
||||
"syn match plsqlCase "\<END\>\s_\+\<CASE\>"
|
||||
|
||||
if exists("plsql_fold")
|
||||
setlocal foldmethod=syntax
|
||||
syn sync fromstart
|
||||
|
||||
syn cluster plsqlFoldingGroupIgnore contains=plsqlProcedureDeclaration
|
||||
syn cluster plsqlProcedureGroup contains=plsqlProcedure
|
||||
syn cluster plsqlOnlyGroup contains=@plsqlProcedure,plsqlConditionalBlock,plsqlLoopBlock,plsqlBlock
|
||||
|
||||
"syntax match plsqlWhiteSpaceGroup "\_s\+" contained transparent
|
||||
syntax region plsqlUpdateSet
|
||||
\ start="\(\<update\>\_s\+\(\<set\>\)\@![a-z][a-z0-9$_#]*\_s\+\(\(\<set\>\)\@![a-z][a-z0-9$_#]*\_s\+\)\?\)\|\(\<when\>\_s\+\<matched\>\_s\+\<then\>\_s\+\<update\>\_s\+\)\<set\>"
|
||||
\ end="\(\_s*\(;\|\<from\>\|\<where\>\|\<when\>\)\)\@="
|
||||
\ fold
|
||||
\ keepend
|
||||
\ extend
|
||||
\ transparent
|
||||
\ contains=ALLBUT,@plsqlOnlyGroup,plsqlSelect
|
||||
|
||||
syntax region plsqlSelect
|
||||
\ start="\<select\>"
|
||||
\ end="\(\_s*\<from\>\)\@="
|
||||
\ fold
|
||||
\ keepend
|
||||
\ extend
|
||||
\ transparent
|
||||
\ contains=ALLBUT,@plsqlOnlyGroup,plsqlUpdateSet
|
||||
|
||||
if exists("plsql_procedure_fold")
|
||||
" this fails when a begin/end block is in a procedure. Unable to figure out why. - Lee
|
||||
|
||||
" this is brute force and requires you have the procedure/function name in the END
|
||||
" statement. ALthough Oracle makes it optional, we cannot. If you do not
|
||||
" have it, then you can fold the BEGIN/END block of the procedure but not
|
||||
" the specification of it (other than a paren group). You also cannot fold
|
||||
" BEGIN/END blocks in the procedure body. Local procedures will fold as
|
||||
" long as the END statement includes the procedure/function name.
|
||||
" As for why we cannot make it work any other way, I don't know. It is
|
||||
" something to do with both plsqlBlock and plsqlProcedure both consuming BEGIN and END,
|
||||
" even if we use a lookahead for one of them.
|
||||
syntax region plsqlProcedure
|
||||
"\ start="\(create\(\_s\+or\_s\+replace\)\?\_s\+\)\?\<\(procedure\|function\)\>\_s\+\z([a-z][a-z0-9$_#]*\)"
|
||||
\ start="\(create\(\_s\+or\_s\+replace\)\?\_s\+\)\?\<\(procedure\|function\)\>\_s\+\z([a-z][a-z0-9$_#]*\)\([^;]\|\n\)\{-}\(\_s\+\<\(is\|as\)\>\)\@="
|
||||
\ end="\(\<end\>\(\_s\+\z1\)\?\_s*;\)"
|
||||
\ start="\<\(procedure\|function\)\>\_s\+\(\z([a-z][a-z0-9$_#]*\)\)\([^;]\|\n\)\{-}\<\(is\|as\)\>\_.\{-}\(\<end\>\_s\+\2\_s*;\)\@="
|
||||
\ end="\<end\>\_s\+\z1\_s*;"
|
||||
\ fold
|
||||
\ keepend
|
||||
\ extend
|
||||
\ transparent
|
||||
\ keepend
|
||||
\ contains=plsqlProcedureDeclaration,plsqlProcedureBlock,@plsqlCommentAll,plsqlKeyword,plsqlReserved,plsqlTypeAttribute,plsqlStorage
|
||||
|
||||
syntax region plsqlProcedureDeclaration
|
||||
\ transparent
|
||||
\ fold
|
||||
"\ start="\<\(is\|as\)\>\(\(\_.\)\{-}\<begin\>\)\@="
|
||||
\ start="\<\(is\|as\)\>"
|
||||
\ end="\(\_s\+\<begin\>\)\@="
|
||||
\ nextgroup=plsqlProcedureBlock
|
||||
\ contained
|
||||
\ contains=ALLBUT,plsqlBlockCont,plsqlBlock,plsqlErrInBracket,plsqlPackage,plsqlProcedureDeclaration
|
||||
",plsqlProcedureBlock
|
||||
\ keepend
|
||||
"\ extend
|
||||
" must have keepend which is weird because it is 0 lenght
|
||||
" ,plsqlEnd,plsqlISAS
|
||||
|
||||
syntax region plsqlProcedureBlock
|
||||
\ start="\<begin\>"
|
||||
"\ skip="\_s\+\<begin\>\_.\{-}\<end\>\_s*;"
|
||||
\ matchgroup=NONE
|
||||
\ end="\(\<end\>\(\_s\+\(if\|loop\|case\)\@![a-z][a-z0-9$_#]*\)\?\_s*;\)"
|
||||
"\ end="\(\<end\>\)\@="
|
||||
\ fold
|
||||
\ contained
|
||||
\ transparent
|
||||
\ keepend
|
||||
"\ extend
|
||||
\ contains=ALLBUT,plsqlPackage,plsqlProcedure,plsqlProcedureBlock,plsqlProcedureDeclaration,plsqlProcedureJava,plsqlBlock
|
||||
|
||||
"syn cluster plsqlProcedureGroup contains=plsqlProcedure,plsqlProcedureDeclaration,plsqlProcedureBlock
|
||||
syn cluster plsqlProcedureGroup contains=plsqlProcedure,plsqlProcedureDeclaration,plsqlProcedureBlock
|
||||
|
||||
" for inside packages
|
||||
syn region plsqlProcedureSpec
|
||||
\ start="\(procedure\|function\)\(\([^;]\|\n\)\{-}\<\(is\|as\)\>\)\@!"
|
||||
"\ start="\(procedure\|function\)\(\([^;]\|\n\)\{-}\<\(is\|as\)\>\)\@!\(\_.*;\)\@="
|
||||
\ end=";"
|
||||
\ keepend extend
|
||||
\ contains=@plsqlIdentifiers,plsqlKeyword,plsqlReserved,@plsqlCommentAll,plsqlParen
|
||||
\ transparent
|
||||
|
||||
syntax region plsqlBlockCont
|
||||
\ transparent
|
||||
\ start="\<begin\>"
|
||||
\ end="\<end\>\_s*;"
|
||||
\ fold
|
||||
\ extend
|
||||
\ contained
|
||||
\ contains=ALLBUT,@plsqlProcedureGroup,plsqlPackage,plsqlErrInBracket,PlsqlProcedureJava,plsqlBlock
|
||||
\ keepend
|
||||
"\ end="\<end\>\_s*\;"
|
||||
|
||||
syntax region plsqlProcedureJava
|
||||
\ matchgroup=NONE
|
||||
\ start="\(\/\*\(\(\*\/\)\@!\_.\)*\*\/\_s*\)\?\(\(\(overriding\_s*\)\?member\|constructor\|static\)\_s*\)\?\<\(procedure\|function\)\>\_s*\(\k*\)\_[^;]\{-}\<\(is\|as\)\>\_s*language\_s*java\_s*name"
|
||||
\ matchgroup=plsqlStringLiteral
|
||||
\ end="'\_[^']*'\_s*;"
|
||||
\ keepend extend
|
||||
\ fold
|
||||
\ contains=ALLBUT,plsqlProcedure,plsqlProcedureDeclaration,plsqlProcedureBlock,plsqlBlockCont,plsqlBlock,plsqlProcedureJava,plsqlErrInBracket,plsqlStringLiteral
|
||||
|
||||
|
||||
" syntax region plsqlPackage
|
||||
" \ start="\<create\>\_s\+\(or\_s\+replace\_s\+\)\?package\_s\+\(body\_s\+\)\?\z([a-z][a-z0-9$_#]*\)\>"
|
||||
" \ matchgroup=plsqlEnd
|
||||
" \ end="\<end\>\(\%\(\_s\+\z1\)\?\_s*;\)\@="
|
||||
" \ fold
|
||||
" \ transparent
|
||||
" \ keepend extend
|
||||
" \ contains=plsqlProcedure,plsqlBlockCont,@plsqlCommentAll,plsqlKeyword,plsqlReserved,@plsqlIdentifiers
|
||||
" "\ contains=ALLBUT,plsqlPackage,plsqlProcedureDeclaration,plsqlBlock,plsqlConditionalBlock,plsqlLoopBlock,plsqlCaseBlock
|
||||
|
||||
if exists("plsql_syntax_test_flag")
|
||||
hi plsqlProcedureDeclaration guifg='blue'
|
||||
hi plsqlProcedureBlock guifg='red'
|
||||
hi plsqlProcedure guifg='green'
|
||||
hi plsqlCaseBlock guifg='pink'
|
||||
hi plsqlBlock NONE
|
||||
else
|
||||
hi plsqlPackage NONE
|
||||
hi plsqlProcedureDeclaration NONE
|
||||
hi plsqlProcedureBlock NONE
|
||||
hi plsqlProcedure NONE
|
||||
hi plsqlBlock NONE
|
||||
hi plsqlCaseBlock NONE
|
||||
endif
|
||||
|
||||
" end plsql_procedure_fold
|
||||
endif
|
||||
\ contains=ALLBUT,plsqlBlock
|
||||
|
||||
syntax region plsqlBlock
|
||||
\ start="\<begin\>"
|
||||
@@ -809,7 +746,6 @@ if exists("plsql_fold")
|
||||
\ contained
|
||||
\ contains=ALLBUT,@plsqlProcedureGroup,plsqlPackage,plsqlErrInBracket,PlsqlProcedureJava
|
||||
|
||||
" Conditionals.
|
||||
syn region plsqlConditionalBlock
|
||||
\ transparent
|
||||
\ start="\<if\>\(\_s*;\)\@!"
|
||||
@@ -827,45 +763,45 @@ endif
|
||||
" Define the default highlighting.
|
||||
" Only when an item doesn't have highlighting yet.
|
||||
|
||||
hi def link plsqlAttribute Macro
|
||||
hi def link plsqlBlockError Error
|
||||
hi def link plsqlBooleanLiteral Boolean
|
||||
hi def link plsqlQuotedIdentifier Character
|
||||
hi def link plsqlComment Comment
|
||||
hi def link plsqlCommentL Comment
|
||||
hi def link plsqlConditional Keyword
|
||||
hi def link plsqlCase Conditional
|
||||
hi def link plsqlError Error
|
||||
hi def link plsqlErrInBracket Error
|
||||
hi def link plsqlErrInBlock Error
|
||||
hi def link plsqlErrInParen Error
|
||||
hi def link plsqlException Function
|
||||
hi def link plsqlFloatLiteral Float
|
||||
hi def link plsqlFunction Function
|
||||
hi def link plsqlGarbage Error
|
||||
hi def link plsqlHostIdentifier Label
|
||||
hi def link plsqlIdentifier Normal
|
||||
hi def link plsqlIntLiteral Number
|
||||
hi def link plsqlOperator Operator
|
||||
hi def link plsqlParenError Error
|
||||
hi def link plsqlSpaceError Error
|
||||
hi def link plsqlPseudo PreProc
|
||||
hi def link plsqlKeyword Keyword
|
||||
hi def link plsqlEND Keyword
|
||||
hi def link plsqlBEGIN Keyword
|
||||
hi def link plsqlISAS Statement
|
||||
hi def link plsqlReserved Statement
|
||||
hi def link plsqlRepeat Repeat
|
||||
hi def link plsqlStorage StorageClass
|
||||
hi def link plsqlFunction Function
|
||||
hi def link plsqlStringError Error
|
||||
hi def link plsqlStringLiteral String
|
||||
hi def link plsqlCommentString String
|
||||
hi def link plsqlComment2String String
|
||||
hi def link plsqlTrigger Function
|
||||
hi def link plsqlTypeAttribute StorageClass
|
||||
hi def link plsqlTodo Todo
|
||||
" to be able to change them, need override whether defined or not
|
||||
hi def link plsqlAttribute Macro
|
||||
hi def link plsqlBlockError Error
|
||||
hi def link plsqlBooleanLiteral Boolean
|
||||
hi def link plsqlQuotedIdentifier Character
|
||||
hi def link plsqlComment Comment
|
||||
hi def link plsqlCommentL Comment
|
||||
hi def link plsqlConditional Conditional
|
||||
hi def link plsqlCase Conditional
|
||||
hi def link plsqlError Error
|
||||
hi def link plsqlErrInBracket Error
|
||||
hi def link plsqlErrInBlock Error
|
||||
hi def link plsqlErrInParen Error
|
||||
hi def link plsqlException Function
|
||||
hi def link plsqlFloatLiteral Float
|
||||
hi def link plsqlFunction Function
|
||||
hi def link plsqlGarbage Error
|
||||
hi def link plsqlHostIdentifier Label
|
||||
hi def link plsqlIdentifier Normal
|
||||
hi def link plsqlIntLiteral Number
|
||||
hi def link plsqlOperator Operator
|
||||
hi def link plsqlParenError Error
|
||||
hi def link plsqlSpaceError Error
|
||||
hi def link plsqlPseudo PreProc
|
||||
hi def link plsqlKeyword Keyword
|
||||
hi def link plsqlEND Keyword
|
||||
hi def link plsqlBEGIN Keyword
|
||||
hi def link plsqlISAS Statement
|
||||
hi def link plsqlReserved Statement
|
||||
hi def link plsqlRepeat Repeat
|
||||
hi def link plsqlStorage StorageClass
|
||||
hi def link plsqlFunction Function
|
||||
hi def link plsqlStringError Error
|
||||
hi def link plsqlStringLiteral String
|
||||
hi def link plsqlCommentString String
|
||||
hi def link plsqlComment2String String
|
||||
hi def link plsqlTrigger Function
|
||||
hi def link plsqlTypeAttribute StorageClass
|
||||
hi def link plsqlTodo Todo
|
||||
" to be able to change them after loading, need override whether defined or not
|
||||
if exists("plsql_legacy_sql_keywords")
|
||||
hi link plsqlSQLKeyword Function
|
||||
hi link plsqlSymbol Normal
|
||||
@@ -876,6 +812,8 @@ else
|
||||
endif
|
||||
|
||||
let b:current_syntax = "plsql"
|
||||
|
||||
" restore setting from when we entered this file
|
||||
let &cpo = s:cpo_sav
|
||||
unlet! s:cpo_sav
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
" Syntax file for scdoc files
|
||||
" Maintainer: Gregory Anders <greg@gpanders.com>
|
||||
" Last Updated: 2021-08-04
|
||||
" Maintainer: Gregory Anders <contact@gpanders.com>
|
||||
" Last Updated: 2022-05-09
|
||||
" Upstream: https://github.com/gpanders/vim-scdoc
|
||||
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
@@ -20,33 +21,43 @@ syntax match scdocIndentError "^[ ]\+"
|
||||
|
||||
syntax match scdocLineBreak "++$"
|
||||
|
||||
syntax match scdocOrderedListMarker "^\s*\.\%(\s\+\S\)\@="
|
||||
syntax match scdocListMarker "^\s*-\%(\s\+\S\)\@="
|
||||
syntax region scdocOrderedListItem matchgroup=scdocOrderedListMarker start="^\z(\s*\)\." skip="^\z1 .*$" end="^" contains=scdocBold,scdocUnderline
|
||||
syntax region scdocListItem matchgroup=scdocListMarker start="^\z(\s*\)-" skip="^\z1 .*$" end="^" contains=scdocBold,scdocUnderline
|
||||
|
||||
syntax match scdocTableStartMarker "^[\[|\]][\[\-\]]"
|
||||
syntax match scdocTableMarker "^[|:][\[\-\] ]"
|
||||
" Tables cannot start with a column
|
||||
syntax match scdocTableError "^:"
|
||||
|
||||
syntax region scdocTable matchgroup=scdocTableEntry start="^[\[|\]][\[\-\]<=>]" end="^$" contains=scdocTableEntry,scdocTableError,scdocTableContinuation,scdocBold,scdocUnderline,scdocPre
|
||||
syntax match scdocTableError "^.*$" contained
|
||||
syntax match scdocTableContinuation "^ \+\S\+" contained
|
||||
syntax match scdocTableEntry "^[|:][\[\-\]<=> ]" contained
|
||||
syntax match scdocTableError "^[|:][\[\-\]<=> ]\S.*$" contained
|
||||
|
||||
syntax region scdocBold concealends matchgroup=scdocBoldDelimiter start="\\\@<!\*" end="\\\@<!\*"
|
||||
syntax region scdocUnderline concealends matchgroup=scdocUnderlineDelimiter start="\<\\\@<!_" end="\\\@<!_\>"
|
||||
syntax region scdocPre matchgroup=scdocPreDelimiter start="^\t*```" end="^\t*```"
|
||||
|
||||
hi link scdocFirstLineValid Comment
|
||||
hi link scdocComment Comment
|
||||
hi link scdocHeader Title
|
||||
hi link scdocOrderedListMarker Statement
|
||||
hi link scdocListMarker scdocOrderedListMarker
|
||||
hi link scdocLineBreak Special
|
||||
hi link scdocTableMarker Statement
|
||||
hi link scdocTableStartMarker scdocTableMarker
|
||||
syntax sync minlines=50
|
||||
|
||||
hi link scdocFirstLineError Error
|
||||
hi link scdocCommentError Error
|
||||
hi link scdocHeaderError Error
|
||||
hi link scdocIndentError Error
|
||||
hi default link scdocFirstLineValid Comment
|
||||
hi default link scdocComment Comment
|
||||
hi default link scdocHeader Title
|
||||
hi default link scdocOrderedListMarker Statement
|
||||
hi default link scdocListMarker scdocOrderedListMarker
|
||||
hi default link scdocLineBreak Special
|
||||
hi default link scdocTableSpecifier Statement
|
||||
hi default link scdocTableEntry Statement
|
||||
|
||||
hi link scdocPreDelimiter Delimiter
|
||||
hi default link scdocFirstLineError Error
|
||||
hi default link scdocCommentError Error
|
||||
hi default link scdocHeaderError Error
|
||||
hi default link scdocIndentError Error
|
||||
hi default link scdocTableError Error
|
||||
hi default link scdocTableError Error
|
||||
|
||||
hi scdocBold term=bold cterm=bold gui=bold
|
||||
hi scdocUnderline term=underline cterm=underline gui=underline
|
||||
hi link scdocBoldDelimiter scdocBold
|
||||
hi link scdocUnderlineDelimiter scdocUnderline
|
||||
hi default link scdocPreDelimiter Delimiter
|
||||
|
||||
hi default scdocBold term=bold cterm=bold gui=bold
|
||||
hi default scdocUnderline term=underline cterm=underline gui=underline
|
||||
hi default link scdocBoldDelimiter scdocBold
|
||||
hi default link scdocUnderlineDelimiter scdocUnderline
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user