mirror of
https://github.com/zoriya/vim.git
synced 2025-12-30 02:48:24 +00:00
Compare commits
233 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 | ||
|
|
bc6f2bf78a | ||
|
|
f1d63b9cba | ||
|
|
175913fb03 | ||
|
|
2eaef106e4 | ||
|
|
e7d6dbc572 | ||
|
|
509142ab7a | ||
|
|
434725cc4c | ||
|
|
3e79427803 | ||
|
|
dd7eff0a75 | ||
|
|
d560014e03 | ||
|
|
dfbdadce44 | ||
|
|
40fd7e6652 | ||
|
|
365d8f76b5 | ||
|
|
505ed0c38f | ||
|
|
ea72038d60 | ||
|
|
09d9421b67 | ||
|
|
f3b4895f27 | ||
|
|
e442d59f6d | ||
|
|
2a2707d033 | ||
|
|
ac402f4d64 | ||
|
|
47d4e317f8 | ||
|
|
cd5dbad184 | ||
|
|
0395f88b84 | ||
|
|
c9af617ac6 | ||
|
|
23d44493f1 | ||
|
|
51d04d16f2 | ||
|
|
05cf63e9bd | ||
|
|
3a974a8933 | ||
|
|
db08887f24 | ||
|
|
f4f579b46b | ||
|
|
2890c0b9d2 | ||
|
|
2096a5f128 | ||
|
|
2f7e00a8ae | ||
|
|
056a1c2bdd | ||
|
|
d2a4662430 | ||
|
|
b4011afe53 | ||
|
|
d7c9564d8d | ||
|
|
917c32c4f7 | ||
|
|
ee44603069 | ||
|
|
a5d3590505 | ||
|
|
bad8a013c2 | ||
|
|
590f365f91 | ||
|
|
758a8d1999 | ||
|
|
202b4bd3a4 | ||
|
|
211a5bb235 | ||
|
|
a96edb736d | ||
|
|
05c7f5d3d0 | ||
|
|
0a748d9184 | ||
|
|
dca1d40cd0 | ||
|
|
68a573ce2b | ||
|
|
f6ced9863f | ||
|
|
95e4dd813a | ||
|
|
06651630ee | ||
|
|
ce001a337e | ||
|
|
12e21e387b | ||
|
|
fc78a0369e | ||
|
|
2c8a7ebdad | ||
|
|
23f106efeb | ||
|
|
17c95d9608 | ||
|
|
abeb09b2c5 | ||
|
|
87f74106f9 | ||
|
|
1f435dafff | ||
|
|
09661203ec | ||
|
|
23d5770ef5 | ||
|
|
372bcceeee | ||
|
|
af59e34f1b | ||
|
|
aac12daa61 | ||
|
|
659c240cf7 | ||
|
|
a4e3332650 | ||
|
|
ac92ab7719 | ||
|
|
45684c6ec4 | ||
|
|
490ac3fe98 | ||
|
|
d42b83942e | ||
|
|
4a392d2440 | ||
|
|
2c40707baa | ||
|
|
8279cfe499 | ||
|
|
0de7369fd4 | ||
|
|
56dba60216 | ||
|
|
885de449c0 | ||
|
|
33d3ce640c | ||
|
|
77fc0b02e5 | ||
|
|
53ef573148 | ||
|
|
9b36750640 | ||
|
|
1fc6ea9bf3 | ||
|
|
66e13aedc7 | ||
|
|
7851c69a12 | ||
|
|
3fd7480cd2 | ||
|
|
d0eaf675aa | ||
|
|
0044e5100a | ||
|
|
dbec26d789 | ||
|
|
8530b41fd3 | ||
|
|
da1050cd6f | ||
|
|
2c645e8b00 | ||
|
|
4c84dd33ad | ||
|
|
928a131356 |
15
.cirrus.yml
15
.cirrus.yml
@@ -2,13 +2,20 @@ 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-1-release-amd64
|
||||
install_script:
|
||||
pkg install -y gettext
|
||||
- pkg update -f
|
||||
- pkg install -y gettext
|
||||
build_script:
|
||||
- NPROC=$(getconf _NPROCESSORS_ONLN)
|
||||
- ./configure --with-features=${FEATURES}
|
||||
|
||||
@@ -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"
|
||||
|
||||
31
.github/CODEOWNERS
vendored
31
.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
|
||||
@@ -284,4 +312,5 @@ src/libvterm/ @leonerd
|
||||
src/po/de.po @chrisbra
|
||||
src/po/eo.po @dpelle
|
||||
src/po/fr.po @dpelle
|
||||
src/po/ga.po @kscanne
|
||||
src/xxd/ @jnweiger
|
||||
|
||||
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -61,7 +61,7 @@ jobs:
|
||||
extra: vimtags
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install packages
|
||||
run: |
|
||||
@@ -254,7 +254,7 @@ jobs:
|
||||
|
||||
- name: Codecov
|
||||
if: matrix.coverage
|
||||
uses: codecov/codecov-action@v3
|
||||
uses: codecov/codecov-action@v3.1.0
|
||||
with:
|
||||
flags: linux,${{ matrix.features }}-${{ matrix.compiler }}-${{ matrix.extra }}
|
||||
|
||||
@@ -295,7 +295,7 @@ jobs:
|
||||
features: [tiny, normal, huge]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install packages
|
||||
if: matrix.features == 'huge'
|
||||
@@ -364,6 +364,8 @@ jobs:
|
||||
LUA32_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win32_dllw6_lib.zip
|
||||
LUA64_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win64_dllw6_lib.zip
|
||||
LUA_DIR: D:\Lua
|
||||
# do not want \L to end up in pathdef.c and compiler complaining about unknown escape sequences \l
|
||||
LUA_DIR_SLASH: D:/Lua
|
||||
# Python 2
|
||||
PYTHON_VER: 27
|
||||
PYTHON_VER_DOT: '2.7'
|
||||
@@ -430,7 +432,7 @@ jobs:
|
||||
msystem: ${{ matrix.msystem }}
|
||||
release: false
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Create a list of download URLs
|
||||
shell: cmd
|
||||
@@ -510,7 +512,7 @@ jobs:
|
||||
mingw32-make -f Make_ming.mak -j2 \
|
||||
FEATURES=${{ matrix.features }} \
|
||||
GUI=yes IME=yes ICONV=yes VIMDLL=yes \
|
||||
DYNAMIC_LUA=yes LUA=${LUA_DIR} \
|
||||
DYNAMIC_LUA=yes LUA=${LUA_DIR_SLASH} \
|
||||
DYNAMIC_PYTHON=yes PYTHON=${PYTHON_DIR} \
|
||||
DYNAMIC_PYTHON3=yes PYTHON3=${PYTHON3_DIR} \
|
||||
STATIC_STDCPLUS=yes COVERAGE=${{ matrix.coverage }}
|
||||
@@ -600,14 +602,14 @@ jobs:
|
||||
|
||||
- name: Codecov (gVim)
|
||||
if: matrix.coverage
|
||||
uses: codecov/codecov-action@v2
|
||||
uses: codecov/codecov-action@v3.1.0
|
||||
with:
|
||||
directory: src
|
||||
flags: windows,${{ matrix.toolchain }}-${{ matrix.arch }}-${{ matrix.features }}-gui
|
||||
|
||||
- name: Codecov (Vim)
|
||||
if: matrix.coverage
|
||||
uses: codecov/codecov-action@v2
|
||||
uses: codecov/codecov-action@v3.1.0
|
||||
with:
|
||||
directory: src2
|
||||
flags: windows,${{ matrix.toolchain }}-${{ matrix.arch }}-${{ matrix.features }}
|
||||
|
||||
8
.github/workflows/codeql-analysis.yml
vendored
8
.github/workflows/codeql-analysis.yml
vendored
@@ -37,11 +37,11 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
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
|
||||
|
||||
2
.github/workflows/coverity.yml
vendored
2
.github/workflows/coverity.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- 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 \
|
||||
|
||||
@@ -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 it 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: >
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*builtin.txt* For Vim version 8.2. Last change: 2022 Apr 16
|
||||
*builtin.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -60,6 +60,9 @@ assert_report({msg}) Number report a test failure
|
||||
assert_true({actual} [, {msg}]) Number assert {actual} is true
|
||||
atan({expr}) Float arc tangent of {expr}
|
||||
atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2}
|
||||
autocmd_add({acmds}) Bool add a list of autocmds and groups
|
||||
autocmd_delete({acmds}) Bool delete a list of autocmds and groups
|
||||
autocmd_get([{opts}]) List return a list of autocmds
|
||||
balloon_gettext() String current text in the balloon
|
||||
balloon_show({expr}) none show {expr} inside the balloon
|
||||
balloon_split({msg}) List split {msg} as used for a balloon
|
||||
@@ -213,8 +216,12 @@ getcharmod() Number modifiers for the last typed character
|
||||
getcharpos({expr}) List position of cursor, mark, etc.
|
||||
getcharsearch() Dict last character search
|
||||
getcharstr([expr]) String get one character from the user
|
||||
getcmdcompltype() String return the type of the current
|
||||
command-line completion
|
||||
getcmdline() String return the current command-line
|
||||
getcmdpos() Number return cursor position in command-line
|
||||
getcmdscreenpos() Number return cursor screen position in
|
||||
command-line
|
||||
getcmdtype() String return current command-line type
|
||||
getcmdwintype() String return current command-line window type
|
||||
getcompletion({pat}, {type} [, {filtered}])
|
||||
@@ -295,6 +302,7 @@ inputsecret({prompt} [, {text}]) String like input() but hiding the text
|
||||
insert({object}, {item} [, {idx}]) List insert {item} in {object} [before {idx}]
|
||||
interrupt() none interrupt script execution
|
||||
invert({expr}) Number bitwise invert
|
||||
isabsolutepath({path}) Number |TRUE| if {path} is an absolute path
|
||||
isdirectory({directory}) Number |TRUE| if {directory} is a directory
|
||||
isinf({expr}) Number determine if {expr} is infinity value
|
||||
(positive or negative)
|
||||
@@ -337,6 +345,7 @@ maparg({name} [, {mode} [, {abbr} [, {dict}]]])
|
||||
rhs of mapping {name} in mode {mode}
|
||||
mapcheck({name} [, {mode} [, {abbr}]])
|
||||
String check for mappings matching {name}
|
||||
maplist([{abbr}]) List list of all mappings, a dict for each
|
||||
mapnew({expr1}, {expr2}) List/Dict/Blob/String
|
||||
like |map()| but creates a new List or
|
||||
Dictionary
|
||||
@@ -680,7 +689,8 @@ undotree() List undo file tree
|
||||
uniq({list} [, {func} [, {dict}]])
|
||||
List remove adjacent duplicates from a list
|
||||
values({dict}) List values in {dict}
|
||||
virtcol({expr}) Number screen column of cursor or mark
|
||||
virtcol({expr} [, {list}]) Number or List
|
||||
screen column of cursor or mark
|
||||
visualmode([expr]) String last visual mode used
|
||||
wildmenumode() Number whether 'wildmenu' mode is active
|
||||
win_execute({id}, {command} [, {silent}])
|
||||
@@ -771,6 +781,7 @@ add({object}, {expr}) *add()*
|
||||
and({expr}, {expr}) *and()*
|
||||
Bitwise AND on the two arguments. The arguments are converted
|
||||
to a number. A List, Dict or Float argument causes an error.
|
||||
Also see `or()` and `xor()`.
|
||||
Example: >
|
||||
:let flag = and(bits, 0x80)
|
||||
< Can also be used as a |method|: >
|
||||
@@ -916,6 +927,152 @@ atan2({expr1}, {expr2}) *atan2()*
|
||||
<
|
||||
{only available when compiled with the |+float| feature}
|
||||
|
||||
|
||||
autocmd_add({acmds}) *autocmd_add()*
|
||||
Adds a List of autocmds and autocmd groups.
|
||||
|
||||
The {acmds} argument is a List where each item is a Dict with
|
||||
the following optional items:
|
||||
bufnr buffer number to add a buffer-local autocmd.
|
||||
If this item is specified, then the "pattern"
|
||||
item is ignored.
|
||||
cmd Ex command to execute for this autocmd event
|
||||
event autocmd event name. Refer to |autocmd-events|.
|
||||
TODO: currently only accepts one event.
|
||||
group autocmd group name. Refer to |autocmd-groups|.
|
||||
If this group doesn't exist then it is
|
||||
created. If not specified or empty, then the
|
||||
default group is used.
|
||||
nested boolean flag, set to v:true to add a nested
|
||||
autocmd. Refer to |autocmd-nested|.
|
||||
once boolean flag, set to v:true to add an autocmd
|
||||
which executes only once. Refer to
|
||||
|autocmd-once|.
|
||||
pattern autocmd pattern string. Refer to
|
||||
|autocmd-patterns|. If "bufnr" item is
|
||||
present, then this item is ignored.
|
||||
replace boolean flag, set to v:true to remove all the
|
||||
commands associated with the specified autocmd
|
||||
event and group and add the {cmd}. This is
|
||||
useful to avoid adding the same command
|
||||
multiple times for an autocmd event in a group.
|
||||
|
||||
Returns v:true on success and v:false on failure.
|
||||
Examples: >
|
||||
" Create a buffer-local autocmd for buffer 5
|
||||
let acmd = {}
|
||||
let acmd.group = 'MyGroup'
|
||||
let acmd.event = 'BufEnter'
|
||||
let acmd.bufnr = 5
|
||||
let acmd.cmd = 'call BufEnterFunc()'
|
||||
call autocmd_add([acmd])
|
||||
|
||||
Can also be used as a |method|: >
|
||||
GetAutocmdList()->autocmd_add()
|
||||
<
|
||||
autocmd_delete({acmds}) *autocmd_delete()*
|
||||
Deletes a List of autocmds and autocmd groups.
|
||||
|
||||
The {acmds} argument is a List where each item is a Dict with
|
||||
the following optional items:
|
||||
bufnr buffer number to delete a buffer-local autocmd.
|
||||
If this item is specified, then the "pattern"
|
||||
item is ignored.
|
||||
cmd Ex command for this autocmd event
|
||||
event autocmd event name. Refer to |autocmd-events|.
|
||||
If '*' then all the autocmd events in this
|
||||
group are deleted.
|
||||
group autocmd group name. Refer to |autocmd-groups|.
|
||||
If not specified or empty, then the default
|
||||
group is used.
|
||||
nested set to v:true for a nested autocmd.
|
||||
Refer to |autocmd-nested|.
|
||||
once set to v:true for an autocmd which executes
|
||||
only once. Refer to |autocmd-once|.
|
||||
pattern autocmd pattern string. Refer to
|
||||
|autocmd-patterns|. If "bufnr" item is
|
||||
present, then this item is ignored.
|
||||
|
||||
If only {group} is specified in a {acmds} entry and {event},
|
||||
{pattern} and {cmd} are not specified, then that autocmd group
|
||||
is deleted.
|
||||
|
||||
Returns v:true on success and v:false on failure.
|
||||
Examples: >
|
||||
" :autocmd! BufLeave *.vim
|
||||
let acmd = #{event: 'BufLeave', pattern: '*.vim'}
|
||||
call autocmd_delete([acmd]})
|
||||
" :autocmd! MyGroup1 BufLeave
|
||||
let acmd = #{group: 'MyGroup1', event: 'BufLeave'}
|
||||
call autocmd_delete([acmd])
|
||||
" :autocmd! MyGroup2 BufEnter *.c
|
||||
let acmd = #{group: 'MyGroup2', event: 'BufEnter',
|
||||
\ pattern: '*.c'}
|
||||
" :autocmd! MyGroup2 * *.c
|
||||
let acmd = #{group: 'MyGroup2', event: '*',
|
||||
\ pattern: '*.c'}
|
||||
call autocmd_delete([acmd])
|
||||
" :autocmd! MyGroup3
|
||||
let acmd = #{group: 'MyGroup3'}
|
||||
call autocmd_delete([acmd])
|
||||
<
|
||||
Can also be used as a |method|: >
|
||||
GetAutocmdList()->autocmd_delete()
|
||||
|
||||
autocmd_get([{opts}]) *autocmd_get()*
|
||||
Returns a |List| of autocmds. If {opts} is not supplied, then
|
||||
returns the autocmds for all the events in all the groups.
|
||||
|
||||
The optional {opts} Dict argument supports the following
|
||||
items:
|
||||
group Autocmd group name. If specified, returns only
|
||||
the autocmds defined in this group. If the
|
||||
specified group doesn't exist, results in an
|
||||
error message. If set to an empty string,
|
||||
then the default autocmd group is used.
|
||||
event Autocmd event name. If specified, returns only
|
||||
the autocmds defined for this event. If set
|
||||
to "*", then returns autocmds for all the
|
||||
events. If the specified event doesn't exist,
|
||||
results in an error message.
|
||||
pattern Autocmd pattern. If specified, returns only
|
||||
the autocmds defined for this pattern.
|
||||
A combination of the above three times can be supplied in
|
||||
{opts}.
|
||||
|
||||
Each Dict in the returned List contains the following items:
|
||||
bufnr For buffer-local autocmds, buffer number where
|
||||
the autocmd is defined.
|
||||
cmd Command executed for this autocmd.
|
||||
event Autocmd event name.
|
||||
group Autocmd group name.
|
||||
nested Boolean flag, set to v:true for a nested
|
||||
autocmd. See |autocmd-nested|.
|
||||
once Boolean flag, set to v:true, if the autocmd
|
||||
will be executed only once. See |autocmd-once|.
|
||||
pattern Autocmd pattern. For a buffer-local
|
||||
autocmd, this will be of the form "<buffer=n>".
|
||||
If there are multiple commands for an autocmd event in a
|
||||
group, then separate items are returned for each command.
|
||||
|
||||
Examples: >
|
||||
" :autocmd MyGroup
|
||||
echo autocmd_get(#{group: 'Mygroup'})
|
||||
" :autocmd G BufUnload
|
||||
echo autocmd_get(#{group: 'G', event: 'BufUnload'})
|
||||
" :autocmd G * *.ts
|
||||
let acmd = #{group: 'G', event: '*', pattern: '*.ts'}
|
||||
echo autocmd_get(acmd)
|
||||
" :autocmd Syntax
|
||||
echo autocmd_get(#{event: 'Syntax'})
|
||||
" :autocmd G BufEnter *.ts
|
||||
let acmd = #{group: 'G', event: 'BufEnter',
|
||||
\ pattern: '*.ts'}
|
||||
echo autocmd_get(acmd)
|
||||
<
|
||||
Can also be used as a |method|: >
|
||||
Getopts()->autocmd_get()
|
||||
<
|
||||
balloon_gettext() *balloon_gettext()*
|
||||
Return the current text in the balloon. Only for the string,
|
||||
not used for the List.
|
||||
@@ -1253,7 +1410,7 @@ changenr() *changenr()*
|
||||
one less than the number of the undone change.
|
||||
|
||||
char2nr({string} [, {utf8}]) *char2nr()*
|
||||
Return number value of the first char in {string}.
|
||||
Return Number value of the first char in {string}.
|
||||
Examples: >
|
||||
char2nr(" ") returns 32
|
||||
char2nr("ABC") returns 65
|
||||
@@ -1352,8 +1509,7 @@ cindent({lnum}) *cindent()*
|
||||
indenting rules, as with 'cindent'.
|
||||
The indent is counted in spaces, the value of 'tabstop' is
|
||||
relevant. {lnum} is used just like in |getline()|.
|
||||
When {lnum} is invalid or Vim was not compiled the |+cindent|
|
||||
feature, -1 is returned.
|
||||
When {lnum} is invalid -1 is returned.
|
||||
See |C-indenting|.
|
||||
|
||||
Can also be used as a |method|: >
|
||||
@@ -1564,13 +1720,13 @@ confirm({msg} [, {choices} [, {default} [, {type}]]])
|
||||
|
||||
An example: >
|
||||
let choice = confirm("What do you want?",
|
||||
\ "&Apples\n&Oranges\n&Bananas", 2)
|
||||
\ "&Apples\n&Oranges\n&Bananas", 2)
|
||||
if choice == 0
|
||||
echo "make up your mind!"
|
||||
echo "make up your mind!"
|
||||
elseif choice == 3
|
||||
echo "tasteful"
|
||||
echo "tasteful"
|
||||
else
|
||||
echo "I prefer bananas myself."
|
||||
echo "I prefer bananas myself."
|
||||
endif
|
||||
< In a GUI dialog, buttons are used. The layout of the buttons
|
||||
depends on the 'v' flag in 'guioptions'. If it is included,
|
||||
@@ -2014,8 +2170,10 @@ executable({expr}) *executable()*
|
||||
On MS-Windows it only checks if the file exists and is not a
|
||||
directory, not if it's really executable.
|
||||
On MS-Windows an executable in the same directory as Vim is
|
||||
always found. Since this directory is added to $PATH it
|
||||
should also work to execute it |win32-PATH|.
|
||||
normally found. Since this directory is added to $PATH it
|
||||
should also work to execute it |win32-PATH|. This can be
|
||||
disabled by setting the $NoDefaultCurrentDirectoryInExePath
|
||||
environment variable. *NoDefaultCurrentDirectoryInExePath*
|
||||
The result is a Number:
|
||||
1 exists
|
||||
0 does not exist
|
||||
@@ -2156,8 +2314,8 @@ exists({expr}) The result is a Number, which is |TRUE| if {expr} is defined,
|
||||
< There must be no space between the symbol (&/$/*/#) and the
|
||||
name.
|
||||
There must be no extra characters after the name, although in
|
||||
a few cases this is ignored. That may become more strict in
|
||||
the future, thus don't count on it!
|
||||
a few cases this is ignored. That may become stricter in the
|
||||
future, thus don't count on it!
|
||||
Working example: >
|
||||
exists(":make")
|
||||
< NOT working example: >
|
||||
@@ -2417,7 +2575,8 @@ feedkeys({string} [, {mode}]) *feedkeys()*
|
||||
all typeahead will be consumed by the last call.
|
||||
'c' Remove any script context when executing, so that
|
||||
legacy script syntax applies, "s:var" does not work,
|
||||
etc.
|
||||
etc. Note that if the string being fed sets a script
|
||||
context this still applies.
|
||||
'!' When used with 'x' will not end Insert mode. Can be
|
||||
used in a test when a timer is set to exit Insert mode
|
||||
a little later. Useful for testing CursorHoldI.
|
||||
@@ -3068,7 +3227,7 @@ getchar([expr]) *getchar()*
|
||||
|
||||
Without [expr] and when [expr] is 0 a whole character or
|
||||
special key is returned. If it is a single character, the
|
||||
result is a number. Use nr2char() to convert it to a String.
|
||||
result is a Number. Use |nr2char()| to convert it to a String.
|
||||
Otherwise a String is returned with the encoded character.
|
||||
For a special key it's a String with a sequence of bytes
|
||||
starting with 0x80 (decimal: 128). This is the same value as
|
||||
@@ -3203,6 +3362,13 @@ getcharstr([expr]) *getcharstr()*
|
||||
Otherwise this works like |getchar()|, except that a number
|
||||
result is converted to a string.
|
||||
|
||||
getcmdcompltype() *getcmdcompltype()*
|
||||
Return the type of the current command-line completion.
|
||||
Only works when the command line is being edited, thus
|
||||
requires use of |c_CTRL-\_e| or |c_CTRL-R_=|.
|
||||
See |:command-completion| for the return string.
|
||||
Also see |getcmdtype()|, |setcmdpos()| and |getcmdline()|.
|
||||
Returns an empty string when completion is not defined.
|
||||
|
||||
getcmdline() *getcmdline()*
|
||||
Return the current command-line. Only works when the command
|
||||
@@ -3222,6 +3388,15 @@ getcmdpos() *getcmdpos()*
|
||||
Returns 0 otherwise.
|
||||
Also see |getcmdtype()|, |setcmdpos()| and |getcmdline()|.
|
||||
|
||||
getcmdscreenpos() *getcmdscreenpos()*
|
||||
Return the screen position of the cursor in the command line
|
||||
as a byte count. The first column is 1.
|
||||
Instead of |getcmdpos()|, it adds the prompt position.
|
||||
Only works when editing the command line, thus requires use of
|
||||
|c_CTRL-\_e| or |c_CTRL-R_=| or an expression mapping.
|
||||
Returns 0 otherwise.
|
||||
Also see |getcmdpos()|, |setcmdpos()|.
|
||||
|
||||
getcmdtype() *getcmdtype()*
|
||||
Return the current command-line type. Possible return values
|
||||
are:
|
||||
@@ -4670,6 +4845,24 @@ invert({expr}) *invert()*
|
||||
< Can also be used as a |method|: >
|
||||
:let bits = bits->invert()
|
||||
|
||||
isabsolutepath({directory}) *isabsolutepath()*
|
||||
The result is a Number, which is |TRUE| when {path} is an
|
||||
absolute path.
|
||||
< On Unix, a path is considered absolute when it starts with '/'.
|
||||
On MS-Windows, it is considered absolute when it starts with an
|
||||
optional drive prefix and is followed by a '\' or '/'. UNC paths
|
||||
are always absolute.
|
||||
Example: >
|
||||
echo isabsolutepath('/usr/share/') " 1
|
||||
echo isabsolutepath('./foobar') " 0
|
||||
echo isabsolutepath('C:\Windows') " 1
|
||||
echo isabsolutepath('foobar') " 0
|
||||
echo isabsolutepath('\\remote\file') " 1
|
||||
|
||||
Can also be used as a |method|: >
|
||||
GetName()->isabsolutepath()
|
||||
|
||||
|
||||
isdirectory({directory}) *isdirectory()*
|
||||
The result is a Number, which is |TRUE| when a directory
|
||||
with the name {directory} exists. If {directory} doesn't
|
||||
@@ -4988,8 +5181,7 @@ lispindent({lnum}) *lispindent()*
|
||||
indenting rules, as with 'lisp'.
|
||||
The indent is counted in spaces, the value of 'tabstop' is
|
||||
relevant. {lnum} is used just like in |getline()|.
|
||||
When {lnum} is invalid or Vim was not compiled the
|
||||
|+lispindent| feature, -1 is returned. In |Vim9| script an
|
||||
When {lnum} is invalid -1 is returned. In |Vim9| script an
|
||||
error is given.
|
||||
|
||||
Can also be used as a |method|: >
|
||||
@@ -5235,7 +5427,8 @@ maparg({name} [, {mode} [, {abbr} [, {dict}]]]) *maparg()*
|
||||
When {dict} is omitted or zero: Return the rhs of mapping
|
||||
{name} in mode {mode}. The returned String has special
|
||||
characters translated like in the output of the ":map" command
|
||||
listing.
|
||||
listing. When {dict} is TRUE a dictionary is returned, see
|
||||
below. To get a list of all mappings see |maplist()|.
|
||||
|
||||
When there is no mapping for {name}, an empty String is
|
||||
returned. When the mapping for {name} is empty, then "<Nop>"
|
||||
@@ -5262,7 +5455,7 @@ maparg({name} [, {mode} [, {abbr} [, {dict}]]]) *maparg()*
|
||||
|
||||
When {dict} is there and it is |TRUE| return a dictionary
|
||||
containing all the information of the mapping with the
|
||||
following items:
|
||||
following items: *mapping-dict*
|
||||
"lhs" The {lhs} of the mapping as it would be typed
|
||||
"lhsraw" The {lhs} of the mapping as raw bytes
|
||||
"lhsrawalt" The {lhs} of the mapping as raw bytes, alternate
|
||||
@@ -5282,10 +5475,15 @@ maparg({name} [, {mode} [, {abbr} [, {dict}]]]) *maparg()*
|
||||
"sid" The script local ID, used for <sid> mappings
|
||||
(|<SID>|).
|
||||
"scriptversion" The version of the script. 999999 for
|
||||
|Vim9| script.
|
||||
|Vim9| script.
|
||||
"lnum" The line number in "sid", zero if unknown.
|
||||
"nowait" Do not wait for other, longer mappings.
|
||||
(|:map-<nowait>|).
|
||||
"abbr" True if this is an abbreviation |abbreviations|.
|
||||
"mode_bits" Vim's internal binary representation of "mode".
|
||||
|mapset()| ignores this; only "mode" is used.
|
||||
See |maplist()| for usage examples. The values
|
||||
are from src/vim.h and may change in the future.
|
||||
|
||||
The dictionary can be used to restore a mapping with
|
||||
|mapset()|.
|
||||
@@ -5336,6 +5534,40 @@ mapcheck({name} [, {mode} [, {abbr}]]) *mapcheck()*
|
||||
GetKey()->mapcheck('n')
|
||||
|
||||
|
||||
maplist([{abbr}]) *maplist()*
|
||||
Returns a |List| of all mappings. Each List item is a |Dict|,
|
||||
the same as what is returned by |maparg()|, see
|
||||
|mapping-dict|. When {abbr} is there and it is |TRUE| use
|
||||
abbreviations instead of mappings.
|
||||
|
||||
Example to show all mappings with 'MultiMatch' in rhs: >
|
||||
vim9script
|
||||
echo maplist()->filter(
|
||||
(_, m) => match(m.rhs, 'MultiMatch') >= 0)
|
||||
< It can be tricky to find mappings for particular |:map-modes|.
|
||||
|mapping-dict|'s "mode_bits" can simplify this. For example,
|
||||
the mode_bits for Normal, Insert or Command-line modes are
|
||||
0x19. To find all the mappings available in those modes you
|
||||
can do: >
|
||||
vim9script
|
||||
var saved_maps = []
|
||||
for m in maplist()
|
||||
if and(m.mode_bits, 0x19) != 0
|
||||
saved_maps->add(m)
|
||||
endif
|
||||
endfor
|
||||
echo saved_maps->mapnew((_, m) => m.lhs)
|
||||
< The values of the mode_bits are defined in Vim's src/vim.h
|
||||
file and they can be discovered at runtime using
|
||||
|:map-commands| and "maplist()". Example: >
|
||||
vim9script
|
||||
omap xyzzy <Nop>
|
||||
var op_bit = maplist()->filter(
|
||||
(_, m) => m.lhs == 'xyzzy')[0].mode_bits
|
||||
ounmap xyzzy
|
||||
echo printf("Operator-pending mode bit: 0x%x", op_bit)
|
||||
|
||||
|
||||
mapnew({expr1}, {expr2}) *mapnew()*
|
||||
Like |map()| but instead of replacing items in {expr1} a new
|
||||
List or Dictionary is created and returned. {expr1} remains
|
||||
@@ -5344,9 +5576,18 @@ mapnew({expr1}, {expr2}) *mapnew()*
|
||||
|
||||
|
||||
mapset({mode}, {abbr}, {dict}) *mapset()*
|
||||
Restore a mapping from a dictionary returned by |maparg()|.
|
||||
{mode} and {abbr} should be the same as for the call to
|
||||
|maparg()|. *E460*
|
||||
mapset({dict})
|
||||
Restore a mapping from a dictionary, possibly returned by
|
||||
|maparg()| or |maplist()|. A buffer mapping, when dict.buffer
|
||||
is true, is set on the current buffer; it is up to the caller
|
||||
to ensure that the intended buffer is the current buffer. This
|
||||
feature allows copying mappings from one buffer to another.
|
||||
The dict.mode value may restore a single mapping that covers
|
||||
more than one mode, like with mode values of '!', ' ', 'nox',
|
||||
or 'v'. *E1276*
|
||||
|
||||
In the first form, {mode} and {abbr} should be the same as
|
||||
for the call to |maparg()|. *E460*
|
||||
{mode} is used to define the mode in which the mapping is set,
|
||||
not the "mode" entry in {dict}.
|
||||
Example for saving and restoring a mapping: >
|
||||
@@ -5355,8 +5596,22 @@ mapset({mode}, {abbr}, {dict}) *mapset()*
|
||||
...
|
||||
call mapset('n', 0, save_map)
|
||||
< Note that if you are going to replace a map in several modes,
|
||||
e.g. with `:map!`, you need to save the mapping for all of
|
||||
them, since they can differ.
|
||||
e.g. with `:map!`, you need to save/restore the mapping for
|
||||
all of them, when they might differ.
|
||||
|
||||
In the second form, with {dict} as the only argument, mode
|
||||
and abbr are taken from the dict.
|
||||
Example: >
|
||||
vim9script
|
||||
var save_maps = maplist()->filter(
|
||||
(_, m) => m.lhs == 'K')
|
||||
nnoremap K somethingelse
|
||||
cnoremap K somethingelse2
|
||||
# ...
|
||||
unmap K
|
||||
for d in save_maps
|
||||
mapset(d)
|
||||
endfor
|
||||
|
||||
|
||||
match({expr}, {pat} [, {start} [, {count}]]) *match()*
|
||||
@@ -5576,10 +5831,9 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()*
|
||||
|
||||
The optional {dict} argument always supports the following
|
||||
items:
|
||||
matchseq When this item is present and {str} contains
|
||||
multiple words separated by white space, then
|
||||
returns only matches that contain the words in
|
||||
the given sequence.
|
||||
matchseq When this item is present return only matches
|
||||
that contain the characters in {str} in the
|
||||
given sequence.
|
||||
|
||||
If {list} is a list of dictionaries, then the optional {dict}
|
||||
argument supports the following additional items:
|
||||
@@ -8077,7 +8331,7 @@ sort({list} [, {how} [, {dict}]]) *sort()* *E702*
|
||||
If you want a list to remain unmodified make a copy first: >
|
||||
:let sortedlist = sort(copy(mylist))
|
||||
|
||||
< When {how} is omitted or is an string, then sort() uses the
|
||||
< When {how} is omitted or is a string, then sort() uses the
|
||||
string representation of each item to sort on. Numbers sort
|
||||
after Strings, |Lists| after Numbers. For sorting text in the
|
||||
current buffer use |:sort|.
|
||||
@@ -8532,9 +8786,11 @@ strftime({format} [, {time}]) *strftime()*
|
||||
GetFormat()->strftime()
|
||||
|
||||
strgetchar({str}, {index}) *strgetchar()*
|
||||
Get character {index} from {str}. This uses a character
|
||||
index, not a byte index. Composing characters are considered
|
||||
separate characters here.
|
||||
Get a Number corresponding to the character at {index} in
|
||||
{str}. This uses a zero-based character index, not a byte
|
||||
index. Composing characters are considered separate
|
||||
characters here. Use |nr2char()| to convert the Number to a
|
||||
String.
|
||||
Also see |strcharpart()| and |strchars()|.
|
||||
|
||||
Can also be used as a |method|: >
|
||||
@@ -9474,7 +9730,7 @@ values({dict}) *values()*
|
||||
Can also be used as a |method|: >
|
||||
mydict->values()
|
||||
|
||||
virtcol({expr}) *virtcol()*
|
||||
virtcol({expr} [, {list}]) *virtcol()*
|
||||
The result is a Number, which is the screen column of the file
|
||||
position given with {expr}. That is, the last screen position
|
||||
occupied by the character at that position, when the screen
|
||||
@@ -9483,13 +9739,17 @@ virtcol({expr}) *virtcol()*
|
||||
the <Tab>. For example, for a <Tab> in column 1, with 'ts'
|
||||
set to 8, it returns 8. |conceal| is ignored.
|
||||
For the byte position use |col()|.
|
||||
|
||||
For the use of {expr} see |col()|.
|
||||
When 'virtualedit' is used {expr} can be [lnum, col, off], where
|
||||
"off" is the offset in screen columns from the start of the
|
||||
character. E.g., a position within a <Tab> or after the last
|
||||
character. When "off" is omitted zero is used.
|
||||
When Virtual editing is active in the current mode, a position
|
||||
beyond the end of the line can be returned. |'virtualedit'|
|
||||
|
||||
When 'virtualedit' is used {expr} can be [lnum, col, off],
|
||||
where "off" is the offset in screen columns from the start of
|
||||
the character. E.g., a position within a <Tab> or after the
|
||||
last character. When "off" is omitted zero is used. When
|
||||
Virtual editing is active in the current mode, a position
|
||||
beyond the end of the line can be returned. Also see
|
||||
|'virtualedit'|
|
||||
|
||||
The accepted positions are:
|
||||
. the cursor position
|
||||
$ the end of the cursor line (the result is the
|
||||
@@ -9501,11 +9761,22 @@ virtcol({expr}) *virtcol()*
|
||||
cursor is the end). When not in Visual mode
|
||||
returns the cursor position. Differs from |'<| in
|
||||
that it's updated right away.
|
||||
|
||||
If {list} is present and non-zero then virtcol() returns a List
|
||||
with the first and last screen position occupied by the
|
||||
character.
|
||||
|
||||
Note that only marks in the current file can be used.
|
||||
Examples: >
|
||||
virtcol(".") with text "foo^Lbar", with cursor on the "^L", returns 5
|
||||
virtcol("$") with text "foo^Lbar", returns 9
|
||||
virtcol("'t") with text " there", with 't at 'h', returns 6
|
||||
" With text "foo^Lbar" and cursor on the "^L":
|
||||
|
||||
virtcol(".") " returns 5
|
||||
virtcol(".", 1) " returns [4, 5]
|
||||
virtcol("$") " returns 9
|
||||
|
||||
" With text " there", with 't at 'h':
|
||||
|
||||
virtcol("'t") " returns 6
|
||||
< The first column is 1. 0 is returned for an error.
|
||||
A more advanced example that echoes the maximum length of
|
||||
all lines: >
|
||||
|
||||
@@ -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 07
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1177,14 +1177,15 @@ register. With blockwise selection it also depends on the size of the block
|
||||
and whether the corners are on an existing character. (Implementation detail:
|
||||
it actually works by first putting the register after the selection and then
|
||||
deleting the selection.)
|
||||
With 'p' the previously selected text is put in the unnamed register. This is
|
||||
useful if you want to put that text somewhere else. But you cannot repeat the
|
||||
same change.
|
||||
With 'P' the unnamed register is not changed, you can repeat the same change.
|
||||
But the deleted text cannot be used. If you do need it you can use 'p' with
|
||||
another register. E.g., yank the text to copy, Visually select the text to
|
||||
replace and use "0p . You can repeat this as many times as you like, and the
|
||||
unnamed register will be changed each time.
|
||||
With |p| the previously selected text is put in the unnamed register (and
|
||||
possibly the selection and/or clipboard). This is useful if you want to put
|
||||
that text somewhere else. But you cannot repeat the same change.
|
||||
With |P| the unnamed register is not changed (and neither the selection or
|
||||
clipboard), you can repeat the same change. But the deleted text cannot be
|
||||
used. If you do need it you can use |p| with another register. E.g., yank
|
||||
the text to copy, Visually select the text to replace and use "0p . You can
|
||||
repeat this as many times as you like, and the unnamed register will be
|
||||
changed each time.
|
||||
|
||||
When you use a blockwise Visual mode command and yank only a single line into
|
||||
a register, a paste on a visual selected area will paste that single line on
|
||||
@@ -1672,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
|
||||
@@ -1683,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
|
||||
@@ -1745,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 @@
|
||||
*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
|
||||
@@ -87,6 +87,7 @@ CTRL-Q Same as CTRL-V. But with some terminals it is used for
|
||||
CTRL-SHIFT-V *c_CTRL-SHIFT-V* *c_CTRL-SHIFT-Q*
|
||||
CTRL-SHIFT-Q Works just like CTRL-V, unless |modifyOtherKeys| is active,
|
||||
then it inserts the Escape sequence for a key with modifiers.
|
||||
In the GUI the |key-notation| is inserted without simplifying.
|
||||
|
||||
*c_<Left>* *c_Left*
|
||||
<Left> cursor left
|
||||
|
||||
@@ -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 May 13
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -523,8 +523,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 +534,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 +868,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 +1131,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 +1163,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 +1207,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 +1240,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 +1262,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 +1274,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 +1284,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 +1318,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 +1340,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 +1361,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 +1380,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 +1409,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 +1418,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,6 +1544,33 @@ to be doubled. These two commands are equivalent: >
|
||||
if a =~ '\s*'
|
||||
|
||||
|
||||
interpolated-string *interp-string* *E256*
|
||||
--------------------
|
||||
$"string" interpolated string constant *expr-$quote*
|
||||
$'string' interpolated literal string constant *expr-$'*
|
||||
|
||||
Interpolated strings are an extension of the |string| and |literal-string|,
|
||||
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. 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}!"
|
||||
< Hello, Peter! ~
|
||||
>
|
||||
echo $"The square root of {{9}} is {sqrt(9)}"
|
||||
< The square root of {9} is 3.0 ~
|
||||
|
||||
|
||||
option *expr-option* *E112* *E113*
|
||||
------
|
||||
&option option value, local value if possible
|
||||
@@ -2932,7 +2980,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`.
|
||||
@@ -2950,7 +2998,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 |51.5|.
|
||||
|
||||
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
|
||||
@@ -3233,22 +3281,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.
|
||||
Currenty, in a compiled function {expr} is evaluated
|
||||
when compiling the function, THIS WILL CHANGE.
|
||||
|
||||
{endmarker} must not contain white space.
|
||||
{endmarker} cannot start with a lower case character.
|
||||
@@ -3301,10 +3347,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*
|
||||
@@ -3520,8 +3566,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
|
||||
|
||||
@@ -143,6 +143,7 @@ variables can be used to overrule the filetype used for certain extensions:
|
||||
*.asp g:filetype_asp |ft-aspvbs-syntax| |ft-aspperl-syntax|
|
||||
*.bas g:filetype_bas |ft-basic-syntax|
|
||||
*.cfg g:filetype_cfg
|
||||
*.csh g:filetype_csh |ft-csh-syntax|
|
||||
*.dat g:filetype_dat
|
||||
*.frm g:filetype_frm |ft-form-syntax|
|
||||
*.fs g:filetype_fs |ft-forth-syntax|
|
||||
@@ -154,6 +155,8 @@ variables can be used to overrule the filetype used for certain extensions:
|
||||
*.pl g:filetype_pl
|
||||
*.pp g:filetype_pp |ft-pascal-syntax|
|
||||
*.prg g:filetype_prg
|
||||
*.r g:filetype_r
|
||||
*.sql g:filetype_sql |ft-sql-syntax|
|
||||
*.src g:filetype_src
|
||||
*.sys g:filetype_sys
|
||||
*.sh g:bash_is_sh |ft-sh-syntax|
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -939,7 +939,7 @@ tag command note action in Visual mode ~
|
||||
|v_K| K run 'keywordprg' on the highlighted area
|
||||
|v_O| O move horizontally to other corner of area
|
||||
|v_P| P replace highlighted area with register
|
||||
contents; unnamed register is unchanged
|
||||
contents; registers are unchanged
|
||||
Q does not start Ex mode
|
||||
|v_R| R 2 delete the highlighted lines and start
|
||||
insert
|
||||
|
||||
@@ -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 May 16
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -120,7 +120,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|
|
||||
@@ -700,6 +701,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 May 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1392,14 +1392,20 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
characters. It permits dynamic French paragraph
|
||||
indentation (negative) or emphasizing the line
|
||||
continuation (positive).
|
||||
(default: 0)
|
||||
sbr Display the 'showbreak' value before applying the
|
||||
additional indent.
|
||||
(default: off)
|
||||
list:{n} Adds an additional indent for lines that match a
|
||||
numbered or bulleted list (using the
|
||||
'formatlistpat' setting).
|
||||
list:-1 Uses the length of a match with 'formatlistpat'
|
||||
for indentation.
|
||||
The default value for min is 20, shift and list is 0.
|
||||
(default: 0)
|
||||
column:{n} Indent at column {n}. Will overrule the other
|
||||
sub-options. Note: an additional indent may be
|
||||
added for the 'showbreak' setting.
|
||||
(default: off)
|
||||
|
||||
*'browsedir'* *'bsdir'*
|
||||
'browsedir' 'bsdir' string (default: "last")
|
||||
@@ -1615,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.
|
||||
@@ -1633,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.
|
||||
@@ -1644,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.
|
||||
@@ -1654,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 {}).
|
||||
@@ -1666,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": >
|
||||
@@ -4572,8 +4568,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.
|
||||
@@ -4618,8 +4614,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|.
|
||||
@@ -5007,8 +5001,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'
|
||||
@@ -5022,8 +5014,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'|
|
||||
|
||||
@@ -7216,8 +7206,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,
|
||||
@@ -8073,6 +8061,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 22
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by George Reilly
|
||||
@@ -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 @@
|
||||
*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 @@
|
||||
*starting.txt* For Vim version 8.2. Last change: 2022 Apr 12
|
||||
*starting.txt* For Vim version 8.2. Last change: 2022 May 10
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -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 06
|
||||
*syntax.txt* For Vim version 8.2. Last change: 2022 May 20
|
||||
|
||||
|
||||
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.
|
||||
<
|
||||
@@ -2197,6 +2198,15 @@ $VIMRUNTIME/syntax/syntax.vim).
|
||||
mv_finance mv_logic mv_powseries
|
||||
|
||||
|
||||
MARKDOWN *ft-markdown-syntax*
|
||||
|
||||
If you have long regions there might be wrong highlighting. At the cost of
|
||||
slowing down displaying, you can have the engine look further back to sync on
|
||||
the start of a region, for example 500 lines: >
|
||||
|
||||
:let g:markdown_minlines = 500
|
||||
|
||||
|
||||
MATHEMATICA *mma.vim* *ft-mma-syntax* *ft-mathematica-syntax*
|
||||
|
||||
Empty *.m files will automatically be presumed to be Matlab files unless you
|
||||
@@ -2465,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|;
|
||||
@@ -2478,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. >
|
||||
|
||||
@@ -2516,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.
|
||||
@@ -2586,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.
|
||||
|
||||
@@ -2633,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!
|
||||
|
||||
@@ -2735,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*
|
||||
@@ -3175,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
|
||||
@@ -3223,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
|
||||
|
||||
@@ -3590,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.
|
||||
|
||||
|
||||
@@ -4836,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 >
|
||||
@@ -4867,30 +4871,62 @@ 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
|
||||
|
||||
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.
|
||||
@@ -5089,8 +5125,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!
|
||||
@@ -5197,7 +5233,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: >
|
||||
|
||||
@@ -5229,49 +5265,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.
|
||||
@@ -5289,11 +5326,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*
|
||||
@@ -5302,17 +5339,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*
|
||||
@@ -5320,10 +5357,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|
|
||||
@@ -5340,35 +5379,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|
|
||||
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
|
||||
@@ -5404,7 +5443,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
|
||||
@@ -5448,7 +5487,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: >
|
||||
@@ -5540,7 +5579,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.
|
||||
@@ -5576,7 +5615,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
|
||||
@@ -5606,7 +5645,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: >
|
||||
@@ -5750,7 +5789,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.
|
||||
|
||||
@@ -5758,7 +5797,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
|
||||
|
||||
@@ -1915,12 +1915,6 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
|
||||
40.3 usr_40.txt /*40.3*
|
||||
41.1 usr_41.txt /*41.1*
|
||||
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 +1947,17 @@ $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*
|
||||
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*
|
||||
51.5 usr_51.txt /*51.5*
|
||||
51.6 usr_51.txt /*51.6*
|
||||
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*
|
||||
8g8 various.txt /*8g8*
|
||||
90.1 usr_90.txt /*90.1*
|
||||
90.2 usr_90.txt /*90.2*
|
||||
@@ -2026,7 +2027,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 +4264,10 @@ 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*
|
||||
E129 eval.txt /*E129*
|
||||
E13 message.txt /*E13*
|
||||
E131 eval.txt /*E131*
|
||||
@@ -4401,6 +4405,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*
|
||||
@@ -5312,6 +5317,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*
|
||||
@@ -5773,6 +5779,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 +5791,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*
|
||||
@@ -6184,6 +6194,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 +6500,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 +6651,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-'*
|
||||
@@ -6787,6 +6800,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*
|
||||
@@ -6933,6 +6947,7 @@ ft-make-syntax syntax.txt /*ft-make-syntax*
|
||||
ft-man-plugin filetype.txt /*ft-man-plugin*
|
||||
ft-maple-syntax syntax.txt /*ft-maple-syntax*
|
||||
ft-markdown-plugin filetype.txt /*ft-markdown-plugin*
|
||||
ft-markdown-syntax syntax.txt /*ft-markdown-syntax*
|
||||
ft-masm-syntax syntax.txt /*ft-masm-syntax*
|
||||
ft-mathematica-syntax syntax.txt /*ft-mathematica-syntax*
|
||||
ft-matlab-indent indent.txt /*ft-matlab-indent*
|
||||
@@ -7020,11 +7035,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()*
|
||||
@@ -7350,8 +7365,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()*
|
||||
@@ -7911,6 +7928,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*
|
||||
@@ -7919,6 +7937,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()*
|
||||
@@ -8173,6 +8192,7 @@ maparg() builtin.txt /*maparg()*
|
||||
mapcheck() builtin.txt /*mapcheck()*
|
||||
maple.vim syntax.txt /*maple.vim*
|
||||
mapleader map.txt /*mapleader*
|
||||
maplist() builtin.txt /*maplist()*
|
||||
maplocalleader map.txt /*maplocalleader*
|
||||
mapmode-c map.txt /*mapmode-c*
|
||||
mapmode-i map.txt /*mapmode-i*
|
||||
@@ -8187,6 +8207,7 @@ mapmode-v map.txt /*mapmode-v*
|
||||
mapmode-x map.txt /*mapmode-x*
|
||||
mapnew() builtin.txt /*mapnew()*
|
||||
mapping map.txt /*mapping*
|
||||
mapping-dict builtin.txt /*mapping-dict*
|
||||
mapping-functions usr_41.txt /*mapping-functions*
|
||||
mapset() builtin.txt /*mapset()*
|
||||
mark motion.txt /*mark*
|
||||
@@ -8846,8 +8867,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*
|
||||
@@ -9395,7 +9416,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*
|
||||
@@ -10157,8 +10178,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*
|
||||
@@ -10175,8 +10196,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*
|
||||
@@ -10186,7 +10207,7 @@ 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-cpo-save usr_51.txt /*use-cpo-save*
|
||||
use-visual-cmds version4.txt /*use-visual-cmds*
|
||||
useful-mappings tips.txt /*useful-mappings*
|
||||
usenet intro.txt /*usenet*
|
||||
@@ -10194,7 +10215,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*
|
||||
@@ -10230,7 +10251,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*
|
||||
@@ -10556,7 +10579,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_52.txt /*vim9-declarations*
|
||||
vim9-differences vim9.txt /*vim9-differences*
|
||||
vim9-export vim9.txt /*vim9-export*
|
||||
vim9-final vim9.txt /*vim9-final*
|
||||
@@ -10575,7 +10598,7 @@ 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-script-intro usr_52.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*
|
||||
@@ -10758,15 +10781,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_51.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_51.txt /*write-plugin-quickload*
|
||||
write-quit editing.txt /*write-quit*
|
||||
write-readonly editing.txt /*write-readonly*
|
||||
writefile() builtin.txt /*writefile()*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*term.txt* For Vim version 8.2. Last change: 2022 Apr 03
|
||||
*term.txt* For Vim version 8.2. Last change: 2022 Apr 23
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -386,9 +386,10 @@ Added by Vim (there are no standard codes for these):
|
||||
t_SR start replace mode (underline cursor shape) *t_SR* *'t_SR'*
|
||||
t_EI end insert or replace mode (block cursor shape) *t_EI* *'t_EI'*
|
||||
|termcap-cursor-shape|
|
||||
t_RV request terminal version string (for xterm) *t_RV* *'t_RV'*
|
||||
The response is stored in |v:termresponse|
|
||||
|xterm-8bit| |'ttymouse'| |xterm-codes|
|
||||
t_RV request terminal version string (works for *t_RV* *'t_RV'*
|
||||
xterm and other terminal emulators) The
|
||||
response is stored in |v:termresponse| |xterm-8bit|
|
||||
|'ttymouse'| |xterm-codes|
|
||||
t_u7 request cursor position (for xterm) *t_u7* *'t_u7'*
|
||||
see |'ambiwidth'|
|
||||
The response is stored in |v:termu7resp|
|
||||
|
||||
@@ -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 18
|
||||
*todo.txt* For Vim version 8.2. Last change: 2022 May 22
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -38,18 +38,21 @@ browser use: https://github.com/vim/vim/issues/1234
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
Use "`=expr`" in heredoc also in :def function. #10216 Yegappan will do it.
|
||||
|
||||
Once Vim9 is stable:
|
||||
Prepare for Vim 9.0 release:
|
||||
- Use Vim9 for more runtime files.
|
||||
- Check code coverage, add more tests if needed.
|
||||
vim9execute.c line 3500
|
||||
vim9expr.c
|
||||
- Check Vim9 code coverage, add more tests if needed.
|
||||
vim9instr.c
|
||||
vim9script.c
|
||||
vim9type.c
|
||||
- Adjust intro message to say "help version9".
|
||||
|
||||
Update the user manual:
|
||||
- Update usr_41.txt for Vim9 script
|
||||
- Fill usr_50.txt as an "advanced section" of usr_41.txt
|
||||
Add links from usr_41 to usr_50.
|
||||
- Make usr_51.txt use Vim9 script. Still need usr_52.txt?
|
||||
|
||||
|
||||
Further Vim9 improvements, possibly after launch:
|
||||
- Check performance with callgrind and kcachegrind.
|
||||
getline()/substitute()/setline() in #5632
|
||||
@@ -65,8 +68,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|
|
||||
@@ -88,6 +89,8 @@ 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
|
||||
- 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
|
||||
@@ -125,13 +128,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:
|
||||
@@ -152,6 +155,7 @@ Terminal debugger:
|
||||
- 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,18 +207,19 @@ Terminal emulator window:
|
||||
- When 'encoding' is not utf-8, or the job is using another encoding, setup
|
||||
conversions.
|
||||
|
||||
CurSearch highlight is wrong when searching for a space, matches all spaces
|
||||
instead of only the current one.
|
||||
Add autocmd functions. PR #10291
|
||||
a couple of outstanding comments, wait for Yegappan to respond
|
||||
|
||||
Can deref_func_name() and deref_function_name() be merged?
|
||||
|
||||
When using 'cryptmethod' xchaha20 the undo file is not encrypted.
|
||||
Need to handle extra bytes.
|
||||
Add mode bits to maparg() dict? PR #10356
|
||||
|
||||
In Select mode the deleted text always goes into the unnamed register.
|
||||
Use CTRL-R to specify the register to use. (#9531)
|
||||
After patch 8.2.4915 w_botline is computed much more often. Can this be
|
||||
reduced?
|
||||
|
||||
Some prompts are not translated: #9495
|
||||
NFA regexp does not handle composing characters well: #10286
|
||||
[ɔ̃] matches both ɔ and ɔ̃
|
||||
\(ɔ\|ɔ̃\) matches ɔ and not ɔ̃
|
||||
|
||||
Improvement in terminal configuration mess: Request the terminfo entry from
|
||||
the terminal itself. The $TERM value then is only relevant for whether this
|
||||
@@ -226,9 +231,6 @@ 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
|
||||
@@ -253,6 +255,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
|
||||
|
||||
Idea: when typing ":e /some/dir/" and "dir" does not exist, highlight in red.
|
||||
|
||||
":set &shellpipe" and ":set &shellredir" should use the logic from
|
||||
@@ -264,8 +268,7 @@ With concealed text mouse click doesn't put the cursor in the right position.
|
||||
need to make the change in where RET_WIN_BUF_CHARTABSIZE() is called.
|
||||
IDEA: when drawing the text, store the text byte index in ScreenLinesIdx[].
|
||||
When converting screen column to text position use this.
|
||||
Store the line number and byte index for the start of the line, when
|
||||
converting the screen line to text position use this, add the byte offset.
|
||||
The line number can be obtained from win->w_lines[].
|
||||
|
||||
MS-Windows: did path modifier :p:8 stop working? #8600
|
||||
|
||||
@@ -302,9 +305,6 @@ Also, z= in German on a long word can take a very long time, but CTRL-C to
|
||||
interrupt does not work. Where to add ui_breakcheck()?
|
||||
New English spell files also have very slow suggestions.
|
||||
|
||||
Searching for \%'> does not find anything when using line Visual selection.
|
||||
Probably because it's using MAXCOL. #8238
|
||||
|
||||
Make "g>" and "g<" in Visual mode move the text right or left.
|
||||
Also for a block selection. #8558
|
||||
|
||||
@@ -333,8 +333,7 @@ Missing filetype test for bashrc, PKGBUILD, etc.
|
||||
Add an option to not fetch terminal codes in xterm, to avoid flicker when t_Co
|
||||
changes.
|
||||
|
||||
When using ":bwipe!" also get rid of references to be buffer, e.g. in the
|
||||
jumplist and alternate file.
|
||||
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
|
||||
@@ -346,13 +345,6 @@ Any way to convert "$" back by using a special value? (#6901)
|
||||
Can we detect true color support? https://gist.github.com/XVilka/8346728
|
||||
Try setting a color then request the current color, like using t_u7.
|
||||
|
||||
Regexp to search for duplicate lines does not work correctly:
|
||||
/\(^.*\n\)\1 (Chris Morgan, #6239)
|
||||
|
||||
MS-Windows: when writing undo file the infostreams are copied in
|
||||
mch_copy_file_attribute(), that seems unnecessary. (#7925)
|
||||
Add a flag to only copy attributes?
|
||||
|
||||
Make the jumplist behave like a tag stack. (#7738) Should there be a more
|
||||
time bound navigation, like with undo?
|
||||
|
||||
@@ -384,15 +376,6 @@ So that replaying the register doesn't use keymap/langmap and still does the
|
||||
same thing.
|
||||
Also see #737: langmap not applied to replaying recording.
|
||||
|
||||
Buffer autocommands are a bit inconsistent. Add a separate set of
|
||||
autocommands for the buffer lifecycle:
|
||||
BufIsCreated (after buffer ID exists)
|
||||
BufIsLoaded (after buffer ID has content)
|
||||
BufIsUnloaded (after buffer ID no longer has)
|
||||
BufIsWiped (after buffer ID was wiped)
|
||||
BufIsRenamed (after buffer ID gets another name)
|
||||
The buffer list and windows are locked, no changes possible
|
||||
|
||||
Matchparen doesn't remove highlight after undo. (#7054)
|
||||
Is OK when syntax HL is active.
|
||||
|
||||
@@ -424,27 +407,11 @@ Why does Test_invalid_sid() not work in the GUI?
|
||||
Lua: updating wrong buffer when using newly created, unloaded buffer.
|
||||
(#6539)
|
||||
|
||||
When "+ register is set then "" points to it. If another Vim grabs the "+
|
||||
register, then "" doesn't contain anything. Make it still follow "+.
|
||||
(#6435)
|
||||
|
||||
File marks merging has duplicates since 7.4.1925. (Ingo Karkat, #5733)
|
||||
|
||||
When editing a file with ":edit" the output of :swapname is relative, while
|
||||
editing it with "vim file" it is absolute. (#355)
|
||||
Which one should it be?
|
||||
|
||||
Problem with auto-formatting - inserting space and putting cursor before added
|
||||
character. (#6154)
|
||||
|
||||
undo result wrong: Masato Nishihata, #4798
|
||||
|
||||
After recovering from a swap file the undofile should not be used, it causes
|
||||
corruption. (#6631)
|
||||
|
||||
When the computer crashes while writing the undofile, the contents may be
|
||||
lost. Write to a temp file, fsync and rename. (#8879)
|
||||
|
||||
When 'lazyredraw' is set sometimes the title is not updated.
|
||||
(Jason Franklin, 2020 Feb 3) Looks like a race condition.
|
||||
|
||||
@@ -482,8 +449,6 @@ Wrong error when using local arglist. (Harm te Hennepe, #6133)
|
||||
|
||||
Test loose_clipboard() by selecting text before suspending.
|
||||
|
||||
Undo puts cursor in wrong line after "cG<Esc>" undo.
|
||||
|
||||
:unmap <c-n> gives error but does remove the mapping. (Antony Scriven, 2019
|
||||
Dec 19)
|
||||
|
||||
@@ -505,18 +470,10 @@ in terminal.c and then CTRL-N twice.
|
||||
Should do current file first and not split it up when more results are found.
|
||||
(Also #1890)
|
||||
|
||||
Undo history wrong when ":next file" re-uses a buffer. (#5426)
|
||||
ex_next() should pass flag to do_argfile(), then to do_ecmd().
|
||||
Is there a test for this?
|
||||
|
||||
Help for ":argadd fname" says that if "fname" is already in the argument list
|
||||
that entry is used. But instead it's always added. (#6210)
|
||||
Add flag AL_FIND_ADD, if there is one argument find it in the list.
|
||||
|
||||
":bnext" in a help buffer is supposed to go to the next help buffer, but it
|
||||
goes to any buffer, and then :bnext skips help buffers, since they are
|
||||
unlisted. (#4478)
|
||||
|
||||
Statusline highlighting error, off by one. (#5599)
|
||||
|
||||
":find" with 'path' set to "data*" does not find files, while completion does
|
||||
@@ -571,9 +528,6 @@ when "qq" is mapped and after the first "q" the mouse is moved outside of the
|
||||
gvim window (with focus follows mouse), then the K_FOCUSLOST key is put in the
|
||||
input buffer. (#5302)
|
||||
|
||||
:buffer completion does not escape "+" properly and results in a regexp error.
|
||||
(#5467)
|
||||
|
||||
Check_external_diff() is used too often. (Daniel Hahler, #4800)
|
||||
|
||||
Win32: after "[I" showing matches, scroll wheel messes up screen. (Tsakiridis,
|
||||
@@ -702,9 +656,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.
|
||||
@@ -774,9 +725,6 @@ punctuation is repeated. (Smylers, 2018 Nov 17, #3621)
|
||||
Using single wide base character with double wide composing character gives
|
||||
drawing errors. Fill up the base character? (Dominique, #4328)
|
||||
|
||||
Problem with two buffers with the same name a/b, if it didn't exist before and
|
||||
is created outside of Vim. (dskloetg, 2018 Jul 16, #3219)
|
||||
|
||||
When 'sidescrolloff' is set, using "zl" to go to the end of the line, suddenly
|
||||
scrolls back. Should allow for this scrolling, like 'scrolloff' does when
|
||||
using CTRL-E. (Yee Cheng Chin, #3721)
|
||||
@@ -795,8 +743,6 @@ when possible. (Dylan Lloyd, #3973)
|
||||
Make ":interactive !cmd" stop termcap mode, also when used in an autocommand.
|
||||
(#3692)
|
||||
|
||||
Add buffer argument to undotree(). (#4001)
|
||||
|
||||
matchaddpos() gets slow with many matches. Proposal by Rick Howe, 2018 Jul
|
||||
19.
|
||||
|
||||
@@ -879,10 +825,6 @@ Try out background make plugin:
|
||||
or asyncmake:
|
||||
https://github.com/yegappan/asyncmake
|
||||
|
||||
Add an option with file patterns, to be used when unloading a buffer: If there
|
||||
is a match, remove entries for the buffer from marks, jumplist, etc. To be
|
||||
used for git temp files.
|
||||
|
||||
Cursor in wrong position when line wraps. (#2540)
|
||||
|
||||
Setting 'columns' in a BufEnter autocommand causes a second tab width to
|
||||
@@ -915,10 +857,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)
|
||||
|
||||
@@ -933,23 +871,15 @@ Python indenting: alternative way to indent arguments:
|
||||
http://orchistro.tistory.com/236
|
||||
Should be supported with a flag.
|
||||
|
||||
Add the debug command line history to viminfo.
|
||||
|
||||
Add Makefiles to the runtime/spell directory tree, since nobody uses Aap.
|
||||
Will have to explain the manual steps (downloading the .aff and .dic files,
|
||||
applying the diff, etc.
|
||||
|
||||
Pasting a register in Visual mode cannot be repeated. (Mahmoud Al-Qudsi, 2018
|
||||
Apr 26, #2849)
|
||||
|
||||
User dictionary ~/.vim/spell/lang.utf-8.add not used for spell checking until a
|
||||
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).
|
||||
|
||||
@@ -1063,8 +993,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
|
||||
@@ -1074,9 +1002,6 @@ behavior. Skip when "uname" returns "SunOS"? (Pavel Heimlich, #1872)
|
||||
|
||||
The ++ options for the :edit command are also useful on the Vim command line.
|
||||
|
||||
When recovering a file, put the swap file name in b:recovered_swapfile. Then
|
||||
a command can delete it.
|
||||
|
||||
Overlong utf-8 sequence is displayed wrong. (Harm te Hennepe, 2017 Sep 14,
|
||||
#2089) Patch with possible solution by Björn Linse.
|
||||
|
||||
@@ -1136,9 +1061,6 @@ Use gvimext.dll from the nightly build? (Issue #249)
|
||||
Problem with using :cd when remotely editing a file. (Gerd Wachsmuth, 2017 May
|
||||
8, #1690)
|
||||
|
||||
Using "wviminfo /tmp/viminfo" does not store file marks that Vim knows about,
|
||||
it only works when merging with an existing file. (Shougo, 2017 Jun 19, #1781)
|
||||
|
||||
Memory leak in test97? The string is actually freed. Weird.
|
||||
|
||||
assert_fails() can only check for the first error. Make it possible to have
|
||||
@@ -1258,8 +1180,6 @@ Should :vmap in matchit.vim be :xmap? (Tony Mechelynck)
|
||||
|
||||
Problem with whitespace in errorformat. (Gerd Wachsmuth, 2016 May 15, #807)
|
||||
|
||||
Undo problem: "g-" doesn't go back, gets stuck. (Björn Linse, 2016 Jul 18)
|
||||
|
||||
Add "unicode true" to NSIS installer. Doesn't work with Windows 95, which we
|
||||
no longer support.
|
||||
|
||||
@@ -1356,10 +1276,6 @@ Regexp problems:
|
||||
Another one: echom matchstr(" sdfsfsf\n sfdsdfsdf",'[^\n]*')
|
||||
(2017 May 15, #1252)
|
||||
|
||||
Undo message is not always properly displayed. Patch by Ken Takata, 2013 oct
|
||||
3. Doesn't work properly according to Yukihiro Nakadaira.
|
||||
Also see #1635.
|
||||
|
||||
Idea from Sven: record sequence of keys. Useful to show others what they are
|
||||
doing (look over the shoulder), and also to see what happened.
|
||||
Probably list of keystrokes, with some annotations for mode changes.
|
||||
@@ -1372,9 +1288,6 @@ cmap using execute() has side effects. (Killthemule, 2016 Aug 17, #983)
|
||||
|
||||
Patch to order results from taglist(). (Duncan McDougall, 2016 Oct 25)
|
||||
|
||||
When using ":diffput" through a mapping, undo in the target buffer isn't
|
||||
synced. (Ryan Carney, 2016 Sep 14)
|
||||
|
||||
Syntax highlighting for messages with RFC3339 timestamp (#946)
|
||||
Did maintainer reply?
|
||||
|
||||
@@ -1610,11 +1523,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)
|
||||
|
||||
@@ -1662,9 +1570,6 @@ This neither: (ZyX)
|
||||
Change 'viewdir' to "$HOME/vimfiles/view" and use 'viewdiralt' to also read
|
||||
from?
|
||||
|
||||
Problem with upwards search on Windows (works OK on Linux). (Brett Stahlman,
|
||||
2014 Jun 8)
|
||||
|
||||
Include a plugin manager with Vim? vim-plug seems to be the best currently:
|
||||
https://github.com/junegunn/vim-plug.
|
||||
Also Vundle: https://github.com/gmarik/vundle
|
||||
@@ -1728,12 +1633,6 @@ 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?
|
||||
|
||||
The undo file name can get too long. (Issue 346)
|
||||
For the path use a hash instead of dir%dir%dir%name hash%name.
|
||||
|
||||
Patch to add ":undorecover", get as much text out of the undo file as
|
||||
possible. (Christian Brabandt, 2014 Mar 12, update Aug 22)
|
||||
|
||||
Updated spec ftplugin. (Matěj Cepl, 2013 Oct 16)
|
||||
|
||||
Patch to handle integer overflow. (Aaron Burrow, 2013 Dec 12)
|
||||
@@ -1758,9 +1657,6 @@ 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)
|
||||
|
||||
Patch to add option that tells whether small deletes go into the numbered
|
||||
registers. (Aryeh Leib Taurog, 2013 Nov 18)
|
||||
|
||||
Javascript file where indent gets stuck on: GalaxyMaster, 2012 May 3.
|
||||
|
||||
The BufUnload event is triggered when re-using the empty buffer.
|
||||
@@ -1802,18 +1698,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.
|
||||
|
||||
In the ATTENTION message about an existing swap file, mention the name of the
|
||||
process that is running. It might actually be some other program, e.g. after
|
||||
a reboot.
|
||||
|
||||
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)
|
||||
@@ -1871,17 +1761,9 @@ 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.
|
||||
|
||||
When running Vim in silent ex mode, an existing swapfile causes Vim to wait
|
||||
for a user action without a prompt. (Maarten Billemont, 2012 Feb 3)
|
||||
Do give the prompt? Quit with an error?
|
||||
|
||||
Patch for input method status. (Hirohito Higashi, 2012 Apr 18)
|
||||
|
||||
Update Vim app icon (for Gnome). (Jakub Steiner, 2013 Dec 6)
|
||||
@@ -1954,9 +1836,6 @@ Oct 26)
|
||||
|
||||
Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20)
|
||||
|
||||
With "unamedplus" in 'clipboard' pasting in Visual mode causes error for empty
|
||||
register. (Michael Seiwald, 2011 Jun 28) I can't reproduce it.
|
||||
|
||||
Windows keys not set properly on Windows 7? (cncyber, 2010 Aug 26)
|
||||
|
||||
When using a Vim server, a # in the path causes an error message.
|
||||
@@ -2061,9 +1940,6 @@ Version of netbeans.c for use with MacVim. (Kazuki Sakamoto, 2010 Nov 18)
|
||||
there is one backslash. (Ray Frush, 2010 Nov 18) What does the original ex
|
||||
do?
|
||||
|
||||
Searching mixed with Visual mode doesn't redraw properly. (James Vega, 2010 Nov
|
||||
22)
|
||||
|
||||
New esperanto spell file can't be processed. (Dominique Pelle, 2011 Jan 30)
|
||||
- move compflags to separate growarray?
|
||||
- instead of a regexp use a hashtable. Expand '?', '*', '+'. What would be
|
||||
@@ -2085,9 +1961,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
|
||||
@@ -2156,9 +2029,6 @@ Gui menu edit/paste in block mode insert only inserts in one line (Bjorn
|
||||
Winckler, 2011 May 11)
|
||||
Requires a map mode for Insert mode started from blockwise Visual mode.
|
||||
|
||||
Writing nested List and Dict in viminfo gives error message and can't be read
|
||||
back. (Yukihiro Nakadaira, 2010 Nov 13)
|
||||
|
||||
Problem with cursor in the wrong column. (SungHyun Nam, 2010 Mar 11)
|
||||
Additional info by Dominique Pelle. (also on 2010 Apr 10)
|
||||
|
||||
@@ -2202,12 +2072,6 @@ like it has ":keepjumps" before it.
|
||||
Coverity: Check if there are new reported defects:
|
||||
https://scan.coverity.com/projects/241
|
||||
|
||||
Patch to support :undo absolute jump to file save number. (Christian Brabandt,
|
||||
2010 Nov 5)
|
||||
|
||||
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
|
||||
@@ -2220,9 +2084,6 @@ Using ']' as the end of a range in a pattern requires double escaping:
|
||||
|
||||
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.
|
||||
|
||||
@@ -2297,10 +2158,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?
|
||||
@@ -2315,10 +2172,6 @@ displayed in a window should return the value that's stored for that buffer.
|
||||
|
||||
":he ctrl_u" can be auto-corrected to ":he ctrl-u".
|
||||
|
||||
There should be a way after an abbreviation has expanded to go back to what
|
||||
was typed. CTRL-G h ? Would also undo last word or line break inserted
|
||||
perhaps. And undo CTRL-W. CTRL-G l would redo.
|
||||
|
||||
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
|
||||
@@ -2337,9 +2190,6 @@ Session file generates error upon loading, cause by --remote-silent-tab.
|
||||
Using ~ works OK on 'a' with composing char, but not on 0x0418 with composing
|
||||
char 0x0301. (Tony Mechelynck, 2009 Mar 4)
|
||||
|
||||
Searching for composing char works, but not when inside []. (ZyX, Benjamin R.
|
||||
Haskell, 2010 Aug 24)
|
||||
|
||||
This does not work yet: "a\(%C\)" (get composing characters into a submatch).
|
||||
|
||||
Inconsistent: starting with $LANG set to es_ES.utf-8 gives Spanish
|
||||
@@ -2357,16 +2207,6 @@ a modeline.
|
||||
Add cscope target to Makefile. (Tony Mechelynck, 2009 Jun 18, replies by
|
||||
Sergey Khorev)
|
||||
|
||||
Consider making YankRing or something else that keeps a list of yanked text
|
||||
part of standard Vim. The "1 to "9 registers are not sufficient.
|
||||
6 When yanking into the unnamed registers several times, somehow make the
|
||||
previous contents also available (like it's done for deleting). What
|
||||
register names to use? g"1, g"2, etc.?
|
||||
Also do this for the small delete register "-.
|
||||
|
||||
After doing "su" $HOME can be the old user's home, thus ~root/file is not
|
||||
correct. Don't use it in the swap file.
|
||||
|
||||
Completion for ":buf" doesn't work properly on Win32 when 'shellslash' is off.
|
||||
(Henrik Ohman, 2009, Jan 29)
|
||||
|
||||
@@ -2528,27 +2368,15 @@ Try to reproduce at work.
|
||||
Patch for default choice in file changed dialog. (Bjorn Winckler, 2008 Oct 19)
|
||||
Is there a way to list all the files first?
|
||||
|
||||
When 'smartcase' is set and using CTRL-L to add to the search pattern it may
|
||||
result in no matches. Convert chars to lower case? (Erik Wognsen, 2009 Apr
|
||||
16)
|
||||
|
||||
Fail to edit file after failed register access. Error flag remains set?
|
||||
(Lech Lorens, 2010 Aug 30)
|
||||
|
||||
Patch for redo register. (Ben Schmidt, 2007 Oct 19)
|
||||
Await response to question to make the register writable.
|
||||
|
||||
Problem with 'ts' set to 9 and 'showbreak' to ">>>". (Matthew Winn, 2007 Oct
|
||||
1)
|
||||
|
||||
In the swapfile dialog, add a H(elp) option that gives more info about what
|
||||
each choice does. Similar to ":help swap-exists-choices"
|
||||
|
||||
":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
|
||||
|
||||
@@ -2607,9 +2435,6 @@ popup menu over it, first draw the new popup menu, remember its position and
|
||||
size and then redraw the text, skipping the characters under the popup menu.
|
||||
This should avoid flicker. Other solution by A.Politz, 2007 Aug 22.
|
||||
|
||||
When a register contains illegal bytes, writing viminfo in utf-8 and reading
|
||||
it back doesn't result in utf-8. (Devin Bayer)
|
||||
|
||||
When the file name has parenthesis, e.g., "foo (bar).txt", ":!ls '%'" has the
|
||||
parenthesis escaped but not the space. That's inconsistent. Either escape
|
||||
neither or both. No escaping might be best, because it doesn't depend on
|
||||
@@ -2688,9 +2513,6 @@ Cursor displayed in the wrong position when using 'numberwidth'. (James Vega,
|
||||
When $VAR contains a backslash expand('$VAR') removes it. (Teemu Likonen, 2008
|
||||
Jun 18)
|
||||
|
||||
In debug mode, using CTRL-R = to evaluate a function causes stepping through
|
||||
the function. (Hari Krishna Dara, 2006 Jun 28)
|
||||
|
||||
C++ indenting wrong with "=". (James Kanze, 2007 Jan 26)
|
||||
|
||||
":lockvar" should use copyID to avoid endless loop.
|
||||
@@ -3041,6 +2863,9 @@ Awaiting updated patches:
|
||||
- For GUI Find/Replace dialog support using a regexp. Patch for Motif
|
||||
and GTK by degreneir (nov 10 and nov 18).
|
||||
- Patch for "paranoid mode" by Kevin Collins, March 7. Needs much more work.
|
||||
- Patch for redo register. (Ben Schmidt, 2007 Oct 19)
|
||||
Await response to question to make the register writable.
|
||||
|
||||
|
||||
Better 'rightleft' or BIDI support:
|
||||
- Minimal Vi with bidi support: https://github.com/aligrudi/neatvi
|
||||
@@ -3583,10 +3408,6 @@ Macintosh:
|
||||
maximum number of open files, error messages will appear. Detect that
|
||||
this problem is present, and close any hidden files that don't have
|
||||
changes.
|
||||
8 With 'viminfo' set such that the ".viminfo" file is written on a FAT
|
||||
filesystem, an illegal file name may be created: ".vim".
|
||||
8 For each buffer that is opened, the viminfo file is opened and read to
|
||||
check for file marks. This can be slow.
|
||||
8 Core dump within signal function: gdb doesn't show stack backtrace! Option
|
||||
to skip catch_signals()?
|
||||
9 Repeating a "cw" with "." doesn't work if the text was pasted from the
|
||||
@@ -3636,9 +3457,6 @@ Macintosh:
|
||||
"initdir" is the default path to be used.
|
||||
7 When 'scrolloff' is exactly half the window height, "j" causes a scroll of
|
||||
two lines at a time. "k" doesn't do this. (Cory T. Echols)
|
||||
8 When write_viminfo() is used while there are many orphaned viminfo
|
||||
tempfiles writing the viminfo file fails. Give a clear error message so
|
||||
that the user knows the files have to be deleted.
|
||||
|
||||
|
||||
I can't reproduce these (if you can, let me know how!):
|
||||
@@ -3954,6 +3772,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
|
||||
@@ -4797,6 +4639,14 @@ Autocommands:
|
||||
Default: 0 = do not autosave the buffer.
|
||||
Alternative: have 'autosave' use 'updatetime' and 'updatecount' but make
|
||||
them save the file itself besides the swapfile.
|
||||
- Buffer autocommands are a bit inconsistent. Add a separate set of
|
||||
autocommands for the buffer lifecycle:
|
||||
BufIsCreated (after buffer ID exists)
|
||||
BufIsLoaded (after buffer ID has content)
|
||||
BufIsUnloaded (after buffer ID no longer has)
|
||||
BufIsWiped (after buffer ID was wiped)
|
||||
BufIsRenamed (after buffer ID gets another name)
|
||||
The buffer list and windows are locked, no changes possible
|
||||
|
||||
|
||||
Omni completion:
|
||||
@@ -5468,6 +5318,19 @@ Searching:
|
||||
[not in xvim:] Add option to switch on matches crossing ONE line boundary.
|
||||
7 Add ":iselect", a combination of ":ilist" and ":tselect". (Aaron) (Zellner)
|
||||
Also ":dselect".
|
||||
- Searching for \%'> does not find anything when using line Visual
|
||||
selection. Probably because it's using MAXCOL. #8238
|
||||
- Regexp to search for duplicate lines does not work correctly:
|
||||
/\(^.*\n\)\1 (Chris Morgan, #6239)
|
||||
- Problem with upwards search on Windows (works OK on Linux). (Brett
|
||||
Stahlman, 2014 Jun 8)
|
||||
- Searching mixed with Visual mode doesn't redraw properly. (James Vega,
|
||||
2010 Nov 22)
|
||||
- Searching for composing char works, but not when inside []. (ZyX, Benjamin
|
||||
R. Haskell, 2010 Aug 24)
|
||||
- When 'smartcase' is set and using CTRL-L to add to the search pattern it
|
||||
may result in no matches. Convert chars to lower case? (Erik Wognsen,
|
||||
2009 Apr 16)
|
||||
|
||||
|
||||
Undo:
|
||||
@@ -5509,6 +5372,36 @@ Undo:
|
||||
- When executing macro's: Save each line for undo only once.
|
||||
- When doing a global substitute, causing almost all lines to be changed,
|
||||
undo info becomes very big. Put undo info in swap file??
|
||||
- MS-Windows: when writing undo file the infostreams are copied in
|
||||
mch_copy_file_attribute(), that seems unnecessary. (#7925) Add a flag to
|
||||
only copy attributes?
|
||||
- undo result wrong: Masato Nishihata, #4798
|
||||
- After recovering from a swap file the undofile should not be used, it
|
||||
causes corruption. (#6631)
|
||||
- When the computer crashes while writing the undofile, the contents may be
|
||||
lost. Write to a temp file, fsync and rename. (#8879)
|
||||
- Undo puts cursor in wrong line after "cG<Esc>" undo.
|
||||
- Undo history wrong when ":next file" re-uses a buffer. (#5426) ex_next()
|
||||
should pass flag to do_argfile(), then to do_ecmd(). Is there a test for
|
||||
this?
|
||||
- Add buffer argument to undotree(). (#4001)
|
||||
- Undo problem: "g-" doesn't go back, gets stuck. (Björn Linse, 2016 Jul 18)
|
||||
- Undo message is not always properly displayed. Patch by Ken Takata, 2013
|
||||
oct 3. Doesn't work properly according to Yukihiro Nakadaira.
|
||||
Also see #1635.
|
||||
- When using ":diffput" through a mapping, undo in the target buffer isn't
|
||||
synced. (Ryan Carney, 2016 Sep 14)
|
||||
- The undo file name can get too long. (Issue 346)
|
||||
For the path use a hash instead of dir%dir%dir%name hash%name.
|
||||
- Patch to add ":undorecover", get as much text out of the undo file as
|
||||
possible. (Christian Brabandt, 2014 Mar 12, update Aug 22)
|
||||
- Patch to support :undo absolute jump to file save number. (Christian
|
||||
Brabandt, 2010 Nov 5)
|
||||
- There should be a way after an abbreviation has expanded to go back to
|
||||
what was typed. CTRL-G h ? Would also undo last word or line break
|
||||
inserted perhaps. And undo CTRL-W. CTRL-G l would redo.
|
||||
- When using 'cryptmethod' xchaha20 the undo file is not encrypted.
|
||||
Need to handle extra bytes.
|
||||
|
||||
|
||||
Buffer list:
|
||||
@@ -5539,6 +5432,18 @@ Buffer list:
|
||||
8 Some file systems are case-sensitive, some are not. Besides
|
||||
'wildignorecase' there might be more parts inside
|
||||
CASE_INSENSITIVE_FILENAME that are useful on Unix.
|
||||
- When using ":bwipe!" also get rid of references to be buffer, e.g. in the
|
||||
jumplist and alternate file.
|
||||
- ":bnext" in a help buffer is supposed to go to the next help buffer, but
|
||||
it goes to any buffer, and then :bnext skips help buffers, since they are
|
||||
unlisted. (#4478)
|
||||
- :buffer completion does not escape "+" properly and results in a regexp
|
||||
error. (#5467)
|
||||
- Problem with two buffers with the same name a/b, if it didn't exist before
|
||||
and is created outside of Vim. (dskloetg, 2018 Jul 16, #3219)
|
||||
- Add an option with file patterns, to be used when unloading a buffer: If
|
||||
there is a match, remove entries for the buffer from marks, jumplist, etc.
|
||||
To be used for git temp files.
|
||||
|
||||
|
||||
Swap (.swp) files:
|
||||
@@ -5569,6 +5474,21 @@ Swap (.swp) files:
|
||||
original file. Also do this when the file is huge (>'maxmem'). We do
|
||||
need to load the file once to count the number of lines? Perhaps keep a
|
||||
cached list of which line is where.
|
||||
- When editing a file with ":edit" the output of :swapname is relative,
|
||||
while editing it with "vim file" it is absolute. (#355) Which one should
|
||||
it be?
|
||||
- When recovering a file, put the swap file name in b:recovered_swapfile.
|
||||
Then a command can delete it.
|
||||
- In the ATTENTION message about an existing swap file, mention the name of
|
||||
the process that is running. It might actually be some other program,
|
||||
e.g. after a reboot.
|
||||
- When running Vim in silent ex mode, an existing swapfile causes Vim to
|
||||
wait for a user action without a prompt. (Maarten Billemont, 2012 Feb 3)
|
||||
Do give the prompt? Quit with an error?
|
||||
- After doing "su" $HOME can be the old user's home, thus ~root/file is not
|
||||
correct. Don't use it in the swap file.
|
||||
- In the swapfile dialog, add a H(elp) option that gives more info about
|
||||
what each choice does. Similar to ":help swap-exists-choices"
|
||||
|
||||
|
||||
Viminfo:
|
||||
@@ -5595,6 +5515,21 @@ Viminfo:
|
||||
same files in the windows. Use ":mksession" code?
|
||||
- Make marks present in .viminfo usable as file marks: Display a list of
|
||||
"last visited files" and select one to jump to.
|
||||
- Add the debug command line history to viminfo.
|
||||
- Using "wviminfo /tmp/viminfo" does not store file marks that Vim knows
|
||||
about, it only works when merging with an existing file. (Shougo, 2017
|
||||
Jun 19, #1781)
|
||||
- Writing nested List and Dict in viminfo gives error message and can't be
|
||||
read back. (Yukihiro Nakadaira, 2010 Nov 13)
|
||||
- When a register contains illegal bytes, writing viminfo in utf-8 and
|
||||
reading it back doesn't result in utf-8. (Devin Bayer)
|
||||
8 With 'viminfo' set such that the ".viminfo" file is written on a FAT
|
||||
filesystem, an illegal file name may be created: ".vim".
|
||||
8 For each buffer that is opened, the viminfo file is opened and read to
|
||||
check for file marks. This can be slow.
|
||||
8 When write_viminfo() is used while there are many orphaned viminfo
|
||||
tempfiles writing the viminfo file fails. Give a clear error message so
|
||||
that the user knows the files have to be deleted.
|
||||
|
||||
|
||||
Modelines:
|
||||
@@ -5813,6 +5748,23 @@ Registers:
|
||||
to position of previous deleted (to swap foo and bar in " + foo")
|
||||
8 Should be able to yank and delete into the "/ register.
|
||||
How to take care of the flags (offset, magic)?
|
||||
- In Select mode the deleted text always goes into the unnamed register.
|
||||
Use CTRL-R to specify the register to use. (#9531)
|
||||
- When "+ register is set then "" points to it. If another Vim grabs the "+
|
||||
register, then "" doesn't contain anything. Make it still follow "+.
|
||||
(#6435)
|
||||
- Pasting a register in Visual mode cannot be repeated. (Mahmoud Al-Qudsi,
|
||||
2018 Apr 26, #2849)
|
||||
- Patch to add option that tells whether small deletes go into the numbered
|
||||
registers. (Aryeh Leib Taurog, 2013 Nov 18)
|
||||
- With "unamedplus" in 'clipboard' pasting in Visual mode causes error for
|
||||
empty register. (Michael Seiwald, 2011 Jun 28) I can't reproduce it.
|
||||
- Consider making YankRing or something else that keeps a list of yanked
|
||||
text part of standard Vim. The "1 to "9 registers are not sufficient.
|
||||
6 When yanking into the unnamed registers several times, somehow make the
|
||||
previous contents also available (like it's done for deleting). What
|
||||
register names to use? g"1, g"2, etc.?
|
||||
Also do this for the small delete register "-.
|
||||
|
||||
|
||||
Debug mode:
|
||||
@@ -5820,6 +5772,9 @@ Debug mode:
|
||||
8 Add breakpoints for assigning to a variable.
|
||||
7 Store the history from debug mode in viminfo.
|
||||
7 Make the debug mode history available with histget() et al.
|
||||
- In debug mode, using CTRL-R = to evaluate a function causes stepping
|
||||
through the function. (Hari Krishna Dara, 2006 Jun 28)
|
||||
|
||||
|
||||
Various improvements:
|
||||
7 Add plugins for formatting? Should be able to make a choice depending on
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_41.txt* For Vim version 8.2. Last change: 2022 Feb 11
|
||||
*usr_41.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -19,12 +19,6 @@ script. There are a lot of them, thus this is a long chapter.
|
||||
|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
|
||||
|
||||
Next chapter: |usr_42.txt| Add new menus
|
||||
Previous chapter: |usr_40.txt| Make new commands
|
||||
@@ -42,14 +36,10 @@ Syntax files are also Vim scripts. As are files that set options for a
|
||||
specific file type. A complicated macro can be defined by a separate Vim
|
||||
script file. You can think of other uses yourself.
|
||||
|
||||
If you are familiar with Python, you can find a comparison between
|
||||
Python and Vim script here, with pointers to other documents:
|
||||
https://gist.github.com/yegappan/16d964a37ead0979b05e655aa036cad0
|
||||
And if you are familiar with JavaScript:
|
||||
https://w0rp.com/blog/post/vim-script-for-the-javascripter/
|
||||
|
||||
Vim script comes in two flavors: legacy and |Vim9|. Since this help file is
|
||||
for new users, we'll teach you the newer and more convenient |Vim9| syntax.
|
||||
While legacy script is particular for Vim, |Vim9| script looks more like other
|
||||
languages, such as JavaScript and TypeScript.
|
||||
|
||||
To try out Vim script the best way is to edit a script file and source it.
|
||||
Basically: >
|
||||
@@ -904,6 +894,7 @@ System functions and manipulation of files:
|
||||
getfperm() get the permissions of a file
|
||||
setfperm() set the permissions of a file
|
||||
getftype() get the kind of a file
|
||||
isabsolutepath() check if a path is absolute
|
||||
isdirectory() check if a directory exists
|
||||
getfsize() get the size of a file
|
||||
getcwd() get the current working directory
|
||||
@@ -934,6 +925,11 @@ Date and Time: *date-functions* *time-functions*
|
||||
reltimestr() convert reltime() result to a string
|
||||
reltimefloat() convert reltime() result to a Float
|
||||
|
||||
Autocmds: *autocmd-functions*
|
||||
autocmd_add() add a list of autocmds and groups
|
||||
autocmd_delete() delete a list of autocmds and groups
|
||||
autocmd_get() return a list of autocmds
|
||||
|
||||
*buffer-functions* *window-functions* *arg-functions*
|
||||
Buffers, windows and the argument list:
|
||||
argc() number of entries in the argument list
|
||||
@@ -975,8 +971,12 @@ Buffers, windows and the argument list:
|
||||
swapname() get the swap file path of a buffer
|
||||
|
||||
Command line: *command-line-functions*
|
||||
getcmdcompltype() get the type of the current command line
|
||||
completion
|
||||
getcmdline() get the current command line
|
||||
getcmdpos() get position of the cursor in the command line
|
||||
getcmdscreenpos() get screen position of the cursor in the
|
||||
command line
|
||||
setcmdpos() set position of the cursor in the command line
|
||||
getcmdtype() return the current command-line type
|
||||
getcmdwintype() return the current command-line window type
|
||||
@@ -1092,6 +1092,7 @@ Mappings and Menus: *mapping-functions*
|
||||
hasmapto() check if a mapping exists
|
||||
mapcheck() check if a matching mapping exists
|
||||
maparg() get rhs of a mapping
|
||||
maplist() get list of all mappings
|
||||
mapset() restore a mapping
|
||||
menu_info() get information about a menu item
|
||||
wildmenumode() check if the wildmode is active
|
||||
@@ -1922,837 +1923,7 @@ are script-local.
|
||||
If you split your plugin into parts, you can use `import` and `export` to
|
||||
share items between those parts. See `:export` for the details.
|
||||
|
||||
==============================================================================
|
||||
*41.11* Writing a 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|.
|
||||
|
||||
|
||||
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: >
|
||||
|
||||
14 iabbrev teh the
|
||||
15 iabbrev otehr other
|
||||
16 iabbrev wnat want
|
||||
17 iabbrev synchronisation
|
||||
18 \ 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 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.
|
||||
|
||||
|
||||
LINE CONTINUATION AND AVOIDING SIDE EFFECTS *use-cpo-save*
|
||||
|
||||
In line 18 above, the line-continuation mechanism is used |line-continuation|.
|
||||
Users with 'compatible' set will run into trouble here, they will get an error
|
||||
message. We can't just reset 'compatible', because that has a lot of side
|
||||
effects. Instead, we will set the 'cpoptions' option to its Vim default
|
||||
value and restore it later. That will allow the use of line-continuation and
|
||||
make the script work for most people. It is done like this: >
|
||||
|
||||
11 var save_cpo = &cpo
|
||||
12 set cpo&vim
|
||||
..
|
||||
42 &cpo = save_cpo
|
||||
|
||||
We first store the old value of 'cpoptions' in the "save_cpo" variable. At
|
||||
the end of the plugin this value is restored.
|
||||
|
||||
Notice that "save_cpo" is a script-local variable. A global variable could
|
||||
already be in use for something else. Always use script-local variables for
|
||||
things that are only used in the script.
|
||||
|
||||
|
||||
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: >
|
||||
|
||||
22 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: >
|
||||
|
||||
21 if !hasmapto('<Plug>TypecorrAdd;')
|
||||
22 map <unique> <Leader>a <Plug>TypecorrAdd;
|
||||
23 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: >
|
||||
|
||||
30 def Add(from: string, correct: bool)
|
||||
31 var to = input("type the correction for " .. from .. ": ")
|
||||
32 exe ":iabbrev " .. from .. " " .. to
|
||||
..
|
||||
36 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: >
|
||||
|
||||
24 noremap <unique> <script> <Plug>TypecorrAdd; <SID>Add
|
||||
..
|
||||
28 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: >
|
||||
|
||||
26 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: >
|
||||
|
||||
38 if !exists(":Correct")
|
||||
39 command -nargs=1 Correct :call Add(<q-args>, false)
|
||||
40 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.
|
||||
|
||||
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: >
|
||||
|
||||
19 var count = 4
|
||||
..
|
||||
30 def Add(from: string, correct: bool)
|
||||
..
|
||||
34 count += 1
|
||||
35 echo "you now have " .. count .. " corrections"
|
||||
36 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 var save_cpo = &cpo
|
||||
12 set cpo&vim
|
||||
13
|
||||
14 iabbrev teh the
|
||||
15 iabbrev otehr other
|
||||
16 iabbrev wnat want
|
||||
17 iabbrev synchronisation
|
||||
18 \ synchronization
|
||||
19 var count = 4
|
||||
20
|
||||
21 if !hasmapto('<Plug>TypecorrAdd;')
|
||||
22 map <unique> <Leader>a <Plug>TypecorrAdd;
|
||||
23 endif
|
||||
24 noremap <unique> <script> <Plug>TypecorrAdd; <SID>Add
|
||||
25
|
||||
26 noremenu <script> Plugin.Add\ Correction <SID>Add
|
||||
27
|
||||
28 noremap <SID>Add :call <SID>Add(expand("<cword>"), true)<CR>
|
||||
29
|
||||
30 def Add(from: string, correct: bool)
|
||||
31 var to = input("type the correction for " .. from .. ": ")
|
||||
32 exe ":iabbrev " .. from .. " " .. to
|
||||
33 if correct | exe "normal viws\<C-R>\" \b\e" | endif
|
||||
34 count += 1
|
||||
35 echo "you now have " .. count .. " corrections"
|
||||
36 enddef
|
||||
37
|
||||
38 if !exists(":Correct")
|
||||
39 command -nargs=1 Correct call Add(<q-args>, false)
|
||||
40 endif
|
||||
41
|
||||
42 &cpo = save_cpo
|
||||
|
||||
Line 33 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.
|
||||
|
||||
|
||||
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 *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.
|
||||
|
||||
==============================================================================
|
||||
*41.12* 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 |41.11|. 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", but 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
|
||||
<
|
||||
|
||||
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: >
|
||||
|
||||
let 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.
|
||||
|
||||
This does require removing the "C" flag from 'cpoptions' to allow line
|
||||
continuation, as mentioned above |use-cpo-save|.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
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.
|
||||
|
||||
==============================================================================
|
||||
*41.13* 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: >
|
||||
|
||||
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.
|
||||
|
||||
==============================================================================
|
||||
*41.14* Writing a plugin that loads quickly *write-plugin-quickload*
|
||||
|
||||
A plugin may grow and become quite long. The startup delay may become
|
||||
noticeable, while you hardly ever use the plugin. Then it's time for a
|
||||
quickload plugin.
|
||||
|
||||
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. Since Vim 7 there is an alternative:
|
||||
use the |autoload| functionality |41.15|. That will also use |Vim9| script
|
||||
instead of legacy script that is used here.
|
||||
|
||||
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.
|
||||
|
||||
==============================================================================
|
||||
*41.15* Writing library scripts *write-library-script*
|
||||
|
||||
Some functionality will be required in several places. When this becomes more
|
||||
than a few lines you will want to put it in one script and use it from many
|
||||
scripts. We will call that one script a library script.
|
||||
|
||||
Manually loading a library script is possible, so long as you avoid loading it
|
||||
when it's already done. You can do this with the |exists()| function.
|
||||
Example: >
|
||||
|
||||
if !exists('*MyLibFunction')
|
||||
runtime library/mylibscript.vim
|
||||
endif
|
||||
MyLibFunction(arg)
|
||||
|
||||
Here you need to know that MyLibFunction() is defined in a script
|
||||
"library/mylibscript.vim" in one of the directories in 'runtimepath'.
|
||||
|
||||
To make this a bit simpler Vim offers the autoload mechanism. Then the
|
||||
example looks like this: >
|
||||
|
||||
mylib#myfunction(arg)
|
||||
|
||||
That's a lot simpler, isn't it? Vim will recognize the function name by the
|
||||
embedded "#" character and when it's not defined search for the script
|
||||
"autoload/mylib.vim" in 'runtimepath'. That script must define the
|
||||
"mylib#myfunction()" function.
|
||||
|
||||
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.
|
||||
|
||||
If you get really enthusiastic and write lots of library scripts, you may
|
||||
want to use subdirectories. Example: >
|
||||
|
||||
netlib#ftp#read('somefile')
|
||||
|
||||
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|.
|
||||
|
||||
==============================================================================
|
||||
*41.16* 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|.
|
||||
More information about writing plugins is in |usr_51.txt|.
|
||||
|
||||
==============================================================================
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
25
runtime/doc/usr_50.txt
Normal file
25
runtime/doc/usr_50.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
*usr_50.txt* For Vim version 8.2. Last change: 2022 May 13
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
Advanced Vim script writing
|
||||
|
||||
|
||||
TODO - this chapter is to be written
|
||||
|
||||
|50.1| Writing stuff
|
||||
|
||||
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* Writing stuff
|
||||
|
||||
TODO
|
||||
|
||||
==============================================================================
|
||||
|
||||
Next chapter: |usr_51.txt| Create a plugin
|
||||
|
||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
860
runtime/doc/usr_51.txt
Normal file
860
runtime/doc/usr_51.txt
Normal file
@@ -0,0 +1,860 @@
|
||||
*usr_51.txt* For Vim version 8.2. Last change: 2022 May 14
|
||||
|
||||
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| Writing a plugin that loads quickly
|
||||
|51.5| Writing library scripts
|
||||
|51.6| Distributing Vim scripts
|
||||
|
||||
Next chapter: |usr_52.txt| Write plugins using Vim9 script
|
||||
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|.
|
||||
|
||||
|
||||
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: >
|
||||
|
||||
14 iabbrev teh the
|
||||
15 iabbrev otehr other
|
||||
16 iabbrev wnat want
|
||||
17 iabbrev synchronisation
|
||||
18 \ 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.
|
||||
|
||||
|
||||
LINE CONTINUATION AND AVOIDING SIDE EFFECTS *use-cpo-save*
|
||||
|
||||
In line 18 above, the line-continuation mechanism is used |line-continuation|.
|
||||
Users with 'compatible' set will run into trouble here, they will get an error
|
||||
message. We can't just reset 'compatible', because that has a lot of side
|
||||
effects. Instead, we will set the 'cpoptions' option to its Vim default
|
||||
value and restore it later. That will allow the use of line-continuation and
|
||||
make the script work for most people. It is done like this: >
|
||||
|
||||
11 var save_cpo = &cpo
|
||||
12 set cpo&vim
|
||||
..
|
||||
42 &cpo = save_cpo
|
||||
|
||||
We first store the old value of 'cpoptions' in the "save_cpo" variable. At
|
||||
the end of the plugin this value is restored.
|
||||
|
||||
Notice that "save_cpo" is a script-local variable. A global variable could
|
||||
already be in use for something else. Always use script-local variables for
|
||||
things that are only used in the script.
|
||||
|
||||
|
||||
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: >
|
||||
|
||||
22 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: >
|
||||
|
||||
21 if !hasmapto('<Plug>TypecorrAdd;')
|
||||
22 map <unique> <Leader>a <Plug>TypecorrAdd;
|
||||
23 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: >
|
||||
|
||||
30 def Add(from: string, correct: bool)
|
||||
31 var to = input($"type the correction for {from}: ")
|
||||
32 exe $":iabbrev {from} {to}"
|
||||
..
|
||||
36 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: >
|
||||
|
||||
24 noremap <unique> <script> <Plug>TypecorrAdd; <SID>Add
|
||||
..
|
||||
28 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: >
|
||||
|
||||
26 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: >
|
||||
|
||||
38 if !exists(":Correct")
|
||||
39 command -nargs=1 Correct :call Add(<q-args>, false)
|
||||
40 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.
|
||||
|
||||
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: >
|
||||
|
||||
19 var count = 4
|
||||
..
|
||||
30 def Add(from: string, correct: bool)
|
||||
..
|
||||
34 count += 1
|
||||
35 echo "you now have " .. count .. " corrections"
|
||||
36 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 var save_cpo = &cpo
|
||||
12 set cpo&vim
|
||||
13
|
||||
14 iabbrev teh the
|
||||
15 iabbrev otehr other
|
||||
16 iabbrev wnat want
|
||||
17 iabbrev synchronisation
|
||||
18 \ synchronization
|
||||
19 var count = 4
|
||||
20
|
||||
21 if !hasmapto('<Plug>TypecorrAdd;')
|
||||
22 map <unique> <Leader>a <Plug>TypecorrAdd;
|
||||
23 endif
|
||||
24 noremap <unique> <script> <Plug>TypecorrAdd; <SID>Add
|
||||
25
|
||||
26 noremenu <script> Plugin.Add\ Correction <SID>Add
|
||||
27
|
||||
28 noremap <SID>Add :call <SID>Add(expand("<cword>"), true)<CR>
|
||||
29
|
||||
30 def Add(from: string, correct: bool)
|
||||
31 var to = input("type the correction for " .. from .. ": ")
|
||||
32 exe ":iabbrev " .. from .. " " .. to
|
||||
33 if correct | exe "normal viws\<C-R>\" \b\e" | endif
|
||||
34 count += 1
|
||||
35 echo "you now have " .. count .. " corrections"
|
||||
36 enddef
|
||||
37
|
||||
38 if !exists(":Correct")
|
||||
39 command -nargs=1 Correct call Add(<q-args>, false)
|
||||
40 endif
|
||||
41
|
||||
42 &cpo = save_cpo
|
||||
|
||||
Line 33 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.
|
||||
|
||||
|
||||
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 *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", but 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
|
||||
<
|
||||
|
||||
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: >
|
||||
|
||||
let 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.
|
||||
|
||||
This does require removing the "C" flag from 'cpoptions' to allow line
|
||||
continuation, as mentioned above |use-cpo-save|.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
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* Writing a plugin that loads quickly *write-plugin-quickload*
|
||||
|
||||
A plugin may grow and become quite long. The startup delay may become
|
||||
noticeable, while you hardly ever use the plugin. Then it's time for a
|
||||
quickload plugin.
|
||||
|
||||
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. Since Vim 7 there is an alternative:
|
||||
use the |autoload| functionality |51.5|. That will also use |Vim9| script
|
||||
instead of legacy script that is used here.
|
||||
|
||||
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.
|
||||
|
||||
==============================================================================
|
||||
*51.5* Writing library scripts *write-library-script*
|
||||
|
||||
Some functionality will be required in several places. When this becomes more
|
||||
than a few lines you will want to put it in one script and use it from many
|
||||
scripts. We will call that one script a library script.
|
||||
|
||||
Manually loading a library script is possible, so long as you avoid loading it
|
||||
when it's already done. You can do this with the |exists()| function.
|
||||
Example: >
|
||||
|
||||
if !exists('*MyLibFunction')
|
||||
runtime library/mylibscript.vim
|
||||
endif
|
||||
MyLibFunction(arg)
|
||||
|
||||
Here you need to know that MyLibFunction() is defined in a script
|
||||
"library/mylibscript.vim" in one of the directories in 'runtimepath'.
|
||||
|
||||
To make this a bit simpler Vim offers the autoload mechanism. Then the
|
||||
example looks like this: >
|
||||
|
||||
mylib#myfunction(arg)
|
||||
|
||||
That's a lot simpler, isn't it? Vim will recognize the function name by the
|
||||
embedded "#" character and when it's not defined search for the script
|
||||
"autoload/mylib.vim" in 'runtimepath'. That script must define the
|
||||
"mylib#myfunction()" function.
|
||||
|
||||
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.
|
||||
|
||||
If you get really enthusiastic and write lots of library scripts, you may
|
||||
want to use subdirectories. Example: >
|
||||
|
||||
netlib#ftp#read('somefile')
|
||||
|
||||
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|.
|
||||
|
||||
==============================================================================
|
||||
*51.6* 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 plugins using Vim9 script
|
||||
|
||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_46.txt* For Vim version 8.2. Last change: 2020 Jun 14
|
||||
*usr_52.txt* For Vim version 8.2. Last change: 2022 May 21
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -9,17 +9,17 @@ 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
|
||||
|52.1| Introduction
|
||||
|52.2| Variable declarations
|
||||
|52.3| Functions and types
|
||||
|52.4| Using a Vim9 script from legacy script
|
||||
|
||||
Next chapter: |usr_90.txt| Installing Vim
|
||||
Previous chapter: |usr_45.txt| Select your language (locale)
|
||||
Previous chapter: |usr_51.txt| Create a plugin
|
||||
Table of contents: |usr_toc.txt|
|
||||
|
||||
==============================================================================
|
||||
*46.1* Introduction *vim9-script-intro*
|
||||
*52.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,
|
||||
@@ -69,7 +69,7 @@ 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*
|
||||
*52.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`
|
||||
@@ -108,37 +108,38 @@ Although it's shorter to do: >
|
||||
let word = condition ? 'yes' : 'no'
|
||||
|
||||
==============================================================================
|
||||
*46.3* Functions and types
|
||||
*52.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
|
||||
Legacy Vim script only checks types 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
|
||||
notice a problem only later when the function is called: >
|
||||
func Concatenate(base, add)
|
||||
return a:base + a:add
|
||||
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!
|
||||
echo Concatenate('base', '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! That's
|
||||
not what you expected.
|
||||
|
||||
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
|
||||
With `:def` the type checking happens when compiling the function. You need
|
||||
to specify the argument types and the return type to make that possible. Also
|
||||
notice that the argument names are used without the "a:" prefix: >
|
||||
def Concatenate(base: string, add: string): string
|
||||
return base + add
|
||||
enddef
|
||||
defcompile
|
||||
defcompile Concatenate
|
||||
|
||||
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
|
||||
compilation would happen when the function is first called. Vim will tell you
|
||||
what you did wrong: >
|
||||
E1051: Wrong argument type for +
|
||||
|
||||
Side note: here the context is legacy script. When using Vim9 script you
|
||||
would put `:defcompile` at the end of the script to check for errors in all
|
||||
the functions defined in it.
|
||||
|
||||
Vim9 script is strict, it uses the "+" operator only for numbers and floats.
|
||||
For string concatenation ".." must be used. This avoids mistakes and avoids
|
||||
@@ -161,7 +162,7 @@ multiple types, you can use the "any" type: >
|
||||
enddef
|
||||
|
||||
==============================================================================
|
||||
*46.?* Using a Vim9 script from legacy script *source-vim9-script*
|
||||
*52.4* 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
|
||||
@@ -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 May 13
|
||||
|
||||
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
|
||||
|
||||
==============================================================================
|
||||
@@ -302,12 +306,6 @@ Make Vim work as you like it.
|
||||
|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
|
||||
|
||||
|usr_42.txt| Add new menus
|
||||
|42.1| Introduction
|
||||
@@ -340,11 +338,24 @@ 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| TODO
|
||||
|
||||
|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| Writing a plugin that loads quickly
|
||||
|51.5| Writing library scripts
|
||||
|51.6| Distributing Vim scripts
|
||||
|
||||
|usr_52.txt| Write plugins using Vim9 script
|
||||
|52.1| Introduction
|
||||
|52.2| Variable declarations
|
||||
|52.3| Functions and types
|
||||
|52.4| 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 May 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -294,7 +294,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
|
||||
@@ -857,10 +858,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 +1210,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}.
|
||||
|
||||
@@ -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
|
||||
@@ -265,7 +265,7 @@ Additionally the following commands can be used:
|
||||
X delete (2) |v_X|
|
||||
Y yank (2) |v_Y|
|
||||
p put |v_p|
|
||||
P put without unnamed register overwrite |v_P|
|
||||
P put without overwriting registers |v_P|
|
||||
J join (1) |v_J|
|
||||
U make uppercase |v_U|
|
||||
u make lowercase |v_u|
|
||||
|
||||
@@ -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 13
|
||||
" Last Change: 2022 Apr 25
|
||||
|
||||
" Listen very carefully, I will say this only once
|
||||
if exists("did_load_filetypes")
|
||||
@@ -155,18 +155,21 @@ au BufNewFile,BufRead *.asp
|
||||
\ setf aspvbs |
|
||||
\ endif
|
||||
|
||||
" Grub (must be before catch *.lst)
|
||||
" Grub (must be before pattern *.lst)
|
||||
au BufNewFile,BufRead */boot/grub/menu.lst,*/boot/grub/grub.conf,*/etc/grub.conf setf grub
|
||||
|
||||
" Maxima, see:
|
||||
" https://maxima.sourceforge.io/docs/manual/maxima_71.html#file_005ftype_005fmaxima
|
||||
au BufNewFile,BufRead *.mc,*.demo,*.dem,*.dm{1,2,3,t},*.wxm,maxima-init.mac setf maxima
|
||||
" Must be before the pattern *.mac.
|
||||
" *.dem omitted - also used by gnuplot demos
|
||||
" *.mc omitted - used by dist#ft#McSetf()
|
||||
au BufNewFile,BufRead *.demo,*.dm{1,2,3,t},*.wxm,maxima-init.mac setf maxima
|
||||
|
||||
" Assembly (all kinds)
|
||||
" *.lst is not pure assembly, it has two extra columns (address, byte codes)
|
||||
au BufNewFile,BufRead *.asm,*.[sS],*.[aA],*.mac,*.lst call dist#ft#FTasm()
|
||||
|
||||
" Macro (VAX)
|
||||
" Assembly - Macro (VAX)
|
||||
au BufNewFile,BufRead *.mar setf vmasm
|
||||
|
||||
" Atlas
|
||||
@@ -406,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
|
||||
@@ -716,6 +719,9 @@ au BufNewFile,BufRead *.git/*
|
||||
" Gkrellmrc
|
||||
au BufNewFile,BufRead gkrellmrc,gkrellmrc_? setf gkrellmrc
|
||||
|
||||
" Gleam
|
||||
au BufNewFile,BufRead *.gleam setf gleam
|
||||
|
||||
" GLSL
|
||||
au BufNewFile,BufRead *.glsl setf glsl
|
||||
|
||||
@@ -813,11 +819,15 @@ 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
|
||||
|
||||
" HTML (.shtml and .stm for server side)
|
||||
au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call dist#ft#FThtml()
|
||||
au BufNewFile,BufRead *.cshtml setf html
|
||||
|
||||
" HTML with Ruby - eRuby
|
||||
au BufNewFile,BufRead *.erb,*.rhtml setf eruby
|
||||
@@ -1165,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
|
||||
|
||||
@@ -1585,6 +1598,9 @@ au BufNewFile,BufRead *.rng setf rng
|
||||
" RPL/2
|
||||
au BufNewFile,BufRead *.rpl setf rpl
|
||||
|
||||
" Robot Framework
|
||||
au BufNewFile,BufRead *.robot,*.resource setf robot
|
||||
|
||||
" Robots.txt
|
||||
au BufNewFile,BufRead robots.txt setf robots
|
||||
|
||||
@@ -1682,7 +1698,8 @@ au BufNewFile,BufRead *.siv,*.sieve setf sieve
|
||||
" Sendmail
|
||||
au BufNewFile,BufRead sendmail.cf setf sm
|
||||
|
||||
" Sendmail .mc files are actually m4. Could also be MS Message text file.
|
||||
" Sendmail .mc files are actually m4. Could also be MS Message text file or
|
||||
" Maxima.
|
||||
au BufNewFile,BufRead *.mc call dist#ft#McSetf()
|
||||
|
||||
" Services
|
||||
@@ -2115,6 +2132,9 @@ au BufNewFile,BufRead *.wm setf webmacro
|
||||
" Wget config
|
||||
au BufNewFile,BufRead .wgetrc,wgetrc setf wget
|
||||
|
||||
" Wget2 config
|
||||
au BufNewFile,BufRead .wget2rc,wget2rc setf wget2
|
||||
|
||||
" Website MetaLanguage
|
||||
au BufNewFile,BufRead *.wml setf wml
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
11
runtime/ftplugin/elixir.vim
Normal file
11
runtime/ftplugin/elixir.vim
Normal file
@@ -0,0 +1,11 @@
|
||||
" Elixir filetype plugin
|
||||
" Language: Elixir
|
||||
" Maintainer: Mitchell Hanberg <vimNOSPAM@mitchellhanberg.com>
|
||||
" Last Change: 2022 Apr 20
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal commentstring=#\ %s
|
||||
@@ -1,7 +1,7 @@
|
||||
" Elm filetype plugin file
|
||||
" Language: Elm
|
||||
" Maintainer: Andreas Scharf <as@99n.de>
|
||||
" Latest Revision: 2020-05-29
|
||||
" Latest Revision: 2022-04-25
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@@ -14,5 +14,7 @@ set cpo&vim
|
||||
setlocal comments=s1fl:{-,mb:\ ,ex:-},:--
|
||||
setlocal commentstring=--\ %s
|
||||
|
||||
let b:undo_ftplugin = "setl com< cms<"
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
18
runtime/ftplugin/fennel.vim
Normal file
18
runtime/ftplugin/fennel.vim
Normal file
@@ -0,0 +1,18 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Fennel
|
||||
" Maintainer: Gregory Anders <greg[NOSPAM]@gpanders.com>
|
||||
" Last Update: 2022 Apr 20
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal commentstring=;%s
|
||||
setlocal comments=:;;,:;
|
||||
setlocal formatoptions-=t
|
||||
setlocal suffixesadd=.fnl
|
||||
setlocal lisp
|
||||
setlocal lispwords=accumulate,collect,do,doto,each,eval-compiler,fn,for,icollect,lambda,let,macro,macros,match,match-try,when,while,with-open
|
||||
|
||||
let b:undo_ftplugin = 'setlocal commentstring< comments< formatoptions< suffixesadd< lisp< lispwords<'
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Microsoft Macro Assembler (80x86)
|
||||
" Maintainer: Wu Yongwei <wuyongwei@gmail.com>
|
||||
" Last Change: 2020-05-09 23:02:05 +0800
|
||||
" Last Change: 2022-04-24 21:24:52 +0800
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@@ -15,5 +15,18 @@ let b:undo_ftplugin = "setl iskeyword<"
|
||||
|
||||
setlocal iskeyword=@,48-57,_,36,60,62,63,@-@
|
||||
|
||||
" Matchit support
|
||||
if !exists('b:match_words')
|
||||
let b:match_words = '^\s*\.IF\>:^\s*\.ELSEIF\>:^\s*\.ELSE\>:^\s*\.ENDIF\>,'
|
||||
\ .. '^\s*\.REPEAT\>:^\s*\.UNTIL\(CXZ\)\?\>,'
|
||||
\ .. '^\s*\.WHILE\>:^\s*\.ENDW\>,'
|
||||
\ .. '^\s*IF\(1\|2\|E\|DEF\|NDEF\|B\|NB\|IDNI\?\|DIFI\?\)\?\>:^\s*ELSEIF\(1\|2\|E\|DEF\|NDEF\|B\|NB\|IDNI\?\|DIFI\?\)\?\>:^\s*ELSE\>:^\s*ENDIF\>,'
|
||||
\ .. '\(\<MACRO\>\|^\s*%\?\s*FORC\?\>\|^\s*REPEAT\>\|^\s*WHILE\):^\s*ENDM\>,'
|
||||
\ .. '\<PROC\>:\<ENDP\>,'
|
||||
\ .. '\<SEGMENT\>:\<ENDS\>'
|
||||
let b:match_ignorecase = 1
|
||||
let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
|
||||
endif
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim ftplugin file
|
||||
" Language: Reva Forth
|
||||
" Version: 7.1
|
||||
" Last Change: 2008/01/11
|
||||
" Last Change: 2022 Apr 27
|
||||
" Maintainer: Ron Aaron <ron@ronware.org>
|
||||
" URL: http://ronware.org/reva/
|
||||
" Filetypes: *.rf *.frt
|
||||
@@ -23,3 +23,5 @@ setlocal com=s1:/*,mb:*,ex:*/,:\|,:\\
|
||||
setlocal fo=tcrqol
|
||||
setlocal matchpairs+=\::;
|
||||
setlocal iskeyword=!,@,33-35,%,$,38-64,A-Z,91-96,a-z,123-126,128-255
|
||||
|
||||
let b:undo_ftplugin = "setlocal sts< sw< com< fo< mps< isk<"
|
||||
|
||||
@@ -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
|
||||
@@ -1,18 +1,18 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: xslt
|
||||
"
|
||||
" This runtime file is looking for a new maintainer.
|
||||
"
|
||||
" Former maintainer: Dan Sharp
|
||||
" Last Changed: 20 Jan 2009
|
||||
" Language: XSLT
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Previous Maintainer: Dan Sharp
|
||||
" Last Change: 2022 Apr 25
|
||||
|
||||
if exists("b:did_ftplugin") | finish | endif
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim
|
||||
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
" Change the :browse e filter to primarily show xsd-related files.
|
||||
if has("gui_win32") && exists("b:browsefilter")
|
||||
let b:browsefilter="XSLT Files (*.xsl,*.xslt)\t*.xsl;*.xslt\n" . b:browsefilter
|
||||
if (has("gui_win32") || has("gui_gtk")) && exists("b:browsefilter")
|
||||
let b:browsefilter = "XSLT Files (*.xsl,*.xslt)\t*.xsl;*.xslt\n" . b:browsefilter
|
||||
endif
|
||||
|
||||
@@ -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
|
||||
|
||||
27
runtime/import/dist/vimhelp.vim
vendored
Normal file
27
runtime/import/dist/vimhelp.vim
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
vim9script
|
||||
|
||||
# Extra functionality for displaying Vim help .
|
||||
|
||||
# Called when editing the doc/syntax.txt file
|
||||
export def HighlightGroups()
|
||||
var buf: number = bufnr('%')
|
||||
var lnum: number = search('\*highlight-groups\*', 'cn')
|
||||
while getline(lnum) !~ '===' && lnum < line('$')
|
||||
var word: string = getline(lnum)->matchstr('^\w\+\ze\t')
|
||||
if word->hlexists()
|
||||
var name = 'help-hl-' .. word
|
||||
if prop_type_list({bufnr: buf})->match(name) == -1
|
||||
prop_type_add('help-hl-' .. word, {
|
||||
bufnr: buf,
|
||||
highlight: word,
|
||||
combine: false,
|
||||
})
|
||||
else
|
||||
# was called before, delete existing properties
|
||||
prop_remove({type: name, bufnr: buf})
|
||||
endif
|
||||
prop_add(lnum, 1, {length: word->strlen(), type: 'help-hl-' .. word})
|
||||
endif
|
||||
++lnum
|
||||
endwhile
|
||||
enddef
|
||||
12
runtime/indent/fennel.vim
Normal file
12
runtime/indent/fennel.vim
Normal file
@@ -0,0 +1,12 @@
|
||||
" Vim indent file
|
||||
" Language: Fennel
|
||||
" Maintainer: Gregory Anders <greg[NOSPAM]@gpanders.com>
|
||||
" Last Change: 2022 Apr 20
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Use the Lisp indenting
|
||||
runtime! indent/lisp.vim
|
||||
@@ -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
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
" Language: PoV-Ray Scene Description Language
|
||||
" Maintainer: David Necas (Yeti) <yeti@physics.muni.cz>
|
||||
" Last Change: 2017 Jun 13
|
||||
" 2022 April: b:undo_indent added by Doug Kearns
|
||||
" URI: http://trific.ath.cx/Ftp/vim/indent/pov.vim
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
@@ -16,6 +17,8 @@ setlocal nolisp " Make sure lisp indenting doesn't supersede us.
|
||||
setlocal indentexpr=GetPoVRayIndent()
|
||||
setlocal indentkeys+==else,=end,0]
|
||||
|
||||
let b:undo_indent = "setl inde< indk< lisp<"
|
||||
|
||||
" Only define the function once.
|
||||
if exists("*GetPoVRayIndent")
|
||||
finish
|
||||
|
||||
@@ -14,6 +14,7 @@ map: val
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
map: multiline
|
||||
value
|
||||
map: |
|
||||
line1
|
||||
line2
|
||||
# END_INDENT
|
||||
|
||||
@@ -14,6 +14,7 @@ map: val
|
||||
# END_INDENT
|
||||
|
||||
# START_INDENT
|
||||
map: multiline
|
||||
value
|
||||
map: |
|
||||
line1
|
||||
line2
|
||||
# END_INDENT
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: tf (TinyFugue)
|
||||
" Maintainer: Christian J. Robinson <heptite@gmail.com>
|
||||
" URL: http://www.vim.org/scripts/script.php?script_id=174
|
||||
" Last Change: 2017 Feb 25
|
||||
" Last Change: 2022 Apr 25
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -14,6 +14,8 @@ setlocal indentexpr=GetTFIndent()
|
||||
setlocal indentkeys-=0{,0} indentkeys-=0# indentkeys-=:
|
||||
setlocal indentkeys+==/endif,=/then,=/else,=/done,0;
|
||||
|
||||
let b:undo_indent = "setlocal indentexpr< indentkeys<"
|
||||
|
||||
" Only define the function once:
|
||||
if exists("*GetTFIndent")
|
||||
finish
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
"Description: Indent scheme for the tilde weblanguage
|
||||
"Author: Tobias Rundström <tobi@tobi.nu>
|
||||
"Author: Tobias Rundström <tobi@tobi.nu> (Invalid email address)
|
||||
"URL: http://tilde.tildesoftware.net
|
||||
"Last Change: May 8 09:15:09 CEST 2002
|
||||
" 2022 April: b:undo_indent added by Doug Kearns
|
||||
|
||||
if exists ("b:did_indent")
|
||||
finish
|
||||
@@ -13,6 +14,8 @@ setlocal autoindent
|
||||
setlocal indentexpr=GetTildeIndent(v:lnum)
|
||||
setlocal indentkeys=o,O,)
|
||||
|
||||
let b:undo_indent = "setl ai< inde< indk<"
|
||||
|
||||
if exists("*GetTildeIndent")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
" Vim indent file
|
||||
" Language: Treetop
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2011-03-14
|
||||
" Language: Treetop
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Last Change: 2022 April 25
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
@@ -12,6 +13,8 @@ setlocal indentexpr=GetTreetopIndent()
|
||||
setlocal indentkeys=0{,0},!^F,o,O,=end
|
||||
setlocal nosmartindent
|
||||
|
||||
let b:undo_indent = "setl inde< indk< si<"
|
||||
|
||||
if exists("*GetTreetopIndent")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
" Vim indent file
|
||||
" Language: XFree86 Configuration File
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2006-12-20
|
||||
" Language: XFree86 Configuration File
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Last Change: 2022 April 25
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
@@ -12,6 +13,8 @@ setlocal indentexpr=GetXF86ConfIndent()
|
||||
setlocal indentkeys=!^F,o,O,=End
|
||||
setlocal nosmartindent
|
||||
|
||||
let b:undo_indent = "setl inde< indk< si<"
|
||||
|
||||
if exists("*GetXF86ConfIndent")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
" Vim indent file
|
||||
" Language: xinetd.conf(5) configuration file
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2006-12-20
|
||||
" Language: xinetd.conf(5) configuration file
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Last Change: 2022 April 25
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
@@ -12,6 +13,8 @@ setlocal indentexpr=GetXinetdIndent()
|
||||
setlocal indentkeys=0{,0},!^F,o,O
|
||||
setlocal nosmartindent
|
||||
|
||||
let b:undo_indent = "setl inde< indk< si<"
|
||||
|
||||
if exists("*GetXinetdIndent")
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
" Vim indent file
|
||||
" Language: YACC input file
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2006-12-20
|
||||
" Language: YACC input file
|
||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Last Change: 2022 April 25
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -14,6 +15,8 @@ setlocal indentexpr=GetYaccIndent()
|
||||
setlocal indentkeys=!^F,o,O
|
||||
setlocal nosmartindent
|
||||
|
||||
let b:undo_indent = "setl inde< indk< si<"
|
||||
|
||||
" Only define the function once.
|
||||
if exists("*GetYaccIndent")
|
||||
finish
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
" Maintainer: David Necas (Yeti) <yeti@physics.muni.cz>
|
||||
" License: This file can be redistribued and/or modified under the same terms
|
||||
" as Vim itself.
|
||||
" Last Change: 2020 Oct 07
|
||||
" Last Change: 2022 Apr 25
|
||||
" Notes: Last synced with apache-2.2.3, version 1.x is no longer supported
|
||||
" TODO: see particular FIXME's scattered through the file
|
||||
" make it really linewise?
|
||||
@@ -46,6 +46,7 @@ syn keyword apacheMethodOption GET POST PUT DELETE CONNECT OPTIONS TRACE PATCH P
|
||||
syn keyword apacheMethodOption BASELINE-CONTROL CHECKIN CHECKOUT LABEL MERGE MKACTIVITY MKWORKSPACE REPORT UNCHECKOUT UPDATE VERSION-CONTROL contained
|
||||
syn case ignore
|
||||
syn match apacheSection "<\/\=\(Directory\|DirectoryMatch\|Files\|FilesMatch\|IfModule\|IfDefine\|Location\|LocationMatch\|VirtualHost\)[^>]*>" contains=apacheAnything
|
||||
syn match apacheSection "<\/\=\(RequireAll\|RequireAny\|RequireNone\)>" contains=apacheAnything
|
||||
syn match apacheLimitSection "<\/\=\(Limit\|LimitExcept\)[^>]*>" contains=apacheLimitSectionKeyword,apacheMethodOption,apacheError
|
||||
syn keyword apacheLimitSectionKeyword Limit LimitExcept contained
|
||||
syn match apacheAuthType "AuthType\s.*$" contains=apacheAuthTypeValue
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: C
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2022 Mar 17
|
||||
" Last Change: 2022 Apr 24
|
||||
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -11,7 +11,7 @@ endif
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
let s:ft = matchstr(&ft, '^\([^.]\)\+')
|
||||
let s:ft = matchstr(&ft, '^\%([^.]\)\+')
|
||||
|
||||
" check if this was included from cpp.vim
|
||||
let s:in_cpp_family = exists("b:filetype_in_cpp_family")
|
||||
@@ -42,17 +42,17 @@ syn cluster cCommentGroup contains=cTodo,cBadContinuation
|
||||
|
||||
" String and Character constants
|
||||
" Highlight special characters (those which have a backslash) differently
|
||||
syn match cSpecial display contained "\\\(x\x\+\|\o\{1,3}\|.\|$\)"
|
||||
syn match cSpecial display contained "\\\%(x\x\+\|\o\{1,3}\|.\|$\)"
|
||||
if !exists("c_no_utf")
|
||||
syn match cSpecial display contained "\\\(u\x\{4}\|U\x\{8}\)"
|
||||
syn match cSpecial display contained "\\\%(u\x\{4}\|U\x\{8}\)"
|
||||
endif
|
||||
|
||||
if !exists("c_no_cformat")
|
||||
" Highlight % items in strings.
|
||||
if !exists("c_no_c99") " ISO C99
|
||||
syn match cFormat display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlLjzt]\|ll\|hh\)\=\([aAbdiuoxXDOUfFeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained
|
||||
syn match cFormat display "%\%(\d\+\$\)\=[-+' #0*]*\%(\d*\|\*\|\*\d\+\$\)\%(\.\%(\d*\|\*\|\*\d\+\$\)\)\=\%([hlLjzt]\|ll\|hh\)\=\%([aAbdiuoxXDOUfFeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained
|
||||
else
|
||||
syn match cFormat display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlL]\|ll\)\=\([bdiuoxXDOUfeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained
|
||||
syn match cFormat display "%\%(\d\+\$\)\=[-+' #0*]*\%(\d*\|\*\|\*\d\+\$\)\%(\.\%(\d*\|\*\|\*\d\+\$\)\)\=\%([hlL]\|ll\)\=\%([bdiuoxXDOUfeEgGcCsSpn]\|\[\^\=.[^]]*\]\)" contained
|
||||
endif
|
||||
syn match cFormat display "%%" contained
|
||||
endif
|
||||
@@ -60,8 +60,8 @@ endif
|
||||
" cCppString: same as cString, but ends at end of line
|
||||
if s:in_cpp_family && !exists("cpp_no_cpp11") && !exists("c_no_cformat")
|
||||
" ISO C++11
|
||||
syn region cString start=+\(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||
syn region cCppString start=+\(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
||||
syn region cString start=+\%(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||
syn region cCppString start=+\%(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
||||
elseif s:ft ==# "c" && !exists("c_no_c11") && !exists("c_no_cformat")
|
||||
" ISO C99
|
||||
syn region cString start=+\%(L\|U\|u8\)\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||
@@ -73,7 +73,7 @@ else
|
||||
syn region cCppString start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
||||
endif
|
||||
|
||||
syn region cCppSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppSkip
|
||||
syn region cCppSkip contained start="^\s*\%(%:\|#\)\s*\%(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\%(%:\|#\)\s*endif\>" contains=cSpaceError,cCppSkip
|
||||
|
||||
syn cluster cStringGroup contains=cCppString,cCppSkip
|
||||
|
||||
@@ -190,16 +190,16 @@ syn case ignore
|
||||
syn match cNumbers display transparent "\<\d\|\.\d" contains=cNumber,cFloat,cOctalError,cOctal
|
||||
" Same, but without octal error (for comments)
|
||||
syn match cNumbersCom display contained transparent "\<\d\|\.\d" contains=cNumber,cFloat,cOctal
|
||||
syn match cNumber display contained "\d\+\(u\=l\{0,2}\|ll\=u\)\>"
|
||||
syn match cNumber display contained "\d\+\%(u\=l\{0,2}\|ll\=u\)\>"
|
||||
"hex number
|
||||
syn match cNumber display contained "0x\x\+\(u\=l\{0,2}\|ll\=u\)\>"
|
||||
syn match cNumber display contained "0x\x\+\%(u\=l\{0,2}\|ll\=u\)\>"
|
||||
" Flag the first zero of an octal number as something special
|
||||
syn match cOctal display contained "0\o\+\(u\=l\{0,2}\|ll\=u\)\>" contains=cOctalZero
|
||||
syn match cOctal display contained "0\o\+\%(u\=l\{0,2}\|ll\=u\)\>" contains=cOctalZero
|
||||
syn match cOctalZero display contained "\<0"
|
||||
"floating point number, with dot, optional exponent
|
||||
syn match cFloat display contained "\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\="
|
||||
syn match cFloat display contained "\d\+\.\d*\%(e[-+]\=\d\+\)\=[fl]\="
|
||||
"floating point number, starting with a dot, optional exponent
|
||||
syn match cFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
|
||||
syn match cFloat display contained "\.\d\+\%(e[-+]\=\d\+\)\=[fl]\=\>"
|
||||
"floating point number, without dot, with exponent
|
||||
syn match cFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>"
|
||||
if !exists("c_no_c99")
|
||||
@@ -219,7 +219,7 @@ if exists("c_comment_strings")
|
||||
" need to use a special type of cString: cCommentString, which also ends on
|
||||
" "*/", and sees a "*" at the start of the line as comment again.
|
||||
" Unfortunately this doesn't very well work for // type of comments :-(
|
||||
syn match cCommentSkip contained "^\s*\*\($\|\s\+\)"
|
||||
syn match cCommentSkip contained "^\s*\*\%($\|\s\+\)"
|
||||
syn region cCommentString contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end=+\*/+me=s-1 contains=cSpecial,cCommentSkip
|
||||
syn region cComment2String contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end="$" contains=cSpecial
|
||||
syn region cCommentL start="//" skip="\\$" end="$" keepend contains=@cCommentGroup,cComment2String,cCharacter,cNumbersCom,cSpaceError,cWrongComTail,@Spell
|
||||
@@ -376,36 +376,36 @@ if !exists("c_no_c99") " ISO C99
|
||||
endif
|
||||
|
||||
" Accept %: for # (C99)
|
||||
syn region cPreCondit start="^\s*\zs\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" keepend contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError
|
||||
syn match cPreConditMatch display "^\s*\zs\(%:\|#\)\s*\(else\|endif\)\>"
|
||||
syn region cPreCondit start="^\s*\zs\%(%:\|#\)\s*\%(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" keepend contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError
|
||||
syn match cPreConditMatch display "^\s*\zs\%(%:\|#\)\s*\%(else\|endif\)\>"
|
||||
if !exists("c_no_if0")
|
||||
syn cluster cCppOutInGroup contains=cCppInIf,cCppInElse,cCppInElse2,cCppOutIf,cCppOutIf2,cCppOutElse,cCppInSkip,cCppOutSkip
|
||||
syn region cCppOutWrapper start="^\s*\zs\(%:\|#\)\s*if\s\+0\+\s*\($\|//\|/\*\|&\)" end=".\@=\|$" contains=cCppOutIf,cCppOutElse,@NoSpell fold
|
||||
syn region cCppOutIf contained start="0\+" matchgroup=cCppOutWrapper end="^\s*\(%:\|#\)\s*endif\>" contains=cCppOutIf2,cCppOutElse
|
||||
syn region cCppOutWrapper start="^\s*\zs\%(%:\|#\)\s*if\s\+0\+\s*\%($\|//\|/\*\|&\)" end=".\@=\|$" contains=cCppOutIf,cCppOutElse,@NoSpell fold
|
||||
syn region cCppOutIf contained start="0\+" matchgroup=cCppOutWrapper end="^\s*\%(%:\|#\)\s*endif\>" contains=cCppOutIf2,cCppOutElse
|
||||
if !exists("c_no_if0_fold")
|
||||
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0\+\s*\($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell fold
|
||||
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\%(%:\|#\)\s*\%(else\>\|elif\s\+\%(0\+\s*\%($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell fold
|
||||
else
|
||||
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0\+\s*\($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell
|
||||
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\%(%:\|#\)\s*\%(else\>\|elif\s\+\%(0\+\s*\%($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell
|
||||
endif
|
||||
syn region cCppOutElse contained matchgroup=cCppOutWrapper start="^\s*\(%:\|#\)\s*\(else\|elif\)" end="^\s*\(%:\|#\)\s*endif\>"me=s-1 contains=TOP,cPreCondit
|
||||
syn region cCppInWrapper start="^\s*\zs\(%:\|#\)\s*if\s\+0*[1-9]\d*\s*\($\|//\|/\*\||\)" end=".\@=\|$" contains=cCppInIf,cCppInElse fold
|
||||
syn region cCppInIf contained matchgroup=cCppInWrapper start="\d\+" end="^\s*\(%:\|#\)\s*endif\>" contains=TOP,cPreCondit
|
||||
syn region cCppOutElse contained matchgroup=cCppOutWrapper start="^\s*\%(%:\|#\)\s*\%(else\|elif\)" end="^\s*\%(%:\|#\)\s*endif\>"me=s-1 contains=TOP,cPreCondit
|
||||
syn region cCppInWrapper start="^\s*\zs\%(%:\|#\)\s*if\s\+0*[1-9]\d*\s*\%($\|//\|/\*\||\)" end=".\@=\|$" contains=cCppInIf,cCppInElse fold
|
||||
syn region cCppInIf contained matchgroup=cCppInWrapper start="\d\+" end="^\s*\%(%:\|#\)\s*endif\>" contains=TOP,cPreCondit
|
||||
if !exists("c_no_if0_fold")
|
||||
syn region cCppInElse contained start="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0*[1-9]\d*\s*\($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2 fold
|
||||
syn region cCppInElse contained start="^\s*\%(%:\|#\)\s*\%(else\>\|elif\s\+\%(0*[1-9]\d*\s*\%($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2 fold
|
||||
else
|
||||
syn region cCppInElse contained start="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0*[1-9]\d*\s*\($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2
|
||||
syn region cCppInElse contained start="^\s*\%(%:\|#\)\s*\%(else\>\|elif\s\+\%(0*[1-9]\d*\s*\%($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2
|
||||
endif
|
||||
syn region cCppInElse2 contained matchgroup=cCppInWrapper start="^\s*\(%:\|#\)\s*\(else\|elif\)\([^/]\|/[^/*]\)*" end="^\s*\(%:\|#\)\s*endif\>"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell
|
||||
syn region cCppOutSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppOutSkip
|
||||
syn region cCppInSkip contained matchgroup=cCppInWrapper start="^\s*\(%:\|#\)\s*\(if\s\+\(\d\+\s*\($\|//\|/\*\||\|&\)\)\@!\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" containedin=cCppOutElse,cCppInIf,cCppInSkip contains=TOP,cPreProc
|
||||
syn region cCppInElse2 contained matchgroup=cCppInWrapper start="^\s*\%(%:\|#\)\s*\%(else\|elif\)\%([^/]\|/[^/*]\)*" end="^\s*\%(%:\|#\)\s*endif\>"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell
|
||||
syn region cCppOutSkip contained start="^\s*\%(%:\|#\)\s*\%(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\%(%:\|#\)\s*endif\>" contains=cSpaceError,cCppOutSkip
|
||||
syn region cCppInSkip contained matchgroup=cCppInWrapper start="^\s*\%(%:\|#\)\s*\%(if\s\+\%(\d\+\s*\%($\|//\|/\*\||\|&\)\)\@!\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\%(%:\|#\)\s*endif\>" containedin=cCppOutElse,cCppInIf,cCppInSkip contains=TOP,cPreProc
|
||||
endif
|
||||
syn region cIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+
|
||||
syn match cIncluded display contained "<[^>]*>"
|
||||
syn match cInclude display "^\s*\zs\(%:\|#\)\s*include\>\s*["<]" contains=cIncluded
|
||||
syn match cInclude display "^\s*\zs\%(%:\|#\)\s*include\>\s*["<]" contains=cIncluded
|
||||
"syn match cLineSkip "\\$"
|
||||
syn cluster cPreProcGroup contains=cPreCondit,cIncluded,cInclude,cDefine,cErrInParen,cErrInBracket,cUserLabel,cSpecial,cOctalZero,cCppOutWrapper,cCppInWrapper,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cString,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cParen,cBracket,cMulti,cBadBlock
|
||||
syn region cDefine start="^\s*\zs\(%:\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
|
||||
syn region cPreProc start="^\s*\zs\(%:\|#\)\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
|
||||
syn region cDefine start="^\s*\zs\%(%:\|#\)\s*\%(define\|undef\)\>" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
|
||||
syn region cPreProc start="^\s*\zs\%(%:\|#\)\s*\%(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
|
||||
|
||||
" Optional embedded Autodoc parsing
|
||||
if exists("c_autodoc")
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: ChordPro (v. 3.6.2)
|
||||
" Language: ChordPro 6 (https://www.chordpro.org)
|
||||
" Maintainer: Niels Bo Andersen <niels@niboan.dk>
|
||||
" Last Change: 2006 Apr 30
|
||||
" Remark: Requires VIM version 6.00 or greater
|
||||
" Last Change: 2022-04-15
|
||||
|
||||
" Quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -12,54 +11,161 @@ endif
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
setlocal iskeyword+=-
|
||||
|
||||
syn case ignore
|
||||
|
||||
syn keyword chordproDirective contained
|
||||
\ start_of_chorus soc end_of_chorus eoc new_song ns no_grid ng grid g
|
||||
\ new_page np new_physical_page npp start_of_tab sot end_of_tab eot
|
||||
\ column_break colb
|
||||
" Include embedded abc syntax
|
||||
syn include @Abc syntax/abc.vim
|
||||
|
||||
syn keyword chordproDirWithOpt contained
|
||||
\ comment c comment_italic ci comment_box cb title t subtitle st define
|
||||
\ textfont textsize chordfont chordsize columns col
|
||||
" Lilypond and Pango syntaxes could be embedded as well, but they are not
|
||||
" available in the distribution.
|
||||
|
||||
syn keyword chordproDefineKeyword contained base-fret frets
|
||||
" Directives without arguments
|
||||
syn keyword chordproDirective contained nextgroup=chordproConditional
|
||||
\ new_song ns
|
||||
\ start_of_chorus soc
|
||||
\ chorus
|
||||
\ start_of_verse sov
|
||||
\ start_of_bridge sob
|
||||
\ start_of_tab sot
|
||||
\ start_of_grid sog
|
||||
\ start_of_abc
|
||||
\ start_of_ly
|
||||
\ end_of_chorus eoc
|
||||
\ end_of_verse eov
|
||||
\ end_of_bridge eob
|
||||
\ end_of_tab eot
|
||||
\ end_of_grid eog
|
||||
\ end_of_abc
|
||||
\ end_of_ly
|
||||
\ new_page np
|
||||
\ new_physical_page npp
|
||||
\ column_break cb
|
||||
\ grid g
|
||||
\ no_grid ng
|
||||
\ transpose
|
||||
\ chordfont cf chordsize cs chordcolour
|
||||
\ footerfont footersize footercolour
|
||||
\ gridfont gridsize gridcolour
|
||||
\ tabfont tabsize tabcolour
|
||||
\ tocfont tocsize toccolour
|
||||
\ textfont tf textsize ts textcolour
|
||||
\ titlefont titlesize titlecolour
|
||||
|
||||
syn match chordproDirMatch /{\w*}/ contains=chordproDirective contained transparent
|
||||
syn match chordproDirOptMatch /{\w*:/ contains=chordproDirWithOpt contained transparent
|
||||
" Directives with arguments. Some directives are in both groups, as they can
|
||||
" be used both with and without arguments
|
||||
syn keyword chordproDirWithArg contained nextgroup=chordproConditional
|
||||
\ title t
|
||||
\ subtitle st
|
||||
\ sorttitle
|
||||
\ artist
|
||||
\ composer
|
||||
\ lyricist
|
||||
\ arranger
|
||||
\ copyright
|
||||
\ album
|
||||
\ year
|
||||
\ key
|
||||
\ time
|
||||
\ tempo
|
||||
\ duration
|
||||
\ capo
|
||||
\ comment c
|
||||
\ highlight
|
||||
\ comment_italic ci
|
||||
\ comment_box cb
|
||||
\ image
|
||||
\ start_of_chorus soc
|
||||
\ chorus
|
||||
\ start_of_verse sov
|
||||
\ start_of_bridge sob
|
||||
\ start_of_tab sot
|
||||
\ start_of_grid sog
|
||||
\ start_of_abc
|
||||
\ start_of_ly
|
||||
\ define
|
||||
\ chord
|
||||
\ transpose
|
||||
\ chordfont cf chordsize cs chordcolour
|
||||
\ footerfont footersize footercolour
|
||||
\ gridfont gridsize gridcolour
|
||||
\ tabfont tabsize tabcolour
|
||||
\ tocfont tocsize toccolour
|
||||
\ textfont tf textsize ts textcolour
|
||||
\ titlefont titlesize titlecolour
|
||||
\ pagetype
|
||||
\ titles
|
||||
\ columns col
|
||||
|
||||
" Workaround for a bug in VIM 6, which causes incorrect coloring of the first {
|
||||
if version < 700
|
||||
syn region chordproOptions start=/{\w*:/ end=/}/ contains=chordproDirOptMatch contained transparent
|
||||
syn region chordproOptions start=/{define:/ end=/}/ contains=chordproDirOptMatch, chordproDefineKeyword contained transparent
|
||||
else
|
||||
syn region chordproOptions start=/{\w*:/hs=e+1 end=/}/he=s-1 contains=chordproDirOptMatch contained
|
||||
syn region chordproOptions start=/{define:/hs=e+1 end=/}/he=s-1 contains=chordproDirOptMatch, chordproDefineKeyword contained
|
||||
endif
|
||||
syn keyword chordproMetaKeyword contained meta
|
||||
syn keyword chordproMetadata contained title sorttitle subtitle artist composer lyricist arranger copyright album year key time tempo duration capo
|
||||
syn keyword chordproStandardMetadata contained songindex page pages pagerange today tuning instrument user
|
||||
syn match chordproStandardMetadata /instrument\.type/ contained
|
||||
syn match chordproStandardMetadata /instrument\.description/ contained
|
||||
syn match chordproStandardMetadata /user\.name/ contained
|
||||
syn match chordproStandardMetadata /user\.fullname/ contained
|
||||
|
||||
syn region chordproTag start=/{/ end=/}/ contains=chordproDirMatch,chordproOptions oneline
|
||||
syn keyword chordproDefineKeyword contained frets fingers
|
||||
syn match chordproDefineKeyword /base-fret/ contained
|
||||
|
||||
syn match chordproArgumentsNumber /\d\+/ contained
|
||||
|
||||
syn match chordproCustom /x_\w\+/ contained
|
||||
|
||||
syn match chordproDirMatch /{\w\+\(-\w\+\)\?}/ contains=chordproDirective contained transparent
|
||||
syn match chordproDirArgMatch /{\w\+\(-\w\+\)\?[: ]/ contains=chordproDirWithArg contained transparent
|
||||
syn match chordproMetaMatch /{meta\(-\w\+\)\?[: ]\+\w\+/ contains=chordproMetaKeyword,chordproMetadata contained transparent
|
||||
syn match chordproCustomMatch /{x_\w\+\(-\w\+\)\?[: ]/ contains=chordproCustom contained transparent
|
||||
|
||||
syn match chordproConditional /-\w\+/ contained
|
||||
|
||||
syn match chordproMetaDataOperator /[=|]/ contained
|
||||
syn match chordproMetaDataValue /%{\w*/ contains=chordproMetaData,chordproStandardMetadata contained transparent
|
||||
" Handles nested metadata tags, but the end of the containing chordproTag is
|
||||
" not highlighted correctly, if there are more than two levels of nesting
|
||||
syn region chordproMetaDataTag start=/%{\w*/ skip=/%{[^}]*}/ end=/}/ contains=chordproMetaDataValue,chordproMetaDataOperator,chordproMetadataTag contained
|
||||
|
||||
syn region chordproArguments start=/{\w\+\(-\w\+\)\?[: ]/hs=e+1 skip=/%{[^}]*}/ end=/}/he=s-1 contains=chordproDirArgMatch,chordproArgumentsNumber,chordproMetaDataTag contained
|
||||
syn region chordproArguments start=/{\(define\|chord\)\(-\w\+\)\?[: ]/hs=e+1 end=/}/he=s-1 contains=chordproDirArgMatch,chordproDefineKeyword,chordproArgumentsNumber contained
|
||||
syn region chordproArguments start=/{meta\(-\w\+\)\?[: ]/hs=e+1 skip=/%{[^}]*}/ end=/}/he=s-1 contains=chordproMetaMatch,chordproMetaDataTag contained
|
||||
syn region chordproArguments start=/{x_\w\+\(-\w\+\)\?[: ]/hs=e+1 end=/}/he=s-1 contains=chordproCustomMatch contained
|
||||
|
||||
syn region chordproTag start=/{/ skip=/%{[^}]*}/ end=/}/ contains=chordproDirMatch,chordproArguments oneline
|
||||
|
||||
syn region chordproChord matchgroup=chordproBracket start=/\[/ end=/]/ oneline
|
||||
|
||||
syn region chordproTab start=/{start_of_tab}\|{sot}/hs=e+1 end=/{end_of_tab}\|{eot}/he=s-1 contains=chordproTag,chordproComment keepend
|
||||
syn region chordproAnnotation matchgroup=chordproBracket start=/\[\*/ end=/]/ oneline
|
||||
|
||||
syn region chordproChorus start=/{start_of_chorus}\|{soc}/hs=e+1 end=/{end_of_chorus}\|{eoc}/he=s-1 contains=chordproTag,chordproChord,chordproComment keepend
|
||||
syn region chordproTab start=/{start_of_tab\(-\w\+\)\?\([: ].\+\)\?}\|{sot\(-\w\+\)\?\([: ].\+\)\?}/hs=e+1 end=/{end_of_tab}\|{eot}/me=s-1 contains=chordproTag,chordproComment keepend
|
||||
|
||||
syn region chordproChorus start=/{start_of_chorus\(-\w\+\)\?\([: ].\+\)\?}\|{soc\(-\w\+\)\?\([: ].\+\)\?}/hs=e+1 end=/{end_of_chorus}\|{eoc}/me=s-1 contains=chordproTag,chordproChord,chordproAnnotation,chordproComment keepend
|
||||
|
||||
syn region chordproBridge start=/{start_of_bridge\(-\w\+\)\?\([: ].\+\)\?}\|{sob\(-\w\+\)\?\([: ].\+\)\?}/hs=e+1 end=/{end_of_bridge}\|{eob}/me=s-1 contains=chordproTag,chordproChord,chordproAnnotation,chordproComment keepend
|
||||
|
||||
syn region chordproAbc start=/{start_of_abc\(-\w\+\)\?\([: ].\+\)\?}/hs=e+1 end=/{end_of_abc}/me=s-1 contains=chordproTag,@Abc keepend
|
||||
|
||||
syn match chordproComment /^#.*/
|
||||
|
||||
" Define the default highlighting.
|
||||
hi def link chordproDirective Statement
|
||||
hi def link chordproDirWithOpt Statement
|
||||
hi def link chordproOptions Special
|
||||
hi def link chordproDirWithArg Statement
|
||||
hi def link chordproConditional Statement
|
||||
hi def link chordproCustom Statement
|
||||
hi def link chordproMetaKeyword Statement
|
||||
hi def link chordproMetaDataOperator Operator
|
||||
hi def link chordproMetaDataTag Function
|
||||
hi def link chordproArguments Special
|
||||
hi def link chordproArgumentsNumber Number
|
||||
hi def link chordproChord Type
|
||||
hi def link chordproAnnotation Identifier
|
||||
hi def link chordproTag Constant
|
||||
hi def link chordproTab PreProc
|
||||
hi def link chordproComment Comment
|
||||
hi def link chordproBracket Constant
|
||||
hi def link chordproDefineKeyword Type
|
||||
hi def link chordproDefineKeyword Identifier
|
||||
hi def link chordproMetadata Identifier
|
||||
hi def link chordproStandardMetadata Identifier
|
||||
hi def chordproChorus term=bold cterm=bold gui=bold
|
||||
hi def chordproBridge term=italic cterm=italic gui=italic
|
||||
|
||||
let b:current_syntax = "chordpro"
|
||||
|
||||
|
||||
@@ -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 May 05
|
||||
|
||||
" References:
|
||||
" http://i3wm.org/docs/userguide.html#configuring
|
||||
@@ -50,6 +50,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
|
||||
@@ -221,6 +225,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
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user