Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (067a1e974e20076a0d1d9f34060b2086f17bdc10)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (067a1e974e20076a0d1d9f34060b2086f17bdc10)
  • Date: Mon, 15 Sep 2014 20:46:02 -0500

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 4 ++++
editors/vim-csapprox/BUILD | 1 +
editors/vim-csapprox/DEPENDS | 1 +
editors/vim-csapprox/DETAILS | 38 ++++++++++++++++++++++++++++++++++++++
editors/vim-csapprox/HISTORY | 2 ++
editors/vim-csapprox/INSTALL | 3 +++
6 files changed, 49 insertions(+)

New commits:
commit 067a1e974e20076a0d1d9f34060b2086f17bdc10
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

vim-csapprox: new spell, Make gvim-only colorschemes work in terminal

diff --git a/ChangeLog b/ChangeLog
index 0afb8e2..dcb4ae2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-09-15 Ismael Luceno <ismael AT sourcemage.org>
+ * editors/vim-csapprox: new spell, Make gvim-only colorschemes work
+ transparently in terminal vim
+
2014-09-14 Ismael Luceno <ismael AT sourcemage.org>
* shell-term-fm/abduco: new spell, session {at,de}tach support
* shell-term-fm/byobu: new spell, text based window manager and
diff --git a/editors/vim-csapprox/BUILD b/editors/vim-csapprox/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/editors/vim-csapprox/BUILD
@@ -0,0 +1 @@
+true
diff --git a/editors/vim-csapprox/DEPENDS b/editors/vim-csapprox/DEPENDS
new file mode 100755
index 0000000..367c2e1
--- /dev/null
+++ b/editors/vim-csapprox/DEPENDS
@@ -0,0 +1 @@
+depends vim
diff --git a/editors/vim-csapprox/DETAILS b/editors/vim-csapprox/DETAILS
new file mode 100755
index 0000000..0eb50b9
--- /dev/null
+++ b/editors/vim-csapprox/DETAILS
@@ -0,0 +1,38 @@
+ SPELL=vim-csapprox
+ VERSION=4.0
+
SOURCE_HASH=sha512:5ce5534af16c4abfe7fa2fac9ee904162eebd793120efb4e72dcaa2834209b64834b0013a7e929f0a56caf4d1b103fac116c3cf1f9e958afe9c7fcebf7c2ca87
+ SOURCE=$SPELL-$VERSION.zip
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+ SOURCE_URL[0]=http://www.vim.org/scripts/download_script.php?src_id=18594
+ WEB_SITE=http://www.vim.org/scripts/script.php?script_id=2390
+ LICENSE[0]=BSD
+ ENTERED=20140915
+ SHORT="Make gvim-only colorschemes work transparently in terminal
vim"
+cat << EOF
+It's hard to find colorschemes for terminal Vim. Most colorschemes are
written
+to only support GVim, and don't work at all in terminal Vim.
+
+This plugin makes GVim-only colorschemes Just Work in terminal Vim, as long
as
+the terminal supports 88 or 256 colors - and most do these days. This
usually
+requires no user interaction (but see the help for what to do if things don't
+Just Work). After getting this plugin happily installed, any time you use
+:colorscheme it will do its magic and make the colorscheme Just Work.
+
+Whenever you change colorschemes using the :colorscheme command this script
will
+be executed. It will take the colors that the scheme specified for use in
the
+GUI and use an approximation algorithm to try to gracefully degrade them to
the
+closest color available in your terminal. If you are running in a GUI or if
+your terminal doesn't support 88 or 256 colors, no changes are made. Also,
no
+changes will be made if the colorscheme seems to have been high color
already.
+
+If for some reason this transparent method isn't suitable to you (for
instance
+if your environment can't be configured to meet the |csapprox-requirements|,
or
+you need to work in Vim 6), another option is also available: using the
+|:CSApproxSnapshot| command to create a new GUI/88-/256-color terminal
+colorscheme. To use this command, a user would generally start GVim, choose
a
+colorscheme that sets up the desired colors, and then use
|:CSApproxSnapshot| to
+create a new colorscheme based on those colors that works in high color
+terminals. This method is more flexible than the transparent mode and works
in
+more places, but also requires more user intervention, and makes it harder to
+deal with colorschemes being updated and such.
+EOF
diff --git a/editors/vim-csapprox/HISTORY b/editors/vim-csapprox/HISTORY
new file mode 100644
index 0000000..84b95c9
--- /dev/null
+++ b/editors/vim-csapprox/HISTORY
@@ -0,0 +1,2 @@
+2014-09-15 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL: spell created
diff --git a/editors/vim-csapprox/INSTALL b/editors/vim-csapprox/INSTALL
new file mode 100755
index 0000000..0c3d087
--- /dev/null
+++ b/editors/vim-csapprox/INSTALL
@@ -0,0 +1,3 @@
+vimdir="$INSTALL_ROOT/usr/share/vim/vimfiles"
+unzip -d "$vimdir" "$SOURCE_CACHE"/"$SOURCE" &&
+vim -c "helptags $vimdir/doc" -c q



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (067a1e974e20076a0d1d9f34060b2086f17bdc10), Ismael Luceno, 09/15/2014

Archive powered by MHonArc 2.6.24.

Top of Page