All Projects → vim-scripts → Csapprox

vim-scripts / Csapprox

Make gvim-only colorschemes work transparently in terminal vim

Labels

Projects that are alternatives of or similar to Csapprox

Ftcolor.vim
Switches colorschemes according to the file type.
Stars: ✭ 34 (-10.53%)
Mutual labels:  viml
Spink
Syntax highlighting for Xterm/gVim/MacVim.
Stars: ✭ 36 (-5.26%)
Mutual labels:  viml
Vim Opengrok
opengrok interface for vim
Stars: ✭ 37 (-2.63%)
Mutual labels:  viml
Vim Smartusline
Vim plugin that changes the color of the statusbar of the focused window according with the current mode (normal/insert/replace)
Stars: ✭ 34 (-10.53%)
Mutual labels:  viml
Objective Vim
Quickly bootstrap vim for Objective-C hacking
Stars: ✭ 35 (-7.89%)
Mutual labels:  viml
Vim Fontsize
Adjust Gvim font size via keypresses
Stars: ✭ 36 (-5.26%)
Mutual labels:  viml
Cscope maps
cscope keyboard mappings for VIM
Stars: ✭ 33 (-13.16%)
Mutual labels:  viml
Minibufexpl.vim
Elegant buffer explorer - takes very little screen space
Stars: ✭ 991 (+2507.89%)
Mutual labels:  viml
Vim Iawriter
iA Writer vim colorscheme
Stars: ✭ 35 (-7.89%)
Mutual labels:  viml
Snipmate
TextMate-style snippets for Vim
Stars: ✭ 36 (-5.26%)
Mutual labels:  viml
Davesdots
Stars: ✭ 34 (-10.53%)
Mutual labels:  viml
Vim Stylefmt
Format your stylesheets using stylefmt inside Vim
Stars: ✭ 35 (-7.89%)
Mutual labels:  viml
Tmux.vim
Tmux vim syntax
Stars: ✭ 36 (-5.26%)
Mutual labels:  viml
Hasksyn
A vim mode for Haskell
Stars: ✭ 34 (-10.53%)
Mutual labels:  viml
Unite Workflow
unite.vim extentions for convenience similar to alfred-workflow
Stars: ✭ 37 (-2.63%)
Mutual labels:  viml
Tskeleton vim
File Templates and Code Skeletons/Snippets for VIM
Stars: ✭ 33 (-13.16%)
Mutual labels:  viml
Svss.vim
SVSS's Vim Style Sheet
Stars: ✭ 36 (-5.26%)
Mutual labels:  viml
Cobalt2 Vim Theme
Vim port of cobalt2 sublime theme
Stars: ✭ 38 (+0%)
Mutual labels:  viml
Vim Easytags
Automated tag file generation and syntax highlighting of tags in Vim
Stars: ✭ 990 (+2505.26%)
Mutual labels:  viml
Chapa.vim
VIM plugin to move (or visually select) the next/previous class, method or function
Stars: ✭ 36 (-5.26%)
Mutual labels:  viml

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2390

CSApprox.vim

============ DESCRIPTION

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.

====== NOTES

Ideally, this plugin should require absolutely no configuration, but you may need some tweaking to make sure vim realizes that your terminal supports more than 16 colors. Also, konsole and Eterm users will want to make sure that this plugin realizes that the terminal does not use colors that are exactly xterm-compatible; they will want to skim through the help articles |csapprox-palettes| and |csapprox-configuration| for a better end result.

============== SCREENSHOTS

Some quick side-by-side screenshots can be found at http://www.cs.drexel.edu/~mjw452/CSApprox/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].