From e5dfb045b994e1ab8fef9ef5d3f02ce20ea6b685 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Dec 2021 16:55:42 -0500 Subject: many more renames --- dot_vim/README.csupport | 188 + dot_vim/autoload/haskellmode.vim | 155 + dot_vim/autoload/pythoncomplete.vim | 1 + dot_vim/c-support/codesnippets/Makefile | 178 + .../codesnippets/Makefile.multi-target.template | 70 + .../c-support/codesnippets/calloc_double_matrix.c | 36 + dot_vim/c-support/codesnippets/calloc_int_matrix.c | 35 + dot_vim/c-support/codesnippets/main.c | 20 + dot_vim/c-support/codesnippets/main.cc | 18 + .../codesnippets/print_double_array.c.noindent | 30 + .../codesnippets/print_int_array.c.noindent | 30 + dot_vim/c-support/doc/ChangeLog | 304 ++ dot_vim/c-support/doc/c-hotkeys.pdf | Bin 0 -> 48296 bytes dot_vim/c-support/rc/customization.ctags | 7 + dot_vim/c-support/rc/customization.gvimrc | 44 + dot_vim/c-support/rc/customization.indent.pro | 8 + dot_vim/c-support/rc/customization.vimrc | 149 + dot_vim/c-support/scripts/wrapper.sh | 34 + dot_vim/c-support/syntax/c.vim | 21 + dot_vim/c-support/templates/Templates | 26 + dot_vim/c-support/templates/c.comments.template | 147 + dot_vim/c-support/templates/c.cpp.template | 353 ++ dot_vim/c-support/templates/c.idioms.template | 98 + .../c-support/templates/c.preprocessor.template | 34 + dot_vim/c-support/templates/c.statements.template | 62 + dot_vim/c-support/templates/cpp.comments.template | 139 + dot_vim/c-support/templates/cpp.cpp.template | 329 ++ dot_vim/c-support/templates/cpp.idioms.template | 98 + .../c-support/templates/cpp.preprocessor.template | 34 + .../c-support/templates/cpp.statements.template | 62 + dot_vim/c-support/wordlists/c-c++-keywords.list | 209 + dot_vim/c-support/wordlists/k+r.list | 108 + dot_vim/c-support/wordlists/stl_index.list | 202 + dot_vim/colors/adam.vim | 48 + dot_vim/colors/adaryn.vim | 72 + dot_vim/colors/adrian.vim | 97 + dot_vim/colors/af.vim | 99 + dot_vim/colors/aiseered.vim | 37 + dot_vim/colors/aqua.vim | 44 + dot_vim/colors/astronaut.vim | 160 + dot_vim/colors/asu1dark.vim | 59 + dot_vim/colors/automation.vim | 59 + dot_vim/colors/autumn.vim | 69 + dot_vim/colors/autumn2.vim | 69 + dot_vim/colors/autumnleaf.vim | 154 + dot_vim/colors/billw.vim | 99 + dot_vim/colors/biogoo.vim | 85 + dot_vim/colors/black_angus.vim | 115 + dot_vim/colors/blackbeauty.vim | 66 + dot_vim/colors/blackdust.vim | 62 + dot_vim/colors/blacksea.vim | 32 + dot_vim/colors/blue.vim | 41 + dot_vim/colors/bluegreen.vim | 52 + dot_vim/colors/blugrine.vim | 42 + dot_vim/colors/bmichaelsen.vim | 55 + dot_vim/colors/bog.vim | 87 + dot_vim/colors/borland.vim | 60 + dot_vim/colors/breeze.vim | 70 + dot_vim/colors/brookstream.vim | 83 + dot_vim/colors/brown.vim | 32 + dot_vim/colors/buttercream.vim | 59 + dot_vim/colors/bw.vim | 55 + dot_vim/colors/c.vim | 32 + dot_vim/colors/camo.vim | 76 + dot_vim/colors/campfire.vim | 57 + dot_vim/colors/candy.vim | 78 + dot_vim/colors/caramel.vim | 67 + dot_vim/colors/chela_light.vim | 89 + dot_vim/colors/chocolateliquor.vim | 34 + dot_vim/colors/cleanphp.vim | 81 + dot_vim/colors/coffee.vim | 60 + dot_vim/colors/colorer.vim | 79 + dot_vim/colors/cool.vim | 82 + dot_vim/colors/dante.vim | 83 + dot_vim/colors/darkblack.vim | 60 + dot_vim/colors/darkblue2.vim | 99 + dot_vim/colors/darkdot.vim | 80 + dot_vim/colors/darkocean.vim | 52 + dot_vim/colors/darkslategray.vim | 117 + dot_vim/colors/dawn.vim | 65 + dot_vim/colors/delek.vim | 57 + dot_vim/colors/denim.vim | 141 + dot_vim/colors/desert.vim | 105 + dot_vim/colors/dusk.vim | 64 + dot_vim/colors/earth.vim | 69 + dot_vim/colors/edo_sea.vim | 69 + dot_vim/colors/emacs.vim | 63 + dot_vim/colors/fine_blue.vim | 71 + dot_vim/colors/fnaqevan.vim | 67 + dot_vim/colors/fog.vim | 170 + dot_vim/colors/fruit.vim | 69 + dot_vim/colors/gobo.vim | 27 + dot_vim/colors/golden.vim | 70 + dot_vim/colors/gor.vim | 47 + dot_vim/colors/gothic.vim | 42 + dot_vim/colors/greyblue.vim | 75 + dot_vim/colors/hhazure.vim | 83 + dot_vim/colors/hhdblue.vim | 233 + dot_vim/colors/hhdcyan.vim | 233 + dot_vim/colors/hhdgray.vim | 233 + dot_vim/colors/hhdgreen.vim | 233 + dot_vim/colors/hhdmagenta.vim | 233 + dot_vim/colors/hhdred.vim | 234 + dot_vim/colors/hhdyellow.vim | 235 + dot_vim/colors/hhorange.vim | 82 + dot_vim/colors/hhpink.vim | 85 + dot_vim/colors/hhspring.vim | 83 + dot_vim/colors/hhteal.vim | 83 + dot_vim/colors/hhviolet.vim | 83 + dot_vim/colors/ibmedit.vim | 60 + dot_vim/colors/inkpot.vim | 138 + dot_vim/colors/ironman.vim | 80 + dot_vim/colors/jhdark.vim | 72 + dot_vim/colors/jhlight.vim | 80 + dot_vim/colors/less.vim | 54 + dot_vim/colors/lilac.vim | 75 + dot_vim/colors/lingodirector.vim | 44 + dot_vim/colors/manxome.vim | 47 + dot_vim/colors/mars.vim | 142 + dot_vim/colors/matrix.vim | 80 + dot_vim/colors/metacosm.vim | 132 + dot_vim/colors/midnight.vim | 80 + dot_vim/colors/midnight2.vim | 86 + dot_vim/colors/mod_tcsoft.vim | 68 + dot_vim/colors/navajo-night.vim | 119 + dot_vim/colors/navajo.vim | 65 + dot_vim/colors/nedit.vim | 26 + dot_vim/colors/nedit2.vim | 29 + dot_vim/colors/neon.vim | 70 + dot_vim/colors/night.vim | 70 + dot_vim/colors/nightshimmer.vim | 111 + dot_vim/colors/nightwish.vim | 59 + dot_vim/colors/northsky.vim | 70 + dot_vim/colors/nuvola.vim | 107 + dot_vim/colors/oceanblack.vim | 115 + dot_vim/colors/oceandeep.vim | 111 + dot_vim/colors/oceanlight.vim | 105 + dot_vim/colors/olive.vim | 119 + dot_vim/colors/papayawhip.vim | 31 + dot_vim/colors/potts.vim | 53 + dot_vim/colors/print_bw.vim | 65 + dot_vim/colors/ps_color.vim | 400 ++ dot_vim/colors/putty.vim | 82 + dot_vim/colors/python.vim | 104 + dot_vim/colors/redblack.vim | 62 + dot_vim/colors/relaxedgreen.vim | 114 + dot_vim/colors/reloaded.vim | 856 ++++ dot_vim/colors/revolutions.vim | 75 + dot_vim/colors/robinhood.vim | 99 + dot_vim/colors/sand.vim | 30 + dot_vim/colors/scite.vim | 48 + dot_vim/colors/sea.vim | 69 + dot_vim/colors/sean.vim | 83 + dot_vim/colors/seashell.vim | 32 + dot_vim/colors/sf.vim | 76 + dot_vim/colors/simpleandfriendly.vim | 56 + dot_vim/colors/taqua.vim | 85 + dot_vim/colors/tcsoft.vim | 62 + dot_vim/colors/tibet.vim | 101 + dot_vim/colors/tolerable.vim | 43 + dot_vim/colors/tomatosoup.vim | 80 + dot_vim/colors/toothpik.vim | 45 + dot_vim/colors/torte.vim | 51 + dot_vim/colors/transparent.vim | 97 + dot_vim/colors/turbo.vim | 68 + dot_vim/colors/umber-green.vim | 89 + dot_vim/colors/vc.vim | 24 + dot_vim/colors/vcbc.vim | 31 + dot_vim/colors/white.vim | 62 + dot_vim/colors/whitedust.vim | 62 + dot_vim/colors/wintersday.vim | 60 + dot_vim/colors/wombat.vim | 51 + dot_vim/colors/xemacs.vim | 46 + dot_vim/colors/xian.vim | 50 + dot_vim/colors/zenburn.vim | 133 + dot_vim/compiler/ghc.vim | 470 ++ dot_vim/compiler/tex.vim | 293 ++ dot_vim/doc/csupport.txt | 1577 +++++++ dot_vim/doc/haskellmode.txt | 456 ++ dot_vim/doc/imaps.txt | 116 + dot_vim/doc/latex-suite-quickstart.txt | 448 ++ dot_vim/doc/latex-suite.txt | 3418 +++++++++++++++ dot_vim/doc/latexhelp.txt | 2430 +++++++++++ dot_vim/doc/ps_color.txt | 585 +++ dot_vim/doc/taglist.txt | 1501 +++++++ dot_vim/doc/tags | 1138 +++++ dot_vim/filetype.vim | 4 + dot_vim/ftdetect/beluga.vim | 1 + dot_vim/ftplugin/beluga.vim | 1 + dot_vim/ftplugin/bib_latexSuite.vim | 16 + dot_vim/ftplugin/c.vim | 294 ++ dot_vim/ftplugin/cpp.vim | 164 + dot_vim/ftplugin/gpg.vim | 33 + dot_vim/ftplugin/haskell.vim | 13 + dot_vim/ftplugin/haskell_doc.vim | 817 ++++ dot_vim/ftplugin/haskell_hpaste.vim | 79 + dot_vim/ftplugin/latex-suite/bibtex.vim | 266 ++ dot_vim/ftplugin/latex-suite/bibtools.py | 221 + dot_vim/ftplugin/latex-suite/bibtools.pyc | Bin 0 -> 7004 bytes dot_vim/ftplugin/latex-suite/brackets.vim | 145 + dot_vim/ftplugin/latex-suite/compiler.vim | 820 ++++ dot_vim/ftplugin/latex-suite/custommacros.vim | 257 ++ dot_vim/ftplugin/latex-suite/diacritics.vim | 124 + dot_vim/ftplugin/latex-suite/dictionaries/SIunits | 289 ++ .../ftplugin/latex-suite/dictionaries/dictionary | 677 +++ dot_vim/ftplugin/latex-suite/elementmacros.vim | 338 ++ dot_vim/ftplugin/latex-suite/envmacros.vim | 1167 +++++ dot_vim/ftplugin/latex-suite/folding.vim | 393 ++ dot_vim/ftplugin/latex-suite/macros/example | 11 + dot_vim/ftplugin/latex-suite/main.vim | 1024 +++++ dot_vim/ftplugin/latex-suite/mathmacros-utf.vim | 729 ++++ dot_vim/ftplugin/latex-suite/mathmacros.vim | 730 ++++ dot_vim/ftplugin/latex-suite/multicompile.vim | 17 + dot_vim/ftplugin/latex-suite/outline.py | 186 + dot_vim/ftplugin/latex-suite/outline.pyc | Bin 0 -> 4324 bytes dot_vim/ftplugin/latex-suite/packages.vim | 669 +++ dot_vim/ftplugin/latex-suite/packages/SIunits | 315 ++ dot_vim/ftplugin/latex-suite/packages/accents | 28 + dot_vim/ftplugin/latex-suite/packages/acromake | 10 + dot_vim/ftplugin/latex-suite/packages/afterpage | 10 + dot_vim/ftplugin/latex-suite/packages/alltt | 12 + dot_vim/ftplugin/latex-suite/packages/amsmath | 106 + dot_vim/ftplugin/latex-suite/packages/amsthm | 21 + dot_vim/ftplugin/latex-suite/packages/amsxtra | 12 + dot_vim/ftplugin/latex-suite/packages/arabic | 10 + dot_vim/ftplugin/latex-suite/packages/array | 17 + dot_vim/ftplugin/latex-suite/packages/babel | 98 + dot_vim/ftplugin/latex-suite/packages/bar | 27 + dot_vim/ftplugin/latex-suite/packages/bm | 10 + dot_vim/ftplugin/latex-suite/packages/bophook | 12 + .../ftplugin/latex-suite/packages/boxedminipage | 10 + dot_vim/ftplugin/latex-suite/packages/caption2 | 43 + dot_vim/ftplugin/latex-suite/packages/cases | 12 + dot_vim/ftplugin/latex-suite/packages/ccaption | 20 + dot_vim/ftplugin/latex-suite/packages/changebar | 35 + dot_vim/ftplugin/latex-suite/packages/chapterbib | 24 + dot_vim/ftplugin/latex-suite/packages/cite | 32 + dot_vim/ftplugin/latex-suite/packages/color | 43 + dot_vim/ftplugin/latex-suite/packages/comma | 12 + dot_vim/ftplugin/latex-suite/packages/deleq | 36 + dot_vim/ftplugin/latex-suite/packages/drftcite | 29 + dot_vim/ftplugin/latex-suite/packages/dropping | 12 + dot_vim/ftplugin/latex-suite/packages/enumerate | 10 + dot_vim/ftplugin/latex-suite/packages/eqlist | 19 + dot_vim/ftplugin/latex-suite/packages/eqparbox | 12 + dot_vim/ftplugin/latex-suite/packages/everyshi | 10 + dot_vim/ftplugin/latex-suite/packages/exmpl | 55 + dot_vim/ftplugin/latex-suite/packages/flafter | 10 + dot_vim/ftplugin/latex-suite/packages/float | 16 + dot_vim/ftplugin/latex-suite/packages/floatflt | 12 + dot_vim/ftplugin/latex-suite/packages/fn2end | 10 + dot_vim/ftplugin/latex-suite/packages/footmisc | 21 + dot_vim/ftplugin/latex-suite/packages/geometry | 93 + dot_vim/ftplugin/latex-suite/packages/german | 12 + dot_vim/ftplugin/latex-suite/packages/graphicx | 69 + dot_vim/ftplugin/latex-suite/packages/graphpap | 10 + dot_vim/ftplugin/latex-suite/packages/harpoon | 18 + dot_vim/ftplugin/latex-suite/packages/hhline | 21 + dot_vim/ftplugin/latex-suite/packages/histogram | 13 + dot_vim/ftplugin/latex-suite/packages/hyperref | 167 + dot_vim/ftplugin/latex-suite/packages/ifthen | 21 + dot_vim/ftplugin/latex-suite/packages/inputenc | 29 + dot_vim/ftplugin/latex-suite/packages/letterspace | 10 + dot_vim/ftplugin/latex-suite/packages/lineno | 60 + dot_vim/ftplugin/latex-suite/packages/longtable | 35 + dot_vim/ftplugin/latex-suite/packages/lscape | 10 + dot_vim/ftplugin/latex-suite/packages/manyfoot | 15 + dot_vim/ftplugin/latex-suite/packages/moreverb | 28 + dot_vim/ftplugin/latex-suite/packages/multibox | 10 + dot_vim/ftplugin/latex-suite/packages/multicol | 21 + dot_vim/ftplugin/latex-suite/packages/newalg | 26 + dot_vim/ftplugin/latex-suite/packages/ngerman | 10 + dot_vim/ftplugin/latex-suite/packages/numprint | 18 + dot_vim/ftplugin/latex-suite/packages/oldstyle | 12 + dot_vim/ftplugin/latex-suite/packages/outliner | 19 + dot_vim/ftplugin/latex-suite/packages/overcite | 34 + dot_vim/ftplugin/latex-suite/packages/parallel | 15 + dot_vim/ftplugin/latex-suite/packages/plain | 10 + dot_vim/ftplugin/latex-suite/packages/plates | 16 + dot_vim/ftplugin/latex-suite/packages/polski | 165 + dot_vim/ftplugin/latex-suite/packages/psgo | 27 + dot_vim/ftplugin/latex-suite/packages/schedule | 20 + dot_vim/ftplugin/latex-suite/packages/textfit | 12 + dot_vim/ftplugin/latex-suite/packages/times | 10 + dot_vim/ftplugin/latex-suite/packages/tipa | 364 ++ dot_vim/ftplugin/latex-suite/packages/ulem | 21 + dot_vim/ftplugin/latex-suite/packages/url | 24 + dot_vim/ftplugin/latex-suite/packages/verbatim | 18 + dot_vim/ftplugin/latex-suite/packages/version | 12 + dot_vim/ftplugin/latex-suite/projecttemplate.vim | 11 + dot_vim/ftplugin/latex-suite/pytools.py | 52 + dot_vim/ftplugin/latex-suite/smartspace.vim | 102 + dot_vim/ftplugin/latex-suite/templates.vim | 149 + .../ftplugin/latex-suite/templates/IEEEtran.tex | 142 + dot_vim/ftplugin/latex-suite/templates/article.tex | 9 + dot_vim/ftplugin/latex-suite/templates/report.tex | 9 + .../latex-suite/templates/report_two_column.tex | 9 + dot_vim/ftplugin/latex-suite/texmenuconf.vim | 131 + dot_vim/ftplugin/latex-suite/texproject.vim | 54 + dot_vim/ftplugin/latex-suite/texrc | 738 ++++ dot_vim/ftplugin/latex-suite/texviewer.vim | 1052 +++++ dot_vim/ftplugin/latex-suite/version.vim | 30 + dot_vim/ftplugin/latex-suite/wizardfuncs.vim | 377 ++ dot_vim/ftplugin/po.vim | 407 ++ dot_vim/ftplugin/pythoncomplete.vim | 625 +++ dot_vim/ftplugin/tex.vim | 10 + dot_vim/ftplugin/tex_latexSuite.vim | 13 + dot_vim/haskellmode-20081031.vba | 1850 ++++++++ dot_vim/haskellmode-20090424.vba | 2005 +++++++++ dot_vim/indent/indent-r.vim | 50 + dot_vim/indent/tex.vim | 139 + dot_vim/kde-devel-vim.vim | 1029 +++++ dot_vim/ltags | 78 + dot_vim/moin1_6.vim | 83 + dot_vim/plugin/SyntaxFolds.vim | 323 ++ dot_vim/plugin/c.vim | 2678 ++++++++++++ dot_vim/plugin/filebrowser.vim | 251 ++ dot_vim/plugin/gnupg.vim | 1226 ++++++ dot_vim/plugin/imaps.vim | 831 ++++ dot_vim/plugin/libList.vim | 249 ++ dot_vim/plugin/minibufexpl.vim | 1838 ++++++++ dot_vim/plugin/openssl.vim | 201 + dot_vim/plugin/remoteOpen.vim | 163 + dot_vim/plugin/taglist.vim | 4546 ++++++++++++++++++++ dot_vim/syntax/beluga.vim | 121 + dot_vim/syntax/daylog.vim | 60 + dot_vim/syntax/django.vim | 93 + dot_vim/syntax/htmldjango.vim | 34 + dot_vim/syntax/prolog.vim | 119 + dot_vim/syntax/rnc.vim | 59 + dot_vim/syntax/syntax-r.vim | 621 +++ dot_vim/syntax/tex.vim | 1 + 332 files changed, 63041 insertions(+) create mode 100644 dot_vim/README.csupport create mode 100644 dot_vim/autoload/haskellmode.vim create mode 120000 dot_vim/autoload/pythoncomplete.vim create mode 100644 dot_vim/c-support/codesnippets/Makefile create mode 100644 dot_vim/c-support/codesnippets/Makefile.multi-target.template create mode 100644 dot_vim/c-support/codesnippets/calloc_double_matrix.c create mode 100644 dot_vim/c-support/codesnippets/calloc_int_matrix.c create mode 100644 dot_vim/c-support/codesnippets/main.c create mode 100644 dot_vim/c-support/codesnippets/main.cc create mode 100644 dot_vim/c-support/codesnippets/print_double_array.c.noindent create mode 100644 dot_vim/c-support/codesnippets/print_int_array.c.noindent create mode 100644 dot_vim/c-support/doc/ChangeLog create mode 100644 dot_vim/c-support/doc/c-hotkeys.pdf create mode 100644 dot_vim/c-support/rc/customization.ctags create mode 100644 dot_vim/c-support/rc/customization.gvimrc create mode 100644 dot_vim/c-support/rc/customization.indent.pro create mode 100644 dot_vim/c-support/rc/customization.vimrc create mode 100644 dot_vim/c-support/scripts/wrapper.sh create mode 100644 dot_vim/c-support/syntax/c.vim create mode 100644 dot_vim/c-support/templates/Templates create mode 100644 dot_vim/c-support/templates/c.comments.template create mode 100644 dot_vim/c-support/templates/c.cpp.template create mode 100644 dot_vim/c-support/templates/c.idioms.template create mode 100644 dot_vim/c-support/templates/c.preprocessor.template create mode 100644 dot_vim/c-support/templates/c.statements.template create mode 100644 dot_vim/c-support/templates/cpp.comments.template create mode 100644 dot_vim/c-support/templates/cpp.cpp.template create mode 100644 dot_vim/c-support/templates/cpp.idioms.template create mode 100644 dot_vim/c-support/templates/cpp.preprocessor.template create mode 100644 dot_vim/c-support/templates/cpp.statements.template create mode 100644 dot_vim/c-support/wordlists/c-c++-keywords.list create mode 100644 dot_vim/c-support/wordlists/k+r.list create mode 100644 dot_vim/c-support/wordlists/stl_index.list create mode 100644 dot_vim/colors/adam.vim create mode 100644 dot_vim/colors/adaryn.vim create mode 100644 dot_vim/colors/adrian.vim create mode 100644 dot_vim/colors/af.vim create mode 100644 dot_vim/colors/aiseered.vim create mode 100644 dot_vim/colors/aqua.vim create mode 100644 dot_vim/colors/astronaut.vim create mode 100644 dot_vim/colors/asu1dark.vim create mode 100644 dot_vim/colors/automation.vim create mode 100644 dot_vim/colors/autumn.vim create mode 100644 dot_vim/colors/autumn2.vim create mode 100644 dot_vim/colors/autumnleaf.vim create mode 100644 dot_vim/colors/billw.vim create mode 100644 dot_vim/colors/biogoo.vim create mode 100644 dot_vim/colors/black_angus.vim create mode 100644 dot_vim/colors/blackbeauty.vim create mode 100644 dot_vim/colors/blackdust.vim create mode 100644 dot_vim/colors/blacksea.vim create mode 100644 dot_vim/colors/blue.vim create mode 100644 dot_vim/colors/bluegreen.vim create mode 100644 dot_vim/colors/blugrine.vim create mode 100644 dot_vim/colors/bmichaelsen.vim create mode 100644 dot_vim/colors/bog.vim create mode 100644 dot_vim/colors/borland.vim create mode 100644 dot_vim/colors/breeze.vim create mode 100644 dot_vim/colors/brookstream.vim create mode 100644 dot_vim/colors/brown.vim create mode 100644 dot_vim/colors/buttercream.vim create mode 100644 dot_vim/colors/bw.vim create mode 100644 dot_vim/colors/c.vim create mode 100644 dot_vim/colors/camo.vim create mode 100644 dot_vim/colors/campfire.vim create mode 100644 dot_vim/colors/candy.vim create mode 100644 dot_vim/colors/caramel.vim create mode 100644 dot_vim/colors/chela_light.vim create mode 100644 dot_vim/colors/chocolateliquor.vim create mode 100644 dot_vim/colors/cleanphp.vim create mode 100644 dot_vim/colors/coffee.vim create mode 100644 dot_vim/colors/colorer.vim create mode 100644 dot_vim/colors/cool.vim create mode 100644 dot_vim/colors/dante.vim create mode 100644 dot_vim/colors/darkblack.vim create mode 100644 dot_vim/colors/darkblue2.vim create mode 100644 dot_vim/colors/darkdot.vim create mode 100644 dot_vim/colors/darkocean.vim create mode 100644 dot_vim/colors/darkslategray.vim create mode 100644 dot_vim/colors/dawn.vim create mode 100644 dot_vim/colors/delek.vim create mode 100644 dot_vim/colors/denim.vim create mode 100644 dot_vim/colors/desert.vim create mode 100644 dot_vim/colors/dusk.vim create mode 100644 dot_vim/colors/earth.vim create mode 100644 dot_vim/colors/edo_sea.vim create mode 100644 dot_vim/colors/emacs.vim create mode 100644 dot_vim/colors/fine_blue.vim create mode 100644 dot_vim/colors/fnaqevan.vim create mode 100644 dot_vim/colors/fog.vim create mode 100644 dot_vim/colors/fruit.vim create mode 100644 dot_vim/colors/gobo.vim create mode 100644 dot_vim/colors/golden.vim create mode 100644 dot_vim/colors/gor.vim create mode 100644 dot_vim/colors/gothic.vim create mode 100644 dot_vim/colors/greyblue.vim create mode 100644 dot_vim/colors/hhazure.vim create mode 100644 dot_vim/colors/hhdblue.vim create mode 100644 dot_vim/colors/hhdcyan.vim create mode 100644 dot_vim/colors/hhdgray.vim create mode 100644 dot_vim/colors/hhdgreen.vim create mode 100644 dot_vim/colors/hhdmagenta.vim create mode 100644 dot_vim/colors/hhdred.vim create mode 100644 dot_vim/colors/hhdyellow.vim create mode 100644 dot_vim/colors/hhorange.vim create mode 100644 dot_vim/colors/hhpink.vim create mode 100644 dot_vim/colors/hhspring.vim create mode 100644 dot_vim/colors/hhteal.vim create mode 100644 dot_vim/colors/hhviolet.vim create mode 100644 dot_vim/colors/ibmedit.vim create mode 100644 dot_vim/colors/inkpot.vim create mode 100644 dot_vim/colors/ironman.vim create mode 100644 dot_vim/colors/jhdark.vim create mode 100644 dot_vim/colors/jhlight.vim create mode 100644 dot_vim/colors/less.vim create mode 100644 dot_vim/colors/lilac.vim create mode 100644 dot_vim/colors/lingodirector.vim create mode 100644 dot_vim/colors/manxome.vim create mode 100644 dot_vim/colors/mars.vim create mode 100644 dot_vim/colors/matrix.vim create mode 100644 dot_vim/colors/metacosm.vim create mode 100644 dot_vim/colors/midnight.vim create mode 100644 dot_vim/colors/midnight2.vim create mode 100644 dot_vim/colors/mod_tcsoft.vim create mode 100644 dot_vim/colors/navajo-night.vim create mode 100644 dot_vim/colors/navajo.vim create mode 100644 dot_vim/colors/nedit.vim create mode 100644 dot_vim/colors/nedit2.vim create mode 100644 dot_vim/colors/neon.vim create mode 100644 dot_vim/colors/night.vim create mode 100644 dot_vim/colors/nightshimmer.vim create mode 100644 dot_vim/colors/nightwish.vim create mode 100644 dot_vim/colors/northsky.vim create mode 100644 dot_vim/colors/nuvola.vim create mode 100644 dot_vim/colors/oceanblack.vim create mode 100644 dot_vim/colors/oceandeep.vim create mode 100644 dot_vim/colors/oceanlight.vim create mode 100644 dot_vim/colors/olive.vim create mode 100644 dot_vim/colors/papayawhip.vim create mode 100644 dot_vim/colors/potts.vim create mode 100644 dot_vim/colors/print_bw.vim create mode 100644 dot_vim/colors/ps_color.vim create mode 100644 dot_vim/colors/putty.vim create mode 100644 dot_vim/colors/python.vim create mode 100644 dot_vim/colors/redblack.vim create mode 100644 dot_vim/colors/relaxedgreen.vim create mode 100644 dot_vim/colors/reloaded.vim create mode 100644 dot_vim/colors/revolutions.vim create mode 100644 dot_vim/colors/robinhood.vim create mode 100644 dot_vim/colors/sand.vim create mode 100644 dot_vim/colors/scite.vim create mode 100644 dot_vim/colors/sea.vim create mode 100644 dot_vim/colors/sean.vim create mode 100644 dot_vim/colors/seashell.vim create mode 100644 dot_vim/colors/sf.vim create mode 100644 dot_vim/colors/simpleandfriendly.vim create mode 100644 dot_vim/colors/taqua.vim create mode 100644 dot_vim/colors/tcsoft.vim create mode 100644 dot_vim/colors/tibet.vim create mode 100644 dot_vim/colors/tolerable.vim create mode 100644 dot_vim/colors/tomatosoup.vim create mode 100644 dot_vim/colors/toothpik.vim create mode 100644 dot_vim/colors/torte.vim create mode 100644 dot_vim/colors/transparent.vim create mode 100644 dot_vim/colors/turbo.vim create mode 100644 dot_vim/colors/umber-green.vim create mode 100644 dot_vim/colors/vc.vim create mode 100644 dot_vim/colors/vcbc.vim create mode 100644 dot_vim/colors/white.vim create mode 100644 dot_vim/colors/whitedust.vim create mode 100644 dot_vim/colors/wintersday.vim create mode 100644 dot_vim/colors/wombat.vim create mode 100644 dot_vim/colors/xemacs.vim create mode 100644 dot_vim/colors/xian.vim create mode 100644 dot_vim/colors/zenburn.vim create mode 100644 dot_vim/compiler/ghc.vim create mode 100644 dot_vim/compiler/tex.vim create mode 100644 dot_vim/doc/csupport.txt create mode 100644 dot_vim/doc/haskellmode.txt create mode 100644 dot_vim/doc/imaps.txt create mode 100644 dot_vim/doc/latex-suite-quickstart.txt create mode 100644 dot_vim/doc/latex-suite.txt create mode 100644 dot_vim/doc/latexhelp.txt create mode 100644 dot_vim/doc/ps_color.txt create mode 100755 dot_vim/doc/taglist.txt create mode 100644 dot_vim/doc/tags create mode 100644 dot_vim/filetype.vim create mode 100644 dot_vim/ftdetect/beluga.vim create mode 100644 dot_vim/ftplugin/beluga.vim create mode 100644 dot_vim/ftplugin/bib_latexSuite.vim create mode 100644 dot_vim/ftplugin/c.vim create mode 100644 dot_vim/ftplugin/cpp.vim create mode 100644 dot_vim/ftplugin/gpg.vim create mode 100644 dot_vim/ftplugin/haskell.vim create mode 100644 dot_vim/ftplugin/haskell_doc.vim create mode 100644 dot_vim/ftplugin/haskell_hpaste.vim create mode 100644 dot_vim/ftplugin/latex-suite/bibtex.vim create mode 100644 dot_vim/ftplugin/latex-suite/bibtools.py create mode 100644 dot_vim/ftplugin/latex-suite/bibtools.pyc create mode 100644 dot_vim/ftplugin/latex-suite/brackets.vim create mode 100644 dot_vim/ftplugin/latex-suite/compiler.vim create mode 100644 dot_vim/ftplugin/latex-suite/custommacros.vim create mode 100644 dot_vim/ftplugin/latex-suite/diacritics.vim create mode 100644 dot_vim/ftplugin/latex-suite/dictionaries/SIunits create mode 100644 dot_vim/ftplugin/latex-suite/dictionaries/dictionary create mode 100644 dot_vim/ftplugin/latex-suite/elementmacros.vim create mode 100644 dot_vim/ftplugin/latex-suite/envmacros.vim create mode 100644 dot_vim/ftplugin/latex-suite/folding.vim create mode 100644 dot_vim/ftplugin/latex-suite/macros/example create mode 100644 dot_vim/ftplugin/latex-suite/main.vim create mode 100644 dot_vim/ftplugin/latex-suite/mathmacros-utf.vim create mode 100644 dot_vim/ftplugin/latex-suite/mathmacros.vim create mode 100644 dot_vim/ftplugin/latex-suite/multicompile.vim create mode 100644 dot_vim/ftplugin/latex-suite/outline.py create mode 100644 dot_vim/ftplugin/latex-suite/outline.pyc create mode 100644 dot_vim/ftplugin/latex-suite/packages.vim create mode 100644 dot_vim/ftplugin/latex-suite/packages/SIunits create mode 100644 dot_vim/ftplugin/latex-suite/packages/accents create mode 100644 dot_vim/ftplugin/latex-suite/packages/acromake create mode 100644 dot_vim/ftplugin/latex-suite/packages/afterpage create mode 100644 dot_vim/ftplugin/latex-suite/packages/alltt create mode 100644 dot_vim/ftplugin/latex-suite/packages/amsmath create mode 100644 dot_vim/ftplugin/latex-suite/packages/amsthm create mode 100644 dot_vim/ftplugin/latex-suite/packages/amsxtra create mode 100644 dot_vim/ftplugin/latex-suite/packages/arabic create mode 100644 dot_vim/ftplugin/latex-suite/packages/array create mode 100644 dot_vim/ftplugin/latex-suite/packages/babel create mode 100644 dot_vim/ftplugin/latex-suite/packages/bar create mode 100644 dot_vim/ftplugin/latex-suite/packages/bm create mode 100644 dot_vim/ftplugin/latex-suite/packages/bophook create mode 100644 dot_vim/ftplugin/latex-suite/packages/boxedminipage create mode 100644 dot_vim/ftplugin/latex-suite/packages/caption2 create mode 100644 dot_vim/ftplugin/latex-suite/packages/cases create mode 100644 dot_vim/ftplugin/latex-suite/packages/ccaption create mode 100644 dot_vim/ftplugin/latex-suite/packages/changebar create mode 100644 dot_vim/ftplugin/latex-suite/packages/chapterbib create mode 100644 dot_vim/ftplugin/latex-suite/packages/cite create mode 100644 dot_vim/ftplugin/latex-suite/packages/color create mode 100644 dot_vim/ftplugin/latex-suite/packages/comma create mode 100644 dot_vim/ftplugin/latex-suite/packages/deleq create mode 100644 dot_vim/ftplugin/latex-suite/packages/drftcite create mode 100644 dot_vim/ftplugin/latex-suite/packages/dropping create mode 100644 dot_vim/ftplugin/latex-suite/packages/enumerate create mode 100644 dot_vim/ftplugin/latex-suite/packages/eqlist create mode 100644 dot_vim/ftplugin/latex-suite/packages/eqparbox create mode 100644 dot_vim/ftplugin/latex-suite/packages/everyshi create mode 100644 dot_vim/ftplugin/latex-suite/packages/exmpl create mode 100644 dot_vim/ftplugin/latex-suite/packages/flafter create mode 100644 dot_vim/ftplugin/latex-suite/packages/float create mode 100644 dot_vim/ftplugin/latex-suite/packages/floatflt create mode 100644 dot_vim/ftplugin/latex-suite/packages/fn2end create mode 100644 dot_vim/ftplugin/latex-suite/packages/footmisc create mode 100644 dot_vim/ftplugin/latex-suite/packages/geometry create mode 100644 dot_vim/ftplugin/latex-suite/packages/german create mode 100644 dot_vim/ftplugin/latex-suite/packages/graphicx create mode 100644 dot_vim/ftplugin/latex-suite/packages/graphpap create mode 100644 dot_vim/ftplugin/latex-suite/packages/harpoon create mode 100644 dot_vim/ftplugin/latex-suite/packages/hhline create mode 100644 dot_vim/ftplugin/latex-suite/packages/histogram create mode 100644 dot_vim/ftplugin/latex-suite/packages/hyperref create mode 100644 dot_vim/ftplugin/latex-suite/packages/ifthen create mode 100644 dot_vim/ftplugin/latex-suite/packages/inputenc create mode 100644 dot_vim/ftplugin/latex-suite/packages/letterspace create mode 100644 dot_vim/ftplugin/latex-suite/packages/lineno create mode 100644 dot_vim/ftplugin/latex-suite/packages/longtable create mode 100644 dot_vim/ftplugin/latex-suite/packages/lscape create mode 100644 dot_vim/ftplugin/latex-suite/packages/manyfoot create mode 100644 dot_vim/ftplugin/latex-suite/packages/moreverb create mode 100644 dot_vim/ftplugin/latex-suite/packages/multibox create mode 100644 dot_vim/ftplugin/latex-suite/packages/multicol create mode 100644 dot_vim/ftplugin/latex-suite/packages/newalg create mode 100644 dot_vim/ftplugin/latex-suite/packages/ngerman create mode 100644 dot_vim/ftplugin/latex-suite/packages/numprint create mode 100644 dot_vim/ftplugin/latex-suite/packages/oldstyle create mode 100644 dot_vim/ftplugin/latex-suite/packages/outliner create mode 100644 dot_vim/ftplugin/latex-suite/packages/overcite create mode 100644 dot_vim/ftplugin/latex-suite/packages/parallel create mode 100644 dot_vim/ftplugin/latex-suite/packages/plain create mode 100644 dot_vim/ftplugin/latex-suite/packages/plates create mode 100644 dot_vim/ftplugin/latex-suite/packages/polski create mode 100644 dot_vim/ftplugin/latex-suite/packages/psgo create mode 100644 dot_vim/ftplugin/latex-suite/packages/schedule create mode 100644 dot_vim/ftplugin/latex-suite/packages/textfit create mode 100644 dot_vim/ftplugin/latex-suite/packages/times create mode 100644 dot_vim/ftplugin/latex-suite/packages/tipa create mode 100644 dot_vim/ftplugin/latex-suite/packages/ulem create mode 100644 dot_vim/ftplugin/latex-suite/packages/url create mode 100644 dot_vim/ftplugin/latex-suite/packages/verbatim create mode 100644 dot_vim/ftplugin/latex-suite/packages/version create mode 100644 dot_vim/ftplugin/latex-suite/projecttemplate.vim create mode 100644 dot_vim/ftplugin/latex-suite/pytools.py create mode 100644 dot_vim/ftplugin/latex-suite/smartspace.vim create mode 100644 dot_vim/ftplugin/latex-suite/templates.vim create mode 100644 dot_vim/ftplugin/latex-suite/templates/IEEEtran.tex create mode 100644 dot_vim/ftplugin/latex-suite/templates/article.tex create mode 100644 dot_vim/ftplugin/latex-suite/templates/report.tex create mode 100644 dot_vim/ftplugin/latex-suite/templates/report_two_column.tex create mode 100644 dot_vim/ftplugin/latex-suite/texmenuconf.vim create mode 100644 dot_vim/ftplugin/latex-suite/texproject.vim create mode 100644 dot_vim/ftplugin/latex-suite/texrc create mode 100644 dot_vim/ftplugin/latex-suite/texviewer.vim create mode 100644 dot_vim/ftplugin/latex-suite/version.vim create mode 100644 dot_vim/ftplugin/latex-suite/wizardfuncs.vim create mode 100644 dot_vim/ftplugin/po.vim create mode 100644 dot_vim/ftplugin/pythoncomplete.vim create mode 100644 dot_vim/ftplugin/tex.vim create mode 100644 dot_vim/ftplugin/tex_latexSuite.vim create mode 100644 dot_vim/haskellmode-20081031.vba create mode 100644 dot_vim/haskellmode-20090424.vba create mode 100644 dot_vim/indent/indent-r.vim create mode 100644 dot_vim/indent/tex.vim create mode 100644 dot_vim/kde-devel-vim.vim create mode 100644 dot_vim/ltags create mode 100644 dot_vim/moin1_6.vim create mode 100644 dot_vim/plugin/SyntaxFolds.vim create mode 100644 dot_vim/plugin/c.vim create mode 100644 dot_vim/plugin/filebrowser.vim create mode 100644 dot_vim/plugin/gnupg.vim create mode 100644 dot_vim/plugin/imaps.vim create mode 100644 dot_vim/plugin/libList.vim create mode 100644 dot_vim/plugin/minibufexpl.vim create mode 100644 dot_vim/plugin/openssl.vim create mode 100644 dot_vim/plugin/remoteOpen.vim create mode 100644 dot_vim/plugin/taglist.vim create mode 100644 dot_vim/syntax/beluga.vim create mode 100644 dot_vim/syntax/daylog.vim create mode 100644 dot_vim/syntax/django.vim create mode 100644 dot_vim/syntax/htmldjango.vim create mode 100644 dot_vim/syntax/prolog.vim create mode 100644 dot_vim/syntax/rnc.vim create mode 100644 dot_vim/syntax/syntax-r.vim create mode 100644 dot_vim/syntax/tex.vim (limited to 'dot_vim') diff --git a/dot_vim/README.csupport b/dot_vim/README.csupport new file mode 100644 index 0000000..27ca4a9 --- /dev/null +++ b/dot_vim/README.csupport @@ -0,0 +1,188 @@ +README for c.vim (Version 5.0.5) / November 21 2007 + + * DESCRIPTION + * INSTALLATION + * RELEASE NOTES + * FILES + * ADDITIONAL TIPS + * CREDITS + +======================================================================================= + DESCRIPTION +======================================================================================= +C/C++-IDE for Vim/gVim. It is written to considerably speed up writing code in +a consistent style. This is done by inserting complete statements, idioms, +code snippets, templates, and comments. Syntax checking, compiling, running a +program, running indent or code checkers can be done with a keystroke. There +are many additional hints and options which can improve speed and comfort when +writing C/C++. See the help file csupport.txt for more information. + +======================================================================================= + INSTALLATION +======================================================================================= +The subdirectories in the zip archive cvim.zip mirror the directory structure +which is needed below the local installation directory $HOME/.vim/ for LINUX/UNIX +($VIM/vimfiles/ for Windows; find the value of $VIM with ":echo $VIM" from inside Vim). + +(0) Save the template files in '$HOME/.vim/c-support/templates/Templates' if + you have changed any of them. + +(1) Copy the zip archive cvim.zip to $HOME/.vim and run + + unzip cvim.zip + + If you have already an older version of cvim and you have modified the template + files you may want to save your templates first or copy the files from the + archive by hand. + +(2) Loading of plugin files must be enabled. If not use + + :filetype plugin on + + This is the minimal content of the file '$HOME/.vimrc'. Create one if there + is none. + +(3) Set at least some personal details in the file '$HOME/.vim/c-support/templates/Templates' + (file '$VIM\/c-support/templates/Templates' under Windows). + Here is the minimal personalization (my settings as an example, of course): + + |AUTHOR| = Dr. Fritz Mehner + |AUTHORREF| = mn + |EMAIL| = mehner@fh-swf.de + |COMPANY| = FH Südwestfalen, Iserlohn + |COPYRIGHT| = Copyright (c) |YEAR|, |AUTHOR| + + (Read more about the template system in the plugin documentation) + +(4) Consider additional settings in the file '$HOME/.vimrc'. + The files customization.vimrc and customization.gvimrc are replacements or + extensions for your .vimrc and .gvimrc ( _vimrc and _gvimrc under Windows). + You may want to use parts of them. The files are documented. + +There are a lot of features and options which can be used and influenced: + + * use of template files and tags + * surround marked blocks with statements + * using and managing personal code snippets + * generate/remove multiline comments + * picking up prototypes + * C/C++ dictionaries for keyword completion + * (re)moving the root menu + +Restart gVim/Vim generate the help tags + + :helptags ~/.vim/doc + +and look at csupport help with + + :help csupport + +or use the 'help' entry in the root menu of this plug-in. + + +-----------------------------------------------+ + | +-------------------------------------------+ | + | | ** PLEASE READ THE DOCUMENTATION ** | | + | | Actions differ for different modes! | | + | +-------------------------------------------+ | + +-----------------------------------------------+ + +Any problems ? See the TROUBLESHOOTING section at the end of the help file +'doc/csupport.txt'. + +======================================================================================= + RELEASE NOTES FOR VERSION 5.0.5 +======================================================================================= ++ Bugfix: on a few systems doubling of path components in the run command (F9). + Skip this upgrade if you do not have this problem. + + OLDER RELEASE NOTES : see file 'ChangeLog' +======================================================================================= + +======================================================================================= + FILES +======================================================================================= + +README.csupport This file. + +doc/csupport.txt The help file for the local on-line help. + +ftplugin/c.vim A file type plug-in. Define hotkeys, creates a local + dictionary for each C/C++ file. + +plugin/c.vim The C/C++ plug-in for GVIM. + +c-support/scripts/wrapper.sh The wrapper script for the use of an xterm. +c-support/templates/* C-style and C++-style template files (see csupport.txt). + + +c-support/wordlists/c-c++-keywords.list All C and C++ keywords (already in word.list). +c-support/wordlists/k+r.list K&R-Book: Words from the table of content. + They appear frequently in comments. +c-support/wordlists/stl_index.list STL: method and type names. + + +----------------------- ------------------------------------------------------------- + The following files and extensions are for convenience only. + c.vim will work without them. + ------------------------------------------------------------- +c-support/doc/c-hotkeys.pdf Hotkey reference card. +c-support/doc/ChangeLog The change log. + +rc/customization.ctags Additional settings I use in .ctags to enable navigation + through makefiles ans qmake files with the plug-in taglist.vim. + +rc/costumization.gvimrc Additional settings I use in .gvimrc : + hot keys, mouse settings, ... + The file is commented. Append it to your .gvimrc if you like. + +rc/costumization.indent.pro Additional settings I use in .indent.pro : + See the indent manual. + +rc/costumization.vimrc Additional settings I use in .vimrc : incremental search, + tabstop, hot keys, font, use of dictionaries, ... + The file is commented. Append it to your .vimrc if you like. + +======================================================================================= + ADDITIONAL TIPS +======================================================================================= + +(1) gVim. Toggle 'insert mode' <--> 'normal mode' with the right mouse button + (see mapping in file costumization.gvimrc). + +(2) gVim. Use tear off menus. + +(3) Try 'Focus under mouse' as window behavior (No mouse click when the mouse pointer + is back from the menu entry). + +(4) Use Emulate3Buttons "on" (X11) even for a 3-button mouse. Pressing left and right + button at the same time without moving your fingers is faster then moving a finger + to the middle button (often a wheel). + +======================================================================================= + CREDITS +======================================================================================= + + Some ideas are taken from the following documents: + + 1. Recommended C Style and Coding Standards (Indian Hill Style Guide) + www.doc.ic.ac.uk/lab/secondyear/cstyle/cstyle.html + 2. Programming in C++, Ellemtel Telecommunication Systems Laboratories + www.it.bton.ac.uk/burks/burks/language/cpp/cppstyle/ellhome.htm + 3. C++ Coding Standard, Todd Hoff + www.possibility.com/Cpp/CppCodingStandard.html + + The splint error format is taken from the file splint.vim (Vim standard distribution). + +------------------ + + ... finally + + Johann Wolfgang von Goethe (1749-1832), the greatest of the German poets, + about LINUX, Vim/gVim and other great tools (Ok, almost.) : + + Ein Mann, der recht zu wirken denkt, Who on efficient work is bent, + Muß auf das beste Werkzeug halten. Must choose the fittest instrument. + + Faust, Teil 1, Vorspiel auf dem Theater Faust, Part 1, Prologue for the Theatre + +======================================================================================= diff --git a/dot_vim/autoload/haskellmode.vim b/dot_vim/autoload/haskellmode.vim new file mode 100644 index 0000000..ce20a67 --- /dev/null +++ b/dot_vim/autoload/haskellmode.vim @@ -0,0 +1,155 @@ +" +" utility functions for haskellmode plugins +" +" (Claus Reinke; last modified: 23/04/2009) +" +" part of haskell plugins: http://projects.haskell.org/haskellmode-vim +" please send patches to + + + +" find start/extent of name/symbol under cursor; +" return start, symbolic flag, qualifier, unqualified id +" (this is used in both haskell_doc.vim and in GHC.vim) +function! haskellmode#GetNameSymbol(line,col,off) + let name = "[a-zA-Z0-9_']" + let symbol = "[-!#$%&\*\+/<=>\?@\\^|~:.]" + "let [line] = getbufline(a:buf,a:lnum) + let line = a:line + + " find the beginning of unqualified id or qualified id component + let start = (a:col - 1) + a:off + if line[start] =~ name + let pattern = name + elseif line[start] =~ symbol + let pattern = symbol + else + return [] + endif + while start > 0 && line[start - 1] =~ pattern + let start -= 1 + endwhile + let id = matchstr(line[start :],pattern.'*') + " call confirm(id) + + " expand id to left and right, to get full id + let idPos = id[0] == '.' ? start+2 : start+1 + let posA = match(line,'\<\(\([A-Z]'.name.'*\.\)\+\)\%'.idPos.'c') + let start = posA>-1 ? posA+1 : idPos + let posB = matchend(line,'\%'.idPos.'c\(\([A-Z]'.name.'*\.\)*\)\('.name.'\+\|'.symbol.'\+\)') + let end = posB>-1 ? posB : idPos + + " special case: symbolic ids starting with . + if id[0]=='.' && posA==-1 + let start = idPos-1 + let end = posB==-1 ? start : end + endif + + " classify full id and split into qualifier and unqualified id + let fullid = line[ (start>1 ? start-1 : 0) : (end-1) ] + let symbolic = fullid[-1:-1] =~ symbol " might also be incomplete qualified id ending in . + let qualPos = matchend(fullid, '\([A-Z]'.name.'*\.\)\+') + let qualifier = qualPos>-1 ? fullid[ 0 : (qualPos-2) ] : '' + let unqualId = qualPos>-1 ? fullid[ qualPos : -1 ] : fullid + " call confirm(start.'/'.end.'['.symbolic.']:'.qualifier.' '.unqualId) + + return [start,symbolic,qualifier,unqualId] +endfunction + +function! haskellmode#GatherImports() + let imports={0:{},1:{}} + let i=1 + while i<=line('$') + let res = haskellmode#GatherImport(i) + if !empty(res) + let [i,import] = res + let prefixPat = '^import\s*\(qualified\)\?\s\+' + let modulePat = '\([A-Z][a-zA-Z0-9_''.]*\)' + let asPat = '\(\s\+as\s\+'.modulePat.'\)\?' + let hidingPat = '\(\s\+hiding\s*\((.*)\)\)\?' + let listPat = '\(\s*\((.*)\)\)\?' + let importPat = prefixPat.modulePat.asPat.hidingPat.listPat ".'\s*$' + + let ml = matchlist(import,importPat) + if ml!=[] + let [_,qualified,module,_,as,_,hiding,_,explicit;x] = ml + let what = as=='' ? module : as + let hidings = split(hiding[1:-2],',') + let explicits = split(explicit[1:-2],',') + let empty = {'lines':[],'hiding':hidings,'explicit':[],'modules':[]} + let entry = has_key(imports[1],what) ? imports[1][what] : deepcopy(empty) + let imports[1][what] = haskellmode#MergeImport(deepcopy(entry),i,hidings,explicits,module) + if !(qualified=='qualified') + let imports[0][what] = haskellmode#MergeImport(deepcopy(entry),i,hidings,explicits,module) + endif + else + echoerr "haskellmode#GatherImports doesn't understand: ".import + endif + endif + let i+=1 + endwhile + if !has_key(imports[1],'Prelude') + let imports[0]['Prelude'] = {'lines':[],'hiding':[],'explicit':[],'modules':[]} + let imports[1]['Prelude'] = {'lines':[],'hiding':[],'explicit':[],'modules':[]} + endif + return imports +endfunction + +function! haskellmode#ListElem(list,elem) + for e in a:list | if e==a:elem | return 1 | endif | endfor + return 0 +endfunction + +function! haskellmode#ListIntersect(list1,list2) + let l = [] + for e in a:list1 | if index(a:list2,e)!=-1 | let l += [e] | endif | endfor + return l +endfunction + +function! haskellmode#ListUnion(list1,list2) + let l = [] + for e in a:list2 | if index(a:list1,e)==-1 | let l += [e] | endif | endfor + return a:list1 + l +endfunction + +function! haskellmode#ListWithout(list1,list2) + let l = [] + for e in a:list1 | if index(a:list2,e)==-1 | let l += [e] | endif | endfor + return l +endfunction + +function! haskellmode#MergeImport(entry,line,hiding,explicit,module) + let lines = a:entry['lines'] + [ a:line ] + let hiding = a:explicit==[] ? haskellmode#ListIntersect(a:entry['hiding'], a:hiding) + \ : haskellmode#ListWithout(a:entry['hiding'],a:explicit) + let explicit = haskellmode#ListUnion(a:entry['explicit'], a:explicit) + let modules = haskellmode#ListUnion(a:entry['modules'], [ a:module ]) + return {'lines':lines,'hiding':hiding,'explicit':explicit,'modules':modules} +endfunction + +" collect lines belonging to a single import statement; +" return number of last line and collected import statement +" (assume opening parenthesis, if any, is on the first line) +function! haskellmode#GatherImport(lineno) + let lineno = a:lineno + let import = getline(lineno) + if !(import=~'^import\s') | return [] | endif + let open = strlen(substitute(import,'[^(]','','g')) + let close = strlen(substitute(import,'[^)]','','g')) + while open!=close + let lineno += 1 + let linecont = getline(lineno) + let open += strlen(substitute(linecont,'[^(]','','g')) + let close += strlen(substitute(linecont,'[^)]','','g')) + let import .= linecont + endwhile + return [lineno,import] +endfunction + +function! haskellmode#UrlEncode(string) + let pat = '\([^[:alnum:]]\)' + let code = '\=printf("%%%02X",char2nr(submatch(1)))' + let url = substitute(a:string,pat,code,'g') + return url +endfunction + diff --git a/dot_vim/autoload/pythoncomplete.vim b/dot_vim/autoload/pythoncomplete.vim new file mode 120000 index 0000000..2b8df41 --- /dev/null +++ b/dot_vim/autoload/pythoncomplete.vim @@ -0,0 +1 @@ +../ftplugin/pythoncomplete.vim \ No newline at end of file diff --git a/dot_vim/c-support/codesnippets/Makefile b/dot_vim/c-support/codesnippets/Makefile new file mode 100644 index 0000000..2208944 --- /dev/null +++ b/dot_vim/c-support/codesnippets/Makefile @@ -0,0 +1,178 @@ +#======================================================================================= +# +# Filename: Makefile +# Description: +# +# Usage: make (generate executable ) +# make clean (remove objects, executable, prerequisits ) +# make tarball (generate compressed archive ) +# make zip (generate compressed archive ) +# +# Version: 1.0 +# Created: +# Revision: --- +# +# Author: +# Company: +# Email: +# +# Notes: C extension : c +# C++ extensions : cc cpp C +# C and C++ sources can be mixed. +# Prerequisites are generated automatically; makedepend is not +# needed (see documentation for GNU make Version 3.80, July 2002, +# section 4.13). The utility sed is used. +# +#============================================== makefile template version 1.6 ========== + +# ------------ name of the executable ------------------------------------------------ +EXECUTABLE = main + +# ------------ list of all source files ---------------------------------------------- +SOURCES = main.c + +# ------------ compiler -------------------------------------------------------------- +CC = gcc +CXX = g++ + +# ------------ compiler flags -------------------------------------------------------- +CFLAGS = -Wall -O0 -g # Do not optimize. Produce debugging information. + +# ------------ linker-Flags ---------------------------------------------------------- +LFLAGS = -g + +# ------------ additional system include directories --------------------------------- +GLOBAL_INC_DIR = + +# ------------ private include directories ------------------------------------------- +LOCAL_INC_DIR = $(HOME)/include + +# ------------ system libraries (e.g. -lm ) ----------------------------------------- +SYS_LIBS = -lm + +# ------------ additional system library directories --------------------------------- +GLOBAL_LIB_DIR = + +# ------------ additional system libraries ------------------------------------------- +GLOBAL_LIBS = + +# ------------ private library directories ------------------------------------------- +LOCAL_LIB_DIR = $(HOME)/lib + +# ------------ private libraries (e.g. libxyz.a ) ----------------------------------- +LOCAL_LIBS = + +# ------------ archive generation ----------------------------------------------------- +TARBALL_EXCLUDE = *.{o,gz,zip} +ZIP_EXCLUDE = *.{o,gz,zip} + +# ------------ run executable out of this Makefile (yes/no) ------------------------- +# ------------ cmd line parameters for this executable ------------------------------- +EXE_START = no +EXE_CMDLINE = + +#======================================================================================= +# The following statements usually need not to be changed +#======================================================================================= + +C_SOURCES = $(filter %.c, $(SOURCES)) +CPP_SOURCES = $(filter-out %.c, $(SOURCES)) +ALL_INC_DIR = $(addprefix -I, $(LOCAL_INC_DIR) $(GLOBAL_INC_DIR)) +ALL_LIB_DIR = $(addprefix -L, $(LOCAL_LIB_DIR) $(GLOBAL_LIB_DIR)) +GLOBAL_LIBSS = $(addprefix $(GLOBAL_LIB_DIR)/, $(GLOBAL_LIBS)) +LOCAL_LIBSS = $(addprefix $(LOCAL_LIB_DIR)/, $(LOCAL_LIBS)) +ALL_CFLAGS = $(CFLAGS) $(ALL_INC_DIR) +ALL_LFLAGS = $(LFLAGS) $(ALL_LIB_DIR) +BASENAMES = $(basename $(SOURCES)) + +# ------------ generate the names of the object files -------------------------------- +OBJECTS = $(addsuffix .o,$(BASENAMES)) + +# ------------ generate the names of the hidden prerequisite files ------------------- +PREREQUISITES = $(addprefix .,$(addsuffix .d,$(BASENAMES))) + +# ------------ make the executable --------------------------------------------------- +$(EXECUTABLE): $(OBJECTS) +ifeq ($(strip $(CPP_SOURCES)),) + $(CC) $(ALL_LFLAGS) -o $(EXECUTABLE) $(OBJECTS) $(LOCAL_LIBSS) $(GLOBAL_LIBSS) $(SYS_LIBS) +else + $(CXX) $(ALL_LFLAGS) -o $(EXECUTABLE) $(OBJECTS) $(LOCAL_LIBSS) $(GLOBAL_LIBSS) $(SYS_LIBS) +endif +ifeq ($(EXE_START),yes) + ./$(EXECUTABLE) $(EXE_CMDLINE) +endif + +# ------------ include the automatically generated prerequisites --------------------- +# ------------ if target is not clean, tarball or zip --------------------- +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(MAKECMDGOALS),tarball) +ifneq ($(MAKECMDGOALS),zip) +include $(PREREQUISITES) +endif +endif +endif + +# ------------ make the objects ------------------------------------------------------ +%.o: %.c + $(CC) -c $(ALL_CFLAGS) $< + +%.o: %.cc + $(CXX) -c $(ALL_CFLAGS) $< + +%.o: %.cpp + $(CXX) -c $(ALL_CFLAGS) $< + +%.o: %.C + $(CXX) -c $(ALL_CFLAGS) $< + +# ------------ make the prerequisites ------------------------------------------------ +# +.%.d: %.c + @$(make-prerequisite-c) + +.%.d: %.cc + @$(make-prerequisite-cplusplus) + +.%.d: %.cpp + @$(make-prerequisite-cplusplus) + +.%.d: %.C + @$(make-prerequisite-cplusplus) + +# canned command sequences +# echoing of the sed command is suppressed by the leading @ + +define make-prerequisite-c + @$(CC) -MM $(ALL_CFLAGS) $< > $@.$$$$; \ + sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' < $@.$$$$ > $@; \ + rm -f $@.$$$$; +endef + +define make-prerequisite-cplusplus + @$(CXX) -MM $(ALL_CFLAGS) $< > $@.$$$$; \ + sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' < $@.$$$$ > $@; \ + rm -f $@.$$$$; +endef + +# ------------ remove generated files ------------------------------------------------ +# ------------ remove hidden backup files -------------------------------------------- +clean: + rm --force $(EXECUTABLE) $(OBJECTS) $(PREREQUISITES) *~ + +# ------------ tarball generation ------------------------------------------------------ +tarball: + @lokaldir=`pwd`; lokaldir=$${lokaldir##*/}; \ + rm --force $$lokaldir.tar.gz; \ + tar --exclude=$(TARBALL_EXCLUDE) \ + --create \ + --gzip \ + --verbose \ + --file $$lokaldir.tar.gz * + +# ------------ zip --------------------------------------------------------------------- +zip: + @lokaldir=`pwd`; lokaldir=$${lokaldir##*/}; \ + zip -r $$lokaldir.zip * -x $(ZIP_EXCLUDE) + +# ====================================================================================== +# vim: set tabstop=2: set shiftwidth=2: diff --git a/dot_vim/c-support/codesnippets/Makefile.multi-target.template b/dot_vim/c-support/codesnippets/Makefile.multi-target.template new file mode 100644 index 0000000..75da8dd --- /dev/null +++ b/dot_vim/c-support/codesnippets/Makefile.multi-target.template @@ -0,0 +1,70 @@ +#=============================================================================== +# +# File: Makefile +# Description: +# +# Usage: make (generate executable(s) ) +# make clean (remove objects, executables, prerequisits ) +# make tarball (generate compressed archive ) +# make zip (generate compressed archive ) +# +# Author: Dr.-Ing. Fritz Mehner +# Email: mehner@mfh-iserlohn.de +# Created: +# +#=============================================================================== + + +CC = gcc +CCP = g++ +CFLAGS = -c -g -Wall +LFLAGS = -g +SYS_LIBS = -lm +TARBALL_EXCLUDE = "*.{o,gz,zip}" +ZIP_EXCLUDE = *.o *.gz *.zip + +TARGETS = target_1 target_2 + +#---------- targets -------------------------------------- +all: $(TARGETS) + +%.o: %.c + $(CC) $(CFLAGS) $*.c + +%.o: %.cc + $(CCP) $(CFLAGS) $*.cc + +#---------- target 1 ------------------------------------- +# C target +target_1: target_1.o + $(CC) $(LFLAGS) -o $@ $@.o $(SYS_LIBS) + +#---------- target 2 ------------------------------------- +# C++ target +target_2: target_2.o + $(CCP) $(LFLAGS) -o $@ $@.o $(SYS_LIBS) + + +#---------- target 3 ------------------------------------- + + + +#---------- tarball -------------------------------------- +tarball: + lokaldir=`pwd`; lokaldir=$${lokaldir##*/}; \ + rm --force $$lokaldir.tar.gz; \ + tar --exclude=$(TARBALL_EXCLUDE) \ + --create \ + --gzip \ + --verbose \ + --file $$lokaldir.tar.gz * + +#---------- zip ------------------------------------------ +zip: + lokaldir=`pwd`; lokaldir=$${lokaldir##*/}; \ + zip -r $$lokaldir.zip * -x $(ZIP_EXCLUDE) + +#---------- clear up ------------------------------------- +clean: + rm --force $(EXECUTABLE) $(OBJECTS) $(PREREQUISITES) + diff --git a/dot_vim/c-support/codesnippets/calloc_double_matrix.c b/dot_vim/c-support/codesnippets/calloc_double_matrix.c new file mode 100644 index 0000000..ec71658 --- /dev/null +++ b/dot_vim/c-support/codesnippets/calloc_double_matrix.c @@ -0,0 +1,36 @@ + +/* + * === FUNCTION ====================================================================== + * Name: calloc_double_matrix + * Description: Allocate a dynamic double-matrix of size rows*columns; + * return a pointer. + * ===================================================================================== + */ + double** +calloc_double_matrix ( int rows, int columns ) +{ + int i; + double **m; + m = calloc ( rows, sizeof(double*) ); /* allocate pointer array */ + assert( m != NULL); /* abort if allocation failed */ + *m = calloc ( rows*columns, sizeof(double) );/* allocate data array */ + assert(*m != NULL); /* abort if allocation failed */ + for ( i=1; i +#include +#include +#include +#include + +/* + * === FUNCTION ====================================================================== + * Name: main + * Description: main function + * ===================================================================================== + */ + int +main ( int argc, char *argv[] ) +{ + printf ("\nProgram %s\n\n", argv[0] ); + + return EXIT_SUCCESS; +} /* ---------- end of function main ---------- */ + diff --git a/dot_vim/c-support/codesnippets/main.cc b/dot_vim/c-support/codesnippets/main.cc new file mode 100644 index 0000000..d87f891 --- /dev/null +++ b/dot_vim/c-support/codesnippets/main.cc @@ -0,0 +1,18 @@ +#include +#include +#include + +using namespace std; + +// === FUNCTION ====================================================================== +// Name: main +// Description: main function +// ===================================================================================== + int +main ( int argc, char *argv[] ) +{ + cout << "\nProgram " << argv[0] << endl << endl; + + return EXIT_SUCCESS; +} // ---------- end of function main ---------- + diff --git a/dot_vim/c-support/codesnippets/print_double_array.c.noindent b/dot_vim/c-support/codesnippets/print_double_array.c.noindent new file mode 100644 index 0000000..6ced53a --- /dev/null +++ b/dot_vim/c-support/codesnippets/print_double_array.c.noindent @@ -0,0 +1,30 @@ + +/* + * === FUNCTION ====================================================================== + * Name: print_double_array + * Description: Print a double-array with one dimension. + * Use + * print_int_array( *matrix, n1*n2, n2, "matrix" ); + * for + * double matrix[n1][n2]; + * ===================================================================================== + */ +static void +print_double_array ( double array[], /* array to print */ + int n, /* number of elements to print */ + int nrow, /* number of elements per row */ + char *arrayname /* array name */ + ) +{ + int i; + printf ("\n\n array \"%s\", length %d\n", arrayname, n ); + for ( i=0; i \cl and \cl -> \cs . ++ Three new tags (giving the basename of a file) for writing template files. ++ Prototype picker handles template methods. ++ Bugfix: splint works now under Windows. ++ Minor improvements. + +======================================================================================= + RELEASE NOTES FOR VERSION 4.4 +======================================================================================= ++ Plugin directories rearranged. ++ main- and for-idiom have a visual mode now. ++ Four new commands (command line) to control the comment style. ++ Comment style (C/C++) can automatically follow the filetype. ++ Bugfix: empty new file after removing the header template can't be closed. ++ Bugfix : Tools entry missing when root menu not shown from the start. ++ Minor improvements. + +======================================================================================= + RELEASE NOTES FOR VERSION 4.3 +======================================================================================= ++ CodeCheck (TM) integrated (source code analysing tool). ++ New key mappings for preprocessor statements. ++ New preprocessor menu. ++ Bugfix: indent under Windows. ++ Minor improvements. + +======================================================================================= + RELEASE NOTES FOR VERSION 4.2.1 +======================================================================================= ++ Bugfix: change needed for some menu names after patch 7.0.054 . + +======================================================================================= + RELEASE NOTES FOR VERSION 4.2 +======================================================================================= ++ Setting the starting column for trailing comments improved. ++ Small bug in block uncommenting fixed. ++ Mac OS X : circumvent a Vim bug which caused a crash when loading plugin version 4.1. ++ File syntax/c.vim removed (but see help in csupport.txt). + +======================================================================================= + RELEASE NOTES FOR VERSION 4.1 +======================================================================================= ++ A complete switch statement can be made from a list of labels. ++ Additional cases can be made from a list of labels. ++ Small bug in line end commenting fixed. ++ Some minor improvements. + +======================================================================================= + RELEASE NOTES FOR VERSION 4.0 +======================================================================================= + ++ Kernighan & Ritchie style for block statements can be enabled. ++ Changes to make it compatible with Vim 7. ++ Set C/C++ file type for source files which should not be preprocessed (*.i, *.ii). ++ Some minor improvements. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.11 +======================================================================================= + ++ Hotkeys and an accompanying reference card added. ++ Preparation for syntax based folding. ++ Some minor improvements. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.10 +======================================================================================= + ++ Remove "#if 0 ... #endif" from the inside. ++ Change C comments to C++ comments and vice versa. ++ try..catch / catch / catch(...) now can be set surround a marked area. ++ Prototype picking improved (for C++). ++ A hardcopy shows the localized date and time in the header line. ++ New help menu entry in the main menu of this plugin (shows the plugin documentation). ++ Switch between corresponding source and header files with if the plugin a.vim + is present. ++ Plugin can be used with autocompletion for (, [, and { . + +======================================================================================= + RELEASE NOTES FOR VERSION 3.9.1 +======================================================================================= + ++ Doubling of file header for new c- and h-files under Windows fixed (Thanks to + Fabricio C A Oliveira). ++ Tiny bug in the file open idioms fixed. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.9 +======================================================================================= + ++ Formatter 'indent' integrated. ++ Bugfix in the automatic header insertion. ++ Assert idiom added. ++ #if 0 ... #endif statement for blocking out code added. ++ Minor stylistic improvements in some idioms. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.8.2 +======================================================================================= + ++ Screen update problem solved: color inversion under FC4 (Thanks to Bernie Barton). ++ RTTI menu : additional v-mode. ++ Statement menu and C++ menu rearranged. ++ Include guard : name generation improved. ++ File header templates will be included for additional file extensions (cp, cxx, c++, ...). + +======================================================================================= + RELEASE NOTES FOR VERSION 3.8.1 +======================================================================================= + ++ More C++ output manipulators, manipulator insertion more intuitive. ++ Output into buffer: cursor goes to top of file. ++ Makefile template improved (code snippet). ++ Some internal improvements. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.8 +======================================================================================= + ++ Windows support. Most features are now available under Windows. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.7.2 +======================================================================================= + ++ Run buffer through splint (A tool for statically checking C programs; see + http://www.splint.org). An error window will be opened; quickfix commands can be used. ++ Set buffer related command line arguments for splint. ++ Line end comments start in a fixed column (can be set from the menu). ++ Spaces in path names and file names are now possible. ++ Template files and snippet files are no longer kept in the list of alternate files. ++ Some minor improvements. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.7.1 +======================================================================================= + ++ Bug fixed (command line arguments not passed to the executable). ++ File extension for executables can be set. ++ Minor improvements. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.7 +======================================================================================= + ++ Running a program: + (1) Run program from the gVim command line. + (2) Run program and direct the output into a window with name "C-Output". + This buffer and its content will disappear when closing the window. + The buffer is reused when still open. + (3) Run program in an xterm (adjustable). ++ Command line arguments are now buffer related (each buffer can have its own arguments). ++ Code snippets can be protected from being indented during insertion. ++ Picked up prototypes will be deleted after insertion. ++ A code snippet with the file name extension "ni" or "noindent" will not be + indented on insertion. ++ for- and calloc-/malloc-idioms improved. ++ Bug fixed (word list handling). + + +======================================================================================= + RELEASE NOTES FOR VERSION 3.6 +======================================================================================= + ++ Installation simplified. ++ for-loop-idiom asks for control variable, initial value, ... ++ malloc-idiom asks for pointer variable and size. ++ Toggling the comment style works correct again. ++ Empty error windows will be closed. ++ Prototype picker removes trailing parts of the function body if marked. ++ The dialog windows (GUI) have been replaced by more flexible command line inputs. ++ The undocumented and unnecessary hot key F12 has been removed. ++ Extension to ctags + taglist shows makefile targets and qmake targets. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.5 +======================================================================================= + ++ Aligned line end comments for consecutive lines. ++ Improved prototype picker removes comments. ++ Picked up prototypes can be shown. ++ Uncomment more than one block at once. ++ 3 new idioms. ++ Help file improved . + +======================================================================================= + RELEASE NOTES FOR VERSION 3.4 +======================================================================================= + ++ Two new global variables: C_Dictionary_File, C_MenuHeader . ++ The preprocessor statements #if... and the function idiom include marked + lines when invoked in visual mode. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.3 +======================================================================================= + ++ The C/C++ root menu can be disabled. + +======================================================================================= + RELEASE NOTES FOR VERSION 3.2 +======================================================================================= + ++ Only one C/C++ entry in the gVim root menu. ++ All hotkeys are only defined for C/C++ files (file type plugin added). ++ The following constructs are now read as templates from files: + class, class using new, + template class, template class using new, + error class ++ Install script added. ++ Customization improved. ++ Documentation improved (help file added). ++ Bug fix (template file handling) + +======================================================================================= + RELEASE NOTES FOR VERSION 3.1 +======================================================================================= + ++ When the comment style "C" is active the menu entry "Comments.code->comment" + turns a marked region in one multiline C-comment. ++ The menu entry "Comments.comment->code" turns marked multiline C-comment + back into code. ++ A marked region can be surrounded by a for-, if, if-else, while-, do-while-statement + (with indentation). ++ The menu entry "Snippets.make prototype" makes a C- or C++-prototype from + the current line or marked region and puts it in an internal buffer. ++ The menu entry "Snippets.add prototype" also makes a C- or C++-prototype from + the current line or a marked region and adds it to the internal buffer. ++ The menu entry "Snippets.put prototype" inserts all gathered prototypes + below the current line. ++ Tag substitution rewritten (Some characters in a substitution text for a tag + prevented the tag from being substituted). + +======================================================================================= + RELEASE NOTES FOR VERSION 3.0 +======================================================================================= + ++ C-style comments AND C++-style comments are supported now. ++ The menu entry 'Comments->Comment style ..' switches the styles (toggle). ++ Block comments are now read as templates or skeletons from files: + Frame Block, Function Description, Method Description, + Class Description, H+file header, C/C++-file header ++ These templates can contain tags like |FILENAME|, |AUTHOR| etc. which are replaced + after reading (KDevelop templates can be used without any change). ++ indentation: multiline inserts and code snippets will be indented after insertion. ++ Most menu entries are now also active in normal mode. ++ new menu items: + includes for the C99 header, + includes for the standard C++ header, + includes for the C++ version of the Standard C Library header, + multiline C comment + vim modeline ++ Reading the templates is done in one function which can be called in an autocmd. ++ Code cleanup: register z no longer used. Most function calls are silent now. + + diff --git a/dot_vim/c-support/doc/c-hotkeys.pdf b/dot_vim/c-support/doc/c-hotkeys.pdf new file mode 100644 index 0000000..07a6c7c Binary files /dev/null and b/dot_vim/c-support/doc/c-hotkeys.pdf differ diff --git a/dot_vim/c-support/rc/customization.ctags b/dot_vim/c-support/rc/customization.ctags new file mode 100644 index 0000000..75ccd5a --- /dev/null +++ b/dot_vim/c-support/rc/customization.ctags @@ -0,0 +1,7 @@ + +--regex-make=/^([^:# \t]+)[ \t]*[:]{1,2}/\1/t,targets/ + +--langdef=qmake +--langmap=qmake:+.pro +--regex-qmake=/^([[:upper:]_]+)/\1/t,SystemVariables/ + diff --git a/dot_vim/c-support/rc/customization.gvimrc b/dot_vim/c-support/rc/customization.gvimrc new file mode 100644 index 0000000..ff3d690 --- /dev/null +++ b/dot_vim/c-support/rc/customization.gvimrc @@ -0,0 +1,44 @@ +" +"=============================================================================== +"========== example gvimrc from the distribution ============================== +"=============================================================================== +" +runtime gvimrc_example.vim +" +" +"=============================================================================== +"========== CUSTOMIZATION (gvimrc) =========================================== +"=============================================================================== +" +"------------------------------------------------------------------------------- +" Moving cursor to other windows +" +" shift down : change window focus to lower one (cyclic) +" shift up : change window focus to upper one (cyclic) +" shift left : change window focus to one on left +" shift right : change window focus to one on right +"------------------------------------------------------------------------------- +" +nmap w +nmap W +nmap h +nmap l +" +" +"------------------------------------------------------------------------------- +" some additional hot keys +"------------------------------------------------------------------------------- +" S-F3 - call gvim file browser +"------------------------------------------------------------------------------- +" + map :silent browse confirm e +imap :silent browse confirm e +" +" +"------------------------------------------------------------------------------- +" toggle insert mode <--> 'normal mode with the -key +"------------------------------------------------------------------------------- +" +nmap +imap +" diff --git a/dot_vim/c-support/rc/customization.indent.pro b/dot_vim/c-support/rc/customization.indent.pro new file mode 100644 index 0000000..95f6081 --- /dev/null +++ b/dot_vim/c-support/rc/customization.indent.pro @@ -0,0 +1,8 @@ +--blank-lines-after-procedures +--brace-indent0 +--comment-indentation49 +--declaration-comment-column49 +--declaration-indentation10 +--space-after-parentheses +--swallow-optional-blank-lines +--tab-size2 diff --git a/dot_vim/c-support/rc/customization.vimrc b/dot_vim/c-support/rc/customization.vimrc new file mode 100644 index 0000000..f9ab5a7 --- /dev/null +++ b/dot_vim/c-support/rc/customization.vimrc @@ -0,0 +1,149 @@ +" +"=============================================================================== +"========== load example vimrc from the distribution ========================= +"=============================================================================== +" +runtime vimrc_example.vim +" +filetype plugin on +" +"=============================================================================== +"========== CUSTOMIZATION (vimrc) ============================================ +"=============================================================================== +" +" Platform specific items: +" - central backup directory (has to be created) +" - default dictionary +" Uncomment your choice. +if has("win16") || has("win32") || has("win64") || + \ has("win95") || has("win32unix") + " +" runtime mswin.vim +" set backupdir =$VIM\vimfiles\backupdir +" set dictionary=$VIM\vimfiles\wordlists/german.list +else +" set backupdir =$HOME/.vim.backupdir +" set dictionary=$HOME/.vim/wordlists/german.list +endif +" +" Using a backupdir under UNIX/Linux: you may want to include a line similar to +" find $HOME/.vim.backupdir -name "*" -type f -mtime +60 -exec rm -f {} \; +" in one of your shell startup files (e.g. $HOME/.profile) +" +"------------------------------------------------------------------------------- +" Use of dictionaries +"------------------------------------------------------------------------------- +" +set complete+=k " scan the files given with the 'dictionary' option +" +"------------------------------------------------------------------------------- +" Various settings +"------------------------------------------------------------------------------- +" +set autoread " read open files again when changed outside Vim +set autowrite " write a modified buffer on each :next , ... +set browsedir =current " which directory to use for the file browser +set incsearch " use incremental search +set nowrap " do not wrap lines +set shiftwidth =2 " number of spaces to use for each step of indent +set tabstop =2 " number of spaces that a in the file counts for +set visualbell " visual bell instead of beeping +" +" +"------------------------------------------------------------------------------- +" some additional hot keys +"------------------------------------------------------------------------------- +" F2 - write file without confirmation +" F3 - call file explorer Ex +" F4 - show tag under curser in the preview window (tagfile must exist!) +" F5 - open quickfix error window +" F6 - close quickfix error window +" F7 - display previous error +" F8 - display next error +" S-Tab - Fast switching between buffers (see below) +" C-q - Leave the editor with Ctrl-q (see below) +"------------------------------------------------------------------------------- +" +map :write +map :Explore +nmap :exe ":ptag ".expand("") +map :copen +map :cclose +map :cp +map :cn +" +imap :write +imap :Explore +imap :exe ":ptag ".expand("") +imap :copen +imap :cclose +imap :cp +imap :cn +" +"------------------------------------------------------------------------------- +" Fast switching between buffers +" The current buffer will be saved before switching to the next one. +" Choose :bprevious or :bnext +"------------------------------------------------------------------------------- +" + map :if &modifiable && !&readonly && + \ &modified :write :endif:bprevious +imap :if &modifiable && !&readonly && + \ &modified :write :endif:bprevious +" +"------------------------------------------------------------------------------- +" Leave the editor with Ctrl-q : Write all changed buffers and exit Vim +"------------------------------------------------------------------------------- +nmap :wqa +" +"------------------------------------------------------------------------------- +" autocomplete parenthesis, brackets and braces +"------------------------------------------------------------------------------- +inoremap ( () +inoremap [ [] +inoremap { {} +" +vnoremap ( s()P% +vnoremap [ s[]P% +vnoremap { s{}P% +" +"------------------------------------------------------------------------------- +" Change the working directory to the directory containing the current file +"------------------------------------------------------------------------------- +if has("autocmd") + autocmd BufEnter * :lchdir %:p:h +endif " has("autocmd") +" +"------------------------------------------------------------------------------- +" Filename completion +" +" wildmenu : command-line completion operates in an enhanced mode +" wildignore : A file that matches with one of these +" patterns is ignored when completing file or directory names. +"------------------------------------------------------------------------------- +" +set wildmenu +set wildignore=*.bak,*.o,*.e,*~ +" +"------------------------------------------------------------------------------- +" print options (pc = percentage of the media size) +"------------------------------------------------------------------------------- +set printoptions=left:8pc,right:3pc +" +"------------------------------------------------------------------------------- +" taglist.vim : toggle the taglist window +" taglist.vim : define the title texts for make +" taglist.vim : define the title texts for qmake +"------------------------------------------------------------------------------- + noremap :Tlist +inoremap :Tlist + +let tlist_make_settings = 'make;m:makros;t:targets' + +let tlist_qmake_settings = 'qmake;t:SystemVariables' + +if has("autocmd") + " ---------- qmake : set filetype for *.pro ---------- + autocmd BufNewFile,BufRead *.pro set filetype=qmake +endif " has("autocmd") + diff --git a/dot_vim/c-support/scripts/wrapper.sh b/dot_vim/c-support/scripts/wrapper.sh new file mode 100644 index 0000000..55d9961 --- /dev/null +++ b/dot_vim/c-support/scripts/wrapper.sh @@ -0,0 +1,34 @@ +#!/bin/bash +#=============================================================================== +# FILE: wrapper.sh +# USAGE: ./wrapper.sh executable [cmd-line-args] +# DESCRIPTION: Wraps the execution of a programm or script. +# Use with xterm: xterm -e wrapper.sh executable cmd-line-args +# This script is used by several plugins: +# bash-support.vim, c.vim and perl-support.vim +# OPTIONS: --- +# REQUIREMENTS: which(1) - shows the full path of (shell) commands. +# BUGS: --- +# NOTES: --- +# AUTHOR: Dr.-Ing. Fritz Mehner (Mn), mehner@fh-swf.de +# COMPANY: Fachhochschule Südwestfalen, Iserlohn +# CREATED: 23.11.2004 18:04:01 CET +# REVISION: $Id: wrapper.sh,v 1.3 2007/10/03 09:06:09 mehner Exp $ +#=============================================================================== + +command=${@} # the complete command line +executable=${1} # name of the executable; may be quoted + +fullname=$(which $executable) +[ $? -eq 0 ] && executable=$fullname + +if [ ${#} -ge 1 ] && [ -x "$executable" ] +then + shift + "$executable" ${@} + echo -e "> \"${command}\" returned ${?}" +else + echo -e "\n !! file \"${executable}\" does not exist or is not executable !!" +fi +echo -e " ... press return key ... " +read dummy diff --git a/dot_vim/c-support/syntax/c.vim b/dot_vim/c-support/syntax/c.vim new file mode 100644 index 0000000..395e0d9 --- /dev/null +++ b/dot_vim/c-support/syntax/c.vim @@ -0,0 +1,21 @@ +"=================================================================================== +" +" FILE: c.vim +" DESCRIPTION: syntax file +" enable syntax based folding +" part of the c-support plugin +" +" AUTHOR: Dr.-Ing. Fritz Mehner +" EMAIL: mehner@fh-swf.de +" COMPANY: FH Südwestfalen, Iserlohn +" VERSION: 1.0 +" CREATED: 11.03.2006 +" REVISION: --- +"=================================================================================== +" +" fold C blocks +" +syn region cBlock start="{" end="}" transparent fold +set foldmethod=syntax +set foldlevel=999 + diff --git a/dot_vim/c-support/templates/Templates b/dot_vim/c-support/templates/Templates new file mode 100644 index 0000000..9aa86fc --- /dev/null +++ b/dot_vim/c-support/templates/Templates @@ -0,0 +1,26 @@ +$ +$ ============================================================= +$ ========== USER MACROS ====================================== +$ ============================================================= +$ +|AUTHOR| = Ryan Kavanagh +|AUTHORREF| = ryanakca +|EMAIL| = ryanakca@kubuntu.org +|COPYRIGHT| = Copyright (c) 2008 Ryan Kavanagh +|LICENSE| = GNU GPL v2 +$ +$ ============================================================= +$ ========== FILE INCLUDES ==================================== +$ ============================================================= +$ +|includefile| = c.comments.template +|includefile| = c.cpp.template +|includefile| = c.idioms.template +|includefile| = c.preprocessor.template +|includefile| = c.statements.template + +$|includefile| = cpp.comments.template +$|includefile| = cpp.cpp.template +$|includefile| = cpp.idioms.template +$|includefile| = cpp.preprocessor.template +$|includefile| = cpp.statements.template diff --git a/dot_vim/c-support/templates/c.comments.template b/dot_vim/c-support/templates/c.comments.template new file mode 100644 index 0000000..8080968 --- /dev/null +++ b/dot_vim/c-support/templates/c.comments.template @@ -0,0 +1,147 @@ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.end-of-line-comment == append == +/* */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.frame == +/*-------------------------------------------------------------------------- + * + *------------------------------------------------------------------------*/ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.function == +/* + * === FUNCTION ========================================================== + * Name: |?FUNCTION_NAME| + * Description: + * ========================================================================= + */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.method == +/* + *-------------------------------------------------------------------------- + * Class: |?CLASSNAME| + * Method: |?METHODNAME| + * Description: + *-------------------------------------------------------------------------- + */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.class == +/* + * ========================================================================= + * Class: |?CLASSNAME| + * Description: + * ========================================================================= + */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-description == start == +/* + * ========================================================================= + * + * Filename: |FILENAME| + * + * Description: + * + * Version: 1.0 + * Created: |DATE| |TIME| + * Revision: none + * Compiler: gcc + * + * Author: |AUTHOR| (|AUTHORREF|), |EMAIL| + * License: |LICENSE| + * + * ========================================================================= + */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-bug == append == + /* :BUG:|DATE| |TIME|:|AUTHORREF|: */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-compiler == append == + /* :COMPILER:|DATE| |TIME|:|AUTHORREF|: */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-todo == append == + /* :TODO:|DATE| |TIME|:|AUTHORREF|: */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-tricky == append == + /* :TRICKY:|DATE| |TIME|:|AUTHORREF|: */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-warning == append == + /* :WARNING:|DATE| |TIME|:|AUTHORREF|: */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-workaround == append == + /* :WORKAROUND:|DATE| |TIME|:|AUTHORREF|: */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-keyword == append == + /* :|?KEYWORD:u|:|DATE| |TIME|:|AUTHORREF|: */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-header-includes == +/* ##### HEADER FILE INCLUDES ################################################### */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-macros == +/* ##### MACROS - LOCAL TO THIS SOURCE FILE ################################### */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-typedefs == +/* ##### TYPE DEFINITIONS - LOCAL TO THIS SOURCE FILE ######################### */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-data-types == +/* ##### DATA TYPES - LOCAL TO THIS SOURCE FILE ############################### */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-class-defs == +/* ##### CLASS DEFINITIONS - LOCAL TO THIS SOURCE FILE ######################## */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-local-variables == +/* ##### VARIABLES - LOCAL TO THIS SOURCE FILE ################################ */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-prototypes == +/* ##### PROTOTYPES - LOCAL TO THIS SOURCE FILE ############################### */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-function-defs-exported == +/* ##### FUNCTION DEFINITIONS - EXPORTED FUNCTIONS ############################ */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-function-defs-local == +/* ##### FUNCTION DEFINITIONS - LOCAL TO THIS SOURCE FILE ##################### */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-class-implementations-exported == +/* ##### CLASS IMPLEMENTATIONS - EXPORTED CLASSES ############################# */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-class-implementations-local == +/* ##### CLASS IMPLEMENTATIONS - LOCAL CLASSES ################################ */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-header-includes == +/* ##### HEADER FILE INCLUDES ################################################### */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-macros == +/* ##### EXPORTED MACROS ######################################################## */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-exported-typedefs == +/* ##### EXPORTED TYPE DEFINITIONS ############################################## */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-exported-data-types == +/* ##### EXPORTED DATA TYPES #################################################### */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-exported-class-defs == +/* ##### EXPORTED CLASS DEFINITIONS ############################################# */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-exported-variables == +/* ##### EXPORTED VARIABLES ##################################################### */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-exported-function-declarations == +/* ##### EXPORTED FUNCTION DECLARATIONS ######################################### */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/dot_vim/c-support/templates/c.cpp.template b/dot_vim/c-support/templates/c.cpp.template new file mode 100644 index 0000000..ce15421 --- /dev/null +++ b/dot_vim/c-support/templates/c.cpp.template @@ -0,0 +1,353 @@ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.method-implementation == +void +|?CLASSNAME|::|?METHODNAME| ( ) +{ + return ; +} /* ----- end of method |CLASSNAME|::|?METHODNAME| ----- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.class == +/* + * ===================================================================================== + * Class: |?CLASSNAME:c| + * Description: + * ===================================================================================== + */ +class |CLASSNAME| +{ + public: + /* ==================== LIFECYCLE ======================================= */ + |CLASSNAME| (); /* constructor */ + + /* ==================== OPERATORS ======================================= */ + + /* ==================== OPERATIONS ======================================= */ + + /* ==================== ACCESS ======================================= */ + + /* ==================== INQUIRY ======================================= */ + + /* ==================== DATA MEMBERS ======================================= */ + protected: + + private: + +}; /* ----- end of class |CLASSNAME| ----- */ + +/* + *-------------------------------------------------------------------------------------- + * Class: |CLASSNAME| + * Method: |CLASSNAME| + * Description: constructor + *-------------------------------------------------------------------------------------- + */ +|CLASSNAME|::|CLASSNAME| () +{ +} /* ----- end of method |CLASSNAME|::|CLASSNAME| (constructor) ----- */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.class-using-new == +/* + * ===================================================================================== + * Class: |?CLASSNAME:c| + * Description: + * ===================================================================================== + */ +class |CLASSNAME| +{ + public: + + /* ==================== LIFECYCLE ======================================= */ + |CLASSNAME| (); /* constructor */ + |CLASSNAME| ( const |CLASSNAME| &other ); /* copy constructor */ + ~|CLASSNAME| (); /* destructor */ + + /* ==================== OPERATORS ======================================= */ + const |CLASSNAME|& operator = ( const |CLASSNAME| &other ); /* assignment operator */ + + /* ==================== OPERATIONS ======================================= */ + + /* ==================== ACCESS ======================================= */ + + /* ==================== INQUIRY ======================================= */ + + /* ==================== DATA MEMBERS ======================================= */ + protected: + + private: + +}; /* ----- end of class |CLASSNAME| ----- */ + +/* + *-------------------------------------------------------------------------------------- + * Class: |CLASSNAME| + * Method: |CLASSNAME| + * Description: constructor + *-------------------------------------------------------------------------------------- + */ +|CLASSNAME|::|CLASSNAME| () +{ +} /* ----- end of method |CLASSNAME|::|CLASSNAME| (constructor) ----- */ + +/* + *-------------------------------------------------------------------------------------- + * Class: |CLASSNAME| + * Method: |CLASSNAME| + * Description: copy constructor + *-------------------------------------------------------------------------------------- + */ +|CLASSNAME|::|CLASSNAME| ( const |CLASSNAME| &other ) +{ +} /* ----- end of method |CLASSNAME|::|CLASSNAME| (copy constructor) ----- */ + +/* + *-------------------------------------------------------------------------------------- + * Class: |CLASSNAME| + * Method: ~|CLASSNAME| + * Description: destructor + *-------------------------------------------------------------------------------------- + */ +|CLASSNAME|::~|CLASSNAME| () +{ +} /* ----- end of method |CLASSNAME|::~|CLASSNAME| (destructor) ----- */ + +/* + *-------------------------------------------------------------------------------------- + * Class: |CLASSNAME| + * Method: operator = + * Description: assignment operator + *-------------------------------------------------------------------------------------- + */ +const |CLASSNAME|& +|CLASSNAME|::operator = ( const |CLASSNAME| &other ) +{ + if ( this != &other ) { + } + return *this; +} /* ----- end of method |CLASSNAME|::operator = (assignment operator) ----- */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.error-class == +/* + * ===================================================================================== + * Class: |?CLASSNAME:c| + * Description: + * ===================================================================================== + */ +class |CLASSNAME| +{ + public: |CLASSNAME| ( char *msg ):message(msg) { } + virtual ~|CLASSNAME| ( ) { } + virtual const char* what ( ) const throw ( ) { return message; } + protected: char *message; +}; /* ----- end of class |CLASSNAME| ----- */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.template-method-implementation == +template < class T > +void |?CLASSNAME|::|?METHODNAME| ( ) +{ + return ; +} /* ----- end of method |CLASSNAME|::|METHODNAME| ----- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.template-class == +/* + * ===================================================================================== + * Class: |?CLASSNAME:c| + * Description: + * ===================================================================================== + */ +template < class T > +class |CLASSNAME| +{ + public: + + /* ==================== LIFECYCLE ======================================= */ + |CLASSNAME| (); /* constructor */ + + /* ==================== OPERATORS ======================================= */ + + /* ==================== OPERATIONS ======================================= */ + + /* ==================== ACCESS ======================================= */ + + /* ==================== INQUIRY ======================================= */ + + /* ==================== DATA MEMBERS ======================================= */ + protected: + + private: + +}; /* ---------- end of template class |CLASSNAME| ---------- */ + +/* + *-------------------------------------------------------------------------------------- + * Class: |CLASSNAME| + * Method: |CLASSNAME| + * Description: + *-------------------------------------------------------------------------------------- + */ +template < class T > +|CLASSNAME| < T >::|CLASSNAME| () +{ +} /* ---------- end of constructor of template class |CLASSNAME| ---------- */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.template-class-using-new == +/* + * ===================================================================================== + * Class: |?CLASSNAME:c| + * Description: + * ===================================================================================== + */ +template < class T > +class |CLASSNAME| +{ + public: + + /* ==================== LIFECYCLE ======================================= */ + |CLASSNAME| (); /* constructor */ + |CLASSNAME| (const |CLASSNAME| &other); /* copy constructor */ + ~|CLASSNAME| (); /* destructor */ + + /* ==================== OPERATORS ======================================= */ + const |CLASSNAME|& operator = ( const |CLASSNAME| &other ); /* assignment operator */ + + /* ==================== OPERATIONS ======================================= */ + + /* ==================== ACCESS ======================================= */ + + /* ==================== INQUIRY ======================================= */ + + /* ==================== DATA MEMBERS ======================================= */ + protected: + + private: + +}; /* ---------- end of template class |CLASSNAME| ---------- */ + +/* + *-------------------------------------------------------------------------------------- + * Class: |CLASSNAME| + * Method: |CLASSNAME| + * Description: constructor + *-------------------------------------------------------------------------------------- + */ +template < class T > +|CLASSNAME|< T >::|CLASSNAME| () +{ +} /* ---------- end of constructor of template class |CLASSNAME| ---------- */ + +/* + *-------------------------------------------------------------------------------------- + * Class: |CLASSNAME| + * Method: |CLASSNAME| + * Description: copy constructor + *-------------------------------------------------------------------------------------- + */ +template < class T > +|CLASSNAME|< T >::|CLASSNAME| ( const |CLASSNAME| &other ) +{ +} /* ---------- end of copy constructor of template class |CLASSNAME| ---------- */ + +/* + *-------------------------------------------------------------------------------------- + * Class: |CLASSNAME| + * Method: ~|CLASSNAME| + * Description: destructor + *-------------------------------------------------------------------------------------- + */ +template < class T > +|CLASSNAME|< T >::~|CLASSNAME| () +{ +} /* ---------- end of destructor of template class |CLASSNAME| ---------- */ + +/* + *-------------------------------------------------------------------------------------- + * Class: |CLASSNAME| + * Method: operator = + * Description: assignment operator + *-------------------------------------------------------------------------------------- + */ +template < class T > +const |CLASSNAME|< T >& |CLASSNAME|< T >::operator = ( const |CLASSNAME| &other ) +{ + return *this; +} /* ---------- end of assignment operator of template class |CLASSNAME| ---------- */ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.template-function == +template +void |?TEMPALTE_FUNCTION_NAME| ( T param ) +{ + return ; +} /* ----- end of template function |?TEMPALTE_FUNCTION_NAME| ----- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.operator-in == +ostream & +operator << ( ostream & os, const |?CLASSNAME| & obj ) +{ + os << obj. ; + return os; +} /* ----- end of function operator << ----- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.operator-out == +istream & +operator >> ( istream & is, |?CLASSNAME| & obj ) +{ + is >> obj. ; + return is; +} /* ----- end of function operator >> ----- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.try-catch == +try { +} +catch ( const &ExceptObj ) { /* handle exception: */ +} +catch (...) { /* handle exception: unspezified */ +} + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.catch == +catch ( const &ExceptObj ) { /* handle exception: */ +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.catch-points == +catch (...) { /* handle exception: */ +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.extern == +extern "C" { +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.open-input-file == +char *ifs_file_name = ""; /* input file name */ +ifstream ifs; /* create ifstream object */ + +ifs.open (ifs_file_name); /* open ifstream */ +if (!ifs) { + cerr << "\nERROR : failed to open input file " << ifs_file_name << endl; + exit (EXIT_FAILURE); +} + + +ifs.close (); /* close ifstream */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.open-output-file == +char *ofs_file_name = ""; /* output file name */ +ofstream ofs; /* create ofstream object */ + +ofs.open (ofs_file_name); /* open ofstream */ +if (!ofs) { + cerr << "\nERROR : failed to open output file " << ofs_file_name << endl; + exit (EXIT_FAILURE); +} + + +ofs.close (); /* close ofstream */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.namespace == +namespace |?NAMESPACE| +{ +} /* ----- end of |NAMESPACE| name ----- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/dot_vim/c-support/templates/c.idioms.template b/dot_vim/c-support/templates/c.idioms.template new file mode 100644 index 0000000..09bc0b7 --- /dev/null +++ b/dot_vim/c-support/templates/c.idioms.template @@ -0,0 +1,98 @@ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.function == +void +|?FUNCTION_NAME| ( ) +{ + return ; +} /* ----- end of function |FUNCTION_NAME| ----- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.function-static == +static void +|?FUNCTION_NAME| ( ) +{ + return ; +} /* ----- end of static function |FUNCTION_NAME| ----- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.main == +int +main ( int argc, char *argv[] ) +{ + return EXIT_SUCCESS; +} /* ---------- end of function main ---------- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.enum == +enum |?ENUM_NAME| { +}; /* ---------- end of enum |ENUM_NAME| ---------- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.struct == +struct |?STRUCT_NAME| { +}; /* ---------- end of struct |STRUCT_NAME| ---------- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.union == +union |?UNION_NAME| { +}; /* ---------- end of union |UNION_NAME| ---------- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.calloc == +|?POINTER| = (TYPE*)calloc ( (size_t)(COUNT), sizeof(TYPE) ); +if ( |POINTER|==NULL ) { + fprintf ( stderr, "\ndynamic memory allocation failed\n" ); + exit (EXIT_FAILURE); +} + +free (|POINTER|); + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.malloc == +|?POINTER| = (TYPE*)malloc ( sizeof(TYPE) ); +if ( |POINTER|==NULL ) { + fprintf ( stderr, "\ndynamic memory allocation failed\n" ); + exit (EXIT_FAILURE); +} + +free (|POINTER|); + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.open-input-file == +FILE *|?FILEPOINTER|; /* input-file pointer */ +char *|FILEPOINTER|_file_name = ""; /* input-file name */ + +|FILEPOINTER| = fopen( |FILEPOINTER|_file_name, "r" ); +if ( |FILEPOINTER| == NULL ) { + fprintf ( stderr, "couldn't open file '%s'; %s\n", + |FILEPOINTER|_file_name, strerror(errno) ); + exit (EXIT_FAILURE); +} + + +if( fclose(|FILEPOINTER|) == EOF ) { /* close input file */ + fprintf ( stderr, "couldn't close file '%s'; %s\n", + |FILEPOINTER|_file_name, strerror(errno) ); + exit (EXIT_FAILURE); +} + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.open-output-file == +FILE *|?FILEPOINTER|; /* output-file pointer */ +char *|FILEPOINTER|_file_name = ""; /* output-file name */ + +|FILEPOINTER| = fopen( |FILEPOINTER|_file_name, "w" ); +if ( |FILEPOINTER| == NULL ) { + fprintf ( stderr, "couldn't open file '%s'; %s\n", + |FILEPOINTER|_file_name, strerror(errno) ); + exit (EXIT_FAILURE); +} + + +if( fclose(|FILEPOINTER|) == EOF ) { /* close output file */ + fprintf ( stderr, "couldn't close file '%s'; %s\n", + |FILEPOINTER|_file_name, strerror(errno) ); + exit (EXIT_FAILURE); +} + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.fprintf == +fprintf ( |?FILEPOINTER|, "\n", ); +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.fscanf == +fscanf ( |?FILEPOINTER|, "", & ); +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/dot_vim/c-support/templates/c.preprocessor.template b/dot_vim/c-support/templates/c.preprocessor.template new file mode 100644 index 0000000..3ec674a --- /dev/null +++ b/dot_vim/c-support/templates/c.preprocessor.template @@ -0,0 +1,34 @@ +$------------------------------------------------------------------------- +== preprocessor.define == +#define /* */ +$------------------------------------------------------------------------- +== preprocessor.undefine == +#undef /* */ +$------------------------------------------------------------------------- +== preprocessor.if-else-endif == +#if |?CONDITION:u| + +#else /* ----- not |CONDITION| ----- */ + +#endif /* ----- not |CONDITION| ----- */ +$------------------------------------------------------------------------- +== preprocessor.ifdef-else-endif == +#ifdef |?CONDITION:u| + +#else /* ----- not |CONDITION| ----- */ + +#endif /* ----- not |CONDITION| ----- */ +$------------------------------------------------------------------------- +== preprocessor.ifndef-else-endif == +#ifndef |?CONDITION:u| + +#else /* ----- not |CONDITION| ----- */ + +#endif /* ----- not |CONDITION| ----- */ +$------------------------------------------------------------------------- +== preprocessor.ifndef-def-endif == +#ifndef |?BASENAME:L|_INC +#define |BASENAME|_INC + +#endif /* ----- #ifndef |BASENAME|_INC ----- */ +$------------------------------------------------------------------------- diff --git a/dot_vim/c-support/templates/c.statements.template b/dot_vim/c-support/templates/c.statements.template new file mode 100644 index 0000000..966ae3a --- /dev/null +++ b/dot_vim/c-support/templates/c.statements.template @@ -0,0 +1,62 @@ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.do-while == +do { +} while ( ); /* ----- end do-while ----- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.for == +for ( ; ; ) +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.for-block == +for ( ; ; ) { +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.if == +if ( ) +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.if-block == +if ( ) { +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.if-else == +if ( ) +else +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.if-block-else == +if ( ) { +} else { +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.while == +while ( ) +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.while-block == +while ( ) { +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.switch == +switch ( ) { + case : + break; + + case : + break; + + case : + break; + + case : + break; + + default: + break; +} /* ----- end switch ----- */ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.case == +case : +break; + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.block == +{ +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/dot_vim/c-support/templates/cpp.comments.template b/dot_vim/c-support/templates/cpp.comments.template new file mode 100644 index 0000000..9929eab --- /dev/null +++ b/dot_vim/c-support/templates/cpp.comments.template @@ -0,0 +1,139 @@ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.end-of-line-comment == append == +// +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.frame == +//---------------------------------------------------------------------- +// +//---------------------------------------------------------------------- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.function == +// === FUNCTION =========================================================== +// Name: |?FUNCTION_NAME| +// Description: +// ========================================================================== +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.method == +//--------------------------------------------------------------------------- +// Class: |?CLASSNAME| +// Method: |?METHODNAME| +// Description: +//--------------------------------------------------------------------------- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.class == +// ========================================================================== +// Class: |?CLASSNAME| +// Description: +// ========================================================================== +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-description == start == +// ========================================================================== +// +// Filename: |FILENAME| +// +// Description: +// +// Version: 1.0 +// Created: |DATE| |TIME| +// Revision: none +// Compiler: g++ +// +// Author: |AUTHOR| (|AUTHORREF|), |EMAIL| +// License: |LICENSE| +// +// ========================================================================== + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-bug == append == + // :BUG:|DATE| |TIME|:|AUTHORREF|: +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-compiler == append == + // :COMPILER:|DATE| |TIME|:|AUTHORREF|: +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-todo == append == + // :TODO:|DATE| |TIME|:|AUTHORREF|: +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-tricky == append == + // :TRICKY:|DATE| |TIME|:|AUTHORREF|: +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-warning == append == + // :WARNING:|DATE| |TIME|:|AUTHORREF|: +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-workaround == append == + // :WORKAROUND:|DATE| |TIME|:|AUTHORREF|: +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.keyword-keyword == append == + // :|?KEYWORD:u|:|DATE| |TIME|:|AUTHORREF|: +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-header-includes == +// ##### HEADER FILE INCLUDES ################################################### + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-macros == +// ##### MACROS - LOCAL TO THIS SOURCE FILE ################################### + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-typedefs == +// ##### TYPE DEFINITIONS - LOCAL TO THIS SOURCE FILE ######################### + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-data-types == +// ##### DATA TYPES - LOCAL TO THIS SOURCE FILE ############################### + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-class-defs == +// ##### CLASS DEFINITIONS - LOCAL TO THIS SOURCE FILE ######################## + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-local-variables == +// ##### VARIABLES - LOCAL TO THIS SOURCE FILE ################################ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-prototypes == +// ##### PROTOTYPES - LOCAL TO THIS SOURCE FILE ############################### + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-function-defs-exported == +// ##### FUNCTION DEFINITIONS - EXPORTED FUNCTIONS ############################ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-function-defs-local == +// ##### FUNCTION DEFINITIONS - LOCAL TO THIS SOURCE FILE ##################### + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-class-implementations-exported == +// ##### CLASS IMPLEMENTATIONS - EXPORTED CLASSES ############################# + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-cpp-class-implementations-local == +// ##### CLASS IMPLEMENTATIONS - LOCAL CLASSES ################################ + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-header-includes == +// ##### HEADER FILE INCLUDES ################################################### + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-macros == +// ##### EXPORTED MACROS ######################################################## + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-exported-typedefs == +// ##### EXPORTED TYPE DEFINITIONS ############################################## + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-exported-data-types == +// ##### EXPORTED DATA TYPES #################################################### + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-exported-class-defs == +// ##### EXPORTED CLASS DEFINITIONS ############################################# + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-exported-variables == +// ##### EXPORTED VARIABLES ##################################################### + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== comment.file-section-hpp-exported-function-declarations == +// ##### EXPORTED FUNCTION DECLARATIONS ######################################### + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/dot_vim/c-support/templates/cpp.cpp.template b/dot_vim/c-support/templates/cpp.cpp.template new file mode 100644 index 0000000..7773989 --- /dev/null +++ b/dot_vim/c-support/templates/cpp.cpp.template @@ -0,0 +1,329 @@ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.method-implementation == +void +|?CLASSNAME|::|?METHODNAME| ( ) +{ + return ; +} // ----- end of method |CLASSNAME|::|METHODNAME| ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.class == +// ===================================================================================== +// Class: |?CLASSNAME:c| +// Description: +// ===================================================================================== +class |CLASSNAME| +{ + public: + + // ==================== LIFECYCLE ======================================= + |CLASSNAME| (); // constructor + + // ==================== OPERATORS ======================================= + + // ==================== OPERATIONS ======================================= + + // ==================== ACCESS ======================================= + + // ==================== INQUIRY ======================================= + + // ==================== DATA MEMBERS ======================================= + protected: + + private: + +}; // ----- end of class |CLASSNAME| ----- + +//-------------------------------------------------------------------------------------- +// Class: |CLASSNAME| +// Method: |CLASSNAME| +// Description: constructor +//-------------------------------------------------------------------------------------- +|CLASSNAME|::|CLASSNAME| () +{ +} // ----- end of method |CLASSNAME|::|CLASSNAME| (constructor) ----- + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.class-using-new == +// ===================================================================================== +// Class: |?CLASSNAME:c| +// Description: +// ===================================================================================== +class |CLASSNAME| +{ + public: + + // ==================== LIFECYCLE ======================================= + |CLASSNAME| (); // constructor + |CLASSNAME| ( const |CLASSNAME| &other ); // copy constructor + ~|CLASSNAME| (); // destructor + + // ==================== OPERATORS ======================================= + const |CLASSNAME|& operator = ( const |CLASSNAME| &other ); // assignment operator + + // ==================== OPERATIONS ======================================= + + // ==================== ACCESS ======================================= + + // ==================== INQUIRY ======================================= + + // ==================== DATA MEMBERS ======================================= + protected: + + private: + +}; // ----- end of class |CLASSNAME| ----- + +//-------------------------------------------------------------------------------------- +// Class: |CLASSNAME| +// Method: |CLASSNAME| +// Description: constructor +//-------------------------------------------------------------------------------------- +|CLASSNAME|::|CLASSNAME| () +{ +} // ----- end of method |CLASSNAME|::|CLASSNAME| (constructor) ----- + +//-------------------------------------------------------------------------------------- +// Class: |CLASSNAME| +// Method: |CLASSNAME| +// Description: copy constructor +//-------------------------------------------------------------------------------------- +|CLASSNAME|::|CLASSNAME| ( const |CLASSNAME| &other ) +{ +} // ----- end of method |CLASSNAME|::|CLASSNAME| (copy constructor) ----- + +//-------------------------------------------------------------------------------------- +// Class: |CLASSNAME| +// Method: ~|CLASSNAME| +// Description: destructor +//-------------------------------------------------------------------------------------- +|CLASSNAME|::~|CLASSNAME| () +{ +} // ----- end of method |CLASSNAME|::~|CLASSNAME| (destructor) ----- + +//-------------------------------------------------------------------------------------- +// Class: |CLASSNAME| +// Method: operator = +// Description: assignment operator +//-------------------------------------------------------------------------------------- +const |CLASSNAME|& +|CLASSNAME|::operator = ( const |CLASSNAME| &other ) +{ + if ( this != &other ) { + } + return *this; +} // ----- end of method |CLASSNAME|::operator = (assignment operator) ----- + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.error-class == +// ===================================================================================== +// Class: |?CLASSNAME:c| +// Description: +// ===================================================================================== +class |CLASSNAME| +{ + public: |CLASSNAME| ( char *msg ):message(msg) { } + virtual ~|CLASSNAME| ( ) { } + virtual const char* what ( ) const throw ( ) { return message; } + protected: char *message; +}; // ---------- end of class |CLASSNAME| ---------- + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.template-method-implementation == +template < class T > +void |?CLASSNAME|::|?METHODNAME| ( ) +{ + return ; +} // ----- end of method |CLASSNAME|::|METHODNAME| ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.template-class == +// ===================================================================================== +// Class: |?CLASSNAME:c| +// Description: +// ===================================================================================== + +template < class T > +class |CLASSNAME| +{ + public: + + // ==================== LIFECYCLE ======================================= + |CLASSNAME| (); // constructor + + // ==================== OPERATORS ======================================= + + // ==================== OPERATIONS ======================================= + + // ==================== ACCESS ======================================= + + // ==================== INQUIRY ======================================= + + // ==================== DATA MEMBERS ======================================= + protected: + + private: + +}; // ----- end of template class |CLASSNAME| ----- + +//-------------------------------------------------------------------------------------- +// Class: |CLASSNAME| +// Method: |CLASSNAME| +// Description: constructor +//-------------------------------------------------------------------------------------- +template < class T > +|CLASSNAME| :: |CLASSNAME| () +{ +} // ----- end of constructor of template class |CLASSNAME| ----- + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.template-class-using-new == +// ===================================================================================== +// Class: |?CLASSNAME:c| +// Description: +// ===================================================================================== + +template < class T > +class |CLASSNAME| +{ + public: + + // ==================== LIFECYCLE ======================================= + |CLASSNAME| (); // constructor + |CLASSNAME| ( const |CLASSNAME| &other ); // copy constructor + ~|CLASSNAME| (); // destructor + + // ==================== OPERATORS ======================================= + + const |CLASSNAME|& operator = ( const |CLASSNAME| &other ); // assignment operator + + // ==================== OPERATIONS ======================================= + + // ==================== ACCESS ======================================= + + // ==================== INQUIRY ======================================= + + // ==================== DATA MEMBERS ======================================= + protected: + + private: + +}; // ----- end of template class |CLASSNAME| ----- + +//-------------------------------------------------------------------------------------- +// Class: |CLASSNAME| +// Method: |CLASSNAME| +// Description: constructor +//-------------------------------------------------------------------------------------- +template < class T > +|CLASSNAME|::|CLASSNAME| () +{ +} // ----- end of constructor of template class |CLASSNAME| ----- + +//-------------------------------------------------------------------------------------- +// Class: |CLASSNAME| +// Method: |CLASSNAME| +// Description: copy constructor +//-------------------------------------------------------------------------------------- +template < class T > +|CLASSNAME|::|CLASSNAME| ( const |CLASSNAME| &other ) +{ +} // ----- end of copy constructor of template class |CLASSNAME| ----- + +//-------------------------------------------------------------------------------------- +// Class: |CLASSNAME| +// Method: ~|CLASSNAME| +// Description: destructor +//-------------------------------------------------------------------------------------- +template < class T > +|CLASSNAME|::~|CLASSNAME| () +{ +} // ----- end of destructor of template class |CLASSNAME| ----- + +//-------------------------------------------------------------------------------------- +// Class: |CLASSNAME| +// Method: operator = +// Description: assignment operator +//-------------------------------------------------------------------------------------- +template < class T > +const |CLASSNAME|& |CLASSNAME|::operator = ( const |CLASSNAME| &other ) +{ + if ( this != &other ) { + } + return *this; +} // ----- end of assignment operator of template class |CLASSNAME| ----- + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.template-function == +template +void |?TEMPALTE_FUNCTION_NAME| ( T param ) +{ + return ; +} // ----- end of template function |?TEMPALTE_FUNCTION_NAME| ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.operator-in == +ostream & +operator << ( ostream & os, const |?CLASSNAME| & obj ) +{ + os << obj. ; + return os; +} // ----- end of function operator << ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.operator-out == +istream & +operator >> ( istream & is, |?CLASSNAME| & obj ) +{ + is >> obj. ; + return is; +} // ----- end of function operator >> ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.try-catch == +try { +} +catch ( const &ExceptObj ) { // handle exception: +} +catch (...) { // handle exception: unspezified +} + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.catch == +catch ( const &ExceptObj ) { // handle exception: +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.catch-points == +catch (...) { // handle exception: +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.extern == +extern "C" { +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.open-input-file == +char *ifs_file_name = ""; // input file name +ifstream ifs; // create ifstream object + +ifs.open (ifs_file_name); // open ifstream +if (!ifs) { + cerr << "\nERROR : failed to open input file " << ifs_file_name << endl; + exit (EXIT_FAILURE); +} + + +ifs.close (); // close ifstream +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.open-output-file == +char *ofs_file_name = ""; // output file name +ofstream ofs; // create ofstream object + +ofs.open (ofs_file_name); // open ofstream +if (!ofs) { + cerr << "\nERROR : failed to open output file " << ofs_file_name << endl; + exit (EXIT_FAILURE); +} + + +ofs.close (); // close ofstream +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== cpp.namespace == +namespace |?NAMESPACE| +{ +} // ----- end of |NAMESPACE| name ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/dot_vim/c-support/templates/cpp.idioms.template b/dot_vim/c-support/templates/cpp.idioms.template new file mode 100644 index 0000000..febc375 --- /dev/null +++ b/dot_vim/c-support/templates/cpp.idioms.template @@ -0,0 +1,98 @@ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.function == +void +|?FUNCTION_NAME| ( ) +{ + return ; +} // ----- end of function |FUNCTION_NAME| ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.function-static == +static void +|?FUNCTION_NAME| ( ) +{ + return ; +} // ----- end of static function |FUNCTION_NAME| ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.main == +int +main ( int argc, char *argv[] ) +{ + return EXIT_SUCCESS; +} // ---------- end of function main ---------- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.enum == +enum |?ENUM_NAME| { +}; // ---------- end of enum |ENUM_NAME| ---------- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.struct == +struct |?STRUCT_NAME| { +}; // ---------- end of struct |STRUCT_NAME| ---------- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.union == +union |?UNION_NAME| { +}; // ---------- end of union |UNION_NAME| ---------- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.calloc == +|?POINTER| = (TYPE*)calloc ( (size_t)(COUNT), sizeof(TYPE) ); +if ( |POINTER|==NULL ) { + fprintf ( stderr, "\ndynamic memory allocation failed\n" ); + exit (EXIT_FAILURE); +} + +free (|POINTER|); + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.malloc == +|?POINTER| = (TYPE*)malloc ( sizeof(TYPE) ); +if ( |POINTER|==NULL ) { + fprintf ( stderr, "\ndynamic memory allocation failed\n" ); + exit (EXIT_FAILURE); +} + +free (|POINTER|); + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.open-input-file == +FILE *|?FILEPOINTER|; // input-file pointer +char *|FILEPOINTER|_file_name = ""; // input-file name + +|FILEPOINTER| = fopen( |FILEPOINTER|_file_name, "r" ); +if ( |FILEPOINTER| == NULL ) { + fprintf ( stderr, "couldn't open file '%s'; %s\n", + |FILEPOINTER|_file_name, strerror(errno) ); + exit (EXIT_FAILURE); +} + + +if( fclose(|FILEPOINTER|) == EOF ) { // close input file + fprintf ( stderr, "couldn't close file '%s'; %s\n", + |FILEPOINTER|_file_name, strerror(errno) ); + exit (EXIT_FAILURE); +} + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.open-output-file == +FILE *|?FILEPOINTER|; // output-file pointer +char *|FILEPOINTER|_file_name = ""; // output-file name + +|FILEPOINTER| = fopen( |FILEPOINTER|_file_name, "w" ); +if ( |FILEPOINTER| == NULL ) { + fprintf ( stderr, "couldn't open file '%s'; %s\n", + |FILEPOINTER|_file_name, strerror(errno) ); + exit (EXIT_FAILURE); +} + + +if( fclose(|FILEPOINTER|) == EOF ) { // close output file + fprintf ( stderr, "couldn't close file '%s'; %s\n", + |FILEPOINTER|_file_name, strerror(errno) ); + exit (EXIT_FAILURE); +} + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.fprintf == +fprintf ( |?FILEPOINTER|, "\n", ); +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== idioms.fscanf == +fscanf ( |?FILEPOINTER|, "", & ); +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/dot_vim/c-support/templates/cpp.preprocessor.template b/dot_vim/c-support/templates/cpp.preprocessor.template new file mode 100644 index 0000000..dbf8abb --- /dev/null +++ b/dot_vim/c-support/templates/cpp.preprocessor.template @@ -0,0 +1,34 @@ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== preprocessor.define == +#define // +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== preprocessor.undefine == +#undef // +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== preprocessor.if-else-endif == +#if |?CONDITION:u| + +#else // ----- not |CONDITION| ----- + +#endif // ----- not |CONDITION| ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== preprocessor.ifdef-else-endif == +#ifdef |?CONDITION:u| + +#else // ----- not |CONDITION| ----- + +#endif // ----- not |CONDITION| ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== preprocessor.ifndef-else-endif == +#ifndef |?CONDITION:u| + +#else // ----- not |CONDITION| ----- + +#endif // ----- not |CONDITION| ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== preprocessor.ifndef-def-endif == +#ifndef |?BASENAME:L|_INC +#define |BASENAME|_INC + +#endif // ----- #ifndef |BASENAME|_INC ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/dot_vim/c-support/templates/cpp.statements.template b/dot_vim/c-support/templates/cpp.statements.template new file mode 100644 index 0000000..8018334 --- /dev/null +++ b/dot_vim/c-support/templates/cpp.statements.template @@ -0,0 +1,62 @@ +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.do-while == +do { +} while ( ); // ----- end do-while ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.for == +for ( ; ; ) +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.for-block == +for ( ; ; ) { +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.if == +if ( ) +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.if-block == +if ( ) { +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.if-else == +if ( ) +else +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.if-block-else == +if ( ) { +} else { +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.while == +while ( ) +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.while-block == +while ( ) { +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.switch == +switch ( ) { + case : + break; + + case : + break; + + case : + break; + + case : + break; + + default: + break; +} // ----- end switch ----- +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.case == +case : +break; + +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +== statements.block == +{ +} +$%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/dot_vim/c-support/wordlists/c-c++-keywords.list b/dot_vim/c-support/wordlists/c-c++-keywords.list new file mode 100644 index 0000000..5a97dd6 --- /dev/null +++ b/dot_vim/c-support/wordlists/c-c++-keywords.list @@ -0,0 +1,209 @@ +adjustfield +basefield +boolalpha +floatfield +internal +scientific +setbase +setiosflags +setprecision +showbase +showpoint +showpos +uppercase + +auto +break +case +char +const +continue +default +double +else +enum +extern +float +goto +inline +long +register +restrict +return +short +signed +sizeof +static +struct +switch +typedef +union +unsigned +void +volatile +while +_Bool +_Complex +_Imaginary +EXIT_FAILURE +EXIT_SUCCESS + +bool +catch +class +const_cast +delete +dynamic_cast +explicit +export +false +friend +mutable +namespace +operator +private +protected +public +reinterpret_cast +static_cast +template +this +throw +true +typeid +typename +using +virtual +wchar_t + +and_eq +bitand +bitor +compl +not_eq +or_eq +xor_eq + +define +defined +elif +endif +error +ifdef +ifndef +include +pragma +undef + +exception +bad_alloc +bad_exception +bad_cast +bad_typeid +ios_base::failure +logic_error +domain_error +invalid_argument +length_error +out_of_range +runtime_error +range_error +overflow_error +underflow_error +uncaught_exception + +__DATE__ +__FILE__ +__LINE__ +__STDC__ +__STDC_HOSTED__ +__STDC_IEC_559__ +__STDC_IEC_559_COMPLEX__ +__STDC_ISO_10646__ +__STDC_VERSION__ +__TIME__ +__func__ +__cplusplus + +__BORLANDC__ +__CYGWIN__ +__CYGWIN32__ +__GNUC__ +__WIN32__ +__WINDOWS__ + +assert +ctype +errno +float +limits +locale +math +setjmp +signal +stdarg +stddef +stdio +stdlib +string +time + +complex +fenv +inttypes +iso646 +stdbool +stdint +tgmath +wchar +wctype + +algorithm +bitset +complex +deque +exception +fstream +functional +iomanip +ios +iosfwd +iostream +istream +iterator +limits +list +locale + +map +memory +new +numeric +ostream +queue +set +sstream +stack +stdexcept +streambuf +string +typeinfo +utility +valarray +vector + +cassert +cctype +cerrno +cfloat +climits +clocale +cmath +csetjmp +csignal +cstdarg +cstddef +cstdio +cstdlib +cstring +ctime diff --git a/dot_vim/c-support/wordlists/k+r.list b/dot_vim/c-support/wordlists/k+r.list new file mode 100644 index 0000000..805756a --- /dev/null +++ b/dot_vim/c-support/wordlists/k+r.list @@ -0,0 +1,108 @@ +address +allocator +allocation +argument +arithmetic +array +assignement +bitwise +block +character +command +condition +conditional +constant +conversion +declaration +decrement +defined +definition +descriptor +description +dimension +evaluation +expression +external +format +formatted +function +global +handling +identifier +implementation +increment +initialization +input +interface +label +lexical +local +logical +lookup +loop +lvalue +miscellaneous +notation +numerical +operator +operation +output +pointer +precedence +preprocessor +preprocessing +program +random +recursion +recursive +reference +referential +relational +scope +standard +statement +string +structure +system +undefined +variable + +abstract +algorithm +alignment +application +assignment +asynchronous +binary +buffer +component +constructor +container +destructor +difference +enumeration +exception +floating-point +horizontal +inheritance +instantiation +integer +internal +invariant +iterator +localization +overflow +overload +override +overwrite +polymorphic +portability +position +postcondition +precision +precondition +prototype +subscript +underflow +vertical +whitespace diff --git a/dot_vim/c-support/wordlists/stl_index.list b/dot_vim/c-support/wordlists/stl_index.list new file mode 100644 index 0000000..b5d98a3 --- /dev/null +++ b/dot_vim/c-support/wordlists/stl_index.list @@ -0,0 +1,202 @@ +accumulate +adjacent_difference +adjacent_find +advance +append +assign +auto_ptr +back +back_inserter +basic_string +bidirectional_iterator +bidirectional_iterator_tag +binary_compose +binary_function +binary_negate +binary_search +bind1st +bind2nd +bit_vector +bitset +capacity +char_producer +char_traits +char_type +compare +construct +copy +copy_backward +copy_n +count +count_if +deque +destroy +distance +distance_type +divides +equal +equal_range +equal_to +erase +fill +fill_n +find +find_end +find_first_not_of +find_first_of +find_if +find_last_not_of +find_last_of +for_each +forward_iterator +forward_iterator_tag +front +front_inserter +generate +generate_n +get_temporary_buffer +greater +greater_equal +hash +hash_map +hash_multimap +hash_multiset +hash_set +identity +includes +inner_product +inplace_merge +input_iterator +input_iterator_tag +insert +insert_iterator +inserter +int_type +iota +is_heap +is_sorted +istream_iterator +istream_type +istreambuf_iterator +iter_swap +iterator_category +iterator_traits +less +less_equal +lexicographical_compare +lexicographical_compare_3way +list +logical_and +logical_not +logical_or +lower_bound +make_heap +make_pair +map +max +max_element +mem_fun1_ref_t +mem_fun1_t +mem_fun_ref_t +mem_fun_t +merge +min +min_element +minus +mismatch +modulus +multimap +multiplies +multiset +negate +next_permutation +not_equal_to +nth_element +operator +ostream_iterator +ostreambuf_iterator +output_iterator +output_iterator_tag +pair +partial_sort +partial_sort_copy +partial_sum +partition +plus +pointer_to_binary_function +pointer_to_unary_function +pop_back +pop_front +pop_heap +power +prev_permutation +priority_queue +project1st +project2nd +ptr_fun +push_back +push_front +push_heap +queue +random_access_iterator +random_access_iterator_tag +random_sample +random_sample_n +random_shuffle +raw_storage_iterator +release +remove +remove_copy +remove_copy_if +remove_if +replace +replace_copy +replace_copy_if +replace_if +reset +resize +return_temporary_buffer +reverse +reverse_bidirectional_iterator +reverse_copy +reverse_iterator +rfind +rope +rotate +rotate_copy +search +search_n +select1st +select2nd +sequence_buffer +set +set_difference +set_intersection +set_symmetric_difference +set_union +slist +sort +sort_heap +stable_partition +stable_sort +stack +streambuf_type +substr +subtractive_rng +swap +swap_ranges +temporary_buffer +transform +unary_compose +unary_function +unary_negate +uninitialized_copy +uninitialized_copy_n +uninitialized_fill +uninitialized_fill_n +unique +unique_copy +upper_bound +value_comp +value_type +vector diff --git a/dot_vim/colors/adam.vim b/dot_vim/colors/adam.vim new file mode 100644 index 0000000..748ca7f --- /dev/null +++ b/dot_vim/colors/adam.vim @@ -0,0 +1,48 @@ +" local syntax file - set colors on a per-machine basis: +" vim: tw=0 ts=4 sw=4 +" Vim color file +" +" Based on an original vim color file by +" Ron Aaron (2001 Jul 28) +" +" Maintainer: Adam Krouskop +" Last Change: 2003 Jul 3 + + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "adam" +hi Normal guifg=#008844 guibg=#002244 +hi NonText guifg=brown +hi comment guifg=#D80033 +hi constant guifg=#CCCCCC +hi identifier guifg=#0033FF gui=NONE +hi statement guifg=white gui=NONE +hi preproc guifg=#009999 +hi type guifg=#0033FF gui=NONE +hi special guifg=#FFFF00 gui=NONE +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=#ffffff guifg=#cac2ff +hi Search guibg=#103F5F gui=bold +hi IncSearch gui=bold guibg=#285f7f +hi LineNr guifg=darkgrey +hi title guifg=darkgrey +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 diff --git a/dot_vim/colors/adaryn.vim b/dot_vim/colors/adaryn.vim new file mode 100644 index 0000000..1b17f22 --- /dev/null +++ b/dot_vim/colors/adaryn.vim @@ -0,0 +1,72 @@ +" Vim color file +" Maintainer: Glenn T. Norton +" Last Change: 2003-04-11 + +" adaryn - A color scheme named after my daughter, Adaryn. (A-da-rin) +" I like deep, sharp colors and this scheme is inspired by +" Bohdan Vlasyuk's darkblue. +" The cterm background is black since the dark blue was just too light. +" Also the cterm colors are very close to an old Borland C++ color setup. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "adaryn" + +hi Normal guifg=#fffff0 guibg=#00003F ctermfg=white ctermbg=Black +hi ErrorMsg guifg=#ffffff guibg=#287eff ctermfg=white ctermbg=red +hi Visual guifg=#8080ff guibg=fg gui=reverse ctermfg=blue 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 + +hi SpecialKey guifg=cyan ctermfg=darkcyan +hi Directory guifg=cyan ctermfg=cyan +hi Title guifg=#BDD094 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=#000020 guibg=#ffaf38 ctermfg=bg ctermbg=brown +hi lCursor guifg=#ffffff guibg=#000000 ctermfg=bg ctermbg=darkgreen + + +hi Comment guifg=yellow ctermfg=Yellow +hi Constant ctermfg=green guifg=green cterm=none +hi Special ctermfg=White guifg=#FFFFFF cterm=none gui=none +hi Identifier ctermfg=DarkRed guifg=#BDD094 cterm=none +hi Statement ctermfg=LightCyan cterm=none guifg=#A9A900 gui=none +hi PreProc ctermfg=DarkRed guifg=#ffffff gui=none cterm=none +hi type ctermfg=LightCyan guifg=LightBlue gui=none cterm=none +hi Underlined cterm=underline term=underline +hi Ignore guifg=bg ctermfg=bg + + diff --git a/dot_vim/colors/adrian.vim b/dot_vim/colors/adrian.vim new file mode 100644 index 0000000..ba830cd --- /dev/null +++ b/dot_vim/colors/adrian.vim @@ -0,0 +1,97 @@ +" Vim colorscheme file +" Maintainer: Adrian Nagle +" Last Change: 2001-09-25 07:48:15 Mountain Daylight Time +" URL: http://www.naglenet.org/vim/syntax/adrian.vim +" MAIN URL: http://www.naglenet.org/vim + +" This is my custom syntax file to override the defaults provided with Vim. +" This file should be located in $HOME/vimfiles/colors. + +" This file should automatically be sourced by $RUNTIMEPATH. + +" NOTE(S): +" *(1) +" The color definitions assumes and is intended for a black or dark +" background. + +" *(2) +" This file is specifically in Unix style EOL format so that I can simply +" copy this file between Windows and Unix systems. VIM can source files in +" with the UNIX EOL format (only instead of for DOS) in any +" operating system if the 'fileformats' is not empty and there is no +" just before the on the first line. See ':help :source_crnl' and +" ':help fileformats'. +" +" *(3) +" Move this file to adrian.vim for vim6.0aw. +" + + + +hi clear +set background=dark +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "adrian" + +" Normal is for the normal (unhighlighted) text and background. +" NonText is below the last line (~ lines). +highlight Normal guibg=Black guifg=Green +highlight Cursor guibg=Grey70 guifg=White +highlight NonText guibg=Grey80 +highlight StatusLine gui=bold guibg=DarkGrey guifg=Orange +highlight StatusLineNC guibg=DarkGrey guifg=Orange + +highlight Comment term=bold ctermfg=LightGrey guifg=#d1ddff +highlight Constant term=underline ctermfg=White guifg=#ffa0a0 +"highlight Number term=underline ctermfg=Yellow guifg=Yellow +highlight Identifier term=underline ctermfg=Cyan guifg=#40ffff +highlight Statement term=bold ctermfg=Yellow gui=bold guifg=#ffff60 +highlight PreProc term=underline ctermfg=Blue guifg=#ff4500 +highlight Type term=underline ctermfg=DarkGrey gui=bold guifg=#7d96ff +highlight Special term=bold ctermfg=Magenta guifg=Orange +highlight Ignore ctermfg=black guifg=bg +highlight Error ctermfg=White ctermbg=Red guifg=White guibg=Red +highlight Todo ctermfg=Blue ctermbg=Yellow guifg=Blue guibg=Yellow + +" Change the highlight of search matches (for use with :set hls). +highlight Search ctermfg=Black ctermbg=Yellow guifg=Black guibg=Yellow + +" Change the highlight of visual highlight. +highlight Visual cterm=NONE ctermfg=Black ctermbg=LightGrey gui=NONE guifg=Black guibg=Grey70 + +highlight Float ctermfg=Blue guifg=#88AAEE +highlight Exception ctermfg=Red ctermbg=White guifg=Red guibg=White +highlight Typedef ctermfg=White ctermbg=Blue gui=bold guifg=White guibg=Blue +highlight SpecialChar ctermfg=Black ctermbg=White guifg=Black guibg=White +highlight Delimiter ctermfg=White ctermbg=Black guifg=White guibg=Black +highlight SpecialComment ctermfg=Black ctermbg=Green guifg=Black guibg=Green + +" Common groups that link to default highlighting. +" You can specify other highlighting easily. +highlight link String Constant +highlight link Character Constant +highlight link Number Constant +highlight link Boolean Statement +"highlight link Float Number +highlight link Function Identifier +highlight link Conditional Type +highlight link Repeat Type +highlight link Label Type +highlight link Operator Type +highlight link Keyword Type +"highlight link Exception Type +highlight link Include PreProc +highlight link Define PreProc +highlight link Macro PreProc +highlight link PreCondit PreProc +highlight link StorageClass Type +highlight link Structure Type +"highlight link Typedef Type +"highlight link SpecialChar Special +highlight link Tag Special +"highlight link Delimiter Special +"highlight link SpecialComment Special +highlight link Debug Special + diff --git a/dot_vim/colors/af.vim b/dot_vim/colors/af.vim new file mode 100644 index 0000000..d85e7d3 --- /dev/null +++ b/dot_vim/colors/af.vim @@ -0,0 +1,99 @@ +" Vim color file +" Maintainer: Stanislav Lechev [AngelFire] +" Last Change: 2004/03/31 +" URL: http://af.mis.bg/vim/af.vim +" ICQ: 2924004 +" Info: based on desert and a little bit of gothic +" Version: 1.1 + +set background=dark +if version > 580 + hi clear + if exists("syntax_on") + syntax reset + endif +endif +let g:colors_name="af" + +hi User1 guibg=darkblue guifg=yellow +hi User2 guibg=darkblue guifg=lightblue +hi User3 guibg=darkblue guifg=red +hi User4 guibg=darkblue guifg=cyan +hi User5 guibg=darkblue guifg=lightgreen +set statusline=%<%1*===\ %5*%f%1*%(\ ===\ %4*%h%1*%)%(\ ===\ %4*%m%1*%)%(\ ===\ %4*%r%1*%)\ ===%====\ %2*%b(0x%B)%1*\ ===\ %3*%l,%c%V%1*\ ===\ %5*%P%1*\ ===%0* laststatus=2 + + +hi Normal guifg=#dfdfdf guibg=#000000 +"hi Normal guifg=#87dee0 guibg=#000000 +"hi Normal guifg=#98fb98 guibg=#000000 +hi Cursor guibg=khaki guifg=slategrey +hi Comment guifg=#808080 +"hi Identifier guifg=#98FB98 +hi Identifier guifg=#87def0 +hi Constant guifg=#FF99FF +"hi String guifg=#87cee0 +hi String guifg=lightred +hi Character guifg=#87cee0 +hi Statement guifg=khaki +hi PreProc guifg=red +"hi Type guifg=#a0a0ff gui=none +hi Type guifg=lightgreen gui=none +hi Todo guifg=orangered guibg=yellow2 +hi Special guifg=Orange +hi Visual guifg=SkyBlue guibg=grey60 gui=none +hi IncSearch guifg=#ffff60 guibg=#0000ff gui=none +hi Search guifg=khaki guibg=slategrey gui=none +hi Ignore guifg=grey40 + +hi VertSplit guibg=#c2bfa5 guifg=grey50 gui=none +hi Folded guibg=grey30 guifg=gold +hi FoldColumn guibg=grey30 guifg=tan +hi ModeMsg guifg=goldenrod +hi MoreMsg guifg=SeaGreen +hi NonText guifg=LightBlue guibg=#000000 +hi Question guifg=springgreen +hi SpecialKey guifg=yellowgreen +hi StatusLineNC guibg=#c2bfa5 guifg=grey50 gui=none +hi Title guifg=indianred +hi WarningMsg guifg=salmon + + +" these are from desert ... i didn't change it +" 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 Error cterm=bold ctermfg=7 ctermbg=1 + + +"vim: sw=4 diff --git a/dot_vim/colors/aiseered.vim b/dot_vim/colors/aiseered.vim new file mode 100644 index 0000000..7e71108 --- /dev/null +++ b/dot_vim/colors/aiseered.vim @@ -0,0 +1,37 @@ +" gVim color file for working with files in GDL/VCG format. +" Works nice in conjunction with gdl.vim +" (see www.vim.org or www.aisee.com) +" Works fine for C/C++, too. + +" Author : Alexander A. Evstyugov-Babaev +" Version: 0.2 for gVim/Linux, +" tested with gVim 6.3.25 under Ubuntu Linux (Warty) +" by Jo Vermeulen +" Date : January 25th 2005 + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name="aiseered" + +hi Normal guifg=lightred guibg=#600000 +hi Cursor guifg=bg guibg=fg +hi ErrorMsg guibg=red ctermfg=1 +hi Search term=reverse ctermfg=darkred ctermbg=lightred guibg=lightred guifg=#060000 + +hi Comment guifg=#ffffff +hi Constant guifg=#88ddee +hi String guifg=#ffcc88 +hi Character guifg=#ffaa00 +hi Number guifg=#88ddee +hi Identifier guifg=#cfcfcf +hi Statement guifg=#eeff99 gui=bold +hi PreProc guifg=firebrick1 gui=italic +hi Type guifg=#88ffaa gui=none +hi Special guifg=#ffaa00 +hi SpecialChar guifg=#ffaa00 +hi StorageClass guifg=#ddaacc +hi Error guifg=red guibg=white diff --git a/dot_vim/colors/aqua.vim b/dot_vim/colors/aqua.vim new file mode 100644 index 0000000..483b6ac --- /dev/null +++ b/dot_vim/colors/aqua.vim @@ -0,0 +1,44 @@ +" Vim color file +" Maintainer: tranquility@portugalmail.pt +" Last Change: 6 Apr 2002 + + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="aqua" + +hi Normal guibg=steelblue guifg=linen +hi Cursor guibg=lightblue3 guifg=black gui=bold +hi VertSplit guifg=white guibg=navyblue gui=none +hi Folded guibg=darkblue guifg=white +hi FoldColumn guibg=lightgray guifg=navyblue +hi ModeMsg guifg=black guibg=steelblue1 +hi MoreMsg guifg=black guibg=steelblue1 +hi NonText guifg=white guibg=steelblue4 gui=none +hi Question guifg=snow +hi Search guibg=#FFFFFF guifg=midnightblue gui=bold +hi SpecialKey guifg=navyblue +hi StatusLine guibg=skyblue3 guifg=black gui=none +hi StatusLineNC guibg=skyblue1 guifg=black gui=none +hi Title guifg=bisque3 +hi Subtitle guifg=black +hi Visual guifg=white guibg=royalblue4 gui=none +hi WarningMsg guifg=salmon4 guibg=gray60 gui=bold +hi Comment guifg=lightskyblue +hi Constant guifg=turquoise gui=bold +hi Identifier guifg=lightcyan +hi Statement guifg=royalblue4 +hi PreProc guifg=black gui=bold +hi Type guifg=lightgreen +hi Special guifg=navajowhite +hi Ignore guifg=grey29 +hi Todo guibg=black guifg=white +hi WildMenu guibg=aquamarine diff --git a/dot_vim/colors/astronaut.vim b/dot_vim/colors/astronaut.vim new file mode 100644 index 0000000..ae1dbf2 --- /dev/null +++ b/dot_vim/colors/astronaut.vim @@ -0,0 +1,160 @@ +" astronaut.vim: a colorscheme +" Maintainer: Charles E. Campbell, Jr. +" Date: Sep 01, 2004 +" Version: 6 NOT RELEASED +" +" Usage: +" Put into your <.vimrc> file: +" color astronaut +" +" Optional Modifiers: +" let g:astronaut_bold=1 : term, cterm, and gui receive bold modifier +" let g:astronaut_dark=1 : dark colors used (otherwise some terminals +" make everything bold, which can be all one +" color) +" let g:astronaut_underline=1 : assume that underlining works on your terminal +" let g:astronaut_italic=1 : allows italic to be used in gui +" Examples: +" iris : let astronaut_dark=1 +" Linux xterm: no modifiers needed +" +" GetLatestVimScripts: 122 1 :AutoInstall: astronaut.vim + +set background=dark +hi clear +if exists( "syntax_on" ) + syntax reset +endif +let g:colors_name = "astronaut" +let g:loaded_astronaut = "v6" + +" --------------------------------------------------------------------- +" Default option values +if !exists("g:astronaut_bold") + " on some machines, notably SGIs, a bold qualifier means everything is + " one color (SGIs: yellow) + let g:astronaut_bold= 0 +endif +if !exists("g:astronaut_dark") + " this option, if true, means darkcolor (ex. darkred, darkmagenta, etc) + " is understood and wanted + let g:astronaut_dark= 0 +endif +if !exists("g:astronaut_underline") + let g:astronaut_underline= 1 +endif +if !exists("g:astronaut_italic") + let g:astronaut_italic= 0 +endif + +" --------------------------------------------------------------------- +" Settings based on options +if g:astronaut_bold != 0 + let s:usebold=",bold" +else + let s:usebold="" +endif + +if g:astronaut_italic != 0 + " only affects Alt* in gvim + let s:useitalic= ",italic" +else + let s:useitalic= "" +endif + +if g:astronaut_dark != 0 + let s:black = "black" + let s:red = "darkred" + let s:green = "darkgreen" + let s:yellow = "darkyellow" + let s:blue = "darkblue" + let s:magenta = "darkmagenta" + let s:cyan = "darkcyan" + let s:white = "white" +else + let s:black = "black" + let s:red = "red" + let s:green = "green" + let s:yellow = "yellow" + let s:blue = "blue" + let s:magenta = "magenta" + let s:cyan = "cyan" + let s:white = "white" +endif + +if g:astronaut_underline != 0 + let s:underline= ",underline" + let s:ulbg = "" +else + let s:underline= "none" + if exists("g:astronaut_dark") + let s:ulbg = "ctermbg=darkmagenta guibg=magenta4" + else + let s:ulbg = "ctermbg=magenta guibg=magenta" + endif +endif + +" --------------------------------------------------------------------- +exe "hi Blue start= stop= ctermfg=".s:blue." guifg=blue guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Comment start= stop= ctermfg=".s:white." guifg=white term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Conceal ctermfg=".s:blue." ctermbg=".s:black." guifg=Blue guibg=Black term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Constant start= stop= ctermfg=".s:yellow." guifg=yellow guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Cursor guifg=blue guibg=green term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Cyan start= stop= ctermfg=".s:cyan." guifg=cyan guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Debug start= stop= ctermfg=".s:red." guifg=magenta guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Delimiter start= stop= ctermfg=".s:white." guifg=white guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi DiffAdd ctermfg=".s:white." ctermbg=".s:magenta." guifg=White guibg=Magenta term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi DiffChange ctermfg=".s:black." ctermbg=".s:green." guifg=Black guibg=Green term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi DiffDelete ctermfg=".s:white." ctermbg=".s:blue." guifg=White guibg=Blue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi DiffText ctermfg=".s:white." ctermbg=".s:red." guifg=White guibg=Red term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Directory start= stop= ctermfg=".s:white." guifg=white term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Error start= stop= ctermfg=".s:white." ctermbg=".s:red." guifg=white guibg=red term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi ErrorMsg ctermfg=".s:white." ctermbg=".s:red." guifg=White guibg=Red term=standout".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi FoldColumn start= stop= ctermfg=".s:cyan." ctermbg=".s:black." guifg=Cyan guibg=Brown term=standout".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Folded start= stop= ctermfg=".s:magenta." ctermbg=".s:black." guifg=magenta guibg=black term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Function start= stop= ctermfg=".s:cyan." guifg=cyan guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Green start= stop= ctermfg=".s:green." guifg=green guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Identifier start= stop= ctermfg=".s:magenta." guifg=magenta guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Ignore ctermfg=".s:black ." guifg=bg term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi IncSearch start= stop= ctermfg=".s:black ." ctermbg=".s:green." guifg=black guibg=green term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi LineNr ctermfg=".s:yellow." ".s:ulbg." guifg=Yellow term=none".s:underline.s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Magenta start= stop= ctermfg=".s:magenta." guifg=magenta guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Menu guifg=black guibg=gray75 term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi ModeMsg ctermfg=".s:green." guifg=SeaGreen term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi MoreMsg ctermfg=".s:green." guifg=SeaGreen term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi NonText ctermfg=".s:blue." guifg=Blue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Normal start= stop= ctermfg=".s:green." guifg=green guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi PreProc start= stop= ctermfg=".s:white." ctermbg=".s:blue." guifg=white guibg=blue3 term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Question start= stop= ctermfg=".s:yellow." guifg=yellow term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Red start= stop= ctermfg=".s:red." guifg=red guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Scrollbar guifg=gray80 guibg=gray70 term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Search start= stop= ctermfg=".s:yellow." ctermbg=".s:blue." guifg=yellow guibg=blue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Special start= stop= ctermfg=".s:green." ctermbg=".s:blue." guifg=green guibg=blue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi SpecialKey start= stop= ctermfg=".s:black." ctermbg=".s:magenta." guifg=black guibg=magenta term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Statement start= stop= ctermfg=".s:cyan." guifg=cyan guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi StatusLine start= stop= ctermfg=".s:black." ctermbg=".s:cyan." guifg=black guibg=cyan term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi StatusLineNC start= stop= ctermfg=".s:black." ctermbg=".s:green." guifg=black guibg=green term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi String start= stop= ctermfg=".s:yellow." guifg=yellow guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Subtitle start= stop= ctermfg=".s:magenta." guifg=magenta guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Tags start= stop= ctermfg=".s:yellow." ctermbg=".s:blue." guifg=yellow guibg=blue3 term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Title start= stop= ctermfg=".s:white." guifg=white term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Todo start= stop= ctermfg=".s:white." ctermbg=".s:magenta." guifg=white guibg=magenta term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Type start= stop= ctermfg=".s:green." ".s:ulbg." guifg=seagreen1 term=none".s:underline.s:usebold." cterm=none".s:usebold.s:underline." gui=none".s:usebold.s:underline +exe "hi Underlined ctermfg=".s:green." ".s:ulbg." guifg=green term=none".s:underline.s:usebold." cterm=none".s:usebold.s:underline." gui=none".s:usebold.s:underline +exe "hi Unique start= stop= ctermfg=".s:blue." ctermbg=".s:white." guifg=blue3 guibg=white term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi AltUnique start= stop= ctermfg=".s:magenta." ctermbg=".s:white." guifg=magenta guibg=white term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi AltAltUnique start= stop= ctermfg=".s:black." ctermbg=".s:white." guifg=black guibg=white term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi VertSplit start= stop= ctermfg=".s:black." ctermbg=".s:green." guifg=black guibg=green term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Visual start= stop= ctermfg=black ctermbg=green guifg=Grey guibg=fg term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi VisualNOS ".s:ulbg." term=none".s:underline.s:usebold." cterm=none".s:usebold.s:underline." gui=none".s:usebold.s:underline +exe "hi WarningMsg start= stop= ctermfg=".s:black." ctermbg=".s:yellow." guifg=black guibg=yellow term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi White start= stop= ctermfg=".s:white." guifg=white guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi WildMenu ctermfg=".s:black." ctermbg=".s:yellow." guifg=Black guibg=Yellow term=standout".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi Yellow start= stop= ctermfg=".s:yellow." guifg=yellow guibg=navyblue term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi lCursor guifg=bg guibg=fg term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold +exe "hi AltConstant start= stop= ctermfg=".s:yellow." ctermbg=".s:black." guifg=yellow guibg=black term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold.s:useitalic +exe "hi AltFunction start= stop= ctermfg=".s:green." ctermbg=".s:black." guifg=green guibg=black term=none".s:usebold." cterm=none".s:usebold." gui=none".s:usebold.s:useitalic +exe "hi AltType start= stop= ctermfg=".s:green." ctermbg=".s:black." guifg=seagreen1 guibg=black term=none".s:underline.s:usebold." cterm=none".s:usebold.s:underline." gui=none".s:usebold.s:underline.s:useitalic +exe "hi User1 ctermfg=".s:white." ctermbg=".s:blue." guifg=white guibg=blue" +exe "hi User2 ctermfg=".s:yellow." ctermbg=".s:blue." guifg=yellow guibg=blue" +" vim: nowrap diff --git a/dot_vim/colors/asu1dark.vim b/dot_vim/colors/asu1dark.vim new file mode 100644 index 0000000..ce5f90f --- /dev/null +++ b/dot_vim/colors/asu1dark.vim @@ -0,0 +1,59 @@ +" Vim color file +" Maintainer: A. Sinan Unur +" Last Change: 2001/10/04 + +" Dark color scheme + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="asu1dark" + +" Console Color Scheme +hi Normal term=NONE cterm=NONE ctermfg=LightGray ctermbg=Black +hi NonText term=NONE cterm=NONE ctermfg=Brown ctermbg=Black +hi Function term=NONE cterm=NONE ctermfg=DarkCyan ctermbg=Black +hi Statement term=BOLD cterm=BOLD ctermfg=DarkBlue ctermbg=Black +hi Special term=NONE cterm=NONE ctermfg=DarkGreen ctermbg=Black +hi SpecialChar term=NONE cterm=NONE ctermfg=Cyan ctermbg=Black +hi Constant term=NONE cterm=NONE ctermfg=Blue ctermbg=Black +hi Comment term=NONE cterm=NONE ctermfg=DarkGray ctermbg=Black +hi Preproc term=NONE cterm=NONE ctermfg=DarkGreen ctermbg=Black +hi Type term=NONE cterm=NONE ctermfg=DarkMagenta ctermbg=Black +hi Identifier term=NONE cterm=NONE ctermfg=Cyan ctermbg=Black +hi StatusLine term=BOLD cterm=NONE ctermfg=Yellow ctermbg=DarkBlue +hi StatusLineNC term=NONE cterm=NONE ctermfg=Black ctermbg=Gray +hi Visual term=NONE cterm=NONE ctermfg=White ctermbg=DarkCyan +hi Search term=NONE cterm=NONE ctermbg=Yellow ctermfg=DarkBlue +hi VertSplit term=NONE cterm=NONE ctermfg=Black ctermbg=Gray +hi Directory term=NONE cterm=NONE ctermfg=Green ctermbg=Black +hi WarningMsg term=NONE cterm=NONE ctermfg=Blue ctermbg=Yellow +hi Error term=NONE cterm=NONE ctermfg=DarkRed ctermbg=Gray +hi Cursor ctermfg=Black ctermbg=Cyan +hi LineNr term=NONE cterm=NONE ctermfg=Red ctermbg=Black + +" GUI Color Scheme +hi Normal gui=NONE guifg=White guibg=#110022 +hi NonText gui=NONE guifg=#ff9999 guibg=#444444 +hi Function gui=NONE guifg=#7788ff guibg=#110022 +hi Statement gui=BOLD guifg=Yellow guibg=#110022 +hi Special gui=NONE guifg=Cyan guibg=#110022 +hi Constant gui=NONE guifg=#ff9900 guibg=#110022 +hi Comment gui=NONE guifg=#99cc99 guibg=#110022 +hi Preproc gui=NONE guifg=#33ff66 guibg=#110022 +hi Type gui=NONE guifg=#ff5577 guibg=#110022 +hi Identifier gui=NONE guifg=Cyan guibg=#110022 +hi StatusLine gui=BOLD guifg=White guibg=#336600 +hi StatusLineNC gui=NONE guifg=Black guibg=#cccccc +hi Visual gui=NONE guifg=White guibg=#00aa33 +hi Search gui=BOLD guibg=Yellow guifg=DarkBlue +hi VertSplit gui=NONE guifg=White guibg=#666666 +hi Directory gui=NONE guifg=Green guibg=#110022 +hi WarningMsg gui=STANDOUT guifg=#0000cc guibg=Yellow +hi Error gui=NONE guifg=White guibg=Red +hi Cursor guifg=White guibg=#00ff33 +hi LineNr gui=NONE guifg=#cccccc guibg=#334444 +hi ModeMsg gui=NONE guifg=Blue guibg=White +hi Question gui=NONE guifg=#66ff99 guibg=#110022 diff --git a/dot_vim/colors/automation.vim b/dot_vim/colors/automation.vim new file mode 100644 index 0000000..b449145 --- /dev/null +++ b/dot_vim/colors/automation.vim @@ -0,0 +1,59 @@ +" Vim color file (automation.vim) +" Maintainer: Ken McConnell +" Last Change: 2004 Jan 15 +" +" This color scheme uses a light grey background. It was created to simulate +" the look of an IDE. It is named after the MFP Automation Team at HP Boise. +" + +" First remove all existing highlighting. +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "automation" + +hi Normal ctermbg=Black ctermfg=LightGrey guifg=Black guibg=Grey96 + +" 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=bold gui=bold +hi ModeMsg term=bold cterm=bold gui=bold +hi StatusLine term=bold cterm=bold gui=bold +hi StatusLineNC term=bold cterm=bold gui=bold +hi VertSplit term=bold cterm=bold gui=bold +hi Visual term=bold cterm=bold gui=bold 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 guibg=Black guifg=Black +hi lCursor guibg=Cyan guifg=Black +hi Directory term=bold ctermfg=LightCyan guifg=DarkBlue +hi LineNr term=underline ctermfg=DarkGrey guifg=DarkGrey guibg=LightGrey +hi MoreMsg term=bold ctermfg=LightGreen gui=bold guifg=SeaGreen +hi NonText term=bold ctermfg=LightBlue gui=bold guifg=DarkGreen guibg=grey80 +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=DarkBlue guifg=DarkBlue +hi Title term=bold ctermfg=LightMagenta gui=bold guifg=DarkBlue +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 guifg=Blue guibg=Grey90 ctermfg=DarkGreen +hi String guifg=DarkGreen ctermfg=DarkGreen +hi Statement guifg=DarkBlue ctermfg=Blue +hi Label gui=bold guifg=DarkBlue +" Groups for syntax highlighting +hi Constant term=underline ctermfg=DarkBlue guifg=DarkBlue guibg=Grey96 +hi Special term=bold ctermfg=LightRed guifg=DarkBlue guibg=Grey96 +if &t_Co > 8 + hi Statement term=bold cterm=bold ctermfg=DarkBlue guifg=DarkBlue +endif +hi Ignore ctermfg=LightGrey guifg=grey90 + +" vim: sw=2 diff --git a/dot_vim/colors/autumn.vim b/dot_vim/colors/autumn.vim new file mode 100644 index 0000000..f269b35 --- /dev/null +++ b/dot_vim/colors/autumn.vim @@ -0,0 +1,69 @@ +" Vim color file +" Maintainer: Tiza +" Last Change: 2002/10/14 Mon 16:41. +" version: 1.0 +" This color scheme uses a light background. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "autumn" + +hi Normal guifg=#404040 guibg=#fff4e8 + +" Search +hi IncSearch gui=UNDERLINE guifg=#404040 guibg=#e0e040 +hi Search gui=NONE guifg=#544060 guibg=#f0c0ff + +" Messages +hi ErrorMsg gui=BOLD guifg=#f8f8f8 guibg=#4040ff +hi WarningMsg gui=BOLD guifg=#f8f8f8 guibg=#4040ff +hi ModeMsg gui=NONE guifg=#d06000 guibg=NONE +hi MoreMsg gui=NONE guifg=#0090a0 guibg=NONE +hi Question gui=NONE guifg=#8000ff guibg=NONE + +" Split area +hi StatusLine gui=BOLD guifg=#f8f8f8 guibg=#904838 +hi StatusLineNC gui=BOLD guifg=#c0b0a0 guibg=#904838 +hi VertSplit gui=NONE guifg=#f8f8f8 guibg=#904838 +hi WildMenu gui=BOLD guifg=#f8f8f8 guibg=#ff3030 + +" Diff +hi DiffText gui=NONE guifg=#2850a0 guibg=#c0d0f0 +hi DiffChange gui=NONE guifg=#208040 guibg=#c0f0d0 +hi DiffDelete gui=NONE guifg=#ff2020 guibg=#eaf2b0 +hi DiffAdd gui=NONE guifg=#ff2020 guibg=#eaf2b0 + +" Cursor +hi Cursor gui=NONE guifg=#ffffff guibg=#0080f0 +hi lCursor gui=NONE guifg=#ffffff guibg=#8040ff +hi CursorIM gui=NONE guifg=#ffffff guibg=#8040ff + +" Fold +hi Folded gui=NONE guifg=#804030 guibg=#ffc0a0 +hi FoldColumn gui=NONE guifg=#a05040 guibg=#f8d8c4 + +" Other +hi Directory gui=NONE guifg=#7050ff guibg=NONE +hi LineNr gui=NONE guifg=#e0b090 guibg=NONE +hi NonText gui=BOLD guifg=#a05040 guibg=#ffe4d4 +hi SpecialKey gui=NONE guifg=#0080ff guibg=NONE +hi Title gui=BOLD guifg=fg guibg=NONE +hi Visual gui=NONE guifg=#804020 guibg=#ffc0a0 +" hi VisualNOS gui=NONE guifg=#604040 guibg=#e8dddd + +" Syntax group +hi Comment gui=NONE guifg=#ff5050 guibg=NONE +hi Constant gui=NONE guifg=#00884c guibg=NONE +hi Error gui=BOLD guifg=#f8f8f8 guibg=#4040ff +hi Identifier gui=NONE guifg=#b07800 guibg=NONE +hi Ignore gui=NONE guifg=bg guibg=NONE +hi PreProc gui=NONE guifg=#0090a0 guibg=NONE +hi Special gui=NONE guifg=#8040f0 guibg=NONE +hi Statement gui=BOLD guifg=#80a030 guibg=NONE +hi Todo gui=BOLD,UNDERLINE guifg=#0080f0 guibg=NONE +hi Type gui=BOLD guifg=#b06c58 guibg=NONE +hi Underlined gui=UNDERLINE guifg=blue guibg=NONE diff --git a/dot_vim/colors/autumn2.vim b/dot_vim/colors/autumn2.vim new file mode 100644 index 0000000..f269b35 --- /dev/null +++ b/dot_vim/colors/autumn2.vim @@ -0,0 +1,69 @@ +" Vim color file +" Maintainer: Tiza +" Last Change: 2002/10/14 Mon 16:41. +" version: 1.0 +" This color scheme uses a light background. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "autumn" + +hi Normal guifg=#404040 guibg=#fff4e8 + +" Search +hi IncSearch gui=UNDERLINE guifg=#404040 guibg=#e0e040 +hi Search gui=NONE guifg=#544060 guibg=#f0c0ff + +" Messages +hi ErrorMsg gui=BOLD guifg=#f8f8f8 guibg=#4040ff +hi WarningMsg gui=BOLD guifg=#f8f8f8 guibg=#4040ff +hi ModeMsg gui=NONE guifg=#d06000 guibg=NONE +hi MoreMsg gui=NONE guifg=#0090a0 guibg=NONE +hi Question gui=NONE guifg=#8000ff guibg=NONE + +" Split area +hi StatusLine gui=BOLD guifg=#f8f8f8 guibg=#904838 +hi StatusLineNC gui=BOLD guifg=#c0b0a0 guibg=#904838 +hi VertSplit gui=NONE guifg=#f8f8f8 guibg=#904838 +hi WildMenu gui=BOLD guifg=#f8f8f8 guibg=#ff3030 + +" Diff +hi DiffText gui=NONE guifg=#2850a0 guibg=#c0d0f0 +hi DiffChange gui=NONE guifg=#208040 guibg=#c0f0d0 +hi DiffDelete gui=NONE guifg=#ff2020 guibg=#eaf2b0 +hi DiffAdd gui=NONE guifg=#ff2020 guibg=#eaf2b0 + +" Cursor +hi Cursor gui=NONE guifg=#ffffff guibg=#0080f0 +hi lCursor gui=NONE guifg=#ffffff guibg=#8040ff +hi CursorIM gui=NONE guifg=#ffffff guibg=#8040ff + +" Fold +hi Folded gui=NONE guifg=#804030 guibg=#ffc0a0 +hi FoldColumn gui=NONE guifg=#a05040 guibg=#f8d8c4 + +" Other +hi Directory gui=NONE guifg=#7050ff guibg=NONE +hi LineNr gui=NONE guifg=#e0b090 guibg=NONE +hi NonText gui=BOLD guifg=#a05040 guibg=#ffe4d4 +hi SpecialKey gui=NONE guifg=#0080ff guibg=NONE +hi Title gui=BOLD guifg=fg guibg=NONE +hi Visual gui=NONE guifg=#804020 guibg=#ffc0a0 +" hi VisualNOS gui=NONE guifg=#604040 guibg=#e8dddd + +" Syntax group +hi Comment gui=NONE guifg=#ff5050 guibg=NONE +hi Constant gui=NONE guifg=#00884c guibg=NONE +hi Error gui=BOLD guifg=#f8f8f8 guibg=#4040ff +hi Identifier gui=NONE guifg=#b07800 guibg=NONE +hi Ignore gui=NONE guifg=bg guibg=NONE +hi PreProc gui=NONE guifg=#0090a0 guibg=NONE +hi Special gui=NONE guifg=#8040f0 guibg=NONE +hi Statement gui=BOLD guifg=#80a030 guibg=NONE +hi Todo gui=BOLD,UNDERLINE guifg=#0080f0 guibg=NONE +hi Type gui=BOLD guifg=#b06c58 guibg=NONE +hi Underlined gui=UNDERLINE guifg=blue guibg=NONE diff --git a/dot_vim/colors/autumnleaf.vim b/dot_vim/colors/autumnleaf.vim new file mode 100644 index 0000000..f7af59f --- /dev/null +++ b/dot_vim/colors/autumnleaf.vim @@ -0,0 +1,154 @@ +" Vim color file +" Maintainer: Anders Korte +" Last Change: 17 Oct 2004 + +" AutumnLeaf color scheme 1.0 + +set background=light + +hi clear + +if exists("syntax_on") + syntax reset +endif + +let colors_name="AutumnLeaf" + + +" Colors for the User Interface. + +hi Cursor guibg=#aa7733 guifg=#ffeebb gui=bold +hi Normal guibg=#fffdfa guifg=black gui=none +hi NonText guibg=#eafaea guifg=#000099 gui=bold +hi Visual guibg=#fff8cc guifg=black gui=none +" hi VisualNOS + +hi Linenr guibg=bg guifg=#999999 gui=none + +" Uncomment these if you use Diff...?? +" hi DiffText guibg=#cc0000 guifg=white gui=none +" hi DiffAdd guibg=#0000cc guifg=white gui=none +" hi DiffChange guibg=#990099 guifg=white gui=none +" hi DiffDelete guibg=#888888 guifg=#333333 gui=none + +hi Directory guibg=bg guifg=#337700 gui=none + +hi IncSearch guibg=#c8e8ff guifg=black gui=none +hi Search guibg=#c8e8ff guifg=black gui=none +hi SpecialKey guibg=bg guifg=fg gui=none +hi Titled guibg=bg guifg=fg gui=none + +hi ErrorMsg guibg=bg guifg=#cc0000 gui=bold +hi ModeMsg guibg=bg guifg=#003399 gui=none +hi link MoreMsg ModeMsg +hi link Question ModeMsg +hi WarningMsg guibg=bg guifg=#cc0000 gui=bold + +hi StatusLine guibg=#ffeebb guifg=black gui=bold +hi StatusLineNC guibg=#aa8866 guifg=#f8e8cc gui=none +hi VertSplit guibg=#aa8866 guifg=#ffe0bb gui=none + +" hi Folded +" hi FoldColumn +" hi SignColumn + + +" Colors for Syntax Highlighting. + +hi Comment guibg=#ddeedd guifg=#002200 gui=none + +hi Constant guibg=bg guifg=#003399 gui=bold +hi String guibg=bg guifg=#003399 gui=italic +hi Character guibg=bg guifg=#003399 gui=italic +hi Number guibg=bg guifg=#003399 gui=bold +hi Boolean guibg=bg guifg=#003399 gui=bold +hi Float guibg=bg guifg=#003399 gui=bold + +hi Identifier guibg=bg guifg=#003399 gui=none +hi Function guibg=bg guifg=#0055aa gui=bold +hi Statement guibg=bg guifg=#003399 gui=none + +hi Conditional guibg=bg guifg=#aa7733 gui=bold +hi Repeat guibg=bg guifg=#aa5544 gui=bold +hi link Label Conditional +hi Operator guibg=bg guifg=#aa7733 gui=bold +hi link Keyword Statement +hi Exception guibg=bg guifg=#228877 gui=bold + +hi PreProc guibg=bg guifg=#aa7733 gui=bold +hi Include guibg=bg guifg=#558811 gui=bold +hi link Define Include +hi link Macro Include +hi link PreCondit Include + +hi Type guibg=bg guifg=#007700 gui=bold +hi link StorageClass Type +hi link Structure Type +hi Typedef guibg=bg guifg=#009900 gui=italic + +hi Special guibg=bg guifg=fg gui=none +hi SpecialChar guibg=bg guifg=fg gui=bold +hi Tag guibg=bg guifg=#003399 gui=bold +hi link Delimiter Special +hi SpecialComment guibg=#dddddd guifg=#aa0000 gui=none +hi link Debug Special + +hi Underlined guibg=bg guifg=blue gui=underline + +hi Title guibg=bg guifg=fg gui=bold +hi Ignore guibg=bg guifg=#999999 gui=none +hi Error guibg=red guifg=white gui=none +hi Todo guibg=bg guifg=#aa0000 gui=none + + + +" The same in cterm colors. +hi Cursor ctermbg=6 ctermfg=14 +hi Normal ctermbg=15 ctermfg=0 +hi NonText ctermbg=10 ctermfg=1 +hi Visual ctermbg=14 ctermfg=0 +" hi VisualNOS +hi Linenr ctermbg=bg ctermfg=7 +" hi DiffText ctermbg=4 ctermfg=15 +" hi DiffAdd ctermbg=1 ctermfg=15 +" hi DiffChange ctermbg=5 ctermfg=15 +" hi DiffDelete ctermbg=7 ctermfg=8 +hi Directory ctermbg=bg ctermfg=2 +hi IncSearch ctermbg=9 ctermfg=0 +hi Search ctermbg=9 ctermfg=0 +hi SpecialKey ctermbg=bg ctermfg=fg +hi Titled ctermbg=bg ctermfg=fg +hi ErrorMsg ctermbg=bg ctermfg=12 +hi ModeMsg ctermbg=bg ctermfg=9 +hi WarningMsg ctermbg=bg ctermfg=12 +hi StatusLine ctermbg=14 ctermfg=0 +hi StatusLineNC ctermbg=6 ctermfg=14 +hi VertSplit ctermbg=6 ctermfg=14 +" hi Folded +" hi FoldColumn +" hi SignColumn +hi Comment ctermbg=10 ctermfg=2 +hi Constant ctermbg=bg ctermfg=9 +hi String ctermbg=bg ctermfg=9 cterm=italic +hi Character ctermbg=bg ctermfg=9 cterm=italic +hi Number ctermbg=bg ctermfg=9 cterm=bold +hi Boolean ctermbg=bg ctermfg=9 cterm=bold +hi Float ctermbg=bg ctermfg=9 cterm=bold +hi Function ctermbg=bg ctermfg=9 cterm=bold +hi Statement ctermbg=bg ctermfg=9 cterm=bold +hi Conditional ctermbg=bg ctermfg=6 cterm=bold +hi Repeat ctermbg=bg ctermfg=6 cterm=bold +hi Operator ctermbg=bg ctermfg=6 cterm=bold +hi Exception ctermbg=bg ctermfg=2 cterm=bold +hi PreProc ctermbg=bg ctermfg=6 +hi Include ctermbg=bg ctermfg=2 cterm=bold +hi Type ctermbg=bg ctermfg=2 cterm=bold +hi Typedef ctermbg=bg ctermfg=2 cterm=italic +hi Special ctermbg=bg ctermfg=fg cterm=bold +hi Tag ctermbg=bg ctermfg=9 cterm=bold +hi SpecialComment ctermbg=7 ctermfg=4 +hi Underlined ctermbg=bg ctermfg=9 cterm=underline +hi Title ctermbg=bg ctermfg=fg cterm=bold +hi Ignore ctermbg=bg ctermfg=7 +hi Error ctermbg=12 ctermfg=15 +hi Todo ctermbg=bg ctermfg=15 diff --git a/dot_vim/colors/billw.vim b/dot_vim/colors/billw.vim new file mode 100644 index 0000000..740642f --- /dev/null +++ b/dot_vim/colors/billw.vim @@ -0,0 +1,99 @@ +" vim: set tw=0 sw=4 sts=4 et: + +" Vim color file +" Maintainer: Datila Carvalho +" Last Change: November, 3, 2003 +" Version: 0.1 + +" This is a VIM's version of the emacs color theme +" _Billw_ created by Bill White. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "billw" + + +""" Colors + +" GUI colors +hi Cursor guifg=fg guibg=cornsilk +hi CursorIM guifg=NONE guibg=cornsilk +"hi Directory +"hi DiffAdd +"hi DiffChange +"hi DiffDelete +"hi DiffText +hi ErrorMsg gui=bold guifg=White guibg=Red +"hi VertSplit +"hi Folded +"hi FoldColumn +"hi IncSearch +"hi LineNr +hi ModeMsg gui=bold +"hi MoreMsg +"hi NonText +hi Normal guibg=black guifg=cornsilk +"hi Question +hi Search gui=bold guifg=Black guibg=cornsilk +"hi SpecialKey +hi StatusLine guifg=orange1 +hi StatusLineNC guifg=yellow4 +"hi Title +hi Visual guifg=gray35 guibg=fg +hi VisualNOS gui=bold guifg=black guibg=fg +hi WarningMsg guifg=White guibg=Tomato +"hi WildMenu + +" Colors for syntax highlighting +hi Comment guifg=gold + +hi Constant guifg=mediumspringgreen + hi String guifg=orange + hi Character guifg=orange + hi Number guifg=mediumspringgreen + hi Boolean guifg=mediumspringgreen + hi Float guifg=mediumspringgreen + +hi Identifier guifg=yellow + hi Function guifg=mediumspringgreen + +hi Statement gui=bold guifg=cyan1 + hi Conditional gui=bold guifg=cyan1 + hi Repeat gui=bold guifg=cyan1 + hi Label guifg=cyan1 + hi Operator guifg=cyan1 + "hi Keyword + "hi Exception + +hi PreProc guifg=LightSteelBlue + hi Include guifg=LightSteelBlue + hi Define guifg=LightSteelBlue + hi Macro guifg=LightSteelBlue + hi PreCondit guifg=LightSteelBlue + +hi Type guifg=yellow + hi StorageClass guifg=cyan1 + hi Structure gui=bold guifg=cyan1 + hi Typedef guifg=cyan1 + +"hi Special + ""Underline Character + "hi SpecialChar gui=underline + "hi Tag gui=bold,underline + ""Statement + "hi Delimiter gui=bold + ""Bold comment (in Java at least) + "hi SpecialComment gui=bold + "hi Debug gui=bold + +hi Underlined gui=underline + +hi Ignore guifg=bg + +hi Error gui=bold guifg=White guibg=Red + +"hi Todo diff --git a/dot_vim/colors/biogoo.vim b/dot_vim/colors/biogoo.vim new file mode 100644 index 0000000..cec72b1 --- /dev/null +++ b/dot_vim/colors/biogoo.vim @@ -0,0 +1,85 @@ +" Vim color File +" Name: biogoo +" Maintainer: Benjamin Esham +" Last Change: 2004-02-03 +" Version: 1.2 +" +" A fairly simple gray-background scheme. Feedback is greatly appreciated! +" +" Installation: +" Copy to ~/.vim/colors; do :color biogoo +" +" Customization Options: +" Use a 'normal' cursor color: +" let g:biogoo_normal_cursor = 1 +" +" Props: +" Jani Nurminen's zenburn.vim as an example file. +" Scott and Matt for feature suggestions. +" +" Version History: +" 1.2: added `SpellErrors' group for use with vimspell. +" 1.1: added `IncSearch' group for improved visibility in incremental searches. +" 1.0: minor tweaks +" 0.95: initial release +" +" TODO: Possibly add some more groups -- please email me if I've left any out. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "biogoo" + +hi Comment guifg=#0000c3 +hi Constant guifg=#0000ff +hi Delimiter guifg=#00007f +hi DiffAdd guifg=#007f00 guibg=#e5e5e5 +hi DiffChange guifg=#00007f guibg=#e5e5e5 +hi DiffDelete guifg=#7f0000 guibg=#e5e5e5 +hi DiffText guifg=#ee0000 guibg=#e5e5e5 +hi Directory guifg=#b85d00 +hi Error guifg=#d6d6d6 guibg=#7f0000 +hi ErrorMsg guifg=#ffffff guibg=#ff0000 gui=bold +hi Float guifg=#b85d00 +hi FoldColumn guifg=#00007f guibg=#e5e5e5 +hi Folded guifg=#00007f guibg=#e5e5e5 +hi Function guifg=#7f0000 +hi Identifier guifg=#004000 +hi Include guifg=#295498 gui=bold +hi IncSearch guifg=#ffffff guibg=#0000ff gui=bold +hi LineNr guifg=#303030 guibg=#e5e5e5 gui=underline +hi Keyword guifg=#00007f +hi Macro guifg=#295498 +hi ModeMsg guifg=#00007f +hi MoreMsg guifg=#00007f +hi NonText guifg=#007f00 +hi Normal guifg=#000000 guibg=#d6d6d6 +hi Number guifg=#b85d00 +hi Operator guifg=#00007f +hi PreCondit guifg=#295498 gui=bold +hi PreProc guifg=#0c3b6b gui=bold +hi Question guifg=#00007f +hi Search guibg=#ffff00 +hi Special guifg=#007f00 +hi SpecialKey guifg=#00007f +hi SpellErrors guifg=#7f0000 gui=underline +hi Statement guifg=#00007f gui=none +hi StatusLine guifg=#00007f guibg=#ffffff +hi StatusLineNC guifg=#676767 guibg=#ffffff +hi String guifg=#d10000 +hi Title guifg=#404040 gui=bold +hi Todo guifg=#00007f guibg=#e5e5e5 gui=underline +hi Type guifg=#540054 gui=bold +hi Underlined guifg=#b85d00 +hi VertSplit guifg=#676767 guibg=#ffffff +hi Visual guifg=#7f7f7f guibg=#ffffff +hi VisualNOS guifg=#007f00 guibg=#e5e5e5 +hi WarningMsg guifg=#500000 +hi WildMenu guifg=#540054 + +if !exists("g:biogoo_normal_cursor") + " use a gray-on-blue cursor + hi Cursor guifg=#ffffff guibg=#00007f +endif diff --git a/dot_vim/colors/black_angus.vim b/dot_vim/colors/black_angus.vim new file mode 100644 index 0000000..145b639 --- /dev/null +++ b/dot_vim/colors/black_angus.vim @@ -0,0 +1,115 @@ +" Vim color file +" Maintainer: Angus Salkeld +" Last Change: 14 September 2004 +" Version: 1.0 +" mainly green on black + +set background=dark +highlight clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "black_angus" + +" GUI +" ----------------------------------------------------------------------- +highlight Normal guifg=Grey80 guibg=Black +highlight Search guifg=brown gui=reverse +highlight Visual guifg=Grey25 gui=bold +highlight Cursor guifg=Yellow guibg=DarkGreen gui=bold +highlight DiffAdd guibg=#000080 gui=NONE +highlight DiffChange guibg=#800080 gui=NONE +highlight DiffDelete guifg=#80c0e0 guibg=#404040 gui=NONE +highlight DiffText guifg=Black guibg=#c0e080 gui=NONE + +" Console +" ----------------------------------------------------------------------- +highlight Normal ctermfg=LightGrey ctermbg=Black +highlight Search ctermfg=Brown cterm=reverse +highlight Visual cterm=reverse +highlight Cursor ctermfg=Yellow ctermbg=Green cterm=bold + +" both +" ----------------------------------------------------------------------- +highlight StatusLine guifg=LightGreen guibg=#003300 gui=none ctermfg=LightGreen ctermbg=DarkGreen term=none +highlight VertSplit guifg=LightGreen guibg=#003300 gui=none ctermfg=LightGreen ctermbg=DarkGreen term=none +highlight Folded guifg=#aaDDaa guibg=#333333 gui=none ctermfg=LightGray ctermbg=DarkGray term=none +highlight FoldColumn guifg=LightGreen guibg=#003300 gui=none ctermfg=LightGreen ctermbg=DarkGreen term=none +highlight SignColumn guifg=LightGreen guibg=#003300 gui=none ctermfg=LightGreen ctermbg=DarkGreen term=none +highlight WildMenu guifg=LightGreen guibg=#003300 gui=none ctermfg=LightGreen ctermbg=DarkGreen term=none + +highlight LineNr guifg=DarkGreen guibg=Black gui=none ctermfg=DarkGreen ctermbg=Black term=none +highlight Directory guifg=LightGreen ctermfg=LightGreen +highlight Comment guifg=DarkGrey ctermfg=DarkGray + +highlight Special guifg=Orange ctermfg=Brown +highlight Title guifg=Orange ctermfg=Brown +highlight Tag guifg=DarkRed ctermfg=DarkRed +highlight link Delimiter Special +highlight link SpecialChar Special +highlight link SpecialComment Special +highlight link SpecialKey Special +highlight link NonText Special + +highlight Error guifg=White guibg=DarkRed gui=none ctermfg=White ctermbg=DarkRed cterm=none +highlight Debug guifg=White guibg=DarkGreen gui=none ctermfg=White ctermbg=DarkRed cterm=none +highlight ErrorMsg guifg=White guibg=DarkBlue gui=none ctermfg=White ctermbg=DarkRed cterm=none +highlight WarningMsg guifg=White guibg=DarkBlue gui=none ctermfg=White ctermbg=DarkBlue cterm=none +highlight Todo guifg=White guibg=DarkYellow gui=none ctermfg=White ctermbg=DarkBlue cterm=none +highlight link cCommentStartError WarningMsg +highlight link cCommentError Debug + +" Preprocesor +highlight PreCondit guifg=Cyan3 ctermfg=Cyan +highlight PreProc guifg=Magenta ctermfg=Magenta +highlight Include guifg=DarkCyan ctermfg=DarkCyan +highlight ifdefIfOut guifg=DarkGray ctermfg=DarkGray +highlight link Macro Include +highlight link Define Include + +" lang +highlight Function guifg=#AAEEAA gui=none ctermfg=LightGreen +highlight Identifier guifg=#bbccbb gui=none ctermfg=Grey +highlight Statement guifg=LightGreen gui=underline ctermfg=LightGreen +highlight Operator guifg=Yellow gui=none ctermfg=Yellow +highlight Conditional guifg=lightslateblue gui=none ctermfg=LightBlue + +highlight link Exception Statement +highlight link Label Statement +highlight link Repeat Conditional + +highlight link Keyword Label + +highlight Constant guifg=LightGreen ctermfg=LightGreen gui=none +highlight link Character Constant +highlight link Number Constant +highlight link Boolean Constant +highlight link String Constant +highlight link Float Constant + +highlight Type guifg=DarkGreen ctermfg=DarkGreen gui=none +highlight link StorageClass Type +highlight link Structure Type +highlight link Typedef Type + +" ------------------------------------------------------------------------------ +" Common groups that link to other highlighting definitions. +highlight link Search IncSearch +highlight link Question Statement +highlight link VisualNOS Visual +" ------------------------------------------------------------------------------ + +" 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=Grey25 gui=bold + highlight Special ctermfg=LightBlue cterm=NONE guifg=LightBlue + highlight Comment ctermfg=Cyan cterm=NONE guifg=LightBlue + endif +endif + + + diff --git a/dot_vim/colors/blackbeauty.vim b/dot_vim/colors/blackbeauty.vim new file mode 100644 index 0000000..a824ea3 --- /dev/null +++ b/dot_vim/colors/blackbeauty.vim @@ -0,0 +1,66 @@ +" Vim color file +" Maintainer: Surya +" Last Change: 12/23/2003 10:32:41 . +" version: 1.0 +" This color scheme uses a dark background. +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "koehler" +hi Normal guifg=white guibg=black +hi Scrollbar guibg=darkgray guifg=darkgray +hi Menu guifg=black guibg=gray +hi SpecialKey term=bold cterm=bold ctermfg=darkred guifg=Blue +hi NonText term=bold cterm=bold ctermfg=darkred gui=bold guifg=Blue +hi Directory term=bold cterm=bold ctermfg=brown guifg=Blue +hi ErrorMsg term=standout cterm=bold ctermfg=grey ctermbg=blue gui=bold guifg=White guibg=brown +hi Search term=reverse ctermfg=white ctermbg=red gui=bold guifg=#000000 guibg=Magenta +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 guibg=brown guifg=white +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 guibg=white guifg=brown +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=darkblue gui=bold guifg=cyan guibg=Black +hi Cursor guifg=bg guibg=cyan +hi Comment term=bold cterm=bold ctermfg=cyan guifg=#80a0ff +hi Constant term=underline cterm=bold ctermfg=magenta guifg=#ffa0a0 +hi String term=underline cterm=bold ctermfg=magenta gui=bold guifg=brown guibg=darkgray +hi Number term=underline cterm=bold ctermfg=magenta guifg=#00ffff +hi Special term=bold gui=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=darkblue guifg=#ff80ff +hi Type term=underline cterm=bold ctermfg=lightgreen gui=bold guifg=#60ff60 +hi Error gui=bold guifg=Yellow guibg=Black +hi Todo term=standout ctermfg=black ctermbg=darkcyan guifg=Blue guibg=Yellow +"hi VertSplit guifg=#00FFFF guibg=#000000 gui=bold +hi link IncSearch Visual +hi link Character 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 + diff --git a/dot_vim/colors/blackdust.vim b/dot_vim/colors/blackdust.vim new file mode 100644 index 0000000..0eb20a7 --- /dev/null +++ b/dot_vim/colors/blackdust.vim @@ -0,0 +1,62 @@ +set background=dark +hi clear + +hi Boolean guifg=#dca3a3 gui=bold +hi Character guifg=#dca3a3 gui=bold +hi Comment guifg=#7f7f7f +hi Condtional guifg=#8fffff +hi Constant guifg=#dca3a3 gui=bold +hi Cursor guifg=#000000 guibg=#aeaeae +hi Debug guifg=#dca3a3 gui=bold +hi Define guifg=#ffcfaf gui=bold +hi Delimiter guifg=#8f8f8f +hi DiffAdd guibg=#613c46 +hi DiffChange guibg=#333333 +hi DiffDelete guifg=#333333 guibg=#464646 gui=none +hi DiffText guifg=#ffffff guibg=#1f1f1f gui=bold +hi Directory guifg=#ffffff gui=bold +hi Error guifg=#000000 guibg=#00ffff +hi ErrorMsg guifg=#000000 guibg=#00c0cf +hi Exception guifg=#8fffff gui=underline +hi Float guifg=#9c93b3 +hi FoldColumn guifg=#dca3a3 guibg=#464646 +hi Folded guifg=#dca3a3 guibg=#333333 +hi Function guifg=#ffff8f +hi Identifier guifg=#ffffff +hi Include guifg=#ffcfaf gui=bold +hi IncSearch guifg=#000000 guibg=#c15c66 +hi Keyword guifg=#ffffff gui=bold +hi Label guifg=#8fffff gui=underline +hi LineNr guifg=#7f7f7f guibg=#464646 +hi Macro guifg=#ffcfaf gui=bold +hi ModeMsg guifg=#dca3a3 gui=bold +hi MoreMsg guifg=#ffffff gui=bold +hi NonText guifg=#1f1f1f +hi Normal guifg=#cccccc guibg=#3f3f3f +hi Number guifg=#aca0a3 +hi Operator guifg=#ffffff +hi PreCondit guifg=#dfaf8f gui=bold +hi PreProc guifg=#ffcfaf gui=bold +hi Question guifg=#ffffff gui=bold +hi Repeat guifg=#8fffff gui=underline +hi Search guifg=#000000 guibg=#c15c66 +hi SpecialChar guifg=#dca3a3 gui=bold +hi SpecialComment guifg=#dca3a3 gui=bold +hi Special guifg=#7f7f7f +hi SpecialKey guifg=#7e7e7e +hi Statement guifg=#8fffff +hi StatusLine guifg=#333333 guibg=#f18c96 +hi StatusLineNC guifg=#333333 guibg=#cccccc +hi StorageClass guifg=#ffffff gui=bold +hi String guifg=#cc9393 +hi Structure guifg=#ffffff gui=bold,underline +hi Tag guifg=#dca3a3 gui=bold +hi Title guifg=#ffffff guibg=#333333 gui=bold +hi Todo guifg=#ffffff guibg=#000000 gui=bold +hi Typedef guifg=#ffffff gui=bold,underline +hi Type guifg=#ffffff gui=bold +hi VertSplit guifg=#333333 guibg=#cccccc +hi Visual guifg=#333333 guibg=#f18c96 gui=reverse +hi VisualNOS guifg=#333333 guibg=#f18c96 gui=bold,underline +hi WarningMsg guifg=#ffffff guibg=#333333 gui=bold +hi WildMenu guifg=#000000 guibg=#dca3a3 diff --git a/dot_vim/colors/blacksea.vim b/dot_vim/colors/blacksea.vim new file mode 100644 index 0000000..5cd38a3 --- /dev/null +++ b/dot_vim/colors/blacksea.vim @@ -0,0 +1,32 @@ +" Vim color file +" Maintainer: Gerald S. Williams +" Last Change: 2003 Mar 20 + +" This is a dark version/opposite of "seashell". The cterm version of this is +" very similar to "evening". +" +" Only values that differ from defaults are specified. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "BlackSea" + +hi Normal guibg=Black guifg=seashell ctermfg=White +hi NonText guifg=LavenderBlush ctermfg=LightMagenta +hi DiffDelete guibg=DarkRed guifg=Black ctermbg=DarkRed ctermfg=White +hi DiffAdd guibg=DarkGreen ctermbg=DarkGreen ctermfg=White +hi DiffChange guibg=Gray30 ctermbg=DarkCyan ctermfg=White +hi DiffText gui=NONE guibg=DarkCyan ctermbg=DarkCyan ctermfg=Yellow +hi Comment guifg=LightBlue +hi Constant guifg=DeepPink +hi PreProc guifg=Magenta ctermfg=Magenta +hi StatusLine guibg=#1f001f guifg=DarkSeaGreen cterm=NONE ctermfg=White ctermbg=DarkGreen +hi StatusLineNC guifg=Gray +hi VertSplit guifg=Gray +hi Type gui=NONE +hi Identifier guifg=Cyan +hi Statement guifg=brown3 ctermfg=DarkRed +hi Search guibg=Gold3 ctermfg=White diff --git a/dot_vim/colors/blue.vim b/dot_vim/colors/blue.vim new file mode 100644 index 0000000..220700f --- /dev/null +++ b/dot_vim/colors/blue.vim @@ -0,0 +1,41 @@ +" Vim color file +" Maintainer: TaQ +" Last Change: 10 October 2001 - 0.2 +" URL: http://taq.cjb.net + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +set background=dark " or light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="blue" + +hi Normal ctermfg=Gray ctermbg=Black guifg=#CCCCCC guibg=#000040 +hi NonText ctermfg=Gray ctermbg=Black guifg=#0050EE guibg=#000040 + +hi Statement ctermfg=White ctermbg=Black guifg=#007FFF guibg=#000040 gui=BOLD +hi Comment ctermfg=Blue ctermbg=Black guifg=#00A0FF guibg=#000090 gui=NONE +hi Constant ctermfg=White ctermbg=Black guifg=#0050EE guibg=#000040 gui=NONE +hi Identifier ctermfg=Cyan ctermbg=Black guifg=#FFFFFF guibg=#000040 gui=NONE +hi Type ctermfg=Cyan ctermbg=Black guifg=#5050FF guibg=#000040 gui=NONE +hi Folded ctermfg=White ctermbg=Blue guifg=#00A0FF guibg=#000050 gui=BOLD +hi Special ctermfg=Blue ctermbg=Black guifg=#00A0FF guibg=#000090 gui=NONE +hi PreProc ctermfg=Blue ctermbg=Black guifg=#00FF00 guibg=#000040 gui=BOLD +hi Scrollbar ctermfg=Blue ctermbg=Black guifg=#00C0FF guibg=#000040 +hi Cursor ctermfg=white ctermbg=Black guifg=#FFFFFF guibg=#5050FF +hi ErrorMsg ctermfg=white ctermbg=Red guifg=#FFFFFF guibg=#FF0000 +hi WarningMsg ctermfg=Black ctermbg=Yellow guifg=#000000 guibg=#FFFF00 +hi VertSplit ctermfg=White ctermbg=Blue guifg=#000090 guibg=#000090 +hi Directory ctermfg=Cyan ctermbg=DarkBlue guifg=#00A0F0 guibg=#000040 +hi Visual ctermfg=Black ctermbg=Cyan guifg=#5050FF guibg=#FFFFFF +hi Title ctermfg=White ctermbg=Blue guifg=#FFFFFF guibg=#0050EE gui=NONE + +hi StatusLine term=bold cterm=bold ctermfg=White ctermbg=Blue gui=bold guifg=#FFFFFF guibg=#0050EE +hi StatusLineNC term=bold cterm=bold ctermfg=Gray ctermbg=Blue gui=bold guifg=#AAAAAA guibg=#000090 +hi LineNr term=bold cterm=bold ctermfg=White ctermbg=DarkBlue gui=bold guifg=#00A0FF guibg=#000050 + diff --git a/dot_vim/colors/bluegreen.vim b/dot_vim/colors/bluegreen.vim new file mode 100644 index 0000000..0b23dcd --- /dev/null +++ b/dot_vim/colors/bluegreen.vim @@ -0,0 +1,52 @@ + + +" Vim color file +" Maintainer: +" Last Change: +" URL: + + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="mine" + +hi Normal guifg=White guibg=#061A3E + +" highlight groups +hi Cursor guibg=#D74141 guifg=#e3e3e3 +hi VertSplit guibg=#C0FFFF guifg=#075554 gui=none +hi Folded guibg=#FFC0C0 guifg=black +hi FoldColumn guibg=#800080 guifg=tan +"hi IncSearch cterm=none ctermbg=blue ctermfg=grey guifg=slategrey guibg=khaki +hi ModeMsg guifg=#404040 guibg=#C0C0C0 +hi MoreMsg guifg=darkturquoise guibg=#188F90 +hi NonText guibg=#334C75 guifg=#9FADC5 +hi Question guifg=#F4BB7E +hi Search guibg=fg guifg=bg +hi SpecialKey guifg=#BF9261 +hi StatusLine guibg=#004443 guifg=#c0ffff gui=none +hi StatusLineNC guibg=#067C7B guifg=#004443 gui=bold +hi Title guifg=#8DB8C3 +hi Visual gui=bold guifg=black guibg=#C0FFC0 +hi WarningMsg guifg=#F60000 gui=underline + +" syntax highlighting groups +hi Comment guifg=#DABEA2 +hi Constant guifg=#72A5E4 gui=bold +hi Identifier guifg=#ADCBF1 +hi Statement guifg=#7E75B5 +hi PreProc guifg=#14F07C +hi Type guifg=#A9EE8A +hi Special guifg=#EEBABA +hi Ignore guifg=grey60 +hi Todo guibg=#9C8C84 guifg=#244C0A + +"vim: ts=4 diff --git a/dot_vim/colors/blugrine.vim b/dot_vim/colors/blugrine.vim new file mode 100644 index 0000000..6ba6330 --- /dev/null +++ b/dot_vim/colors/blugrine.vim @@ -0,0 +1,42 @@ +" author Helder Correia < helder (dot) correia (at) netcabo (dot) pt> +" version 2004.0 +" based on bluegreen colorscheme by Joao Estevao +" feel free to modify / redistribute this file + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="blugrine" + +hi Normal guifg=White guibg=#000000 + +" highlight groups +hi Cursor guibg=#D74141 guifg=#e3e3e3 +hi VertSplit guibg=#C0FFFF guifg=#075554 gui=none +hi Folded guibg=#FFC0C0 guifg=black +hi FoldColumn guibg=#800080 guifg=tan +hi ModeMsg guifg=#404040 guibg=#C0C0C0 +hi MoreMsg guifg=darkturquoise guibg=#188F90 +hi NonText guibg=#334C75 guifg=#9FADC5 +hi Question guifg=#F4BB7E +hi Search guibg=fg guifg=bg +hi SpecialKey guifg=#BF9261 +hi StatusLine guibg=#004443 guifg=#c0ffff gui=none +hi StatusLineNC guibg=#067C7B guifg=#004443 gui=bold +hi Title guifg=#8DB8C3 +hi Visual gui=bold guifg=black guibg=#C0FFC0 +hi WarningMsg guifg=#F60000 gui=underline + +" syntax highlighting groups +hi Comment guifg=#DABEA2 +hi Constant guifg=#72A5E4 gui=bold +hi Identifier guifg=#ADCBF1 +hi Statement guifg=#7E75B5 +hi PreProc guifg=#14F07C +hi Type guifg=#A9EE8A +hi Special guifg=#EEBABA +hi Ignore guifg=grey60 +hi Todo guibg=#9C8C84 guifg=#244C0A + diff --git a/dot_vim/colors/bmichaelsen.vim b/dot_vim/colors/bmichaelsen.vim new file mode 100644 index 0000000..b63f65c --- /dev/null +++ b/dot_vim/colors/bmichaelsen.vim @@ -0,0 +1,55 @@ +" local syntax file - set colors on a per-machine basis: +" vim: tw=0 ts=4 sw=4 +" Vim color file +" Maintainer: Bjrn Michaelsen +" based on: Zellner maintained by Ron Aaron +" Last Change: 2003 Sep 09 + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "bmichaelsen" + +hi Comment term=bold ctermfg=Red guifg=Red +hi Normal guifg=black guibg=#dee2ee +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=#5a5d6a +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=#5a5d6a +hi StatusLine term=bold,reverse cterm=NONE ctermfg=Yellow ctermbg=DarkGray gui=NONE guifg=Black guibg=#a4b2c5 +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 diff --git a/dot_vim/colors/bog.vim b/dot_vim/colors/bog.vim new file mode 100644 index 0000000..542262d --- /dev/null +++ b/dot_vim/colors/bog.vim @@ -0,0 +1,87 @@ +" Vim color file +" Maintainer: [smeagol] +" Last Change: +" URL: + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +" your pick: +set background=light " or light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="bog" + +hi Normal guifg=#3a3a3d guibg=white ctermfg=darkgrey ctermbg=white + +" OR + +" highlight clear Normal +" set background& +" highlight clear +" if &background == "light" +" highlight Error ... +" ... +" else +" highlight Error ... +" ... +" endif + +" A good way to see what your colorscheme does is to follow this procedure: +" :w +" :so % +" +" Then to see what the current setting is use the highlight command. +" For example, +" :hi Cursor +" gives +" Cursor xxx guifg=bg guibg=fg + +" Uncomment and complete the commands you want to change from the default. + +hi Cursor guifg=#04ae6c guibg=#0056a0 ctermfg=darkgreen ctermbg=darkblue +"hi CursorIM +hi Directory guifg=green ctermfg=green +"hi DiffAdd +"hi DiffChange +"hi DiffDelete +"hi DiffText +hi ErrorMsg guibg=#004a8a guifg=white ctermfg=white ctermbg=darkblue +hi VertSplit guibg=#04ae6c guifg=#0056a0 +hi Folded guibg=#0a62c4 guifg=#60abff ctermfg=lightgrey ctermbg=blue +hi FoldColumn guibg=#0a62c4 guifg=#60abff ctermfg=lightgrey ctermbg=blue +hi IncSearch guifg=white guibg=#ffdc34 ctermfg=white ctermbg=lightred gui=underline +hi LineNr guifg=#3669e8 guibg=white ctermfg=lightblue ctermbg=white +hi ModeMsg guifg=orange guibg=white ctermfg=lightred ctermbg=white +hi MoreMsg guifg=orange guibg=white ctermfg=lightred ctermbg=white +hi NonText gui=bold +hi Question guifg=white guibg=orange ctermfg=white ctermbg=lightred +hi Search guifg=white guibg=#ffdc34 ctermfg=white ctermbg=lightred gui=underline +"hi SpecialKey +hi StatusLine guifg=#04ae6c guibg=white ctermfg=darkgreen ctermbg=white +hi StatusLineNC guifg=#04ae6c guibg=white ctermfg=darkgreen ctermbg=white +hi Title guifg=#02233f gui=bold +hi Visual guifg=darkblue guibg=white ctermfg=darkblue ctermbg=white +"hi VisualNOS +hi WarningMsg guifg=white guibg=orange ctermfg=white ctermbg=lightblue +hi WildMenu guifg=#75dc34 guibg=white ctermfg=lightgreen ctermbg=white +"hi Menu +"hi Scrollbar +"hi Tooltip + +" syntax highlighting groups +hi Comment guifg=orange guibg=white ctermbg=white ctermfg=blue +hi Constant guifg=#5b8f8d guibg=white ctermfg=grey ctermbg=white +hi Identifier guifg=#aad2ff guibg=white ctermfg=grey ctermbg=white +hi Statement guifg=#808283 guibg=white ctermfg=lightgrey ctermbg=white +hi PreProc guifg=#023a6a gui=bold guibg=white ctermfg=darkblue ctermbg=white +hi Type guifg=#0e9152 guibg=white ctermfg=darkgreen ctermbg=white +hi Special guifg=white guibg=skyblue ctermfg=white ctermbg=blue +hi Underlined guifg=#00d0e8 ctermbg=blue +hi Ignore guifg=black guibg=white ctermfg=black ctermbg=white +"hi Error +hi Todo guibg=lightblue guifg=white ctermbg=lightblue ctermfg=white diff --git a/dot_vim/colors/borland.vim b/dot_vim/colors/borland.vim new file mode 100644 index 0000000..c39c101 --- /dev/null +++ b/dot_vim/colors/borland.vim @@ -0,0 +1,60 @@ +" Vim color file +" Maintainer: Yegappan Lakshmanan +" Last Change: 2001 Sep 9 + +" Color settings similar to that used in Borland IDE's. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="borland" + +hi Normal term=NONE cterm=NONE ctermfg=Yellow ctermbg=DarkBlue +hi Normal gui=NONE guifg=Yellow guibg=DarkBlue +hi NonText term=NONE cterm=NONE ctermfg=White ctermbg=DarkBlue +hi NonText gui=NONE guifg=White guibg=DarkBlue + +hi Statement term=NONE cterm=NONE ctermfg=White ctermbg=DarkBlue +hi Statement gui=NONE guifg=White guibg=DarkBlue +hi Special term=NONE cterm=NONE ctermfg=Cyan ctermbg=DarkBlue +hi Special gui=NONE guifg=Cyan guibg=DarkBlue +hi Constant term=NONE cterm=NONE ctermfg=Magenta ctermbg=DarkBlue +hi Constant gui=NONE guifg=Magenta guibg=DarkBlue +hi Comment term=NONE cterm=NONE ctermfg=Gray ctermbg=DarkBlue +hi Comment gui=NONE guifg=Gray guibg=DarkBlue +hi Preproc term=NONE cterm=NONE ctermfg=Green ctermbg=DarkBlue +hi Preproc gui=NONE guifg=Green guibg=DarkBlue +hi Type term=NONE cterm=NONE ctermfg=White ctermbg=DarkBlue +hi Type gui=NONE guifg=White guibg=DarkBlue +hi Identifier term=NONE cterm=NONE ctermfg=White ctermbg=DarkBlue +hi Identifier gui=NONE guifg=White guibg=DarkBlue + +hi StatusLine term=bold cterm=bold ctermfg=Black ctermbg=White +hi StatusLine gui=bold guifg=Black guibg=White + +hi StatusLineNC term=NONE cterm=NONE ctermfg=Black ctermbg=White +hi StatusLineNC gui=NONE guifg=Black guibg=White + +hi Visual term=NONE cterm=NONE ctermfg=Black ctermbg=DarkCyan +hi Visual gui=NONE guifg=Black guibg=DarkCyan + +hi Search term=NONE cterm=NONE ctermbg=Gray +hi Search gui=NONE guibg=Gray + +hi VertSplit term=NONE cterm=NONE ctermfg=Black ctermbg=White +hi VertSplit gui=NONE guifg=Black guibg=White + +hi Directory term=NONE cterm=NONE ctermfg=Green ctermbg=DarkBlue +hi Directory gui=NONE guifg=Green guibg=DarkBlue + +hi WarningMsg term=standout cterm=NONE ctermfg=Red ctermbg=DarkBlue +hi WarningMsg gui=standout guifg=Red guibg=DarkBlue + +hi Error term=NONE cterm=NONE ctermfg=White ctermbg=Red +hi Error gui=NONE guifg=White guibg=Red + +hi Cursor ctermfg=Black ctermbg=Yellow +hi Cursor guifg=Black guibg=Yellow + diff --git a/dot_vim/colors/breeze.vim b/dot_vim/colors/breeze.vim new file mode 100644 index 0000000..21cf417 --- /dev/null +++ b/dot_vim/colors/breeze.vim @@ -0,0 +1,70 @@ +" Vim color file +" Maintainer: Tiza +" Last Change: 2002/10/30 Wed 00:08. +" version: 1.0 +" This color scheme uses a dark background. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "breeze" + +hi Normal guifg=#ffffff guibg=#005c70 + +" Search +hi IncSearch gui=UNDERLINE guifg=#60ffff guibg=#6060ff +hi Search gui=NONE guifg=#ffffff guibg=#6060ff + +" Messages +hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#ff40a0 +hi WarningMsg gui=BOLD guifg=#ffffff guibg=#ff40a0 +hi ModeMsg gui=NONE guifg=#60ffff guibg=NONE +hi MoreMsg gui=NONE guifg=#ffc0ff guibg=NONE +hi Question gui=NONE guifg=#ffff60 guibg=NONE + +" Split area +hi StatusLine gui=NONE guifg=#000000 guibg=#d0d0e0 +hi StatusLineNC gui=NONE guifg=#606080 guibg=#d0d0e0 +hi VertSplit gui=NONE guifg=#606080 guibg=#d0d0e0 +hi WildMenu gui=NONE guifg=#000000 guibg=#00c8f0 + +" Diff +hi DiffText gui=UNDERLINE guifg=#ffff00 guibg=#000000 +hi DiffChange gui=NONE guifg=#ffffff guibg=#000000 +hi DiffDelete gui=NONE guifg=#60ff60 guibg=#000000 +hi DiffAdd gui=NONE guifg=#60ff60 guibg=#000000 + +" Cursor +hi Cursor gui=NONE guifg=#ffffff guibg=#d86020 +hi lCursor gui=NONE guifg=#ffffff guibg=#e000b0 +hi CursorIM gui=NONE guifg=#ffffff guibg=#e000b0 + +" Fold +hi Folded gui=NONE guifg=#ffffff guibg=#0088c0 +" hi Folded gui=NONE guifg=#ffffff guibg=#2080d0 +hi FoldColumn gui=NONE guifg=#60e0e0 guibg=#006c7f + +" Other +hi Directory gui=NONE guifg=#00e0ff guibg=NONE +hi LineNr gui=NONE guifg=#60a8bc guibg=NONE +hi NonText gui=BOLD guifg=#00c0c0 guibg=#006276 +hi SpecialKey gui=NONE guifg=#e0a0ff guibg=NONE +hi Title gui=BOLD guifg=#ffffff guibg=NONE +hi Visual gui=NONE guifg=#ffffff guibg=#6060d0 +" hi VisualNOS gui=NONE guifg=#ffffff guibg=#6060d0 + +" Syntax group +hi Comment gui=NONE guifg=#c8d0d0 guibg=NONE +hi Constant gui=NONE guifg=#60ffff guibg=NONE +hi Error gui=BOLD guifg=#ffffff guibg=#ff40a0 +hi Identifier gui=NONE guifg=#cacaff guibg=NONE +hi Ignore gui=NONE guifg=#006074 guibg=NONE +hi PreProc gui=NONE guifg=#ffc0ff guibg=NONE +hi Special gui=NONE guifg=#ffd074 guibg=NONE +hi Statement gui=NONE guifg=#ffff80 guibg=NONE +hi Todo gui=BOLD,UNDERLINE guifg=#ffb0b0 guibg=NONE +hi Type gui=NONE guifg=#80ffa0 guibg=NONE +hi Underlined gui=UNDERLINE guifg=#ffffff guibg=NONE diff --git a/dot_vim/colors/brookstream.vim b/dot_vim/colors/brookstream.vim new file mode 100644 index 0000000..ee907c6 --- /dev/null +++ b/dot_vim/colors/brookstream.vim @@ -0,0 +1,83 @@ +"-------------------------------------------------------------------- +" Name Of File: brookstream.vim. +" Description: Gvim colorscheme, works best with version 6.1 GUI . +" Maintainer: Peter Bckstrm. +" Creator: Peter Bckstrm. +" URL: http://www.brookstream.org (Swedish). +" Credits: Inspiration from the darkdot scheme. +" Last Change: Friday, April 13, 2003. +" Installation: Drop this file in your $VIMRUNTIME/colors/ directory. +"-------------------------------------------------------------------- + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="brookstream" + +"-------------------------------------------------------------------- + +hi Normal gui=none guibg=#000000 guifg=#bbbbbb +hi Cursor guibg=#44ff44 guifg=#000000 +hi Directory guifg=#44ffff +hi DiffAdd guibg=#080808 guifg=#ffff00 +hi DiffDelete guibg=#080808 guifg=#444444 +hi DiffChange guibg=#080808 guifg=#ffffff +hi DiffText guibg=#080808 guifg=#bb0000 +hi ErrorMsg guibg=#880000 guifg=#ffffff +hi Folded guifg=#000088 +hi IncSearch guibg=#000000 guifg=#bbcccc +hi LineNr guibg=#050505 guifg=#4682b4 +hi ModeMsg guifg=#ffffff +hi MoreMsg guifg=#44ff44 +hi NonText guifg=#4444ff +hi Question guifg=#ffff00 +hi SpecialKey guifg=#4444ff +hi StatusLine gui=none guibg=#2f4f4f guifg=#ffffff +hi StatusLineNC gui=none guibg=#bbbbbb guifg=#000000 +hi Title guifg=#ffffff +hi Visual gui=none guibg=#bbbbbb guifg=#000000 +hi WarningMsg guifg=#ffff00 + +" syntax highlighting groups ---------------------------------------- + +hi Comment guifg=#696969 +hi Constant guifg=#00aaaa +hi Identifier guifg=#00e5ee +hi Statement guifg=#00ffff +hi PreProc guifg=#8470ff +hi Type guifg=#ffffff +hi Special gui=none guifg=#87cefa +hi Underlined gui=bold guifg=#4444ff +hi Ignore guifg=#444444 +hi Error guibg=#000000 guifg=#bb0000 +hi Todo guibg=#aa0006 guifg=#fff300 +hi Operator gui=none guifg=#00bfff +hi Function guifg=#1e90ff +hi String gui=None guifg=#4682b4 +hi Boolean guifg=#9bcd9b + +"hi link Character Constant +"hi link Number Constant +"hi link Boolean Constant +"hi link Float Number +"hi link Conditional Statement +"hi link Label Statement +"hi link Keyword Statement +"hi link Exception Statement +"hi link Repeat 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 Delimiter Special +"hi link SpecialComment Special +"hi link Debug Special +"hi link FoldColumn Folded + +"- end of colorscheme ----------------------------------------------- diff --git a/dot_vim/colors/brown.vim b/dot_vim/colors/brown.vim new file mode 100644 index 0000000..aecfe4e --- /dev/null +++ b/dot_vim/colors/brown.vim @@ -0,0 +1,32 @@ +hi comment guifg=#fef8ff ctermfg=red +hi constant guifg=#aa712f ctermfg=white +hi cursor guibg=#5e3807 guifg=#deb887 +hi diffadd ctermbg=green ctermfg=black +hi diffchange ctermbg=green ctermfg=white +hi diffdelete ctermbg=none ctermfg=darkyellow +hi difftext ctermbg=black ctermfg=green +hi directory guifg=#3e1807 ctermfg=green +hi error guibg=#cc3807 guifg=#deb887 +hi errormsg guifg=#cc3807 guibg=#f9d7a6 +hi identifier guifg=#5e3807 ctermfg=green +hi incsearch guifg=#f9d7a6 guibg=#8e6837 +hi modemsg guifg=#793807 ctermbg=none ctermfg=cyan gui=none +hi moremsg guifg=#793807 gui=none +hi nontext guifg=#ffffff ctermfg=darkgrey +hi normal guibg=#deb887 guifg=#846037 +hi preproc guifg=#7e6f27 ctermfg=white +hi question guifg=#793807 gui=none +hi scrollbar guibg=#deb887 guifg=#ae8857 +hi search guifg=#f9d7a6 ctermbg=cyan ctermfg=yellow guibg=#8e6837 +hi special guifg=#000000 ctermfg=yellow +hi specialkey guifg=#ffffff ctermfg=white +hi statement guifg=#7e5827 ctermfg=cyan +hi statusline guibg=#fee8b7 ctermbg=black ctermfg=darkgreen guifg=#793807 gui=none +hi statuslinenc guibg=#ae8857 ctermbg=black ctermfg=darkcyan guifg=#deb887 gui=none +hi title guifg=#793807 ctermfg=darkgreen gui=none +hi todo guibg=#995827 guifg=#fed8a7 +hi type guifg=#7e5827 ctermfg=yellow gui=none +hi vertsplit guibg=#ae8857 ctermbg=green ctermfg=black guifg=#ae8857 gui=none +hi visual guifg=#f9d7a6 guibg=#8e6837 ctermbg=black ctermfg=darkcyan +hi warningmsg guifg=#cc3807 +hi wildmenu guifg=#f9d7a6 guibg=#8e6837 diff --git a/dot_vim/colors/buttercream.vim b/dot_vim/colors/buttercream.vim new file mode 100644 index 0000000..30fb10d --- /dev/null +++ b/dot_vim/colors/buttercream.vim @@ -0,0 +1,59 @@ +" Vim color file +" vim: tw=0 ts=8 sw=4 +" Scriptname: buttercream +" Maintainer: Hkan Wikstrm +" Version: 1.0 (initial release) +" Last Change: 20040126 +" As of now only gui is supported +" Based on the theme fog theme by Thomas R. Kimpton + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = "buttercream" + +" Highlight Foreground Background Extras + +hi Normal guifg=#213a58 guibg=#f3edbb +hi NonText guifg=LightBlue guibg=#f4df8b gui=bold +hi Comment guifg=#2f8e99 +hi Constant guifg=#7070a0 +hi Statement guifg=DarkGreen gui=bold +hi identifier guifg=DarkGreen +hi preproc guifg=#408040 +hi type guifg=DarkBlue +hi label guifg=#c06000 +hi operator guifg=DarkGreen gui=bold +hi StorageClass guifg=#a02060 gui=bold +hi Number guifg=Blue +hi Special guifg=#aa8822 +hi Cursor guifg=LightGrey guibg=#880088 +hi lCursor guifg=Black guibg=Cyan +hi ErrorMsg guifg=White guibg=DarkRed +hi DiffText guibg=DarkRed gui=bold +hi Directory guifg=DarkGrey gui=underline +hi LineNr guifg=#ccaa22 +hi MoreMsg guifg=SeaGreen gui=bold +hi Question guifg=DarkGreen gui=bold +hi Search guifg=Black guibg=#887722 +hi SpecialKey guifg=Blue +hi SpecialChar guifg=DarkGrey gui=bold +hi Title guifg=DarkMagenta gui=underline +hi WarningMsg guifg=DarkBlue guibg=#9999cc +hi WildMenu guifg=Black guibg=Yellow gui=underline +hi Folded guifg=DarkBlue guibg=LightGrey +hi FoldColumn guifg=DarkBLue guibg=Grey +hi DiffAdd guibg=DarkBlue +hi DiffChange guibg=DarkMagenta +hi DiffDelete guifg=Blue guibg=DarkCyan gui=bold +hi Ignore guifg=grey90 +hi IncSearch gui=reverse +hi ModeMsg gui=bold +hi StatusLine gui=reverse,bold +hi StatusLineNC gui=reverse +hi VertSplit gui=reverse +hi Visual guifg=LightGrey gui=reverse +hi VisualNOS gui=underline,bold +hi Todo guibg=#ccaa22 gui=bold,underline diff --git a/dot_vim/colors/bw.vim b/dot_vim/colors/bw.vim new file mode 100644 index 0000000..4c97e57 --- /dev/null +++ b/dot_vim/colors/bw.vim @@ -0,0 +1,55 @@ +" Vim color file +" Maintainer: Hans Fugal +" Last Change: 5 Oct 2001 +" URL: http://fugal.net/vim/colors/bw.vim + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors +" +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 +endif +let g:colors_name="bw" + +hi SpecialKey cterm=bold ctermfg=NONE +hi NonText cterm=bold ctermfg=NONE +hi Directory cterm=bold ctermfg=NONE +hi ErrorMsg cterm=standout ctermfg=NONE +hi IncSearch cterm=reverse ctermfg=NONE +hi Search cterm=reverse ctermfg=NONE +hi MoreMsg cterm=bold ctermfg=NONE +hi ModeMsg cterm=bold ctermfg=NONE +hi LineNr cterm=underline ctermfg=NONE +hi Question cterm=standout ctermfg=NONE +hi StatusLine cterm=bold,reverse ctermfg=NONE +hi StatusLineNC cterm=reverse ctermfg=NONE +hi VertSplit cterm=reverse ctermfg=NONE +hi Title cterm=bold ctermfg=NONE +hi Visual cterm=reverse ctermfg=NONE +hi VisualNOS cterm=bold,underline ctermfg=NONE +hi WarningMsg cterm=standout ctermfg=NONE +hi WildMenu cterm=standout ctermfg=NONE +hi Folded cterm=standout ctermfg=NONE +hi FoldColumn cterm=standout ctermfg=NONE +hi DiffAdd cterm=bold ctermfg=NONE +hi DiffChange cterm=bold ctermfg=NONE +hi DiffDelete cterm=bold ctermfg=NONE +hi DiffText cterm=reverse ctermfg=NONE +hi Comment cterm=bold ctermfg=NONE +hi Constant cterm=underline ctermfg=NONE +hi Special cterm=bold ctermfg=NONE +hi Identifier cterm=underline ctermfg=NONE +hi Statement cterm=bold ctermfg=NONE +hi PreProc cterm=underline ctermfg=NONE +hi Type cterm=underline ctermfg=NONE +hi Underlined cterm=underline ctermfg=NONE +hi Ignore cterm=bold ctermfg=NONE +hi Error cterm=reverse ctermfg=NONE +hi Todo cterm=standout ctermfg=NONE diff --git a/dot_vim/colors/c.vim b/dot_vim/colors/c.vim new file mode 100644 index 0000000..6109c22 --- /dev/null +++ b/dot_vim/colors/c.vim @@ -0,0 +1,32 @@ +" Vim Syntax Highlighting File +" +" Language: C +" +" Extra: This is to copy the vi clone elvis on its +" syntax highlighting. +" +" Maintainer: Dean Jones +" +" Comment: This works well with the default c.vim +" that comes with vim6.x. It basically +" overrides the very bright colors it uses +" and uses simple white for highlighting +" key words and types in the C language. +" If you're using Eterm, uncomment the +" Normal line specified below. + +hi clear + +" Eterm users, uncomment the line below +" hi Normal ctermfg=grey + +hi PreProc ctermfg=white +hi Type ctermfg=white +hi Statement ctermfg=white +hi Comment ctermfg=grey +hi Constant cterm=NONE ctermfg=NONE +hi Number cterm=NONE ctermfg=NONE +hi String cterm=NONE ctermfg=NONE +hi Special cterm=NONE ctermfg=NONE + +" EOF for Dean's Elvis like highlighting diff --git a/dot_vim/colors/camo.vim b/dot_vim/colors/camo.vim new file mode 100644 index 0000000..059af42 --- /dev/null +++ b/dot_vim/colors/camo.vim @@ -0,0 +1,76 @@ +" Vim color file +" Maintainer: Tim Aldrich +" Last Change: 19 January 2002 + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="camo" +hi Normal guifg=bisque guibg=grey15 +hi Cursor guifg=snow guibg=bisque3 +hi CursorIM guifg=OliveDrab4 guibg=bisque +hi Directory guifg=OliveDrab4 guibg=grey15 +hi DiffAdd guifg=DarkOliveGreen1 guibg=grey15 +hi DiffChange guifg=PaleGreen guibg=grey15 +hi DiffDelete guifg=red guibg=grey15 +hi DiffText guifg=grey15 guibg=red +hi ErrorMsg guifg=snow guibg=red +hi VertSplit guifg=bisque4 guibg=DarkOliveGreen1 +hi Folded guifg=DarkOliveGreen2 guibg=grey30 +hi FoldColumn guifg=DarkOliveGreen2 guibg=grey30 +hi IncSearch guifg=bisque guibg=red +hi LineNr guifg=OliveDrab4 guibg=grey15 +hi ModeMsg guifg=khaki3 guibg=grey15 +hi MoreMsg guifg=khaki3 guibg=grey15 +hi NonText guifg=DarkSalmon guibg=grey10 +hi Question guifg=IndianRed guibg=grey10 +hi Search guifg=DarkSalmon guibg=grey15 +hi SpecialKey guifg=yellow guibg=grey15 +hi StatusLine guifg=bisque4 guibg=DarkOliveGreen1 +hi StatusLineNC guifg=bisque4 guibg=DarkOliveGreen3 +hi Title guifg=IndianRed guibg=grey15 +hi Visual guifg=OliveDrab4 guibg=bisque1 +hi WarningMsg guifg=bisque guibg=red +hi WildMenu guifg=LightBlue guibg=DarkViolet + + +"Syntax hilight groups + +hi Comment guifg=tan +hi Constant guifg=khaki +hi String guifg=moccasin +hi Character guifg=chocolate +hi Number guifg=chocolate +hi Boolean guifg=OliveDrab3 +hi Float guifg=chocolate +hi Identifier guifg=khaki4 +hi Function guifg=OliveDrab4 +hi Statement guifg=khaki +hi Conditional guifg=khaki +hi Repeat guifg=khaki +hi Label guifg=khaki +hi Operator guifg=DarkKhaki +hi Keyword guifg=DarkKhaki +hi Exception guifg=khaki +hi PreProc guifg=khaki4 +hi Include guifg=khaki4 +hi Define guifg=khaki1 +hi Macro guifg=khaki2 +hi PreCondit guifg=khaki3 +hi Type guifg=khaki3 +hi StorageClass guifg=tan +hi Structure guifg=DarkGoldenrod +hi Typedef guifg=khaki3 +hi Special guifg=IndianRed +hi SpecialChar guifg=DarkGoldenrod +hi Tag guifg=DarkKhaki +hi Delimiter guifg=DarkGoldenrod +hi SpecialComment guifg=cornsilk +hi Debug guifg=brown +hi Underlined guifg=IndianRed +hi Ignore guifg=grey30 +hi Error guifg=bisque guibg=red +hi Todo guifg=red guibg=bisque + diff --git a/dot_vim/colors/campfire.vim b/dot_vim/colors/campfire.vim new file mode 100644 index 0000000..b77c3fc --- /dev/null +++ b/dot_vim/colors/campfire.vim @@ -0,0 +1,57 @@ +" Vim color file +" Maintainer: Alexander Timmermans +" Last Change: 28 september 2006 + +set bg=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "campfire" + +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 + +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 lCursor guifg=#ffffff guibg=#000000 ctermfg=bg ctermbg=darkgreen + + +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=seagreen1 cterm=none +hi Statement ctermfg=yellow cterm=none guifg=#ffff60 gui=none +hi PreProc ctermfg=magenta guifg=gold gui=none cterm=none +hi type ctermfg=green guifg=seagreen1 gui=none cterm=none +hi Underlined cterm=underline term=underline +hi Ignore guifg=bg ctermfg=bg +hi String term=NONE cterm=NONE gui=NONE start=^[[m^[[33m stop=^[[m^[[32m ctermfg=3 guifg=LightGrey +hi Constant term=NONE cterm=NONE gui=NONE start=^[[m^[[33m stop=^[[m^[[32m ctermfg=3 guifg=LightGrey diff --git a/dot_vim/colors/candy.vim b/dot_vim/colors/candy.vim new file mode 100644 index 0000000..545ff7c --- /dev/null +++ b/dot_vim/colors/candy.vim @@ -0,0 +1,78 @@ +" Vim color file +" Maintainer: Tiza +" Last Change: 2002/04/28 Sun 19:35. +" version: 1.0 +" This color scheme uses a dark background. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "candy" + +hi Normal guifg=#f0f0f8 guibg=#000000 + +" Search +hi IncSearch gui=UNDERLINE guifg=#80ffff guibg=#0060c0 +hi Search gui=NONE guifg=#f0f0f8 guibg=#0060c0 + +" Messages +hi ErrorMsg gui=BOLD guifg=#ffa0ff guibg=NONE +hi WarningMsg gui=BOLD guifg=#ffa0ff guibg=NONE +hi ModeMsg gui=BOLD guifg=#40f0d0 guibg=NONE +hi MoreMsg gui=BOLD guifg=#00ffff guibg=#008070 +hi Question gui=BOLD guifg=#e8e800 guibg=NONE + +" Split area +hi StatusLine gui=NONE guifg=#000000 guibg=#c8c8d8 +hi StatusLineNC gui=NONE guifg=#707080 guibg=#c8c8d8 +hi VertSplit gui=NONE guifg=#606080 guibg=#c8c8d8 +hi WildMenu gui=NONE guifg=#000000 guibg=#a0a0ff + +" Diff +hi DiffText gui=NONE guifg=#ff78f0 guibg=#a02860 +hi DiffChange gui=NONE guifg=#e03870 guibg=#601830 +hi DiffDelete gui=NONE guifg=#a0d0ff guibg=#0020a0 +hi DiffAdd gui=NONE guifg=#a0d0ff guibg=#0020a0 + +" Cursor +hi Cursor gui=NONE guifg=#00ffff guibg=#008070 +hi lCursor gui=NONE guifg=#ffffff guibg=#8800ff +hi CursorIM gui=NONE guifg=#ffffff guibg=#8800ff + +" Fold +hi Folded gui=NONE guifg=#40f0f0 guibg=#005080 +hi FoldColumn gui=NONE guifg=#40c0ff guibg=#00305c + +" Other +hi Directory gui=NONE guifg=#40f0d0 guibg=NONE +hi LineNr gui=NONE guifg=#9090a0 guibg=NONE +hi NonText gui=BOLD guifg=#4080ff guibg=NONE +hi SpecialKey gui=BOLD guifg=#8080ff guibg=NONE +hi Title gui=BOLD guifg=#f0f0f8 guibg=NONE +hi Visual gui=NONE guifg=#e0e0f0 guibg=#707080 + +" Syntax group +hi Comment gui=NONE guifg=#c0c0d0 guibg=NONE +hi Constant gui=NONE guifg=#90d0ff guibg=NONE +hi Error gui=BOLD guifg=#ffffff guibg=#ff0088 +hi Identifier gui=NONE guifg=#40f0f0 guibg=NONE +hi Ignore gui=NONE guifg=#000000 guibg=NONE +hi PreProc gui=NONE guifg=#40f0a0 guibg=NONE +hi Special gui=NONE guifg=#e0e080 guibg=NONE +hi Statement gui=NONE guifg=#ffa0ff guibg=NONE +hi Todo gui=BOLD,UNDERLINE guifg=#ffa0a0 guibg=NONE +hi Type gui=NONE guifg=#ffc864 guibg=NONE +hi Underlined gui=UNDERLINE guifg=#f0f0f8 guibg=NONE + +" HTML +hi htmlLink gui=UNDERLINE +hi htmlBold gui=BOLD +hi htmlBoldItalic gui=BOLD,ITALIC +hi htmlBoldUnderline gui=BOLD,UNDERLINE +hi htmlBoldUnderlineItalic gui=BOLD,UNDERLINE,ITALIC +hi htmlItalic gui=ITALIC +hi htmlUnderline gui=UNDERLINE +hi htmlUnderlineItalic gui=UNDERLINE,ITALIC diff --git a/dot_vim/colors/caramel.vim b/dot_vim/colors/caramel.vim new file mode 100644 index 0000000..81f6fd5 --- /dev/null +++ b/dot_vim/colors/caramel.vim @@ -0,0 +1,67 @@ +" Vim color file +" Maintainer : Brian Gant +" Email : gantbd@muohio.edu +" Last Change : 2/15/03 +" Version : 0.1 +" +" TODO : add colors for diff and other non-implemented +" stuff +" +" LICENCE (heh) : Emailware. Basically it means use it, +" abuse it, change it, love it, leave it, whatever! I +" do however make the simple request that if you use the +" scheme, drop me an email and let me know what you think +" about it, especially if you modify it! I don't use +" the non-implemented features on a regular enough basis +" to get a feel for how they flesh out. +" +" Designed for use with COBOL, but looks pretty good with +" Perl, PHP, and C/C++ too (at least I think so). +" +" Brian +" +" --------------------------------------------------------- + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="caramel" + +" --------------------------------------------------------- + +hi Normal guifg=#dca454 guibg=#5c5094 + +" --------------------------------------------------------- + +hi Cursor guifg=#303030 guibg=#dca454 +hi CursorIM guifg=#303030 guibg=#dca454 +hi ErrorMsg guifg=#b4a8a8 guibg=bg +hi IncSearch guifg=#e0d070 guibg=#303030 +hi LineNr guifg=#b4a8a8 guibg=#39325d +hi ModeMsg guifg=#b4a8a8 guibg=bg +hi MoreMsg guifg=#b4a8a8 guibg=bg +hi NonText guifg=#b4a8a8 guibg=#39325d +hi Question guifg=#b4a8a8 guibg=bg +hi Search guifg=#303030 guibg=#e0d070 +hi StatusLine guifg=#e0d070 guibg=#303030 +hi StatusLineNC guifg=#dca454 guibg=#303030 +hi Title guifg=#b4a8a8 guibg=#39325d +hi Visual guifg=#b4a8a8 guibg=#303030 +hi VisualNOS guifg=#b4a8a8 guibg=#303030 +hi WarningMsg guifg=#b4a8a8 guibg=#39325d + +" --------------------------------------------------------- + +hi Comment guifg=#b4a8a8 guibg=bg +hi Constant guifg=#9cd464 guibg=bg +hi Identifier guifg=#e8c47c guibg=bg +hi Statement guifg=#8088bc guibg=bg +hi PreProc guifg=#e0d070 guibg=bg +hi Type guifg=#e0d070 guibg=bg +hi Special guifg=#e0d070 guibg=bg +hi Underlined guifg=#9cd464 guibg=bg +hi Ignore guifg=fg guibg=bg +hi Error guifg=#cc74a8 guibg=#9cd464 +hi Todo guifg=bg guibg=#e0d070 diff --git a/dot_vim/colors/chela_light.vim b/dot_vim/colors/chela_light.vim new file mode 100644 index 0000000..3fd8d95 --- /dev/null +++ b/dot_vim/colors/chela_light.vim @@ -0,0 +1,89 @@ +" Vim color file +" +" Maintainer: Stefan Karlsson +" Last Change: 29 September 2004 +" + +set background=light + +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name="chela_light" + + +"= Syntax Groups ============================================= + +hi comment guibg=#fafafa guifg=#339900 gui=none + +hi constant guibg=#fafafa guifg=#dd3333 gui=none +hi specialchar guibg=#fafafa guifg=#ff3333 gui=underline + +hi identifier guibg=#fafafa guifg=#3333ff gui=none + +hi statement guibg=#fafafa guifg=#3333ff gui=none +hi label guibg=#fafafa guifg=#3333ff gui=none + +hi preproc guibg=#fafafa guifg=#3333ff gui=none +hi include guibg=#fafafa guifg=#3333ff gui=none +hi precondit guibg=#fafafa guifg=#cc00cc gui=none + +hi type guibg=#fafafa guifg=#3333ff gui=none + +hi special guibg=#fafafa guifg=#cc00cc gui=none + +hi error guibg=#ff3333 guifg=#ffffff gui=none + +hi todo guibg=#339933 guifg=#ffffff gui=none + + +"= General Groups ============================================ + +hi cursor guibg=#000000 guifg=#ffffff gui=none + +hi directory guibg=#fafafa guifg=#3333ff gui=none + +hi diffadd guibg=#66ff66 guifg=#000000 gui=none +hi diffdelete guibg=#ff6666 guifg=#ff6666 gui=none +hi diffchange guibg=#ffff00 guifg=#cccc99 gui=none +hi difftext guibg=#ffff00 guifg=#000000 gui=none + +hi errormsg guibg=#ff3333 guifg=#ffffff gui=none + +hi vertsplit guibg=#3333ff guifg=#3333ff gui=none + +hi folded guibg=#eeeeee guifg=#3333ff gui=none +hi foldcolumn guibg=#eeeeee guifg=#999999 gui=none + +hi linenr guibg=#fafafa guifg=#bbbbbb gui=none + +hi modemsg guibg=#fafafa guifg=#999999 gui=none + +hi moremsg guibg=#339900 guifg=#ffffff gui=none +hi question guibg=#339900 guifg=#ffffff gui=none + +hi nontext guibg=#fafafa guifg=#999999 gui=none + +hi normal guibg=#fafafa guifg=#000000 gui=none + +hi search guibg=#ffff00 guifg=#000000 gui=none +hi incsearch guibg=#ffbb00 guifg=#000000 gui=none + +hi specialkey guibg=#fafafa guifg=#cc00cc gui=none + +hi statusline guibg=#3333ff guifg=#ffffff gui=none +hi statuslinenc guibg=#3333ff guifg=#999999 gui=none + +hi title guibg=#fafafa guifg=#6666ff gui=none + +hi visual guibg=#bbbbbb guifg=#333333 gui=none + +hi warningmsg guibg=#fafafa guifg=#ff0000 gui=none + +hi wildmenu guibg=#339900 guifg=#ffffff gui=none + + +" [eof] + diff --git a/dot_vim/colors/chocolateliquor.vim b/dot_vim/colors/chocolateliquor.vim new file mode 100644 index 0000000..c71bdf3 --- /dev/null +++ b/dot_vim/colors/chocolateliquor.vim @@ -0,0 +1,34 @@ +" Vim color file +" Maintainer: Gerald S. Williams +" Last Change: 2003 Apr 17 + +" This started as a dark version (perhaps opposite is a better term) of +" PapayaWhip, but took on a life of its own. Easy on the eyes, but still +" has good contrast. Not bad on a color terminal, either (of course, on +" my color terms, Black == #3f1f1f and White == PapayaWhip :-P ). +" +" Only values that differ from defaults are specified. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "ChocolateLiquor" + +hi Normal guibg=#3f1f1f guifg=PapayaWhip ctermfg=White +hi NonText guibg=#1f0f0f guifg=Brown2 ctermfg=Brown +hi LineNr guibg=#1f0f0f guifg=Brown2 +hi DiffDelete guibg=DarkRed guifg=White ctermbg=DarkRed ctermfg=White +hi DiffAdd guibg=DarkGreen guifg=White ctermbg=DarkGreen ctermfg=White +hi DiffText gui=NONE guibg=DarkCyan guifg=Yellow ctermbg=DarkCyan ctermfg=Yellow +hi DiffChange guibg=DarkCyan guifg=White ctermbg=DarkCyan ctermfg=White +hi Constant ctermfg=Red +hi Comment guifg=LightBlue3 +hi PreProc guifg=Plum ctermfg=Magenta +hi StatusLine guibg=White guifg=Sienna4 cterm=NONE ctermfg=Gray ctermbg=Brown +hi StatusLineNC gui=NONE guifg=Black guibg=Gray ctermbg=Black ctermfg=Gray +hi VertSplit guifg=Gray +hi Search guibg=Gold3 ctermfg=White +hi Type gui=NONE guifg=DarkSeaGreen2 +hi Statement gui=NONE guifg=Gold3 diff --git a/dot_vim/colors/cleanphp.vim b/dot_vim/colors/cleanphp.vim new file mode 100644 index 0000000..c0af691 --- /dev/null +++ b/dot_vim/colors/cleanphp.vim @@ -0,0 +1,81 @@ +" Vim color file +" Maintainer: Billy McIntosh +" Last Change: June 24, 2003 +" Licence: Public Domain + +" This package offers a eye-catching color scheme for PHP syntax + +" First remove all existing highlighting. +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "cleanphp" + +hi Normal guifg=#008000 guibg=#d3e4f8 + +hi ErrorMsg guibg=#d3e4f8 guifg=Red +hi IncSearch gui=reverse +hi ModeMsg gui=bold +hi StatusLine gui=reverse,bold +hi StatusLineNC gui=reverse +hi VertSplit gui=reverse +hi Visual gui=reverse guifg=#c0c0c0 guibg=fg +hi VisualNOS gui=underline,bold +hi DiffText gui=bold guibg=Red +hi Cursor guibg=Black guifg=NONE +hi lCursor guibg=Black guifg=NONE +hi Directory guifg=#ff8040 +hi LineNr guifg=#008000 +hi MoreMsg gui=bold guifg=SeaGreen +hi NonText gui=bold guifg=#ff8040 guibg=#d3e4f8 +hi Question gui=bold guifg=Black +hi Search guibg=#008000 guifg=NONE +hi SpecialKey guifg=#ff8040 +hi Title gui=bold guifg=Magenta +hi WarningMsg guifg=Red +hi WildMenu guibg=Cyan guifg=#d3e4f8 +hi Folded guibg=White guifg=Darkblue +hi FoldColumn guibg=#c0c0c0 guifg=Darkblue +hi DiffAdd guibg=Lightblue +hi DiffChange guibg=LightMagenta +hi DiffDelete gui=bold guifg=#ff8040 guibg=LightCyan + +hi Comment guifg=#ff8040 guibg=#d3e4f8 +hi Constant guifg=#BB0000 guibg=#d3e4f8 +hi PreProc guifg=#008080 guibg=#d3e4f8 +hi Statement gui=NONE guifg=#008000 guibg=#d3e4f8 +hi Special guifg=#008080 guibg=#d3e4f8 +hi Ignore guifg=#c0c0c0 +hi Identifier guifg=#000080 guibg=#d3e4f8 +hi Type guifg=#00BB00 guibg=#d3e4f8 + +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 + +" vim: sw=2 \ No newline at end of file diff --git a/dot_vim/colors/coffee.vim b/dot_vim/colors/coffee.vim new file mode 100644 index 0000000..284fb01 --- /dev/null +++ b/dot_vim/colors/coffee.vim @@ -0,0 +1,60 @@ +" Vim color file +" Maintainer: David Lazar +" Last Change: Fri Jan 31 01:08:13 UTC 2003 +" Version: 1.0 +" URL: http://c7.campus.utcluj.ro/~david/coffee.vim +" +" This colorscheme script was created using Hans Fugal's colorscheme template + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="coffee" + +hi Normal gui=none guibg= #514c44 guifg=#b0a594 + +hi Cursor gui=none guibg=#ffffff guifg=bg +hi link CursorIM Cursor +hi Directory guifg=#ffffff +hi DiffAdd guibg=#9e9485 guifg=bg +hi DiffDelete guibg=#2e2b26 guifg=fg +hi DiffChange guibg=#70695e guifg=fg +hi DiffText guibg=#70695e guifg=#880000 +hi ErrorMsg guibg=#880000 guifg=#ffffff +hi Folded guifg=#88c0c7 +hi FoldColumn guifg=#88c0c7 +hi IncSearch guifg=#fff0d6 guibg=#000000 +hi LineNr guibg=#000000 guifg=#ffff21 +hi ModeMsg guifg=#ffffff +hi MoreMsg guifg=#00ff00 +hi NonText guifg=#61616d +hi Question guifg=#ffff00 +hi link Search IncSearch +hi SpecialKey guifg=#ffffff +hi StatusLine guibg=#000000 guifg=#deefff +hi StatusLineNC guibg=#395956 guifg=#a4b1bd +hi VertSplit guibg=#395956 guifg=#a4b1bd +hi Title guifg=#ffffff +hi Visual guifg=#fff0d6 guibg=#000000 +hi VisualNOS guifg=#dddddd guibg=bg +hi WarningMsg guifg=#ffff00 +"hi WildMenu +"hi Menu +"hi Scrollbar +"hi Tooltip + +" syntax highlighting groups +hi Comment guifg=#1a1813 +hi Constant guifg=#cefece +hi Identifier guifg=#cc7c3d +hi Statement guifg=#effec5 +hi PreProc guifg=#85ff85 +hi Type guifg=#c6feeb +hi Special guifg=#eeffee +hi Underlined gui=underline guifg=#ffffff +hi Ignore guifg=fg +hi Error guibg=bg guifg=#ff4c4a +hi Todo guibg=#aa0006 guifg=#fff300 + diff --git a/dot_vim/colors/colorer.vim b/dot_vim/colors/colorer.vim new file mode 100644 index 0000000..30e1277 --- /dev/null +++ b/dot_vim/colors/colorer.vim @@ -0,0 +1,79 @@ +" local syntax file - set colors on a per-machine basis: +" vim: tw=0 ts=4 sw=4 +" Vim color file +" Maintainer: Sergey V. Beduev +" Last Change: Sun Mar 28 11:19:38 EEST 2004 + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "colorer" + +hi Normal ctermfg=Gray guifg=DarkGray guibg=black +hi Visual ctermfg=DarkCyan guibg=black guifg=DarkCyan +hi Comment ctermfg=Brown guifg=#B46918 gui=NONE +hi PerlPOD ctermfg=Brown guifg=#B86A18 gui=NONE +hi Constant ctermfg=White guifg=White gui=NONE +hi Charachter ctermfg=Yellow guifg=Yellow gui=NONE +hi String ctermfg=Yellow guifg=Yellow gui=NONE +hi Number ctermfg=White guifg=White gui=NONE +hi Boolean ctermfg=Cyan guifg=DarkGray gui=NONE +hi Special ctermfg=DarkMagenta guifg=Red gui=NONE +hi Define ctermfg=LightMagenta guifg=Magenta gui=NONE +hi Identifier ctermfg=Green guifg=Green gui=NONE +hi Exception ctermfg=White guifg=White gui=NONE +hi Statement ctermfg=White guifg=White gui=NONE +hi Label ctermfg=White guifg=White gui=NONE +hi Keyword ctermfg=White guifg=White gui=NONE +hi PreProc ctermfg=Green guifg=Green gui=NONE +hi Type ctermfg=LightGreen guifg=Green gui=NONE +hi Function ctermfg=White guifg=White gui=NONE +hi Repeat ctermfg=White guifg=White gui=NONE +hi Operator ctermfg=White guifg=White gui=NONE +hi Ignore ctermfg=black guifg=bg +hi Folded ctermbg=LightBlue ctermfg=Gray guibg=DarkBlue guifg=DarkGray gui=NONE +hi Error term=reverse ctermbg=Red ctermfg=White guibg=darkRed guifg=White gui=NONE +hi Todo term=standout ctermbg=Yellow ctermfg=Black guifg=Black guibg=#AD5500 gui=NONE +hi Done term=standout ctermbg=Gray ctermfg=White guifg=White guibg=Gray gui=NONE + +hi SpellErrors ctermfg=DarkRed guifg=Black gui=NONE + +hi MailQ ctermfg=darkcyan guibg=black gui=NONE +hi MailQu ctermfg=darkgreen guibg=black gui=NONE +hi MyDiffNew ctermfg=magenta guifg=red gui=NONE +hi MyDiffCommLine ctermfg=white ctermbg=red guifg=white guibg=darkred gui=NONE +hi MyDiffRemoved ctermfg=LightRed guifg=red gui=NONE +hi MyDiffSubName ctermfg=DarkCyan guifg=Cyan gui=NONE +hi MyDiffNormal ctermbg=White ctermfg=black guibg=White guifg=black gui=NONE +hi MoreMsg gui=NONE +hi ModeMsg gui=NONE +hi Title gui=NONE +hi NonText gui=NONE +hi DiffDelete gui=NONE +hi DiffText gui=NONE +hi StatusLine guifg=black guibg=gray gui=NONE +hi Question gui=NONE +" 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 Include PreProc +hi link Structure Define +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 Normal +hi link SpecialComment Special +hi link Debug Special + diff --git a/dot_vim/colors/cool.vim b/dot_vim/colors/cool.vim new file mode 100644 index 0000000..a7593d9 --- /dev/null +++ b/dot_vim/colors/cool.vim @@ -0,0 +1,82 @@ +" Vim color file +" Maintainer: Gergely Kontra +" Last Change: 2002. 07. 03. +" Based on scite colors. +" I've changed my mind, and inverted the colors. +" After an hour, this is the result. +" Not resembles to scite's colors :-] +" I'm a bit red-blind, so if you have suggestions, don't hesitate :) +" ^^^^^^^^^ Sorry, I cannot speak English well, just want to say, +" that in some rare cases I cannot distinguish between some colors +" (I've just realized it, when I see some special tests) + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +"colorscheme default +let g:colors_name = "cool" + + +" GUI +"highlight Normal guifg=#77BBFF guibg=#304060 +highlight Normal guifg=#77BBFF guibg=#102040 +highlight Normal ctermfg=LightBlue ctermbg=Black + +highlight Comment guifg=#EEEEEE guibg=#393939 +highlight Comment ctermfg=white ctermbg=DarkGrey + +highlight Constant gui=underline +highlight Constant ctermfg=LightBlue cterm=bold,underline + +highlight Cursor guifg=#999999 guibg=#FFFFFF + +highlight Define guifg=#FFFF80 guibg=#000099 gui=bold +highlight Define ctermfg=Yellow ctermbg=DarkBlue cterm=bold + +highlight Delimiter guifg=#FFFFFF guibg=#221F22 gui=bold + +highlight FoldColumn guifg=#FFFFFF guibg=#222222 +highlight FoldColumn ctermfg=White ctermbg=DarkGrey cterm=reverse + +highlight Folded guifg=#000000 guibg=#999999 +highlight Folded ctermfg=DarkGrey ctermbg=Black cterm=reverse + +highlight Function guifg=#dddddd guibg=#000099 gui=bold +highlight Function ctermfg=White ctermbg=DarkBlue cterm=bold + +highlight IncSearch guifg=#000000 guibg=#ffffff gui=bold,underline + +highlight LineNr guifg=#FFFFFF guibg=#444444 + +highlight Number guifg=#dddddd gui=bold +highlight Number ctermfg=LightCyan + +highlight PreProc guibg=#000000 guifg=#77bbff gui=bold + +highlight Search guifg=#ffffff guibg=#335577 +highlight Search ctermfg=White ctermbg=Cyan cterm=reverse + +highlight Special guifg=#ccaa55 guibg=#102040 gui=none +highlight Special ctermfg=Brown ctermbg=Black cterm=bold + +highlight Statement guifg=#FF8080 gui=bold +highlight Statement ctermfg=Magenta cterm=bold + +highlight StatusLine guifg=#FFFFFF guibg=#553333 +highlight StatusLine ctermfg=white ctermbg=DarkRed + +highlight StatusLineNC guifg=#AA8888 guibg=#000000 +highlight StatusLineNC ctermfg=red ctermbg=black + +highlight String guifg=#99ffaa guibg=#000000 +highlight String ctermfg=White + +highlight Subtitle guifg=#FFFFFF guibg=#994444 gui=bold,underline + +highlight Type guifg=#FFFFFF gui=NONE +highlight Type guifg=white gui=NONE + +highlight Visual guibg=#112233 guifg=#6688AA +highlight Visual ctermbg=DarkBlue ctermfg=LightBlue diff --git a/dot_vim/colors/dante.vim b/dot_vim/colors/dante.vim new file mode 100644 index 0000000..f584889 --- /dev/null +++ b/dot_vim/colors/dante.vim @@ -0,0 +1,83 @@ +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" File: "/home/caciano/.vim/dante.vim" +" Created: "Thu, 23 May 2002 00:12:20 -0300 (caciano)" +" Updated: "Sat, 24 Aug 2002 14:04:21 -0300 (caciano)" +" Copyright (C) 2002, Caciano Machado +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" Colorscheme Option: +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +hi clear +if exists("syntax on") + syntax reset +endif +let g:colors_name = "dante" + +" General colors +hi Normal ctermfg=gray guifg=peachpuff3 guibg=black +hi Directory term=bold ctermfg=blue guifg=royalblue +hi ErrorMsg term=standout ctermfg=white ctermbg=red guifg=white guibg=red3 +hi NonText term=bold ctermfg=darkgray guibg=gray3 guifg=gray20 +hi SpecialKey term=bold ctermfg=darkgray guifg=gray30 +hi LineNr term=underline ctermfg=darkgray guifg=ivory4 guibg=gray4 +hi IncSearch term=reverse cterm=reverse gui=reverse,bold guifg=darkgoldenrod2 +hi Search term=reverse ctermfg=black ctermbg=yellow guifg=gray10 guibg=gold2 +hi Visual term=bold,reverse cterm=bold,reverse ctermfg=gray ctermbg=black gui=bold,reverse guifg=gray40 guibg=black +hi VisualNOS term=bold,underline cterm=bold,underline gui=bold,underline +hi MoreMsg term=bold ctermfg=green gui=bold guifg=olivedrab1 +hi ModeMsg term=bold cterm=bold gui=bold +hi Question term=standout ctermfg=green gui=bold guifg=olivedrab1 +hi WarningMsg term=standout ctermfg=red gui=bold guifg=red3 +hi WildMenu term=standout ctermfg=black ctermbg=yellow guifg=black guibg=gold2 +hi Folded term=standout ctermfg=blue ctermbg=white guifg=royalblue1 guibg=white +hi FoldColumn term=standout ctermfg=blue ctermbg=white guifg=royalblue3 guibg=white +hi DiffAdd term=bold ctermbg=blue guibg=royalblue2 +hi DiffChange term=bold ctermbg=darkmagenta guibg=maroon +hi DiffDelete term=bold cterm=bold ctermfg=lightblue ctermbg=cyan gui=bold guifg=lightblue guibg=cyan4 +hi DiffText term=reverse cterm=bold ctermbg=red gui=bold guibg=red3 +hi Cursor guifg=bg guibg=fg +hi lCursor guifg=bg guibg=fg +hi StatusLine term=reverse cterm=reverse gui=reverse guifg=gray60 +hi StatusLineNC term=reverse cterm=reverse gui=reverse guifg=gray40 +hi VertSplit term=reverse cterm=reverse gui=bold,reverse guifg=gray40 +hi Title term=bold ctermfg=magenta gui=bold guifg=aquamarine + +" syntax hi colors +hi Comment term=bold ctermfg=darkcyan guifg=cyan4 +hi PreProc term=underline ctermfg=darkblue guifg=dodgerblue4 +hi Constant term=underline ctermfg=darkred guifg=firebrick3 +hi Type term=underline ctermfg=darkgreen gui=none guifg=chartreuse3 +hi Statement term=bold ctermfg=darkyellow gui=none guifg=gold3 +hi Identifier term=underline ctermfg=darkgreen guifg=darkolivegreen4 +hi Ignore term=bold ctermfg=darkgray guifg=gray45 +hi Special term=underline ctermfg=brown guifg=sienna +hi Error term=reverse ctermfg=gray ctermbg=red guifg=gray guibg=red3 +hi Todo term=standout ctermfg=black ctermbg=yellow gui=bold guifg=gray10 guibg=yellow4 +hi Underlined term=underline cterm=underline ctermfg=darkblue gui=underline guifg=slateblue +hi Number term=underline ctermfg=darkred guifg=red2 +" syntax hi links +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 Number Constant +hi link Conditional Statement +hi link Repeat Statement +hi link Label Statement +hi link Keyword Statement +hi link Exception Statement +hi link Operator 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 +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" diff --git a/dot_vim/colors/darkblack.vim b/dot_vim/colors/darkblack.vim new file mode 100644 index 0000000..5dcd263 --- /dev/null +++ b/dot_vim/colors/darkblack.vim @@ -0,0 +1,60 @@ +" Vim color file +" Maintainer: Matthew Jimenez +" Last Change: 2005 Feb 25 + +" darkblack -- an alteration to the darkblue colorscheme by Bohdan Vlasyuk + + +set bg=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "darkblack" + +hi Normal guifg=lightgrey guibg=black ctermfg=lightgray ctermbg=black +hi ErrorMsg guifg=white guibg=lightblue ctermfg=white ctermbg=lightblue +hi Visual guifg=lightblue guibg=fg gui=reverse ctermfg=lightblue ctermbg=fg cterm=reverse +hi VisualNOS guifg=lightblue guibg=fg gui=reverse,underline ctermfg=lightblue ctermbg=fg cterm=reverse,underline +hi Todo guifg=red guibg=black ctermfg=red ctermbg=black +hi Search guifg=white guibg=black ctermfg=white ctermbg=black cterm=underline term=underline +hi IncSearch guifg=black guibg=gray ctermfg=black ctermbg=gray + +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=lightblue ctermfg=lightblue +hi MoreMsg ctermfg=darkgreen ctermfg=darkgreen +hi Question guifg=green gui=none ctermfg=green cterm=none +hi NonText guifg=lightcyan ctermfg=lightcyan + +hi StatusLine guifg=lightblue guibg=darkgray gui=none ctermfg=lightblue 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=darkgrey guibg=black ctermfg=darkgrey ctermbg=black cterm=bold term=bold +hi FoldColumn guifg=darkgrey guibg=black ctermfg=darkgrey ctermbg=black cterm=bold term=bold +hi LineNr guifg=green ctermfg=green cterm=none + +hi DiffAdd guibg=black ctermbg=black term=none cterm=none +hi DiffChange guibg=darkmagenta ctermbg=magenta cterm=none +hi DiffDelete ctermfg=lightblue ctermbg=cyan gui=bold guifg=Blue guibg=DarkCyan +hi DiffText cterm=bold ctermbg=red gui=bold guibg=Red + +hi Cursor guifg=bg guibg=lightgrey ctermfg=bg ctermbg=lightgrey +hi lCursor guifg=bg guibg=darkgreen ctermfg=bg ctermbg=darkgreen + + +hi Comment guifg=lightblue ctermfg=lightblue +hi Constant ctermfg=magenta guifg=magenta cterm=none +hi Special ctermfg=brown guifg=Orange cterm=none gui=none +hi Identifier ctermfg=cyan guifg=cyan cterm=none +hi Statement ctermfg=yellow cterm=none guifg=yellow gui=none +hi PreProc ctermfg=magenta guifg=magenta gui=none cterm=none +hi type ctermfg=green guifg=green gui=none cterm=none +hi Underlined cterm=underline term=underline +hi Ignore guifg=bg ctermfg=bg + diff --git a/dot_vim/colors/darkblue2.vim b/dot_vim/colors/darkblue2.vim new file mode 100644 index 0000000..e31483b --- /dev/null +++ b/dot_vim/colors/darkblue2.vim @@ -0,0 +1,99 @@ +" Vim color file +" Maintainer: Datila Carvalho +" Last Change: November, 3, 2003 +" Version: 0.1 + +" This is a VIM's version of the emacs color theme +" _Dark Blue2_ created by Chris McMahan. + +""" Init stuff + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "darkblue2" + + +""" Colors + +" GUI colors +hi Cursor guifg=#233b5a guibg=Yellow +hi CursorIM guifg=NONE guibg=Yellow +hi Directory gui=bold guifg=cyan +"hi DiffAdd +"hi DiffChange +"hi DiffDelete +hi DiffText guibg=grey50 +hi ErrorMsg gui=bold guifg=White guibg=gray85 +hi VertSplit gui=bold guifg=NONE guibg=gray80 +"hi Folded +"hi FoldColumn +"hi IncSearch +"hi LineNr +hi ModeMsg gui=bold +"hi MoreMsg +"hi NonText +hi Normal guibg=#233b5a guifg=#fff8dc +"hi Question +hi Search gui=bold guifg=#233b5a guibg=lightgoldenrod +"hi SpecialKey +hi StatusLine guifg=aquamarine +hi StatusLineNC guifg=steelblue3 +"hi Title +hi Visual guifg=steelblue guibg=fg +hi VisualNOS gui=bold guifg=steelblue guibg=fg +hi WarningMsg guifg=White guibg=Tomato +"hi WildMenu + +" Colors for syntax highlighting +hi Comment gui=italic guifg=mediumaquamarine + +hi Constant gui=bold guifg=lightgoldenrod1 + hi String guifg=aquamarine + hi Character guifg=aquamarine + hi Number gui=bold guifg=lightgoldenrod1 + hi Boolean gui=bold guifg=lightgoldenrod1 + hi Float gui=bold guifg=lightgoldenrod1 + +hi Identifier gui=bold guifg=palegreen + hi Function guifg=lightskyblue + +hi Statement gui=bold guifg=cyan + hi Conditional gui=bold guifg=cyan + hi Repeat gui=bold guifg=cyan + hi Label guifg=cyan + hi Operator guifg=cyan + "hi Keyword + "hi Exception + +hi PreProc guifg=lightsteelblue + hi Include gui=bold guifg=lightsteelblue + hi Define guifg=lightsteelblue + hi Macro guifg=lightsteelblue + hi PreCondit guifg=lightsteelblue + +hi Type gui=bold guifg=palegreen + hi StorageClass gui=bold guifg=lightgoldenrod1 + hi Structure gui=bold guifg=lightgoldenrod1 + hi Typedef gui=bold guifg=lightgoldenrod1 + +"hi Special + ""Underline Character + "hi SpecialChar + "hi Tag + ""Statement + "hi Delimiter + ""Bold comment (in Java at least) + "hi SpecialComment + "hi Debug + +hi Underlined gui=underline + +hi Ignore guifg=bg + +hi Error gui=bold guifg=White guibg=Red + +"hi Todo diff --git a/dot_vim/colors/darkdot.vim b/dot_vim/colors/darkdot.vim new file mode 100644 index 0000000..0275896 --- /dev/null +++ b/dot_vim/colors/darkdot.vim @@ -0,0 +1,80 @@ +" Vim color file +" Maintainer: David Lazar +" Last Change: Thu May 20 16:27:13 EEST 2004 +" Version: 2.2 +" URL: http://www.c7obs.net/~david/stuff/darkdot.vim +" +" This colorscheme script was created using Hans Fugal's colorscheme template + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="darkdot" + +hi Normal cterm=none gui=none guibg=#101020 guifg=#a8aaaa +hi Cursor cterm=none guibg=#44ff44 guifg=#000000 +hi link CursorIM Cursor +hi Directory ctermfg=cyan guifg=#44ffff +hi DiffAdd ctermbg=blue ctermfg=yellow guibg=#080888 guifg=#ffff00 +hi DiffDelete ctermbg=black ctermfg=darkgray guibg=#080808 guifg=#444444 +hi DiffChange ctermbg=black guibg=#080808 guifg=#ffffff +hi DiffText ctermbg=black ctermfg=darkred guibg=#080808 guifg=#bb0000 +hi ErrorMsg ctermbg=darkred ctermfg=white guibg=#880000 guifg=#ffffff +hi Folded ctermbg=black ctermfg=darkblue guibg=black guifg=#000088 +hi link FoldColumn Folded +hi IncSearch ctermbg=black ctermfg=gray guibg=#000000 guifg=#bbcccc +hi LineNr ctermfg=yellow guibg=#404040 guifg=#ffff00 +hi ModeMsg ctermfg=white guifg=#ffffff +hi MoreMsg ctermfg=green guifg=#44ff44 +hi NonText ctermfg=blue guifg=#4444ff +hi Question ctermfg=yellow guifg=#ffff00 +hi Search ctermbg=NONE ctermfg=green guibg=NONE guifg=green +hi SpecialKey ctermfg=blue guifg=#4444ff +hi StatusLine cterm=none ctermbg=darkcyan ctermfg=white gui=none guibg=#00aaaa guifg=#ffffff +hi StatusLineNC cterm=none ctermbg=gray ctermfg=black gui=none guibg=#bbbbbb guifg=#000000 +hi link VertSplit StatusLineNC +hi Title ctermfg=white guifg=#ffffff +hi Visual cterm=none ctermbg=gray ctermfg=black gui=none guibg=#bbbbbb guifg=#000000 +hi link VisualNOS Visual +hi WarningMsg ctermfg=yellow guifg=#ffff00 +"hi WildMenu +"hi Menu +"hi Scrollbar +"hi Tooltip + +" syntax highlighting groups +hi Comment ctermfg=blue guifg=#4444ff +hi Constant ctermfg=darkcyan guifg=#00aaaa +hi Identifier ctermfg=white guifg=#ffffff +hi Statement ctermfg=cyan guifg=#44ffff +hi PreProc ctermfg=darkcyan guifg=#00aaaa +hi Type ctermfg=white guifg=#ffffff +hi Special ctermfg=blue cterm=bold guifg=#6666ff gui=bold +hi Underlined ctermfg=blue guifg=#4444ff +hi Ignore ctermfg=darkgray guifg=#444444 +hi Error ctermbg=black ctermfg=darkred guibg=#000000 guifg=#bb0000 +hi Todo ctermbg=darkred ctermfg=yellow guibg=#aa0006 guifg=#fff300 + +hi link Character Constant +hi link Number Constant +hi link Boolean Constant +hi link Float Number +hi link Conditional Statement +hi link Label Statement +hi link Keyword Statement +hi link Exception Statement +hi link Repeat 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 Delimiter Special +hi link SpecialComment Special +hi link Debug Special +hi link FoldColumn Folded diff --git a/dot_vim/colors/darkocean.vim b/dot_vim/colors/darkocean.vim new file mode 100644 index 0000000..99d2ed3 --- /dev/null +++ b/dot_vim/colors/darkocean.vim @@ -0,0 +1,52 @@ +" Name Of File: darkocean.vim +" Description: Gvim colorscheme, works best with version 6.0. +" Maintainer: Naveen Chandra R +" Last Change: Thursday, August 15, 2002 +" Installation: Drop this file in your $VIMRUNTIME/colors/ directory +" or manually source this file using ':so darkocean.vim'. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="darkocean" + +hi Cursor gui=None guibg=#add8e6 guifg=#000000 +hi CursorIM gui=None guibg=#add8e6 guifg=#000000 +hi Directory gui=None guibg=bg guifg=#20b2aa +hi DiffAdd gui=Bold guibg=#7e354d guifg=fg +hi DiffChange gui=Bold guibg=#103040 guifg=#cc3300 +hi DiffDelete gui=Bold,Reverse guibg=#7e354d guifg=fg +hi DiffText gui=Bold guibg=#d74141 guifg=fg +hi ErrorMsg gui=None guibg=#b22222 guifg=#ffffe0 +hi VertSplit gui=None guibg=#999999 guifg=#000000 +hi Folded gui=Bold guibg=#003366 guifg=#999999 +hi FoldColumn gui=Bold guibg=#305070 guifg=#b0d0e0 +hi IncSearch gui=Bold guibg=#8db6cd guifg=fg +hi LineNr gui=Bold guibg=#0f0f0f guifg=#8db6cd +hi MoreMsg gui=Bold guibg=bg guifg=#bf9261 +hi ModeMsg gui=Bold guibg=bg guifg=#4682b4 +hi NonText gui=None guibg=#0f0f0f guifg=#87cefa +hi Normal gui=None guibg=#000000 guifg=#e0ffff +hi Question gui=Bold guibg=bg guifg=#f4bb7e +hi Search gui=Bold guibg=#607b8b guifg=#000000 +hi SpecialKey gui=None guibg=bg guifg=#63b8ff +hi StatusLine gui=Bold guibg=#8db6cd guifg=#000000 +hi StatusLineNC gui=None guibg=#607b8b guifg=#1a1a1a +hi Title gui=Bold guibg=bg guifg=#5cacee +hi Visual gui=Reverse guibg=#ffffff guifg=#36648b +hi VisualNOS gui=Bold,Underline guibg=#4682b4 guifg=fg +hi WarningMsg gui=Bold guibg=bg guifg=#b22222 +hi WildMenu gui=Bold guibg=#607b8b guifg=#000000 +hi Comment gui=None guibg=#102520 guifg=#8db6cd +hi Constant gui=None guibg=bg guifg=#c34a2c +hi Identifier gui=None guibg=bg guifg=#009acd +hi Statement gui=None guibg=bg guifg=#72a5ee +hi PreProc gui=None guibg=bg guifg=#c12869 +hi Include gui=None guibg=bg guifg=#ccccff +hi Type gui=None guibg=bg guifg=#3b9c9c +hi Error gui=None guibg=#b22222 guifg=#ffffe0 +hi Todo gui=None guibg=#507080 guifg=#3bcccc +hi Ignore gui=None guibg=bg guifg=#777777 +hi TagName gui=None guibg=#660000 guifg=#a7a7a7 diff --git a/dot_vim/colors/darkslategray.vim b/dot_vim/colors/darkslategray.vim new file mode 100644 index 0000000..b36aef0 --- /dev/null +++ b/dot_vim/colors/darkslategray.vim @@ -0,0 +1,117 @@ +" vim: set tw=0 sw=4 sts=4 et: + +" Vim color file +" Maintainer: Tuomas Susi +" Last Change: 2004 October 05 +" Version: 1.7 + +" Emacs in RedHat Linux used to have (still does?) a kind of 'Wheat on +" DarkSlateGray' color scheme by default. This color scheme is created in the +" same spirit. +" +" Darkslategray is intended to be nice to your eyes (low contrast) and to take +" advantage of syntax hilighting as much as possible. +" +" This color scheme is for the GUI only, I'm happy with default console colors. +" Needs at least vim 6.0. + + +" Init stuff + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "darkslategray" + + +" GUI colors + +hi Cursor guifg=fg guibg=#da70d6 +hi CursorIM guifg=NONE guibg=#ff83fa +hi Directory guifg=#e0ffff +hi DiffAdd guibg=#528b8b +hi DiffChange guibg=#8b636c +hi DiffDelete gui=bold guifg=fg guibg=#000000 +hi DiffText gui=bold guibg=#6959cd +hi ErrorMsg gui=bold guifg=#ffffff guibg=#ff0000 +hi VertSplit gui=bold guifg=#bdb76b guibg=#000000 +hi Folded guifg=#000000 guibg=#bdb76b +hi FoldColumn guifg=#000000 guibg=#bdb76b +hi SignColumn gui=bold guifg=#bdb76b guibg=#20b2aa +hi IncSearch gui=bold guifg=#000000 guibg=#ffffff +hi LineNr gui=bold guifg=#bdb76b guibg=#528b8b +hi ModeMsg gui=bold +hi MoreMsg gui=bold guifg=#20b2aa +hi NonText gui=bold guifg=#ffffff +hi Normal guibg=#2f4f4f guifg=#f5deb3 +hi Question gui=bold guifg=#ff6347 +hi Search gui=bold guifg=#000000 guibg=#ffd700 +hi SpecialKey guifg=#00ffff +hi StatusLine gui=bold guifg=#f0e68c guibg=#000000 +hi StatusLineNC guibg=#bdb76b guifg=#404040 +hi Title gui=bold guifg=#ff6347 +hi Visual guifg=#000000 guibg=fg +hi VisualNOS gui=bold guifg=#000000 guibg=fg +hi WarningMsg guifg=#ffffff guibg=#ff6347 +hi WildMenu gui=bold guifg=#000000 guibg=#ffff00 + + +" I use GTK and don't wanna change these +"hi Menu foobar +"hi Scrollbar foobar +"hi Tooltip foobar + + +" Colors for syntax highlighting +hi Comment guifg=#da70d6 + +hi Constant guifg=#cdcd00 + hi String guifg=#7fffd4 + hi Character guifg=#7fffd4 + hi Number guifg=#ff6347 + hi Boolean guifg=#cdcd00 + hi Float guifg=#ff6347 + +hi Identifier guifg=#afeeee + hi Function guifg=#ffffff + +hi Statement gui=bold guifg=#4682b4 + hi Conditional gui=bold guifg=#4682b4 + hi Repeat gui=bold guifg=#4682b4 + hi Label gui=bold guifg=#4682b4 + hi Operator gui=bold guifg=#4682b4 + hi Keyword gui=bold guifg=#4682b4 + hi Exception gui=bold guifg=#4682b4 + +hi PreProc guifg=#cdcd00 + hi Include guifg=#ffff00 + hi Define guifg=#cdcd00 + hi Macro guifg=#cdcd00 + hi PreCondit guifg=#cdcd00 + +hi Type gui=bold guifg=#98fb98 + hi StorageClass guifg=#00ff00 + hi Structure guifg=#20b2aa + hi Typedef guifg=#00ff7f + +hi Special guifg=#ff6347 + "Underline Character + hi SpecialChar gui=underline guifg=#7fffd4 + hi Tag guifg=#ff6347 + "Statement + hi Delimiter gui=bold guifg=#b0c4de + "Bold comment (in Java at least) + hi SpecialComment gui=bold guifg=#da70d6 + hi Debug gui=bold guifg=#ff0000 + +hi Underlined gui=underline + +hi Ignore guifg=bg + +hi Error gui=bold guifg=#ffffff guibg=#ff0000 + +hi Todo gui=bold guifg=#000000 guibg=#ff83fa + diff --git a/dot_vim/colors/dawn.vim b/dot_vim/colors/dawn.vim new file mode 100644 index 0000000..5c65ca3 --- /dev/null +++ b/dot_vim/colors/dawn.vim @@ -0,0 +1,65 @@ +" Vim color file +" Maintainer: Ajit J. Thakkar (ajit AT unb DOT ca) +" Last Change: 2003 July 23 +" Version: 1.2 +" URL: http://www.unb.ca/chem/ajit/vim.htm + +" This GUI-only color scheme has a light grey background, and is a softer +" variant of the default and morning color schemes. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "dawn" + +hi Normal guifg=Black guibg=grey90 +"hi Normal guifg=Black guibg=grey80 + +" Groups used in the 'highlight' and 'guicursor' options default value. +hi ErrorMsg gui=NONE guifg=Red guibg=Linen +hi IncSearch gui=NONE guifg=fg guibg=LightGreen +hi ModeMsg gui=bold guifg=fg guibg=bg +hi StatusLine gui=NONE guifg=DarkBlue guibg=grey70 +hi StatusLineNC gui=NONE guifg=grey90 guibg=grey70 +hi VertSplit gui=NONE guifg=grey70 guibg=grey70 +hi Visual gui=reverse guifg=Grey guibg=fg +hi VisualNOS gui=underline,bold guifg=fg guibg=bg +hi DiffText gui=bold guifg=Blue guibg=LightYellow +hi Cursor guifg=NONE guibg=Green +hi lCursor guifg=NONE guibg=Cyan +hi Directory guifg=Blue guibg=bg +hi LineNr guifg=Brown guibg=bg +hi MoreMsg gui=bold guifg=SeaGreen guibg=bg +hi NonText gui=bold guifg=Blue guibg=grey80 +hi Question gui=bold guifg=SeaGreen guibg=bg +hi Search guifg=fg guibg=PeachPuff +hi SpecialKey guifg=Blue guibg=bg +hi Title gui=bold guifg=Magenta guibg=bg +hi WarningMsg guifg=Red guibg=bg +hi WildMenu guifg=fg guibg=PeachPuff +hi Folded guifg=Grey40 guibg=bg " guifg=DarkBlue guibg=LightGrey +hi FoldColumn guifg=DarkBlue guibg=Grey +hi DiffAdd gui=bold guifg=Blue guibg=LightCyan +hi DiffChange gui=bold guifg=fg guibg=MistyRose2 +hi DiffDelete gui=NONE guifg=LightBlue guibg=LightCyan + +" Colors for syntax highlighting +hi Constant gui=NONE guifg=azure4 guibg=bg +"hi Constant gui=NONE guifg=DeepSkyBlue4 guibg=bg +hi String gui=NONE guifg=DarkOliveGreen4 guibg=bg +hi Special gui=bold guifg=Cyan4 guibg=bg +hi Statement gui=NONE guifg=SlateBlue4 guibg=bg +hi Operator gui=NONE guifg=Purple guibg=bg +hi Ignore gui=NONE guifg=bg guibg=bg +hi ToDo gui=NONE guifg=DeepPink1 guibg=bg +hi Error gui=NONE guifg=Red guibg=Linen +hi Comment gui=NONE guifg=RoyalBlue guibg=NONE +hi Identifier gui=NONE guifg=SteelBlue4 guibg=NONE +hi PreProc gui=NONE guifg=Magenta4 guibg=NONE +hi Type gui=NONE guifg=Brown guibg=NONE +hi Underlined gui=underline guifg=SlateBlue guibg=bg + +" vim: sw=2 diff --git a/dot_vim/colors/delek.vim b/dot_vim/colors/delek.vim new file mode 100644 index 0000000..32e4536 --- /dev/null +++ b/dot_vim/colors/delek.vim @@ -0,0 +1,57 @@ +" Vim color file +" Maintainer: David Schweikert +" Last Change: 2001 Mai 14 + +" First remove all existing highlighting. +hi clear + +let colors_name = "delek" + +hi Normal 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 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 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 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 StatusLine cterm=bold ctermbg=blue ctermfg=yellow guibg=gold guifg=blue +hi StatusLineNC cterm=bold ctermbg=blue ctermfg=black guibg=gold guifg=blue +hi NonText term=bold ctermfg=Blue gui=bold guifg=gray guibg=white +hi Cursor guibg=fg guifg=bg + +" syntax highlighting +hi PreProc term=underline cterm=NONE ctermfg=darkmagenta gui=NONE guifg=magenta3 +hi Identifier term=underline cterm=NONE ctermfg=darkcyan gui=NONE guifg=cyan4 +hi Comment term=NONE cterm=NONE ctermfg=darkred gui=NONE guifg=red2 +hi Constant term=underline cterm=NONE ctermfg=darkgreen gui=NONE guifg=green3 +hi Special term=bold cterm=NONE ctermfg=lightred gui=NONE guifg=deeppink +hi Statement term=bold cterm=bold ctermfg=blue gui=bold guifg=blue +hi Type term=underline cterm=NONE ctermfg=blue gui=bold guifg=blue + +if exists("syntax_on") + let syntax_cmd = "enable" + runtime syntax/syncolor.vim + unlet syntax_cmd +endif + +" vim: sw=2 diff --git a/dot_vim/colors/denim.vim b/dot_vim/colors/denim.vim new file mode 100644 index 0000000..c41af9f --- /dev/null +++ b/dot_vim/colors/denim.vim @@ -0,0 +1,141 @@ +" Maintainer: Tim Aldrich +" Last Change: 19 November 2001 + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="denim" +" GUI colors {{{ +hi Normal guifg=#FFFFFF guibg=#000038 +hi Cursor guifg=#000038 guibg=#FFFFFF +hi CursorIM guifg=#6699CC guibg=#99CCCC +hi Directory guifg=#33CCFF guibg=#6699CC +hi DiffAdd guifg=#FFFFCC guibg=#000038 +hi DiffChange guifg=#FF9900 guibg=#000038 +hi DiffDelete guifg=#999999 guibg=#000038 +hi DiffText guifg=#FFFFFF guibg=#000038 +hi ErrorMsg guifg=#FFFFFF guibg=#FF0000 +hi VertSplit guifg=#FFFFFF guibg=#000038 +hi Folded guifg=#999999 guibg=#003366 +hi FoldColumn guifg=#0000EE guibg=#6699CC +hi IncSearch guifg=#FFFF00 guibg=#000038 +hi LineNr guifg=#FFFFEE guibg=#000038 +hi ModeMsg guifg=#FFFFFF guibg=#000038 +hi MoreMsg guifg=#FFFFFF guibg=#000038 +hi NonText guifg=#FFFFFF guibg=#00003D +hi Question guifg=#FFFFFF guibg=#0000EE +hi Search guifg=#993300 guibg=#6699CC +hi SpecialKey guifg=#FFFF00 guibg=#000038 +hi StatusLine guifg=#FFFFFF guibg=#000038 +hi StatusLineNC guifg=#CCCCCC guibg=#000038 +hi Title guifg=#FFFFFF guibg=#FF9900 +hi Visual guifg=#003366 guibg=#6699FF +hi WarningMsg guifg=#FF0000 guibg=#FFFFFF +hi WildMenu guifg=#000038 guibg=#999999 +" }}} + +" cterm colors {{{ +hi Normal ctermfg=white ctermbg=darkblue +hi Cursor ctermfg=darkblue ctermbg=white +hi CursorIM ctermfg=lightcyan ctermbg=lightcyan +hi Directory ctermfg=lightblue ctermbg=lightcyan +hi DiffAdd ctermfg=LightYellow ctermbg=darkblue +hi DiffChange ctermfg=darkred ctermbg=darkblue +hi DiffDelete ctermfg=grey ctermbg=darkblue +hi DiffText ctermfg=white ctermbg=darkblue +hi ErrorMsg ctermfg=red ctermbg=lightcyan +hi VertSplit ctermfg=white ctermbg=darkblue +hi Folded ctermfg=grey ctermbg=darkblue +hi FoldColumn ctermfg=darkred ctermbg=lightcyan +hi IncSearch ctermfg=yellow ctermbg=darkblue +hi LineNr ctermfg=lightyellow ctermbg=darkblue +hi ModeMsg ctermfg=white ctermbg=darkblue +hi MoreMsg ctermfg=white ctermbg=darkblue +hi NonText ctermfg=white ctermbg=lightblue +hi Question ctermfg=white ctermbg=darkblue +hi Search ctermfg=darkred ctermbg=lightcyan +hi SpecialKey ctermfg=yellow ctermbg=darkblue +hi StatusLine ctermfg=white ctermbg=darkblue +hi StatusLineNC ctermfg=lightgrey ctermbg=darkblue +hi Title ctermfg=white ctermbg=yellow +hi Visual ctermfg=lightblue ctermbg=cyan +hi WarningMsg ctermfg=red ctermbg=white +hi WildMenu ctermfg=darkblue ctermbg=grey +" }}} + +" GUI hilight groups {{{ + +hi Comment guifg=#999999 +hi Constant guifg=#33FF33 +hi String guifg=#CCCC99 +hi Character guifg=#33FF33 +hi Number guifg=#33FF33 +hi Boolean guifg=#33FF33 +hi Float guifg=#33FF33 +hi Identifier guifg=#33FFFF +hi Function guifg=#33FFFF +hi Statement guifg=#FFFFCC +hi Conditional guifg=#FFFFCC +hi Repeat guifg=#FFFFCC +hi Label guifg=#33FF99 +hi Operator guifg=#FFFF00 +hi Keyword guifg=#FFFF00 +hi Exception guifg=#FFFFAA +hi PreProc guifg=#66CCFF +hi Include guifg=#66CCFF +hi Define guifg=#66CCFF +hi Macro guifg=#66CCFF +hi PreCondit guifg=#66CCFF +hi Type guifg=#33FF99 +hi StorageClass guifg=#33FF99 +hi Structure guifg=#33FF99 +hi Typedef guifg=#33FF99 +hi Special guifg=#00FF00 +hi SpecialChar guifg=#00FF00 +hi Tag guifg=#CCCCFF +hi Delimiter guifg=#CCCCFF +hi SpecialComment guifg=#FFFFCC +hi Debug guifg=#CC3300 +hi Ignore guifg=#0066AA +hi Error guifg=#FF0000 guibg=#FFFFFF +hi Todo guifg=#999999 guibg=#FFFFFF +" }}} + +" cterm hilight groups {{{ +hi Comment ctermfg=grey +hi Constant ctermfg=lightgreen +hi String ctermfg=brown +hi Character ctermfg=lightgreen +hi Number ctermfg=lightgreen +hi Boolean ctermfg=lightgreen +hi Float ctermfg=lightgreen +hi Identifier ctermfg=lightcyan +hi Function ctermfg=lightcyan +hi Statement ctermfg=lightyellow +hi Conditional ctermfg=lightyellow +hi Repeat ctermfg=lightyellow +hi Label ctermfg=lightcyan +hi Operator ctermfg=yellow +hi Keyword ctermfg=yellow +hi Exception ctermfg=yellow +hi PreProc ctermfg=darkcyan +hi Include ctermfg=darkcyan +hi Define ctermfg=darkcyan +hi Macro ctermfg=darkcyan +hi PreCondit ctermfg=darkcyan +hi Type ctermfg=lightcyan +hi StorageClass ctermfg=lightcyan +hi Structure ctermfg=lightcyan +hi Typedef ctermfg=lightcyan +hi Special ctermfg=green +hi SpecialChar ctermfg=green +hi Tag ctermfg=brown +hi Delimiter ctermfg=brown +hi SpecialComment ctermfg=lightyellow +hi Debug ctermfg=magenta +hi Ignore ctermfg=lightblue +hi Error ctermfg=red ctermbg=white +hi Todo ctermfg=grey ctermbg=white +" }}} diff --git a/dot_vim/colors/desert.vim b/dot_vim/colors/desert.vim new file mode 100644 index 0000000..e43c61b --- /dev/null +++ b/dot_vim/colors/desert.vim @@ -0,0 +1,105 @@ +" Vim color file +" Maintainer: Hans Fugal +" Last Change: $Date: 2003/06/02 19:28:15 $ +" URL: http://hans.fugal.net/vim/colors/desert.vim + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +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 +endif +let g:colors_name="desert" + +hi Normal guifg=White guibg=grey20 + +" 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 + +" 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 + +" 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 ctermfg=darkgrey +hi Error cterm=bold ctermfg=7 ctermbg=1 + + +"vim: sw=4 diff --git a/dot_vim/colors/dusk.vim b/dot_vim/colors/dusk.vim new file mode 100644 index 0000000..fc7c8a5 --- /dev/null +++ b/dot_vim/colors/dusk.vim @@ -0,0 +1,64 @@ +" Vim color file +" Maintainer: Ajit J. Thakkar (ajit AT unb DOT ca) +" Last Change: 2003 Sep. 02 +" Version: 1.0 +" URL: http://www.unb.ca/chem/ajit/vim.htm + +" This GUI-only color scheme has a blue-black background + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "dusk" + +hi Normal guifg=ivory guibg=#1f3048 + +" Groups used in the 'highlight' and 'guicursor' options default value. +hi ErrorMsg gui=NONE guifg=Red guibg=Linen +hi IncSearch gui=NONE guibg=LightGreen guifg=Black +hi ModeMsg gui=NONE guifg=fg guibg=bg +hi StatusLine gui=NONE guifg=DarkBlue guibg=Grey +hi StatusLineNC gui=NONE guifg=Grey50 guibg=Grey +hi VertSplit gui=NONE guifg=Grey guibg=Grey +hi Visual gui=reverse guifg=fg guibg=LightSkyBlue4 +hi VisualNOS gui=underline guifg=fg guibg=bg +hi DiffText gui=NONE guifg=Yellow guibg=LightSkyBlue4 +hi Cursor guibg=Green guifg=Black +hi lCursor guibg=Cyan guifg=Black +hi Directory guifg=LightGreen guibg=bg +hi LineNr guifg=MistyRose3 guibg=bg +hi MoreMsg gui=NONE guifg=SeaGreen guibg=bg +hi NonText gui=NONE guifg=Cyan4 guibg=#102848 +hi Question gui=NONE guifg=LimeGreen guibg=bg +hi Search gui=NONE guifg=SkyBlue4 guibg=Bisque +hi SpecialKey guifg=Cyan guibg=bg +hi Title gui=NONE guifg=Yellow2 guibg=bg +hi WarningMsg guifg=Tomato3 guibg=Linen +hi WildMenu gui=NONE guifg=SkyBlue4 guibg=Bisque +hi Folded guifg=MistyRose2 guibg=bg +hi FoldColumn guifg=DarkBlue guibg=Grey +hi DiffAdd gui=NONE guifg=Blue guibg=LightCyan +hi DiffChange gui=NONE guifg=white guibg=LightCyan4 +hi DiffDelete gui=NONE guifg=LightBlue guibg=LightCyan + +" Colors for syntax highlighting +hi Constant gui=NONE guifg=MistyRose3 guibg=bg +hi String gui=NONE guifg=LightBlue3 guibg=bg +hi Special gui=NONE guifg=GoldenRod guibg=bg +hi Statement gui=NONE guifg=khaki guibg=bg +"hi Statement gui=NONE guifg=#d7cd7b guibg=bg +hi Operator gui=NONE guifg=Chartreuse guibg=bg +hi Ignore gui=NONE guifg=bg guibg=bg +hi ToDo gui=NONE guifg=DodgerBlue guibg=bg +hi Error gui=NONE guifg=Red guibg=Linen +hi Comment gui=NONE guifg=SlateGrey guibg=bg +hi Comment gui=NONE guifg=Lavender guibg=bg +hi Identifier gui=NONE guifg=BlanchedAlmond guibg=bg +hi PreProc gui=NONE guifg=#ffa0a0 guibg=bg +hi Type gui=NONE guifg=NavajoWhite guibg=bg +hi Underlined gui=underline guifg=fg guibg=bg + +" vim: sw=2 diff --git a/dot_vim/colors/earth.vim b/dot_vim/colors/earth.vim new file mode 100644 index 0000000..306529b --- /dev/null +++ b/dot_vim/colors/earth.vim @@ -0,0 +1,69 @@ +" Vim color file +" Maintainer: Shrinath +" Last Change: 2004/09/13 Mon 12:50. +" version: 0.2 + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "earth" + +hi Normal guifg=#000000 guibg=#99CC99 + +" Search +hi IncSearch gui=UNDERLINE guifg=#60ffff guibg=#6060ff +hi Search gui=NONE guifg=#ffffff guibg=#6060ff + +" Messages +hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#ff40a0 +hi WarningMsg gui=BOLD guifg=#ffffff guibg=#ff40a0 +hi ModeMsg gui=NONE guifg=#60ffff guibg=NONE +hi MoreMsg gui=NONE guifg=#ffc0ff guibg=NONE +hi Question gui=NONE guifg=#ffff60 guibg=NONE + +" Split area +hi StatusLine gui=NONE guifg=#000000 guibg=#d0d0e0 +hi StatusLineNC gui=NONE guifg=#606080 guibg=#d0d0e0 +hi VertSplit gui=NONE guifg=#606080 guibg=#d0d0e0 +hi WildMenu gui=NONE guifg=#000000 guibg=#00c8f0 + +" Diff +hi DiffText gui=UNDERLINE guifg=#ffff00 guibg=#000000 +hi DiffChange gui=NONE guifg=#ffffff guibg=#000000 +hi DiffDelete gui=NONE guifg=#60ff60 guibg=#000000 +hi DiffAdd gui=NONE guifg=#60ff60 guibg=#000000 + +" Cursor +hi Cursor gui=NONE guifg=#ffffff guibg=#d86020 +hi lCursor gui=NONE guifg=#ffffff guibg=#e000b0 +hi CursorIM gui=NONE guifg=#ffffff guibg=#e000b0 + +" Fold +hi Folded gui=NONE guifg=#ffffff guibg=#0088c0 +" hi Folded gui=NONE guifg=#ffffff guibg=#2080d0 +hi FoldColumn gui=NONE guifg=#60e0e0 guibg=#006c7f + +" Other +hi Directory gui=NONE guifg=#00e0ff guibg=NONE +hi LineNr gui=BOLD guifg=#669966 guibg=NONE +hi NonText gui=BOLD guifg=#00c0c0 guibg=#9999CC +hi SpecialKey gui=NONE guifg=#e0a0ff guibg=NONE +hi Title gui=BOLD guifg=#003300 guibg=NONE +hi Visual gui=NONE guifg=#000000 guibg=#6060d0 + +" Syntax group +hi Comment gui=NONE guifg=#996666 guibg=NONE +hi Constant gui=NONE guifg=#990066 guibg=NONE +hi Error gui=BOLD guifg=#ffffff guibg=#ff40a0 +hi Identifier gui=NONE guifg=#669966 guibg=NONE +hi Ignore gui=NONE guifg=#993300 guibg=NONE +hi PreProc gui=NONE guifg=#009900 guibg=NONE +hi Special gui=NONE guifg=#FF0000 guibg=NONE +hi Statement gui=NONE guifg=#CC9900 guibg=NONE +hi Todo gui=BOLD,UNDERLINE guifg=#993300 guibg=NONE +hi Type gui=NONE guifg=#993300 guibg=NONE +hi Underlined gui=UNDERLINE guifg=#663300 guibg=NONE + diff --git a/dot_vim/colors/edo_sea.vim b/dot_vim/colors/edo_sea.vim new file mode 100644 index 0000000..f03300a --- /dev/null +++ b/dot_vim/colors/edo_sea.vim @@ -0,0 +1,69 @@ +" Vim color file +" Maintainer: Tiza +" Last Change: 2002/10/30 Wed 00:01. +" version: 1.0 +" This color scheme uses a dark background. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "Edo_sea" + +hi Normal guifg=#f0f0f8 guibg=#303060 + +" Search +hi IncSearch gui=UNDERLINE,BOLD guifg=#f0f0f0 guibg=#c030f0 +hi Search gui=BOLD guifg=#f0e0f0 guibg=#b020f0 + +" Messages +hi ErrorMsg gui=BOLD guifg=#f0f0f0 guibg=#f000a0 +hi WarningMsg gui=BOLD guifg=#f0f0f0 guibg=#f000a0 +hi ModeMsg gui=BOLD guifg=#00e0f0 guibg=NONE +hi MoreMsg gui=BOLD guifg=#00f0f0 guibg=#6060f0 +hi Question gui=BOLD guifg=#00f0d0 guibg=NONE + +" Split area +hi StatusLine gui=NONE guifg=#000000 guibg=#d0d0e0 +hi StatusLineNC gui=NONE guifg=#606080 guibg=#d0d0e0 +hi VertSplit gui=NONE guifg=#606080 guibg=#d0d0e0 +hi WildMenu gui=NONE guifg=#000000 guibg=#f090f0 + +" Diff +hi DiffText gui=UNDERLINE guifg=#f0f000 guibg=#000000 +hi DiffChange gui=NONE guifg=#f0f0f0 guibg=#000000 +hi DiffDelete gui=NONE guifg=#60f060 guibg=#000000 +hi DiffAdd gui=NONE guifg=#60f060 guibg=#000000 + +" Cursor +hi Cursor gui=NONE guifg=#f0f0f0 guibg=#d86020 +hi lCursor gui=NONE guifg=#f0f0f0 guibg=#e000b0 +hi CursorIM gui=NONE guifg=#f0f0f0 guibg=#e000b0 + +" Fold +hi Folded gui=NONE guifg=#f0f0f0 guibg=#0080a0 +hi FoldColumn gui=NONE guifg=#9090f0 guibg=#3c3c88 + +" Other +hi Directory gui=NONE guifg=#00f0f0 guibg=NONE +hi LineNr gui=NONE guifg=#7070e8 guibg=NONE +hi NonText gui=BOLD guifg=#8080f0 guibg=NONE +hi SpecialKey gui=BOLD guifg=#60c0f0 guibg=NONE +hi Title gui=BOLD guifg=#f0f0f8 guibg=NONE +hi Visual gui=NONE guifg=#f0f0f0 guibg=#6060f0 +" hi VisualNOS gui=NONE guifg=#f0f0f0 guibg=#6060f0 + +" Syntax group +hi Comment gui=NONE guifg=#b0b0b8 guibg=#343478 +hi Constant gui=NONE guifg=#50f0d0 guibg=NONE +hi Error gui=NONE guifg=#f0f0f0 guibg=#c03030 +hi Identifier gui=NONE guifg=#d0c0f0 guibg=NONE +hi Ignore gui=NONE guifg=#303070 guibg=NONE +hi PreProc gui=NONE guifg=#f0b0f0 guibg=NONE +hi Special gui=NONE guifg=#d0f050 guibg=NONE +hi Statement gui=NONE guifg=#f0d050 guibg=NONE +hi Todo gui=BOLD,UNDERLINE guifg=#f070e0 guibg=NONE +hi Type gui=NONE guifg=#40f080 guibg=NONE +hi Underlined gui=UNDERLINE,BOLD guifg=#f0f0f8 guibg=NONE diff --git a/dot_vim/colors/emacs.vim b/dot_vim/colors/emacs.vim new file mode 100644 index 0000000..21f22f7 --- /dev/null +++ b/dot_vim/colors/emacs.vim @@ -0,0 +1,63 @@ +" Vim color file +" Maintainer: Michael Piefel +" Last Change: 2001 Aug 16 +" Licence: Public Domain + +" This color scheme uses a White background. It's based on Bram's +" morning theme, but doesn't try to work for non-GUI editing. +" +" It's supposed to look like the Emacs standard colors, at least +" for C. But Emacs has different categories, so it's not very good. + +" First remove all existing highlighting. +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "emacs" + +hi Normal guifg=Black guibg=White + +" Groups used in the 'highlight' and 'guicursor' options default value. +hi ErrorMsg guibg=Red guifg=White +hi IncSearch gui=reverse +hi ModeMsg gui=bold +hi StatusLine gui=reverse,bold +hi StatusLineNC gui=reverse +hi VertSplit gui=reverse +hi Visual gui=reverse guifg=Grey guibg=fg +hi VisualNOS gui=underline,bold +hi DiffText gui=bold guibg=Red +hi Cursor guibg=Black guifg=NONE +hi lCursor guibg=Cyan guifg=NONE +hi Directory guifg=Blue +hi LineNr guifg=Brown +hi MoreMsg gui=bold guifg=SeaGreen +hi NonText gui=bold guifg=Blue guibg=grey90 +hi Question gui=bold guifg=SeaGreen +hi Search guibg=Yellow guifg=NONE +hi SpecialKey guifg=Blue +hi Title gui=bold guifg=Magenta +hi WarningMsg guifg=Red +hi WildMenu guibg=Yellow guifg=Black +hi Folded guibg=White guifg=DarkBlue +hi FoldColumn guibg=Grey guifg=DarkBlue +hi DiffAdd guibg=LightBlue +hi DiffChange guibg=LightMagenta +hi DiffDelete gui=bold guifg=Blue guibg=LightCyan + +" Colors for syntax highlighting +hi Comment guifg=#AC2020 guibg=White +hi Constant guifg=#C28F8F guibg=White +hi PreProc guifg=#D569D5 guibg=White +hi Statement gui=NONE guifg=#9C20EE guibg=White +hi Type guifg=#9C20EE guibg=White +hi Special guifg=SlateBlue guibg=White +hi Ignore guifg=White + +" Some specials (override hilinks) + + +" vim: sw=2 diff --git a/dot_vim/colors/fine_blue.vim b/dot_vim/colors/fine_blue.vim new file mode 100644 index 0000000..89c280c --- /dev/null +++ b/dot_vim/colors/fine_blue.vim @@ -0,0 +1,71 @@ +" Vim color file +" Maintainer: Tiza +" Last Change: 2002/10/30 Wed 00:12. +" version: 1.7 +" This color scheme uses a light background. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "fine_blue" + +hi Normal guifg=#404048 guibg=#f8f8f8 + +" Search +hi IncSearch gui=UNDERLINE guifg=#404054 guibg=#40ffff +hi Search gui=NONE guifg=#404054 guibg=#ffffa0 + +" Messages +hi ErrorMsg gui=NONE guifg=#ff0070 guibg=#ffe0f4 +hi WarningMsg gui=NONE guifg=#ff0070 guibg=#ffe0f4 +hi ModeMsg gui=NONE guifg=#0070ff guibg=NONE +hi MoreMsg gui=NONE guifg=#a800ff guibg=NONE +hi Question gui=NONE guifg=#008050 guibg=NONE + +" Split area +hi StatusLine gui=BOLD guifg=#f8f8f8 guibg=#404054 +hi StatusLineNC gui=NONE guifg=#b8b8c0 guibg=#404054 +hi VertSplit gui=NONE guifg=#f8f8f8 guibg=#404054 +hi WildMenu gui=BOLD guifg=#f8f8f8 guibg=#00aacc + +" Diff +hi DiffText gui=NONE guifg=#4040ff guibg=#c0c0ff +hi DiffChange gui=NONE guifg=#5050ff guibg=#e0e0ff +hi DiffDelete gui=NONE guifg=#4040ff guibg=#c8f2ea +hi DiffAdd gui=NONE guifg=#4040ff guibg=#c8f2ea + +" Cursor +hi Cursor gui=NONE guifg=#0000ff guibg=#00e0ff +hi lCursor gui=NONE guifg=#f8f8f8 guibg=#8000ff +hi CursorIM gui=NONE guifg=#f8f8f8 guibg=#8000ff + +" Fold +hi Folded gui=NONE guifg=#7820ff guibg=#e0d8ff +hi FoldColumn gui=NONE guifg=#aa60ff guibg=#f0f0f4 +" hi Folded gui=NONE guifg=#58587c guibg=#e0e0e8 +" hi FoldColumn gui=NONE guifg=#9090b0 guibg=#f0f0f4 + +" Other +hi Directory gui=NONE guifg=#0070b8 guibg=NONE +hi LineNr gui=NONE guifg=#a0a0b0 guibg=NONE +hi NonText gui=BOLD guifg=#4000ff guibg=#ececf0 +hi SpecialKey gui=NONE guifg=#d87000 guibg=NONE +hi Title gui=NONE guifg=#004060 guibg=#c8f0f8 +hi Visual gui=NONE guifg=#404060 guibg=#dddde8 +" hi VisualNOS gui=NONE guifg=#404060 guibg=#dddde8 + +" Syntax group +hi Comment gui=NONE guifg=#ff00c0 guibg=NONE +hi Constant gui=NONE guifg=#2020ff guibg=#e8e8ff +hi Error gui=BOLD guifg=#ffffff guibg=#ff4080 +hi Identifier gui=NONE guifg=#c800ff guibg=NONE +hi Ignore gui=NONE guifg=#f8f8f8 guibg=NONE +hi PreProc gui=NONE guifg=#0070e6 guibg=NONE +hi Special gui=NONE guifg=#005858 guibg=#ccf7ee +hi Statement gui=NONE guifg=#008858 guibg=NONE +hi Todo gui=NONE guifg=#ff0070 guibg=#ffe0f4 +hi Type gui=NONE guifg=#7040ff guibg=NONE +hi Underlined gui=UNDERLINE guifg=#0000ff guibg=NONE diff --git a/dot_vim/colors/fnaqevan.vim b/dot_vim/colors/fnaqevan.vim new file mode 100644 index 0000000..d936cee --- /dev/null +++ b/dot_vim/colors/fnaqevan.vim @@ -0,0 +1,67 @@ +" Vim color file +" Maintainer: Rafal Sulejman +" Last Change: 2002.06.18 +" +" This color scheme uses a black (dark) background. + +" First remove all existing highlighting. +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "fnaqevan" + +hi Normal guibg=#000000 guifg=#C0C0C0 gui=NONE + +" Main colors +hi Constant guibg=#000000 guifg=#00B8E0 gui=NONE +hi Identifier guibg=#000000 guifg=#FFA850 gui=NONE +hi Special guibg=#000000 guifg=#B899C8 gui=NONE +hi Statement guibg=#000000 guifg=#EEE840 gui=NONE +hi Preproc guibg=#000000 guifg=#00B098 gui=NONE +hi Type guibg=#000000 guifg=#40D040 gui=NONE + +" Secondary colors +hi Comment guibg=#000000 guifg=#006699 gui=NONE +hi Visual guibg=#005900 guifg=#40C940 gui=NONE +hi VisualNOS guibg=#005900 guifg=#40C940 gui=NONE +hi Search guibg=#707000 guifg=#FFFF00 gui=NONE +hi IncSearch guibg=#D05000 guifg=#FFE000 gui=NONE + +" Special colors +hi WarningMsg guibg=#707000 guifg=#FFFF00 gui=NONE +hi MoreMsg guibg=#000070 guifg=#00B8E0 gui=NONE +hi ErrorMsg guibg=#CC0000 guifg=#FFEE00 gui=NONE +hi ModeMsg guibg=#000000 guifg=#E8E8E8 gui=NONE +hi WildMenu guibg=#5f5f5f guifg=#FFEE60 gui=NONE +hi StatusLine guibg=#1f1f1f guifg=#F0F0F0 gui=NONE +hi StatusLineNC guibg=#0f0f0f guifg=#eaea3a gui=NONE +hi VertSplit guibg=#1f1f1f guifg=#F0F0F0 gui=NONE +hi Error guibg=#EE0000 guifg=#FFDD60 gui=NONE +hi Todo guibg=#EEE000 guifg=#000000 gui=NONE +hi Title guibg=#000000 guifg=#ffffff gui=NONE +hi Question guibg=#005900 guifg=#40E840 gui=NONE +hi LineNr guibg=#000000 guifg=#F0B0E0 gui=NONE +hi Directory guibg=#000000 guifg=#D0D0D0 gui=NONE +hi NonText guibg=#000000 guifg=#FFDDAA gui=NONE +hi SpecialKey guibg=#000000 guifg=#FFFFFF gui=NONE + +" Diff colors +hi DiffAdd guibg=#505050 guifg=#D0D0D0 gui=NONE +hi DiffChange guibg=#505050 guifg=#D0D0D0 gui=NONE +hi DiffDelete guibg=#505050 guifg=#D0D0D0 gui=NONE +hi DiffText guibg=#707070 guifg=#F0F0F0 gui=NONE + +" Folding colors +hi Folded guibg=#703070 guifg=#DDB8DD gui=NONE +hi FoldColumn guibg=#C4153B guifg=#F0F0F0 gui=NONE + +" Cursor colors +hi Cursor guibg=#FFFFFF guifg=#000000 gui=NONE +hi icursor guibg=#FFEE00 guifg=#000000 gui=NONE +hi ncursor guibg=#FFFFFF guifg=#000000 gui=NONE +hi rcursor guibg=#00CCFF guifg=#000000 gui=NONE +hi lcursor guibg=#40D040 guifg=#000000 gui=NONE + diff --git a/dot_vim/colors/fog.vim b/dot_vim/colors/fog.vim new file mode 100644 index 0000000..ab263ab --- /dev/null +++ b/dot_vim/colors/fog.vim @@ -0,0 +1,170 @@ +" Vim color file +" vim: tw=0 ts=4 sw=4 +" Maintainer: Thomas R. Kimpton +" Last Change: 2001 Nov 8 +" This color scheme is meant for the person that spends hours +" and hours and hours and... in vim and wants some contrast to +" help pick things out in the files they edit, but doesn't want +" **C**O**N**T**R**A**S**T**! + +set background=light + +hi clear + +if exists("syntax_on") + syntax reset +endif + +let colors_name = "fog" + +hi Normal ctermbg=White ctermfg=Black +" 660066 = darkish purple +hi Normal guifg=#660066 guibg=grey80 + +hi NonText term=bold +hi NonText ctermfg=LightBlue +hi NonText gui=bold guifg=LightBlue guibg=grey80 + +hi Comment ctermfg=DarkGrey ctermbg=White +" 444499 = darkish blue grey +hi Comment guifg=#444499 + +hi Constant term=underline +hi Constant ctermfg=Magenta +hi Constant guifg=#7070a0 + +hi Statement term=bold +hi Statement cterm=bold ctermfg=DarkGreen ctermbg=White +hi Statement guifg=DarkGreen gui=bold + +hi identifier ctermfg=DarkGreen +hi identifier guifg=DarkGreen + +hi preproc ctermfg=DarkGreen +hi preproc guifg=#408040 + +hi type ctermfg=DarkBlue +hi type guifg=DarkBlue + +hi label ctermfg=yellow +hi label guifg=#c06000 + +hi operator ctermfg=darkYellow +hi operator guifg=DarkGreen gui=bold + +hi StorageClass ctermfg=DarkRed ctermbg=White +hi StorageClass guifg=#a02060 gui=bold + +hi Number ctermfg=Blue ctermbg=White +hi Number guifg=Blue + +hi Special term=bold +hi Special ctermfg=LightRed +hi Special guifg=#aa8822 + +hi Cursor ctermbg=DarkMagenta +hi Cursor guibg=#880088 guifg=LightGrey + +hi lCursor guibg=Cyan guifg=Black + +hi ErrorMsg term=standout +hi ErrorMsg ctermbg=DarkRed ctermfg=White +hi ErrorMsg guibg=DarkRed guifg=White + +hi DiffText term=reverse +hi DiffText cterm=bold ctermbg=DarkRed +hi DiffText gui=bold guibg=DarkRed + +hi Directory term=bold +hi Directory ctermfg=LightRed +hi Directory guifg=Red gui=underline + +hi LineNr term=underline +hi LineNr ctermfg=Yellow +hi LineNr guifg=#ccaa22 + +hi MoreMsg term=bold +hi MoreMsg ctermfg=LightGreen +hi MoreMsg gui=bold guifg=SeaGreen + +hi Question term=standout +hi Question ctermfg=LightGreen +hi Question gui=bold guifg=DarkGreen + +hi Search term=reverse +hi Search ctermbg=DarkYellow ctermfg=Black +hi Search guibg=#887722 guifg=Black + +hi SpecialKey term=bold +hi SpecialKey ctermfg=LightBlue +hi SpecialKey guifg=Blue + +hi SpecialChar ctermfg=DarkGrey ctermbg=White +hi SpecialChar guifg=DarkGrey gui=bold + +hi Title term=bold +hi Title ctermfg=LightMagenta +hi Title gui=underline guifg=DarkMagenta + +hi WarningMsg term=standout +hi WarningMsg ctermfg=LightRed +hi WarningMsg guifg=DarkBlue guibg=#9999cc + +hi WildMenu term=standout +hi WildMenu ctermbg=Yellow ctermfg=Black +hi WildMenu guibg=Yellow guifg=Black gui=underline + +hi Folded term=standout +hi Folded ctermbg=LightGrey ctermfg=DarkBlue +hi Folded guibg=LightGrey guifg=DarkBlue + +hi FoldColumn term=standout +hi FoldColumn ctermbg=LightGrey ctermfg=DarkBlue +hi FoldColumn guibg=Grey guifg=DarkBlue + +hi DiffAdd term=bold +hi DiffAdd ctermbg=DarkBlue +hi DiffAdd guibg=DarkBlue + +hi DiffChange term=bold +hi DiffChange ctermbg=DarkMagenta +hi DiffChange guibg=DarkMagenta + +hi DiffDelete term=bold +hi DiffDelete ctermfg=Blue ctermbg=DarkCyan +hi DiffDelete gui=bold guifg=Blue guibg=DarkCyan + +hi Ignore ctermfg=LightGrey +hi Ignore guifg=grey90 + +hi IncSearch term=reverse +hi IncSearch cterm=reverse +hi IncSearch gui=reverse + +hi ModeMsg term=bold +hi ModeMsg cterm=bold +hi ModeMsg gui=bold + +hi StatusLine term=reverse,bold +hi StatusLine cterm=reverse,bold +hi StatusLine gui=reverse,bold + +hi StatusLineNC term=reverse +hi StatusLineNC cterm=reverse +hi StatusLineNC gui=reverse + +hi VertSplit term=reverse +hi VertSplit cterm=reverse +hi VertSplit gui=reverse + +hi Visual term=reverse +hi Visual cterm=reverse +hi Visual gui=reverse guifg=DarkGrey guibg=fg + +hi VisualNOS term=underline,bold +hi VisualNOS cterm=underline,bold +hi VisualNOS gui=underline,bold + +hi Todo gui=reverse + +" vim: sw=2 diff --git a/dot_vim/colors/fruit.vim b/dot_vim/colors/fruit.vim new file mode 100644 index 0000000..624b90f --- /dev/null +++ b/dot_vim/colors/fruit.vim @@ -0,0 +1,69 @@ +" Vim color file +" Maintainer: Tiza +" Last Change: 2002/08/28 Wed 00:28. +" version: 1.3 +" This color scheme uses a light background. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "fruit" + +hi Normal guifg=#404040 guibg=#f8f8f8 + +" Search +hi IncSearch gui=UNDERLINE guifg=#404040 guibg=#40ffff +hi Search gui=NONE guifg=#404040 guibg=#ffff60 + +" Messages +hi ErrorMsg gui=NONE guifg=#ff0000 guibg=#ffe4e4 +hi WarningMsg gui=NONE guifg=#ff0000 guibg=#ffe4e4 +hi ModeMsg gui=NONE guifg=#ff4080 guibg=NONE +hi MoreMsg gui=NONE guifg=#009070 guibg=NONE +hi Question gui=NONE guifg=#f030d0 guibg=NONE + +" Split area +hi StatusLine gui=BOLD guifg=#f8f8f8 guibg=#404040 +hi StatusLineNC gui=NONE guifg=#a4a4a4 guibg=#404040 +hi VertSplit gui=NONE guifg=#f8f8f8 guibg=#404040 +hi WildMenu gui=BOLD guifg=#f8f8f8 guibg=#ff4080 + +" Diff +hi DiffText gui=NONE guifg=#e04040 guibg=#ffd8d8 +hi DiffChange gui=NONE guifg=#408040 guibg=#d0f0d0 +hi DiffDelete gui=NONE guifg=#4848ff guibg=#ffd0ff +hi DiffAdd gui=NONE guifg=#4848ff guibg=#ffd0ff + +" Cursor +hi Cursor gui=NONE guifg=#0000ff guibg=#00e0ff +hi lCursor gui=NONE guifg=#f8f8f8 guibg=#8000ff +hi CursorIM gui=NONE guifg=#f8f8f8 guibg=#8000ff + +" Fold +hi Folded gui=NONE guifg=#20605c guibg=#b8e8dc +hi FoldColumn gui=NONE guifg=#40a098 guibg=#f0f0f0 + +" Other +hi Directory gui=NONE guifg=#0070b8 guibg=NONE +hi LineNr gui=NONE guifg=#acacac guibg=NONE +hi NonText gui=BOLD guifg=#00a0c0 guibg=#ececec +hi SpecialKey gui=NONE guifg=#4040ff guibg=NONE +hi Title gui=NONE guifg=#0050a0 guibg=#c0e8ff +hi Visual gui=NONE guifg=#484848 guibg=#e0e0e0 +" hi VisualNOS gui=NONE guifg=#484848 guibg=#e0e0e0 + +" Syntax group +hi Comment gui=NONE guifg=#ff4080 guibg=NONE +hi Constant gui=NONE guifg=#8016ff guibg=NONE +hi Error gui=BOLD guifg=#ffffff guibg=#ff4080 +hi Identifier gui=NONE guifg=#008888 guibg=NONE +hi Ignore gui=NONE guifg=#f8f8f8 guibg=NONE +hi PreProc gui=NONE guifg=#e06800 guibg=NONE +hi Special gui=NONE guifg=#4a9400 guibg=NONE +hi Statement gui=NONE guifg=#f030d0 guibg=NONE +hi Todo gui=UNDERLINE guifg=#ff0070 guibg=#ffe0f4 +hi Type gui=NONE guifg=#0070e6 guibg=NONE +hi Underlined gui=UNDERLINE guifg=fg guibg=NONE diff --git a/dot_vim/colors/gobo.vim b/dot_vim/colors/gobo.vim new file mode 100644 index 0000000..13a8cf5 --- /dev/null +++ b/dot_vim/colors/gobo.vim @@ -0,0 +1,27 @@ +" local syntax file - set colors on a per-machine basis: +" vim: tw=0 ts=4 sw=4 +" Vim color file +" +" Created using ColorSchemeCreator +" by Otvio Corra Cordeiro (cordeiro@exatas.unisinos.br) (2004 July) +" +" Maintainer: Otvio Corra Cordeiro +" Last Change: 2004 July + + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "ColorSchemeCreator" +hi Normal guifg=#111111 guibg=#FFFFFF +hi comment guifg=#33CC99 gui=italic +hi constant guifg=#CC0099 gui=bold +hi statement guifg=#3399FF gui=bold +hi preproc guifg=#0066FF +hi type guifg=#6600CC gui=bold +hi special guifg=#6600CC +hi operator guifg=#CC0099 +hi clear Visual +hi Visual term=reverse cterm=reverse gui=reverse diff --git a/dot_vim/colors/golden.vim b/dot_vim/colors/golden.vim new file mode 100644 index 0000000..8cceaf7 --- /dev/null +++ b/dot_vim/colors/golden.vim @@ -0,0 +1,70 @@ +" vim: tw=0 ts=4 sw=4 +" Vim color file +" +" Creator: Ryan Phillips +" Credits: This color scheme originated from the idea of +" Jeffrey Bakker, the creator of webcpp (http://webcpp.sourceforge.net/). +" URL: http://www.trolocsis.com/vim/golden.vim +" + +hi clear +set background=dark +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "golden" +hi Normal ctermfg=yellow guifg=#ddbb00 guibg=black +hi Scrollbar ctermfg=Yellow guifg=#ddbb00 guibg=black +hi Menu ctermfg=darkyellow guifg=#ffddaa guibg=black +hi SpecialKey ctermfg=yellow term=bold cterm=bold guifg=#ffddaa +hi NonText ctermfg=LightBlue term=bold cterm=bold gui=bold guifg=#DBCA98 +hi Directory ctermfg=DarkYellow term=bold cterm=bold guifg=#ffddaa +hi ErrorMsg term=standout cterm=bold ctermfg=White 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=Yellow gui=bold guifg=#ddbb00 +hi ModeMsg term=bold ctermfg=DarkYellow cterm=bold gui=bold guifg=Black guibg=#ddbb00 +hi LineNr term=underline ctermfg=Brown cterm=bold guifg=#978345 +hi Question term=standout cterm=bold ctermfg=Brown gui=bold guifg=#ffddaa +hi StatusLine term=bold,reverse cterm=bold ctermfg=Black ctermbg=DarkGrey gui=bold guifg=#978345 guibg=#2E2E2E +hi StatusLineNC term=reverse ctermfg=white ctermbg=black guifg=grey guibg=#3E3E3E +hi Title term=bold cterm=bold ctermfg=brown gui=bold guifg=#DBCA98 +hi Visual term=reverse cterm=reverse gui=reverse +hi WarningMsg term=standout cterm=bold ctermfg=darkblue guifg=Red +hi Cursor guifg=bg guibg=#FF5E06 ctermbg=Brown +hi Comment term=bold cterm=bold ctermfg=brown guifg=#978345 +hi Constant term=underline cterm=bold ctermfg=red guifg=Red +hi Special term=bold cterm=bold ctermfg=red guifg=Orange +hi Identifier term=underline ctermfg=lightgray guifg=#DBCA98 +hi Statement term=bold cterm=bold ctermfg=lightgreen gui=bold guifg=#ffff60 +hi PreProc term=underline ctermfg=brown guifg=#ffddaa +hi Type term=underline cterm=bold ctermfg=lightgreen gui=bold guifg=#FFE13F +hi Error term=reverse ctermfg=darkcyan ctermbg=black guifg=Red guibg=Black +hi Todo term=standout ctermfg=black ctermbg=yellow guifg=#FFE13F guibg=#2E2E2E +hi VertSplit guifg=#2E2E2E guibg=#978345 ctermfg=black ctermbg=darkgrey +hi Folded guifg=orange guibg=#2E2E2E ctermfg=yellow + +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 diff --git a/dot_vim/colors/gor.vim b/dot_vim/colors/gor.vim new file mode 100644 index 0000000..b0584a1 --- /dev/null +++ b/dot_vim/colors/gor.vim @@ -0,0 +1,47 @@ +" local syntax file - set colors on a per-machine basis: +" vim: tw=0 ts=4 sw=4 +" Vim color file +" Maintainer: Jokes +" Last Change: + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "gor" +hi Normal guifg=white guibg=#005856 +hi NonText guifg=white guibg=#005856 +hi comment guifg=darkgrey +hi constant guifg=orange +hi identifier guifg=orange gui=NONE +hi statement guifg=cyan gui=NONE +"hi preproc guifg=#6063CD +hi preproc guifg=cyan +hi type guifg=green gui=NONE +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=#ffffff guifg=#004f50 +"hi Cursor guibg=#603070 guifg=#0000ff +hi Folded guifg=#999999 guibg=#006336 +hi Search guibg=orange +hi IncSearch gui=NONE guibg=orange +hi LineNr guifg=grey +hi title guifg=grey +"hi StatusLineNC gui=NONE guifg=lightblue guibg=darkblue +hi StatusLineNC gui=NONE guibg=red +hi StatusLine guifg=black guibg=darkgreen +hi label guifg=gold2 +hi operator guifg=orange +hi clear Visual +hi Visual guibg=orange guifg=#00932D +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 diff --git a/dot_vim/colors/gothic.vim b/dot_vim/colors/gothic.vim new file mode 100644 index 0000000..a637914 --- /dev/null +++ b/dot_vim/colors/gothic.vim @@ -0,0 +1,42 @@ +" Vim color file +" Maintainer: Stefano deFlorian - \Goth\ +" Last Change: 2003 Dec 9 +" Light - Dark :-) +" optimized for TFT panels + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +"colorscheme default +let g:colors_name = "gothic" + +" hardcoded colors : + +" GUI +highlight Normal guifg=#efefef guibg=#000000 +highlight Cursor guifg=#000000 guibg=#efefef gui=NONE +highlight Search guifg=#ffff60 guibg=#0000ff gui=NONE +highlight Visual guifg=Grey25 gui=NONE +highlight Special guifg=Orange +highlight Comment guifg=#3030ff +highlight StatusLine guifg=blue guibg=white +highlight Statement guifg=#ffff60 gui=NONE +highlight PreProc guifg=#a0e0a0 +highlight Identifier guifg=#00ffff +highlight Constant guifg=#a0a0a0 +highlight Type guifg=#a0a0ff gui=NONE + +" Console +highlight Normal ctermfg=LightGrey ctermbg=Black +highlight Cursor ctermfg=Black ctermbg=LightGrey cterm=NONE +highlight Search ctermfg=Yellow ctermbg=Blue cterm=NONE +highlight Visual cterm=reverse +highlight Special ctermfg=Brown +highlight Comment ctermfg=Blue +highlight StatusLine ctermfg=blue ctermbg=white +highlight Identifier ctermfg=Cyan +highlight Statement ctermfg=Yellow cterm=NONE +highlight Constant ctermfg=Grey cterm=NONE +highlight Type ctermfg=LightBlue cterm=NONE diff --git a/dot_vim/colors/greyblue.vim b/dot_vim/colors/greyblue.vim new file mode 100644 index 0000000..1b3c233 --- /dev/null +++ b/dot_vim/colors/greyblue.vim @@ -0,0 +1,75 @@ +" Vim color file +" + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "greyblue" + +hi Normal ctermfg=NONE ctermbg=NONE gui=NONE guifg=#b7af9f guibg=#090909 + +" Search +hi IncSearch ctermfg=NONE ctermbg=NONE gui=NONE guifg=#7800ff guibg=#e0d8ff +hi Search ctermfg=NONE ctermbg=NONE gui=NONE guifg=#7800ff guibg=#e0d8ff + +" Messages +hi ErrorMsg ctermfg=NONE ctermbg=NONE gui=NONE guifg=#ffffff guibg=NONE +hi WarningMsg ctermfg=NONE ctermbg=NONE gui=NONE guifg=#ffffff guibg=NONE +hi ModeMsg ctermfg=NONE ctermbg=NONE gui=NONE guifg=#ffffff guibg=NONE +hi MoreMsg ctermfg=NONE ctermbg=NONE gui=NONE guifg=#ffffff guibg=NONE +hi Question ctermfg=NONE ctermbg=NONE gui=NONE guifg=#ffffff guibg=NONE + +" Split area +hi StatusLine ctermfg=NONE ctermbg=NONE gui=BOLD guifg=#070707 guibg=#cfcfbf +hi StatusLineNC ctermfg=NONE ctermbg=NONE gui=BOLD guifg=#5f5f4f guibg=#cfcfbf +hi VertSplit ctermfg=NONE ctermbg=NONE gui=NONE guifg=#070707 guibg=#cfcfbf +hi WildMenu ctermfg=NONE ctermbg=NONE gui=BOLD guifg=#070707 guibg=#ff5533 + +" Diff +hi DiffText ctermfg=NONE ctermbg=NONE gui=NONE guifg=#07cfef guibg=#00151f +hi DiffChange ctermfg=NONE ctermbg=NONE gui=NONE guifg=#ff97ff guibg=#2f002f +hi DiffDelete ctermfg=NONE ctermbg=NONE gui=NONE guifg=#dfdf00 guibg=#370d15 +hi DiffAdd ctermfg=NONE ctermbg=NONE gui=NONE guifg=#dfdf00 guibg=#370d15 + +" Cursor +hi Cursor ctermfg=NONE ctermbg=NONE gui=NONE guifg=#ffff00 guibg=#7fff00 +hi lCursor ctermfg=NONE ctermbg=NONE gui=NONE guifg=#070707 guibg=#7fff00 +hi CursorIM ctermfg=NONE ctermbg=NONE gui=NONE guifg=#070707 guibg=#7fff00 + +" Fold +hi Folded ctermfg=NONE ctermbg=NONE gui=NONE guifg=#87ff00 guibg=#1f2700 +hi FoldColumn ctermfg=NONE ctermbg=NONE gui=NONE guifg=#559f00 guibg=#0f0f0b + +" Other +hi Directory ctermfg=NONE ctermbg=NONE gui=NONE guifg=#aaaaba guibg=NONE +hi LineNr ctermfg=NONE ctermbg=NONE gui=NONE guifg=#7f7f5f guibg=NONE +hi NonText ctermfg=NONE ctermbg=NONE gui=BOLD guifg=#211d1a guibg=#211d1a +hi SpecialKey ctermfg=NONE ctermbg=NONE gui=NONE guifg=#378fff guibg=NONE +hi Title ctermfg=NONE ctermbg=NONE gui=NONE guifg=#ffbf9f guibg=#370f07 +hi Visual ctermfg=NONE ctermbg=NONE gui=reverse guifg=#a5a5a5 guibg=#353535 + +" Syntax group +hi Comment ctermfg=NONE ctermbg=NONE gui=BOLD guifg=#555565 guibg=NONE +hi Constant ctermfg=NONE ctermbg=NONE gui=NONE guifg=#d1bfb1 guibg=#151515 +hi Error ctermfg=NONE ctermbg=NONE gui=NONE guifg=#00ffff guibg=NONE +hi Identifier ctermfg=NONE ctermbg=NONE gui=NONE guifg=#aaaaba guibg=NONE +hi Ignore ctermfg=NONE ctermbg=NONE gui=NONE guifg=NONE guibg=NONE +hi PreProc ctermfg=NONE ctermbg=NONE gui=NONE guifg=NONE guibg=NONE +hi Special ctermfg=NONE ctermbg=NONE gui=NONE guifg=#aa1565 guibg=NONE +hi Statement ctermfg=NONE ctermbg=NONE gui=bold guifg=#d1bfb1 guibg=NONE +hi Todo ctermfg=NONE ctermbg=NONE gui=NONE guifg=NONE guibg=NONE +hi Type ctermfg=NONE ctermbg=NONE gui=BOLD guifg=#d1bfb1 guibg=NONE +hi Underlined ctermfg=NONE ctermbg=NONE gui=UNDERLINE guifg=NONE guibg=NONE + +" HTML +hi htmlLink gui=UNDERLINE guifg=#ffff00 guibg=NONE +hi htmlBold gui=BOLD +hi htmlBoldItalic gui=BOLD,ITALIC +hi htmlBoldUnderline gui=BOLD,UNDERLINE +hi htmlBoldUnderlineItalic gui=BOLD,UNDERLINE,ITALIC +hi htmlItalic gui=ITALIC +hi htmlUnderline gui=UNDERLINE +hi htmlUnderlineItalic gui=UNDERLINE,ITALIC diff --git a/dot_vim/colors/hhazure.vim b/dot_vim/colors/hhazure.vim new file mode 100644 index 0000000..9dfed35 --- /dev/null +++ b/dot_vim/colors/hhazure.vim @@ -0,0 +1,83 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/29 (Sat) 13:28:25. +" Version: 1.2 +" This color scheme uses a dark background. + +" Happy Hacking color scheme {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi VertSplit gui=underline guifg=bg guibg=#051525 +hi StatusLine gui=underline guifg=fg guibg=#051525 +hi StatusLineNC gui=underline guifg=#2c3c45 guibg=#051525 +hi LineNr gui=underline guifg=#54657d guibg=#051525 +hi Folded gui=none guifg=#54657d guibg=bg +hi FoldColumn gui=none guifg=#54657d guibg=bg +" title +hi Title gui=underline guifg=fg guibg=#34455d +" message +hi MoreMsg gui=underline guifg=bg guibg=#329858 +hi Question gui=underline guifg=bg guibg=#329858 + +hi Normal gui=none guifg=#7990a4 guibg=#152535 +hi NonText gui=underline guifg=#1d2d30 +hi NonText guibg=#1d2d30 + +" cursor {{{1 +hi WildMenu gui=underline guifg=bg guibg=#99ccb5 +hi Cursor gui=underline guifg=bg guibg=#99ccb5 +hi IncSearch gui=underline guifg=bg guibg=#99ccb5 +hi CursorIM gui=underline guifg=fg guibg=#006188 +hi Search gui=underline guifg=bg guibg=#33669a +hi Visual gui=underline guifg=bg guibg=#667888 + + +" message {{{1 +hi ErrorMsg gui=underline guifg=bg guibg=#8cdd66 +hi WarningMsg gui=underline guifg=bg guibg=#66cc6a +hi ModeMsg gui=underline guifg=bg guibg=#339599 + + +" inner {{{1 +hi Ignore gui=none guifg=bg guibg=bg +hi Todo gui=underline guifg=bg guibg=#66cc6a +hi Error gui=underline guifg=fg guibg=#884422 +hi Special gui=none guifg=#66bbb6 guibg=bg +hi SpecialKey gui=none guifg=#6695cc guibg=bg +hi Identifier gui=none guifg=#69be97 guibg=bg +hi Constant gui=none guifg=#22887b guibg=bg +hi Statement gui=none guifg=#74aa66 guibg=bg +hi Comment gui=none guifg=#006188 guibg=bg +hi Underlined gui=underline guifg=#826699 guibg=bg +hi Directory gui=none guifg=#447760 guibg=bg +hi PreProc gui=none guifg=#557767 guibg=bg +hi Type gui=none guifg=#429999 guibg=bg + + +" diff {{{1 +hi DiffText gui=underline guifg=bg guibg=#99ffd0 +hi DiffChange gui=underline guifg=bg guibg=#55aa83 +hi DiffDelete gui=none guifg=bg guibg=#22a5aa +hi DiffAdd gui=underline guifg=bg guibg=#2ccc22 + + +" html {{{1 +hi htmlLink gui=underline guifg=#6696aa guibg=bg +hi htmlBold gui=underline guifg=bg guibg=#74aa66 +hi htmlBoldUnderline gui=underline guifg=#74aa66 guibg=bg +hi htmlItalic gui=underline guifg=bg guibg=#44ccc0 +hi htmlUnderlineItalic gui=underline guifg=#44ccc0 guibg=bg +hi htmlBoldItalic gui=underline guifg=bg guibg=#33aa40 +hi htmlBoldUnderlineItalic gui=underline guifg=#33aa40 guibg=bg +hi htmlUnderline gui=underline guifg=fg guibg=bg + +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhdblue.vim b/dot_vim/colors/hhdblue.vim new file mode 100644 index 0000000..ebea8ba --- /dev/null +++ b/dot_vim/colors/hhdblue.vim @@ -0,0 +1,233 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/08 (Sat) 15:09:08. +" Version: 1.3 +" This color scheme uses a dark background. + +" Options +" format: +" hhcs___="value" +" target: +" linenr +" "light" : underline, fg=black, bg=light +" "dark" : underline, fg=black, bg=dark +" "normal" : none, fg=light, bg=black +" nontext +" "underlined" : underline, fg=dark, bg=black +" "normal" : none, fg=dark, bg=black +" +" This is original settings. +" :let hhcs_both_all_linenr ="light" +" :let hhcs_both_all_nontext ="underlined" +" +" This is prototype settings. +" :let hhcs_both_all_linenr ="dark" +" :let hhcs_both_all_nontext ="underlined" +" +" If you don't want to eccentric feature, try this. +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" +" Normal, except hhdgray(gui), hhdgreen(cterm). +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" :let hhcs_gui_hhdgray_linenr ="light" +" :let hhcs_gui_hhdgray_nontext ="underlined" +" :let hhcs_cterm_hhdgreen_linenr ="dark" +" :let hhcs_cterm_hhdgreen_nontext ="underlined" +" +" For poor cterm +" :let hhcs_cterm_all_linenr ="normal" + +" Happy Hacking color scheme ((DARK)) {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi NonText gui=UNDERLINE guifg=darkblue guibg=black +hi NonText cterm=UNDERLINE ctermfg=darkblue ctermbg=black +hi Folded gui=NONE guifg=blue guibg=black +hi Folded cterm=NONE ctermfg=blue ctermbg=black +hi FoldColumn gui=NONE guifg=blue guibg=black +hi FoldColumn cterm=NONE ctermfg=blue ctermbg=black +hi StatusLineNC gui=UNDERLINE guifg=black guibg=blue +hi StatusLineNC gui=UNDERLINE ctermfg=black ctermbg=blue +hi LineNr gui=UNDERLINE guifg=black guibg=lightblue +hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightblue +hi VertSplit gui=NONE guifg=darkblue guibg=darkblue +hi VertSplit cterm=NONE ctermfg=darkblue ctermbg=darkblue +" title +hi Title gui=UNDERLINE guifg=lightgray guibg=darkblue +hi Title cterm=UNDERLINE ctermfg=lightgray ctermbg=darkblue +" message +hi MoreMsg gui=UNDERLINE guifg=black guibg=blue +hi MoreMsg cterm=UNDERLINE ctermfg=black ctermbg=blue +hi Question gui=UNDERLINE guifg=black guibg=blue +hi Question cterm=UNDERLINE ctermfg=black ctermbg=blue + + +" cursor {{{1 +hi StatusLine gui=UNDERLINE guifg=black guibg=gray +hi StatusLine cterm=UNDERLINE ctermfg=black ctermbg=gray +hi WildMenu gui=UNDERLINE guifg=black guibg=green +hi WildMenu cterm=UNDERLINE ctermfg=black ctermbg=green +hi Cursor gui=UNDERLINE guifg=black guibg=green +hi Cursor cterm=UNDERLINE ctermfg=black ctermbg=green +hi IncSearch gui=UNDERLINE guifg=black guibg=green +hi IncSearch cterm=UNDERLINE ctermfg=black ctermbg=green +hi CursorIM gui=UNDERLINE guifg=black guibg=green +hi CursorIM cterm=UNDERLINE ctermfg=black ctermbg=green +hi Search gui=UNDERLINE guifg=black guibg=yellow +hi Search cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi Visual gui=UNDERLINE guifg=black guibg=gray +hi Visual cterm=UNDERLINE ctermfg=black ctermbg=gray + + +" message {{{1 +hi ErrorMsg gui=UNDERLINE guifg=black guibg=red +hi ErrorMsg cterm=UNDERLINE ctermfg=black ctermbg=red +hi WarningMsg gui=UNDERLINE guifg=black guibg=yellow +hi WarningMsg cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi ModeMsg gui=UNDERLINE guifg=black guibg=green +hi ModeMsg cterm=UNDERLINE ctermfg=black ctermbg=green + + +" inner {{{1 +hi Normal gui=NONE guifg=lightgray guibg=black +hi Normal cterm=NONE ctermfg=lightgray ctermbg=black +hi Ignore gui=NONE guifg=black guibg=black +hi Ignore cterm=NONE ctermfg=black ctermbg=black +hi Todo gui=UNDERLINE guifg=black guibg=red +hi Todo cterm=UNDERLINE ctermfg=black ctermbg=red +hi Error gui=UNDERLINE guifg=lightgray guibg=red +hi Error cterm=UNDERLINE ctermfg=lightgray ctermbg=red +hi Special gui=NONE guifg=lightcyan guibg=black +hi Special cterm=NONE ctermfg=lightcyan ctermbg=black +hi SpecialKey gui=NONE guifg=cyan guibg=black +hi SpecialKey cterm=NONE ctermfg=cyan ctermbg=black +hi Identifier gui=NONE guifg=cyan guibg=black +hi Identifier cterm=NONE ctermfg=cyan ctermbg=black +hi Constant gui=NONE guifg=lightred guibg=black +hi Constant cterm=NONE ctermfg=lightred ctermbg=black +hi Statement gui=NONE guifg=lightyellow guibg=black +hi Statement cterm=NONE ctermfg=lightyellow ctermbg=black +hi Comment gui=NONE guifg=lightblue guibg=black +hi Comment cterm=NONE ctermfg=lightblue ctermbg=black +hi Underlined gui=UNDERLINE guifg=lightblue guibg=black +hi Underlined cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi Directory gui=NONE guifg=lightgreen guibg=black +hi Directory cterm=NONE ctermfg=lightgreen ctermbg=black +hi PreProc gui=NONE guifg=lightmagenta guibg=black +hi PreProc cterm=NONE ctermfg=lightmagenta ctermbg=black +hi Type gui=NONE guifg=lightgreen guibg=black +hi Type cterm=NONE ctermfg=lightgreen ctermbg=black + + +" option {{{1 +function! s:SetOpt(term, theme, target, default) + let s:opt_{a:term}_{a:target} + \ = exists("g:hhcs_".a:term."_".a:theme."_".a:target) + \ ? g:hhcs_{a:term}_{a:theme}_{a:target} + \ : exists("g:hhcs_".a:term."_all_".a:target) + \ ? g:hhcs_{a:term}_all_{a:target} + \ : exists("g:hhcs_both_all_".a:target) + \ ? g:hhcs_both_all_{a:target} + \ : a:default +endfunction + + +" LineNr {{{2 +" light, dark, normal +call s:SetOpt( "gui", "hhdblue", "linenr", "light") +call s:SetOpt("cterm", "hhdblue", "linenr", "light") +"echo "s:opt_gui_linenr=".s:opt_gui_linenr +if s:opt_gui_linenr == "light" + hi LineNr gui=UNDERLINE guifg=black guibg=lightblue +elseif s:opt_gui_linenr == "dark" + hi LineNr gui=UNDERLINE guifg=black guibg=darkblue +else + hi LineNr gui=NONE guifg=lightblue guibg=black +endif +"echo "s:opt_cterm_linenr=".s:opt_cterm_linenr +if s:opt_cterm_linenr == "light" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightblue +elseif s:opt_gui_linenr == "dark" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=darkblue +else + hi LineNr cterm=NONE ctermfg=lightblue ctermbg=black +endif + + +" NonText {{{2 +" underlined, normal +call s:SetOpt( "gui", "hhdblue", "nontext", "underlined") +call s:SetOpt("cterm", "hhdblue", "nontext", "underlined") +"echo "s:opt_gui_nontext=".s:opt_gui_nontext +if s:opt_gui_nontext == "underlined" + hi NonText gui=UNDERLINE guifg=darkblue guibg=black +else + hi NonText gui=NONE guifg=darkblue guibg=black +endif +"echo "s:opt_cterm_nontext=".s:opt_cterm_nontext +if s:opt_cterm_nontext == "underlined" + hi NonText cterm=UNDERLINE ctermfg=darkblue ctermbg=black +else + hi NonText cterm=NONE ctermfg=darkblue ctermbg=black +endif + + +" 2}}} +" diff {{{1 +hi DiffText gui=UNDERLINE guifg=black guibg=red +hi DiffText cterm=UNDERLINE ctermfg=black ctermbg=red +hi DiffChange gui=UNDERLINE guifg=black guibg=lightgray +hi DiffChange cterm=UNDERLINE ctermfg=black ctermbg=lightgray +hi DiffDelete gui=NONE guifg=black guibg=blue +hi DiffDelete cterm=NONE ctermfg=black ctermbg=blue +hi DiffAdd gui=UNDERLINE guifg=black guibg=cyan +hi DiffAdd cterm=UNDERLINE ctermfg=black ctermbg=cyan + + +" html {{{1 +hi htmlLink gui=UNDERLINE guifg=lightblue guibg=black +hi htmlLink cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi htmlBold gui=UNDERLINE guifg=black guibg=lightred +hi htmlBold cterm=UNDERLINE ctermfg=black ctermbg=lightred +hi htmlItalic gui=UNDERLINE guifg=black guibg=lightgreen +hi htmlItalic cterm=UNDERLINE ctermfg=black ctermbg=lightgreen +hi htmlBoldItalic gui=UNDERLINE guifg=black guibg=lightblue +hi htmlBoldItalic cterm=UNDERLINE ctermfg=black ctermbg=lightblue +hi htmlUnderline gui=UNDERLINE guifg=lightgray guibg=black +hi htmlUnderline cterm=UNDERLINE ctermfg=lightgray ctermbg=black +hi htmlBoldUnderline gui=UNDERLINE guifg=lightred guibg=black +hi htmlBoldUnderline cterm=UNDERLINE ctermfg=lightred ctermbg=black +hi htmlUnderlineItalic gui=UNDERLINE guifg=lightgreen guibg=black +hi htmlUnderlineItalic cterm=UNDERLINE ctermfg=lightgreen ctermbg=black +hi htmlBoldUnderlineItalic gui=UNDERLINE guifg=lightblue guibg=black +hi htmlBoldUnderlineItalic cterm=UNDERLINE ctermfg=lightblue ctermbg=black + + +" colors{{{1 +" 1 black +" 2 blue +" 3 cyan +" 4 darkblue +" 5 gray +" 6 green +" 7 lightblue +" 8 lightcyan +" 9 lightgray +" 10 lightgreen +" 11 lightmagenta +" 12 lightred +" 13 lightyellow +" 14 red +" 15 yellow +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhdcyan.vim b/dot_vim/colors/hhdcyan.vim new file mode 100644 index 0000000..be41f2f --- /dev/null +++ b/dot_vim/colors/hhdcyan.vim @@ -0,0 +1,233 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/08 (Sat) 15:09:10. +" Version: 1.3 +" This color scheme uses a dark background. + +" Options +" format: +" hhcs___="value" +" target: +" linenr +" "light" : underline, fg=black, bg=light +" "dark" : underline, fg=black, bg=dark +" "normal" : none, fg=light, bg=black +" nontext +" "underlined" : underline, fg=dark, bg=black +" "normal" : none, fg=dark, bg=black +" +" This is original settings. +" :let hhcs_both_all_linenr ="light" +" :let hhcs_both_all_nontext ="underlined" +" +" This is prototype settings. +" :let hhcs_both_all_linenr ="dark" +" :let hhcs_both_all_nontext ="underlined" +" +" If you don't want to eccentric feature, try this. +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" +" Normal, except hhdgray(gui), hhdgreen(cterm). +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" :let hhcs_gui_hhdgray_linenr ="light" +" :let hhcs_gui_hhdgray_nontext ="underlined" +" :let hhcs_cterm_hhdgreen_linenr ="dark" +" :let hhcs_cterm_hhdgreen_nontext ="underlined" +" +" For poor cterm +" :let hhcs_cterm_all_linenr ="normal" + +" Happy Hacking color scheme ((DARK)) {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi NonText gui=UNDERLINE guifg=darkcyan guibg=black +hi NonText cterm=UNDERLINE ctermfg=darkcyan ctermbg=black +hi Folded gui=NONE guifg=darkcyan guibg=black +hi Folded cterm=NONE ctermfg=darkcyan ctermbg=black +hi FoldColumn gui=NONE guifg=darkcyan guibg=black +hi FoldColumn cterm=NONE ctermfg=darkcyan ctermbg=black +hi StatusLineNC gui=UNDERLINE guifg=black guibg=darkcyan +hi StatusLineNC gui=UNDERLINE ctermfg=black ctermbg=darkcyan +hi LineNr gui=UNDERLINE guifg=black guibg=lightcyan +hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightcyan +hi VertSplit gui=NONE guifg=darkcyan guibg=darkcyan +hi VertSplit cterm=NONE ctermfg=darkcyan ctermbg=darkcyan +" title +hi Title gui=UNDERLINE guifg=lightgray guibg=darkcyan +hi Title cterm=UNDERLINE ctermfg=lightgray ctermbg=darkcyan +" message +hi MoreMsg gui=UNDERLINE guifg=black guibg=darkcyan +hi MoreMsg cterm=UNDERLINE ctermfg=black ctermbg=darkcyan +hi Question gui=UNDERLINE guifg=black guibg=darkcyan +hi Question cterm=UNDERLINE ctermfg=black ctermbg=darkcyan + + +" cursor {{{1 +hi StatusLine gui=UNDERLINE guifg=black guibg=gray +hi StatusLine cterm=UNDERLINE ctermfg=black ctermbg=gray +hi WildMenu gui=UNDERLINE guifg=black guibg=green +hi WildMenu cterm=UNDERLINE ctermfg=black ctermbg=green +hi Cursor gui=UNDERLINE guifg=black guibg=green +hi Cursor cterm=UNDERLINE ctermfg=black ctermbg=green +hi IncSearch gui=UNDERLINE guifg=black guibg=green +hi IncSearch cterm=UNDERLINE ctermfg=black ctermbg=green +hi CursorIM gui=UNDERLINE guifg=black guibg=green +hi CursorIM cterm=UNDERLINE ctermfg=black ctermbg=green +hi Search gui=UNDERLINE guifg=black guibg=yellow +hi Search cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi Visual gui=UNDERLINE guifg=black guibg=gray +hi Visual cterm=UNDERLINE ctermfg=black ctermbg=gray + + +" message {{{1 +hi ErrorMsg gui=UNDERLINE guifg=black guibg=red +hi ErrorMsg cterm=UNDERLINE ctermfg=black ctermbg=red +hi WarningMsg gui=UNDERLINE guifg=black guibg=yellow +hi WarningMsg cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi ModeMsg gui=UNDERLINE guifg=black guibg=green +hi ModeMsg cterm=UNDERLINE ctermfg=black ctermbg=green + + +" inner {{{1 +hi Normal gui=NONE guifg=lightgray guibg=black +hi Normal cterm=NONE ctermfg=lightgray ctermbg=black +hi Ignore gui=NONE guifg=black guibg=black +hi Ignore cterm=NONE ctermfg=black ctermbg=black +hi Todo gui=UNDERLINE guifg=black guibg=red +hi Todo cterm=UNDERLINE ctermfg=black ctermbg=red +hi Error gui=UNDERLINE guifg=lightgray guibg=red +hi Error cterm=UNDERLINE ctermfg=lightgray ctermbg=red +hi Special gui=NONE guifg=lightcyan guibg=black +hi Special cterm=NONE ctermfg=lightcyan ctermbg=black +hi SpecialKey gui=NONE guifg=cyan guibg=black +hi SpecialKey cterm=NONE ctermfg=cyan ctermbg=black +hi Identifier gui=NONE guifg=cyan guibg=black +hi Identifier cterm=NONE ctermfg=cyan ctermbg=black +hi Constant gui=NONE guifg=lightred guibg=black +hi Constant cterm=NONE ctermfg=lightred ctermbg=black +hi Statement gui=NONE guifg=lightyellow guibg=black +hi Statement cterm=NONE ctermfg=lightyellow ctermbg=black +hi Comment gui=NONE guifg=lightblue guibg=black +hi Comment cterm=NONE ctermfg=lightblue ctermbg=black +hi Underlined gui=UNDERLINE guifg=lightblue guibg=black +hi Underlined cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi Directory gui=NONE guifg=lightgreen guibg=black +hi Directory cterm=NONE ctermfg=lightgreen ctermbg=black +hi PreProc gui=NONE guifg=lightmagenta guibg=black +hi PreProc cterm=NONE ctermfg=lightmagenta ctermbg=black +hi Type gui=NONE guifg=lightgreen guibg=black +hi Type cterm=NONE ctermfg=lightgreen ctermbg=black + + +" option {{{1 +function! s:SetOpt(term, theme, target, default) + let s:opt_{a:term}_{a:target} + \ = exists("g:hhcs_".a:term."_".a:theme."_".a:target) + \ ? g:hhcs_{a:term}_{a:theme}_{a:target} + \ : exists("g:hhcs_".a:term."_all_".a:target) + \ ? g:hhcs_{a:term}_all_{a:target} + \ : exists("g:hhcs_both_all_".a:target) + \ ? g:hhcs_both_all_{a:target} + \ : a:default +endfunction + + +" LineNr {{{2 +" light, dark, normal +call s:SetOpt( "gui", "hhdcyan", "linenr", "light") +call s:SetOpt("cterm", "hhdcyan", "linenr", "light") +"echo "s:opt_gui_linenr=".s:opt_gui_linenr +if s:opt_gui_linenr == "light" + hi LineNr gui=UNDERLINE guifg=black guibg=lightcyan +elseif s:opt_gui_linenr == "dark" + hi LineNr gui=UNDERLINE guifg=black guibg=darkcyan +else + hi LineNr gui=NONE guifg=lightcyan guibg=black +endif +"echo "s:opt_cterm_linenr=".s:opt_cterm_linenr +if s:opt_cterm_linenr == "light" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightcyan +elseif s:opt_gui_linenr == "dark" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=darkcyan +else + hi LineNr cterm=NONE ctermfg=lightcyan ctermbg=black +endif + + +" NonText {{{2 +" underlined, normal +call s:SetOpt( "gui", "hhdcyan", "nontext", "underlined") +call s:SetOpt("cterm", "hhdcyan", "nontext", "underlined") +"echo "s:opt_gui_nontext=".s:opt_gui_nontext +if s:opt_gui_nontext == "underlined" + hi NonText gui=UNDERLINE guifg=darkcyan guibg=black +else + hi NonText gui=NONE guifg=darkcyan guibg=black +endif +"echo "s:opt_cterm_nontext=".s:opt_cterm_nontext +if s:opt_cterm_nontext == "underlined" + hi NonText cterm=UNDERLINE ctermfg=darkcyan ctermbg=black +else + hi NonText cterm=NONE ctermfg=darkcyan ctermbg=black +endif + + +" 2}}} +" diff {{{1 +hi DiffText gui=UNDERLINE guifg=black guibg=red +hi DiffText cterm=UNDERLINE ctermfg=black ctermbg=red +hi DiffChange gui=UNDERLINE guifg=black guibg=lightgray +hi DiffChange cterm=UNDERLINE ctermfg=black ctermbg=lightgray +hi DiffDelete gui=NONE guifg=black guibg=blue +hi DiffDelete cterm=NONE ctermfg=black ctermbg=blue +hi DiffAdd gui=UNDERLINE guifg=black guibg=cyan +hi DiffAdd cterm=UNDERLINE ctermfg=black ctermbg=cyan + + +" html {{{1 +hi htmlLink gui=UNDERLINE guifg=lightblue guibg=black +hi htmlLink cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi htmlBold gui=UNDERLINE guifg=black guibg=lightred +hi htmlBold cterm=UNDERLINE ctermfg=black ctermbg=lightred +hi htmlItalic gui=UNDERLINE guifg=black guibg=lightgreen +hi htmlItalic cterm=UNDERLINE ctermfg=black ctermbg=lightgreen +hi htmlBoldItalic gui=UNDERLINE guifg=black guibg=lightblue +hi htmlBoldItalic cterm=UNDERLINE ctermfg=black ctermbg=lightblue +hi htmlUnderline gui=UNDERLINE guifg=lightgray guibg=black +hi htmlUnderline cterm=UNDERLINE ctermfg=lightgray ctermbg=black +hi htmlBoldUnderline gui=UNDERLINE guifg=lightred guibg=black +hi htmlBoldUnderline cterm=UNDERLINE ctermfg=lightred ctermbg=black +hi htmlUnderlineItalic gui=UNDERLINE guifg=lightgreen guibg=black +hi htmlUnderlineItalic cterm=UNDERLINE ctermfg=lightgreen ctermbg=black +hi htmlBoldUnderlineItalic gui=UNDERLINE guifg=lightblue guibg=black +hi htmlBoldUnderlineItalic cterm=UNDERLINE ctermfg=lightblue ctermbg=black + + +" colors{{{1 +" 1 black +" 2 blue +" 3 cyan +" 4 darkcyan +" 5 gray +" 6 green +" 7 lightblue +" 8 lightcyan +" 9 lightgray +" 10 lightgreen +" 11 lightmagenta +" 12 lightred +" 13 lightyellow +" 14 red +" 15 yellow +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhdgray.vim b/dot_vim/colors/hhdgray.vim new file mode 100644 index 0000000..39249fc --- /dev/null +++ b/dot_vim/colors/hhdgray.vim @@ -0,0 +1,233 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/08 (Sat) 15:09:11. +" Version: 1.3 +" This color scheme uses a dark background. + +" Options +" format: +" hhcs___="value" +" target: +" linenr +" "light" : underline, fg=black, bg=light +" "dark" : underline, fg=black, bg=dark +" "normal" : none, fg=light, bg=black +" nontext +" "underlined" : underline, fg=dark, bg=black +" "normal" : none, fg=dark, bg=black +" +" This is original settings. +" :let hhcs_both_all_linenr ="light" +" :let hhcs_both_all_nontext ="underlined" +" +" This is prototype settings. +" :let hhcs_both_all_linenr ="dark" +" :let hhcs_both_all_nontext ="underlined" +" +" If you don't want to eccentric feature, try this. +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" +" Normal, except hhdgray(gui), hhdgreen(cterm). +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" :let hhcs_gui_hhdgray_linenr ="light" +" :let hhcs_gui_hhdgray_nontext ="underlined" +" :let hhcs_cterm_hhdgreen_linenr ="dark" +" :let hhcs_cterm_hhdgreen_nontext ="underlined" +" +" For poor cterm +" :let hhcs_cterm_all_linenr ="normal" + +" Happy Hacking color scheme ((DARK)) {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi NonText gui=UNDERLINE guifg=darkgray guibg=black +hi NonText cterm=UNDERLINE ctermfg=darkgray ctermbg=black +hi Folded gui=NONE guifg=darkgray guibg=black +hi Folded cterm=NONE ctermfg=darkgray ctermbg=black +hi FoldColumn gui=NONE guifg=darkgray guibg=black +hi FoldColumn cterm=NONE ctermfg=darkgray ctermbg=black +hi StatusLineNC gui=UNDERLINE guifg=black guibg=darkgray +hi StatusLineNC cterm=UNDERLINE ctermfg=black ctermbg=darkgray +hi LineNr gui=UNDERLINE guifg=black guibg=lightgray +hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightgray +hi VertSplit gui=NONE guifg=darkgray guibg=darkgray +hi VertSplit cterm=NONE ctermfg=darkgray ctermbg=darkgray +" title +hi Title gui=UNDERLINE guifg=lightgray guibg=darkgray +hi Title cterm=UNDERLINE ctermfg=lightgray ctermbg=darkgray +" message +hi MoreMsg gui=UNDERLINE guifg=black guibg=darkgray +hi MoreMsg cterm=UNDERLINE ctermfg=black ctermbg=darkgray +hi Question gui=UNDERLINE guifg=black guibg=darkgray +hi Question cterm=UNDERLINE ctermfg=black ctermbg=darkgray + + +" cursor {{{1 +hi StatusLine gui=UNDERLINE guifg=black guibg=gray +hi StatusLine cterm=UNDERLINE ctermfg=black ctermbg=gray +hi WildMenu gui=UNDERLINE guifg=black guibg=green +hi WildMenu cterm=UNDERLINE ctermfg=black ctermbg=green +hi Cursor gui=UNDERLINE guifg=black guibg=green +hi Cursor cterm=UNDERLINE ctermfg=black ctermbg=green +hi IncSearch gui=UNDERLINE guifg=black guibg=green +hi IncSearch cterm=UNDERLINE ctermfg=black ctermbg=green +hi CursorIM gui=UNDERLINE guifg=black guibg=green +hi CursorIM cterm=UNDERLINE ctermfg=black ctermbg=green +hi Search gui=UNDERLINE guifg=black guibg=yellow +hi Search cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi Visual gui=UNDERLINE guifg=black guibg=gray +hi Visual cterm=UNDERLINE ctermfg=black ctermbg=gray + + +" message {{{1 +hi ErrorMsg gui=UNDERLINE guifg=black guibg=red +hi ErrorMsg cterm=UNDERLINE ctermfg=black ctermbg=red +hi WarningMsg gui=UNDERLINE guifg=black guibg=yellow +hi WarningMsg cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi ModeMsg gui=UNDERLINE guifg=black guibg=green +hi ModeMsg cterm=UNDERLINE ctermfg=black ctermbg=green + + +" inner {{{1 +hi Normal gui=NONE guifg=lightgray guibg=black +hi Normal cterm=NONE ctermfg=lightgray ctermbg=black +hi Ignore gui=NONE guifg=black guibg=black +hi Ignore cterm=NONE ctermfg=black ctermbg=black +hi Todo gui=UNDERLINE guifg=black guibg=red +hi Todo cterm=UNDERLINE ctermfg=black ctermbg=red +hi Error gui=UNDERLINE guifg=lightgray guibg=red +hi Error cterm=UNDERLINE ctermfg=lightgray ctermbg=red +hi Special gui=NONE guifg=lightcyan guibg=black +hi Special cterm=NONE ctermfg=lightcyan ctermbg=black +hi SpecialKey gui=NONE guifg=cyan guibg=black +hi SpecialKey cterm=NONE ctermfg=cyan ctermbg=black +hi Identifier gui=NONE guifg=cyan guibg=black +hi Identifier cterm=NONE ctermfg=cyan ctermbg=black +hi Constant gui=NONE guifg=lightred guibg=black +hi Constant cterm=NONE ctermfg=lightred ctermbg=black +hi Statement gui=NONE guifg=lightyellow guibg=black +hi Statement cterm=NONE ctermfg=lightyellow ctermbg=black +hi Comment gui=NONE guifg=lightblue guibg=black +hi Comment cterm=NONE ctermfg=lightblue ctermbg=black +hi Underlined gui=UNDERLINE guifg=lightblue guibg=black +hi Underlined cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi Directory gui=NONE guifg=lightgreen guibg=black +hi Directory cterm=NONE ctermfg=lightgreen ctermbg=black +hi PreProc gui=NONE guifg=lightmagenta guibg=black +hi PreProc cterm=NONE ctermfg=lightmagenta ctermbg=black +hi Type gui=NONE guifg=lightgreen guibg=black +hi Type cterm=NONE ctermfg=lightgreen ctermbg=black + + +" option {{{1 +function! s:SetOpt(term, theme, target, default) + let s:opt_{a:term}_{a:target} + \ = exists("g:hhcs_".a:term."_".a:theme."_".a:target) + \ ? g:hhcs_{a:term}_{a:theme}_{a:target} + \ : exists("g:hhcs_".a:term."_all_".a:target) + \ ? g:hhcs_{a:term}_all_{a:target} + \ : exists("g:hhcs_both_all_".a:target) + \ ? g:hhcs_both_all_{a:target} + \ : a:default +endfunction + + +" LineNr {{{2 +" light, dark, normal +call s:SetOpt( "gui", "hhdgray", "linenr", "light") +call s:SetOpt("cterm", "hhdgray", "linenr", "light") +"echo "s:opt_gui_linenr=".s:opt_gui_linenr +if s:opt_gui_linenr == "light" + hi LineNr gui=UNDERLINE guifg=black guibg=lightgray +elseif s:opt_gui_linenr == "dark" + hi LineNr gui=UNDERLINE guifg=black guibg=darkgray +else + hi LineNr gui=NONE guifg=lightgray guibg=black +endif +"echo "s:opt_cterm_linenr=".s:opt_cterm_linenr +if s:opt_cterm_linenr == "light" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightgray +elseif s:opt_gui_linenr == "dark" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=darkgray +else + hi LineNr cterm=NONE ctermfg=lightgray ctermbg=black +endif + + +" NonText {{{2 +" underlined, normal +call s:SetOpt( "gui", "hhdgray", "nontext", "underlined") +call s:SetOpt("cterm", "hhdgray", "nontext", "underlined") +"echo "s:opt_gui_nontext=".s:opt_gui_nontext +if s:opt_gui_nontext == "underlined" + hi NonText gui=UNDERLINE guifg=darkgray guibg=black +else + hi NonText gui=NONE guifg=darkgray guibg=black +endif +"echo "s:opt_cterm_nontext=".s:opt_cterm_nontext +if s:opt_cterm_nontext == "underlined" + hi NonText cterm=UNDERLINE ctermfg=darkgray ctermbg=black +else + hi NonText cterm=NONE ctermfg=darkgray ctermbg=black +endif + + +" 2}}} +" diff {{{1 +hi DiffText gui=UNDERLINE guifg=black guibg=red +hi DiffText cterm=UNDERLINE ctermfg=black ctermbg=red +hi DiffChange gui=UNDERLINE guifg=black guibg=lightgray +hi DiffChange cterm=UNDERLINE ctermfg=black ctermbg=lightgray +hi DiffDelete gui=NONE guifg=black guibg=blue +hi DiffDelete cterm=NONE ctermfg=black ctermbg=blue +hi DiffAdd gui=UNDERLINE guifg=black guibg=cyan +hi DiffAdd cterm=UNDERLINE ctermfg=black ctermbg=cyan + + +" html {{{1 +hi htmlLink gui=UNDERLINE guifg=lightblue guibg=black +hi htmlLink cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi htmlBold gui=UNDERLINE guifg=black guibg=lightred +hi htmlBold cterm=UNDERLINE ctermfg=black ctermbg=lightred +hi htmlItalic gui=UNDERLINE guifg=black guibg=lightgreen +hi htmlItalic cterm=UNDERLINE ctermfg=black ctermbg=lightgreen +hi htmlBoldItalic gui=UNDERLINE guifg=black guibg=lightblue +hi htmlBoldItalic cterm=UNDERLINE ctermfg=black ctermbg=lightblue +hi htmlUnderline gui=UNDERLINE guifg=lightgray guibg=black +hi htmlUnderline cterm=UNDERLINE ctermfg=lightgray ctermbg=black +hi htmlBoldUnderline gui=UNDERLINE guifg=lightred guibg=black +hi htmlBoldUnderline cterm=UNDERLINE ctermfg=lightred ctermbg=black +hi htmlUnderlineItalic gui=UNDERLINE guifg=lightgreen guibg=black +hi htmlUnderlineItalic cterm=UNDERLINE ctermfg=lightgreen ctermbg=black +hi htmlBoldUnderlineItalic gui=UNDERLINE guifg=lightblue guibg=black +hi htmlBoldUnderlineItalic cterm=UNDERLINE ctermfg=lightblue ctermbg=black + + +" colors{{{1 +" 1 black +" 2 blue +" 3 cyan +" 4 darkgray +" 5 gray +" 6 green +" 7 lightblue +" 8 lightcyan +" 9 lightgray +" 10 lightgreen +" 11 lightmagenta +" 12 lightred +" 13 lightyellow +" 14 red +" 15 yellow +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhdgreen.vim b/dot_vim/colors/hhdgreen.vim new file mode 100644 index 0000000..f64cfc1 --- /dev/null +++ b/dot_vim/colors/hhdgreen.vim @@ -0,0 +1,233 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/08 (Sat) 15:09:11. +" Version: 1.3 +" This color scheme uses a dark background. + +" Options +" format: +" hhcs___="value" +" target: +" linenr +" "light" : underline, fg=black, bg=light +" "dark" : underline, fg=black, bg=dark +" "normal" : none, fg=light, bg=black +" nontext +" "underlined" : underline, fg=dark, bg=black +" "normal" : none, fg=dark, bg=black +" +" This is original settings. +" :let hhcs_both_all_linenr ="light" +" :let hhcs_both_all_nontext ="underlined" +" +" This is prototype settings. +" :let hhcs_both_all_linenr ="dark" +" :let hhcs_both_all_nontext ="underlined" +" +" If you don't want to eccentric feature, try this. +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" +" Normal, except hhdgray(gui), hhdgreen(cterm). +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" :let hhcs_gui_hhdgray_linenr ="light" +" :let hhcs_gui_hhdgray_nontext ="underlined" +" :let hhcs_cterm_hhdgreen_linenr ="dark" +" :let hhcs_cterm_hhdgreen_nontext ="underlined" +" +" For poor cterm +" :let hhcs_cterm_all_linenr ="normal" + +" Happy Hacking color scheme ((DARK)) {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi NonText gui=UNDERLINE guifg=darkgreen guibg=black +hi NonText cterm=UNDERLINE ctermfg=darkgreen ctermbg=black +hi Folded gui=NONE guifg=darkgreen guibg=black +hi Folded cterm=NONE ctermfg=darkgreen ctermbg=black +hi FoldColumn gui=NONE guifg=darkgreen guibg=black +hi FoldColumn cterm=NONE ctermfg=darkgreen ctermbg=black +hi StatusLineNC gui=UNDERLINE guifg=black guibg=darkgreen +hi StatusLineNC gui=UNDERLINE ctermfg=black ctermbg=darkgreen +hi LineNr gui=UNDERLINE guifg=black guibg=lightgreen +hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightgreen +hi VertSplit gui=NONE guifg=darkgreen guibg=darkgreen +hi VertSplit cterm=NONE ctermfg=darkgreen ctermbg=darkgreen +" title +hi Title gui=UNDERLINE guifg=lightgray guibg=darkgreen +hi Title cterm=UNDERLINE ctermfg=lightgray ctermbg=darkgreen +" message +hi MoreMsg gui=UNDERLINE guifg=black guibg=darkgreen +hi MoreMsg cterm=UNDERLINE ctermfg=black ctermbg=darkgreen +hi Question gui=UNDERLINE guifg=black guibg=darkgreen +hi Question cterm=UNDERLINE ctermfg=black ctermbg=darkgreen + + +" cursor {{{1 +hi StatusLine gui=UNDERLINE guifg=black guibg=gray +hi StatusLine cterm=UNDERLINE ctermfg=black ctermbg=gray +hi WildMenu gui=UNDERLINE guifg=black guibg=green +hi WildMenu cterm=UNDERLINE ctermfg=black ctermbg=green +hi Cursor gui=UNDERLINE guifg=black guibg=green +hi Cursor cterm=UNDERLINE ctermfg=black ctermbg=green +hi IncSearch gui=UNDERLINE guifg=black guibg=green +hi IncSearch cterm=UNDERLINE ctermfg=black ctermbg=green +hi CursorIM gui=UNDERLINE guifg=black guibg=green +hi CursorIM cterm=UNDERLINE ctermfg=black ctermbg=green +hi Search gui=UNDERLINE guifg=black guibg=yellow +hi Search cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi Visual gui=UNDERLINE guifg=black guibg=gray +hi Visual cterm=UNDERLINE ctermfg=black ctermbg=gray + + +" message {{{1 +hi ErrorMsg gui=UNDERLINE guifg=black guibg=red +hi ErrorMsg cterm=UNDERLINE ctermfg=black ctermbg=red +hi WarningMsg gui=UNDERLINE guifg=black guibg=yellow +hi WarningMsg cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi ModeMsg gui=UNDERLINE guifg=black guibg=green +hi ModeMsg cterm=UNDERLINE ctermfg=black ctermbg=green + + +" inner {{{1 +hi Normal gui=NONE guifg=lightgray guibg=black +hi Normal cterm=NONE ctermfg=lightgray ctermbg=black +hi Ignore gui=NONE guifg=black guibg=black +hi Ignore cterm=NONE ctermfg=black ctermbg=black +hi Todo gui=UNDERLINE guifg=black guibg=red +hi Todo cterm=UNDERLINE ctermfg=black ctermbg=red +hi Error gui=UNDERLINE guifg=lightgray guibg=red +hi Error cterm=UNDERLINE ctermfg=lightgray ctermbg=red +hi Special gui=NONE guifg=lightcyan guibg=black +hi Special cterm=NONE ctermfg=lightcyan ctermbg=black +hi SpecialKey gui=NONE guifg=cyan guibg=black +hi SpecialKey cterm=NONE ctermfg=cyan ctermbg=black +hi Identifier gui=NONE guifg=cyan guibg=black +hi Identifier cterm=NONE ctermfg=cyan ctermbg=black +hi Constant gui=NONE guifg=lightred guibg=black +hi Constant cterm=NONE ctermfg=lightred ctermbg=black +hi Statement gui=NONE guifg=lightyellow guibg=black +hi Statement cterm=NONE ctermfg=lightyellow ctermbg=black +hi Comment gui=NONE guifg=lightblue guibg=black +hi Comment cterm=NONE ctermfg=lightblue ctermbg=black +hi Underlined gui=UNDERLINE guifg=lightblue guibg=black +hi Underlined cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi Directory gui=NONE guifg=lightgreen guibg=black +hi Directory cterm=NONE ctermfg=lightgreen ctermbg=black +hi PreProc gui=NONE guifg=lightmagenta guibg=black +hi PreProc cterm=NONE ctermfg=lightmagenta ctermbg=black +hi Type gui=NONE guifg=lightgreen guibg=black +hi Type cterm=NONE ctermfg=lightgreen ctermbg=black + + +" option {{{1 +function! s:SetOpt(term, theme, target, default) + let s:opt_{a:term}_{a:target} + \ = exists("g:hhcs_".a:term."_".a:theme."_".a:target) + \ ? g:hhcs_{a:term}_{a:theme}_{a:target} + \ : exists("g:hhcs_".a:term."_all_".a:target) + \ ? g:hhcs_{a:term}_all_{a:target} + \ : exists("g:hhcs_both_all_".a:target) + \ ? g:hhcs_both_all_{a:target} + \ : a:default +endfunction + + +" LineNr {{{2 +" light, dark, normal +call s:SetOpt( "gui", "hhdgreen", "linenr", "light") +call s:SetOpt("cterm", "hhdgreen", "linenr", "light") +"echo "s:opt_gui_linenr=".s:opt_gui_linenr +if s:opt_gui_linenr == "light" + hi LineNr gui=UNDERLINE guifg=black guibg=lightgreen +elseif s:opt_gui_linenr == "dark" + hi LineNr gui=UNDERLINE guifg=black guibg=darkgreen +else + hi LineNr gui=NONE guifg=lightgreen guibg=black +endif +"echo "s:opt_cterm_linenr=".s:opt_cterm_linenr +if s:opt_cterm_linenr == "light" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightgreen +elseif s:opt_gui_linenr == "dark" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=darkgreen +else + hi LineNr cterm=NONE ctermfg=lightgreen ctermbg=black +endif + + +" NonText {{{2 +" underlined, normal +call s:SetOpt( "gui", "hhdgreen", "nontext", "underlined") +call s:SetOpt("cterm", "hhdgreen", "nontext", "underlined") +"echo "s:opt_gui_nontext=".s:opt_gui_nontext +if s:opt_gui_nontext == "underlined" + hi NonText gui=UNDERLINE guifg=darkgreen guibg=black +else + hi NonText gui=NONE guifg=darkgreen guibg=black +endif +"echo "s:opt_cterm_nontext=".s:opt_cterm_nontext +if s:opt_cterm_nontext == "underlined" + hi NonText cterm=UNDERLINE ctermfg=darkgreen ctermbg=black +else + hi NonText cterm=NONE ctermfg=darkgreen ctermbg=black +endif + + +" 2}}} +" diff {{{1 +hi DiffText gui=UNDERLINE guifg=black guibg=red +hi DiffText cterm=UNDERLINE ctermfg=black ctermbg=red +hi DiffChange gui=UNDERLINE guifg=black guibg=lightgray +hi DiffChange cterm=UNDERLINE ctermfg=black ctermbg=lightgray +hi DiffDelete gui=NONE guifg=black guibg=blue +hi DiffDelete cterm=NONE ctermfg=black ctermbg=blue +hi DiffAdd gui=UNDERLINE guifg=black guibg=cyan +hi DiffAdd cterm=UNDERLINE ctermfg=black ctermbg=cyan + + +" html {{{1 +hi htmlLink gui=UNDERLINE guifg=lightblue guibg=black +hi htmlLink cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi htmlBold gui=UNDERLINE guifg=black guibg=lightred +hi htmlBold cterm=UNDERLINE ctermfg=black ctermbg=lightred +hi htmlItalic gui=UNDERLINE guifg=black guibg=lightgreen +hi htmlItalic cterm=UNDERLINE ctermfg=black ctermbg=lightgreen +hi htmlBoldItalic gui=UNDERLINE guifg=black guibg=lightblue +hi htmlBoldItalic cterm=UNDERLINE ctermfg=black ctermbg=lightblue +hi htmlUnderline gui=UNDERLINE guifg=lightgray guibg=black +hi htmlUnderline cterm=UNDERLINE ctermfg=lightgray ctermbg=black +hi htmlBoldUnderline gui=UNDERLINE guifg=lightred guibg=black +hi htmlBoldUnderline cterm=UNDERLINE ctermfg=lightred ctermbg=black +hi htmlUnderlineItalic gui=UNDERLINE guifg=lightgreen guibg=black +hi htmlUnderlineItalic cterm=UNDERLINE ctermfg=lightgreen ctermbg=black +hi htmlBoldUnderlineItalic gui=UNDERLINE guifg=lightblue guibg=black +hi htmlBoldUnderlineItalic cterm=UNDERLINE ctermfg=lightblue ctermbg=black + + +" colors{{{1 +" 1 black +" 2 blue +" 3 cyan +" 4 darkgreen +" 5 gray +" 6 green +" 7 lightblue +" 8 lightcyan +" 9 lightgray +" 10 lightgreen +" 11 lightmagenta +" 12 lightred +" 13 lightyellow +" 14 red +" 15 yellow +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhdmagenta.vim b/dot_vim/colors/hhdmagenta.vim new file mode 100644 index 0000000..ef91091 --- /dev/null +++ b/dot_vim/colors/hhdmagenta.vim @@ -0,0 +1,233 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/08 (Sat) 15:09:12. +" Version: 1.3 +" This color scheme uses a dark background. + +" Options +" format: +" hhcs___="value" +" target: +" linenr +" "light" : underline, fg=black, bg=light +" "dark" : underline, fg=black, bg=dark +" "normal" : none, fg=light, bg=black +" nontext +" "underlined" : underline, fg=dark, bg=black +" "normal" : none, fg=dark, bg=black +" +" This is original settings. +" :let hhcs_both_all_linenr ="light" +" :let hhcs_both_all_nontext ="underlined" +" +" This is prototype settings. +" :let hhcs_both_all_linenr ="dark" +" :let hhcs_both_all_nontext ="underlined" +" +" If you don't want to eccentric feature, try this. +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" +" Normal, except hhdgray(gui), hhdgreen(cterm). +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" :let hhcs_gui_hhdgray_linenr ="light" +" :let hhcs_gui_hhdgray_nontext ="underlined" +" :let hhcs_cterm_hhdgreen_linenr ="dark" +" :let hhcs_cterm_hhdgreen_nontext ="underlined" +" +" For poor cterm +" :let hhcs_cterm_all_linenr ="normal" + +" Happy Hacking color scheme ((DARK)) {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi NonText gui=UNDERLINE guifg=darkmagenta guibg=black +hi NonText cterm=UNDERLINE ctermfg=darkmagenta ctermbg=black +hi Folded gui=NONE guifg=darkmagenta guibg=black +hi Folded cterm=NONE ctermfg=darkmagenta ctermbg=black +hi FoldColumn gui=NONE guifg=darkmagenta guibg=black +hi FoldColumn cterm=NONE ctermfg=darkmagenta ctermbg=black +hi StatusLineNC gui=UNDERLINE guifg=black guibg=darkmagenta +hi StatusLineNC gui=UNDERLINE ctermfg=black ctermbg=darkmagenta +hi LineNr gui=UNDERLINE guifg=black guibg=lightmagenta +hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightmagenta +hi VertSplit gui=NONE guifg=darkmagenta guibg=darkmagenta +hi VertSplit cterm=NONE ctermfg=darkmagenta ctermbg=darkmagenta +" title +hi Title gui=UNDERLINE guifg=lightgray guibg=darkmagenta +hi Title cterm=UNDERLINE ctermfg=lightgray ctermbg=darkmagenta +" message +hi MoreMsg gui=UNDERLINE guifg=black guibg=darkmagenta +hi MoreMsg cterm=UNDERLINE ctermfg=black ctermbg=darkmagenta +hi Question gui=UNDERLINE guifg=black guibg=darkmagenta +hi Question cterm=UNDERLINE ctermfg=black ctermbg=darkmagenta + + +" cursor {{{1 +hi StatusLine gui=UNDERLINE guifg=black guibg=gray +hi StatusLine cterm=UNDERLINE ctermfg=black ctermbg=gray +hi WildMenu gui=UNDERLINE guifg=black guibg=green +hi WildMenu cterm=UNDERLINE ctermfg=black ctermbg=green +hi Cursor gui=UNDERLINE guifg=black guibg=green +hi Cursor cterm=UNDERLINE ctermfg=black ctermbg=green +hi IncSearch gui=UNDERLINE guifg=black guibg=green +hi IncSearch cterm=UNDERLINE ctermfg=black ctermbg=green +hi CursorIM gui=UNDERLINE guifg=black guibg=green +hi CursorIM cterm=UNDERLINE ctermfg=black ctermbg=green +hi Search gui=UNDERLINE guifg=black guibg=yellow +hi Search cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi Visual gui=UNDERLINE guifg=black guibg=gray +hi Visual cterm=UNDERLINE ctermfg=black ctermbg=gray + + +" message {{{1 +hi ErrorMsg gui=UNDERLINE guifg=black guibg=red +hi ErrorMsg cterm=UNDERLINE ctermfg=black ctermbg=red +hi WarningMsg gui=UNDERLINE guifg=black guibg=yellow +hi WarningMsg cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi ModeMsg gui=UNDERLINE guifg=black guibg=green +hi ModeMsg cterm=UNDERLINE ctermfg=black ctermbg=green + + +" inner {{{1 +hi Normal gui=NONE guifg=lightgray guibg=black +hi Normal cterm=NONE ctermfg=lightgray ctermbg=black +hi Ignore gui=NONE guifg=black guibg=black +hi Ignore cterm=NONE ctermfg=black ctermbg=black +hi Todo gui=UNDERLINE guifg=black guibg=red +hi Todo cterm=UNDERLINE ctermfg=black ctermbg=red +hi Error gui=UNDERLINE guifg=lightgray guibg=red +hi Error cterm=UNDERLINE ctermfg=lightgray ctermbg=red +hi Special gui=NONE guifg=lightcyan guibg=black +hi Special cterm=NONE ctermfg=lightcyan ctermbg=black +hi SpecialKey gui=NONE guifg=cyan guibg=black +hi SpecialKey cterm=NONE ctermfg=cyan ctermbg=black +hi Identifier gui=NONE guifg=cyan guibg=black +hi Identifier cterm=NONE ctermfg=cyan ctermbg=black +hi Constant gui=NONE guifg=lightred guibg=black +hi Constant cterm=NONE ctermfg=lightred ctermbg=black +hi Statement gui=NONE guifg=lightyellow guibg=black +hi Statement cterm=NONE ctermfg=lightyellow ctermbg=black +hi Comment gui=NONE guifg=lightblue guibg=black +hi Comment cterm=NONE ctermfg=lightblue ctermbg=black +hi Underlined gui=UNDERLINE guifg=lightblue guibg=black +hi Underlined cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi Directory gui=NONE guifg=lightgreen guibg=black +hi Directory cterm=NONE ctermfg=lightgreen ctermbg=black +hi PreProc gui=NONE guifg=lightmagenta guibg=black +hi PreProc cterm=NONE ctermfg=lightmagenta ctermbg=black +hi Type gui=NONE guifg=lightgreen guibg=black +hi Type cterm=NONE ctermfg=lightgreen ctermbg=black + + +" option {{{1 +function! s:SetOpt(term, theme, target, default) + let s:opt_{a:term}_{a:target} + \ = exists("g:hhcs_".a:term."_".a:theme."_".a:target) + \ ? g:hhcs_{a:term}_{a:theme}_{a:target} + \ : exists("g:hhcs_".a:term."_all_".a:target) + \ ? g:hhcs_{a:term}_all_{a:target} + \ : exists("g:hhcs_both_all_".a:target) + \ ? g:hhcs_both_all_{a:target} + \ : a:default +endfunction + + +" LineNr {{{2 +" light, dark, normal +call s:SetOpt( "gui", "hhdmagenta", "linenr", "light") +call s:SetOpt("cterm", "hhdmagenta", "linenr", "light") +"echo "s:opt_gui_linenr=".s:opt_gui_linenr +if s:opt_gui_linenr == "light" + hi LineNr gui=UNDERLINE guifg=black guibg=lightmagenta +elseif s:opt_gui_linenr == "dark" + hi LineNr gui=UNDERLINE guifg=black guibg=darkmagenta +else + hi LineNr gui=NONE guifg=lightmagenta guibg=black +endif +"echo "s:opt_cterm_linenr=".s:opt_cterm_linenr +if s:opt_cterm_linenr == "light" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightmagenta +elseif s:opt_gui_linenr == "dark" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=darkmagenta +else + hi LineNr cterm=NONE ctermfg=lightmagenta ctermbg=black +endif + + +" NonText {{{2 +" underlined, normal +call s:SetOpt( "gui", "hhdmagenta", "nontext", "underlined") +call s:SetOpt("cterm", "hhdmagenta", "nontext", "underlined") +"echo "s:opt_gui_nontext=".s:opt_gui_nontext +if s:opt_gui_nontext == "underlined" + hi NonText gui=UNDERLINE guifg=darkmagenta guibg=black +else + hi NonText gui=NONE guifg=darkmagenta guibg=black +endif +"echo "s:opt_cterm_nontext=".s:opt_cterm_nontext +if s:opt_cterm_nontext == "underlined" + hi NonText cterm=UNDERLINE ctermfg=darkmagenta ctermbg=black +else + hi NonText cterm=NONE ctermfg=darkmagenta ctermbg=black +endif + + +" 2}}} +" diff {{{1 +hi DiffText gui=UNDERLINE guifg=black guibg=red +hi DiffText cterm=UNDERLINE ctermfg=black ctermbg=red +hi DiffChange gui=UNDERLINE guifg=black guibg=lightgray +hi DiffChange cterm=UNDERLINE ctermfg=black ctermbg=lightgray +hi DiffDelete gui=NONE guifg=black guibg=blue +hi DiffDelete cterm=NONE ctermfg=black ctermbg=blue +hi DiffAdd gui=UNDERLINE guifg=black guibg=cyan +hi DiffAdd cterm=UNDERLINE ctermfg=black ctermbg=cyan + + +" html {{{1 +hi htmlLink gui=UNDERLINE guifg=lightblue guibg=black +hi htmlLink cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi htmlBold gui=UNDERLINE guifg=black guibg=lightred +hi htmlBold cterm=UNDERLINE ctermfg=black ctermbg=lightred +hi htmlItalic gui=UNDERLINE guifg=black guibg=lightgreen +hi htmlItalic cterm=UNDERLINE ctermfg=black ctermbg=lightgreen +hi htmlBoldItalic gui=UNDERLINE guifg=black guibg=lightblue +hi htmlBoldItalic cterm=UNDERLINE ctermfg=black ctermbg=lightblue +hi htmlUnderline gui=UNDERLINE guifg=lightgray guibg=black +hi htmlUnderline cterm=UNDERLINE ctermfg=lightgray ctermbg=black +hi htmlBoldUnderline gui=UNDERLINE guifg=lightred guibg=black +hi htmlBoldUnderline cterm=UNDERLINE ctermfg=lightred ctermbg=black +hi htmlUnderlineItalic gui=UNDERLINE guifg=lightgreen guibg=black +hi htmlUnderlineItalic cterm=UNDERLINE ctermfg=lightgreen ctermbg=black +hi htmlBoldUnderlineItalic gui=UNDERLINE guifg=lightblue guibg=black +hi htmlBoldUnderlineItalic cterm=UNDERLINE ctermfg=lightblue ctermbg=black + + +" colors{{{1 +" 1 black +" 2 blue +" 3 cyan +" 4 darkmagenta +" 5 gray +" 6 green +" 7 lightblue +" 8 lightcyan +" 9 lightgray +" 10 lightgreen +" 11 lightmagenta +" 12 lightred +" 13 lightyellow +" 14 red +" 15 yellow +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhdred.vim b/dot_vim/colors/hhdred.vim new file mode 100644 index 0000000..a8f41a3 --- /dev/null +++ b/dot_vim/colors/hhdred.vim @@ -0,0 +1,234 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/08 (Sat) 15:09:14. +" Version: 1.3 +" This color scheme uses a dark background. + +" Options +" format: +" hhcs___="value" +" target: +" linenr +" "light" : underline, fg=black, bg=light +" "dark" : underline, fg=black, bg=dark +" "normal" : none, fg=light, bg=black +" nontext +" "underlined" : underline, fg=dark, bg=black +" "normal" : none, fg=dark, bg=black +" +" This is original settings. +" :let hhcs_both_all_linenr ="light" +" :let hhcs_both_all_nontext ="underlined" +" +" This is prototype settings. +" :let hhcs_both_all_linenr ="dark" +" :let hhcs_both_all_nontext ="underlined" +" +" If you don't want to eccentric feature, try this. +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" +" Normal, except hhdgray(gui), hhdgreen(cterm). +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" :let hhcs_gui_hhdgray_linenr ="light" +" :let hhcs_gui_hhdgray_nontext ="underlined" +" :let hhcs_cterm_hhdgreen_linenr ="dark" +" :let hhcs_cterm_hhdgreen_nontext ="underlined" +" +" For poor cterm +" :let hhcs_cterm_all_linenr ="normal" + +" Happy Hacking color scheme ((DARK)) {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi NonText gui=UNDERLINE guifg=darkred guibg=black +hi NonText cterm=UNDERLINE ctermfg=darkred ctermbg=black +hi Folded gui=NONE guifg=brown guibg=black +hi Folded cterm=NONE ctermfg=brown ctermbg=black +hi FoldColumn gui=NONE guifg=brown guibg=black +hi FoldColumn cterm=NONE ctermfg=brown ctermbg=black +hi StatusLineNC gui=UNDERLINE guifg=black guibg=darkred +hi StatusLineNC gui=UNDERLINE ctermfg=black ctermbg=darkred +hi LineNr gui=UNDERLINE guifg=black guibg=lightred +hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightred +hi VertSplit gui=NONE guifg=darkred guibg=darkred +hi VertSplit cterm=NONE ctermfg=darkred ctermbg=darkred +" title +hi Title gui=UNDERLINE guifg=lightgray guibg=darkred +hi Title cterm=UNDERLINE ctermfg=lightgray ctermbg=darkred +" message +hi MoreMsg gui=UNDERLINE guifg=black guibg=darkred +hi MoreMsg cterm=UNDERLINE ctermfg=black ctermbg=darkred +hi Question gui=UNDERLINE guifg=black guibg=darkred +hi Question cterm=UNDERLINE ctermfg=black ctermbg=darkred + + +" cursor {{{1 +hi StatusLine gui=UNDERLINE guifg=black guibg=gray +hi StatusLine cterm=UNDERLINE ctermfg=black ctermbg=gray +hi WildMenu gui=UNDERLINE guifg=black guibg=green +hi WildMenu cterm=UNDERLINE ctermfg=black ctermbg=green +hi Cursor gui=UNDERLINE guifg=black guibg=green +hi Cursor cterm=UNDERLINE ctermfg=black ctermbg=green +hi IncSearch gui=UNDERLINE guifg=black guibg=green +hi IncSearch cterm=UNDERLINE ctermfg=black ctermbg=green +hi CursorIM gui=UNDERLINE guifg=black guibg=green +hi CursorIM cterm=UNDERLINE ctermfg=black ctermbg=green +hi Search gui=UNDERLINE guifg=black guibg=yellow +hi Search cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi Visual gui=UNDERLINE guifg=black guibg=gray +hi Visual cterm=UNDERLINE ctermfg=black ctermbg=gray + + +" message {{{1 +hi ErrorMsg gui=UNDERLINE guifg=black guibg=red +hi ErrorMsg cterm=UNDERLINE ctermfg=black ctermbg=red +hi WarningMsg gui=UNDERLINE guifg=black guibg=yellow +hi WarningMsg cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi ModeMsg gui=UNDERLINE guifg=black guibg=green +hi ModeMsg cterm=UNDERLINE ctermfg=black ctermbg=green + + +" inner {{{1 +hi Normal gui=NONE guifg=lightgray guibg=black +hi Normal cterm=NONE ctermfg=lightgray ctermbg=black +hi Ignore gui=NONE guifg=black guibg=black +hi Ignore cterm=NONE ctermfg=black ctermbg=black +hi Todo gui=UNDERLINE guifg=black guibg=red +hi Todo cterm=UNDERLINE ctermfg=black ctermbg=red +hi Error gui=UNDERLINE guifg=lightgray guibg=red +hi Error cterm=UNDERLINE ctermfg=lightgray ctermbg=red +hi Special gui=NONE guifg=lightcyan guibg=black +hi Special cterm=NONE ctermfg=lightcyan ctermbg=black +hi SpecialKey gui=NONE guifg=cyan guibg=black +hi SpecialKey cterm=NONE ctermfg=cyan ctermbg=black +hi Identifier gui=NONE guifg=cyan guibg=black +hi Identifier cterm=NONE ctermfg=cyan ctermbg=black +hi Constant gui=NONE guifg=lightred guibg=black +hi Constant cterm=NONE ctermfg=lightred ctermbg=black +hi Statement gui=NONE guifg=lightyellow guibg=black +hi Statement cterm=NONE ctermfg=lightyellow ctermbg=black +hi Comment gui=NONE guifg=lightblue guibg=black +hi Comment cterm=NONE ctermfg=lightblue ctermbg=black +hi Underlined gui=UNDERLINE guifg=lightblue guibg=black +hi Underlined cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi Directory gui=NONE guifg=lightgreen guibg=black +hi Directory cterm=NONE ctermfg=lightgreen ctermbg=black +hi PreProc gui=NONE guifg=lightmagenta guibg=black +hi PreProc cterm=NONE ctermfg=lightmagenta ctermbg=black +hi Type gui=NONE guifg=lightgreen guibg=black +hi Type cterm=NONE ctermfg=lightgreen ctermbg=black + + +" option {{{1 +function! s:SetOpt(term, theme, target, default) + let s:opt_{a:term}_{a:target} + \ = exists("g:hhcs_".a:term."_".a:theme."_".a:target) + \ ? g:hhcs_{a:term}_{a:theme}_{a:target} + \ : exists("g:hhcs_".a:term."_all_".a:target) + \ ? g:hhcs_{a:term}_all_{a:target} + \ : exists("g:hhcs_both_all_".a:target) + \ ? g:hhcs_both_all_{a:target} + \ : a:default +endfunction + + +" LineNr {{{2 +" light, dark, normal +call s:SetOpt( "gui", "hhdred", "linenr", "light") +call s:SetOpt("cterm", "hhdred", "linenr", "light") +"echo "s:opt_gui_linenr=".s:opt_gui_linenr +if s:opt_gui_linenr == "light" + hi LineNr gui=UNDERLINE guifg=black guibg=lightred +elseif s:opt_gui_linenr == "dark" + hi LineNr gui=UNDERLINE guifg=black guibg=darkred +else + hi LineNr gui=NONE guifg=lightred guibg=black +endif +"echo "s:opt_cterm_linenr=".s:opt_cterm_linenr +if s:opt_cterm_linenr == "light" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightred +elseif s:opt_gui_linenr == "dark" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=darkred +else + hi LineNr cterm=NONE ctermfg=lightred ctermbg=black +endif + + +" NonText {{{2 +" underlined, normal +call s:SetOpt( "gui", "hhdred", "nontext", "underlined") +call s:SetOpt("cterm", "hhdred", "nontext", "underlined") +"echo "s:opt_gui_nontext=".s:opt_gui_nontext +if s:opt_gui_nontext == "underlined" + hi NonText gui=UNDERLINE guifg=darkred guibg=black +else + hi NonText gui=NONE guifg=darkred guibg=black +endif +"echo "s:opt_cterm_nontext=".s:opt_cterm_nontext +if s:opt_cterm_nontext == "underlined" + hi NonText cterm=UNDERLINE ctermfg=darkred ctermbg=black +else + hi NonText cterm=NONE ctermfg=darkred ctermbg=black +endif + + +" 2}}} +" diff {{{1 +hi DiffText gui=UNDERLINE guifg=black guibg=red +hi DiffText cterm=UNDERLINE ctermfg=black ctermbg=red +hi DiffChange gui=UNDERLINE guifg=black guibg=lightgray +hi DiffChange cterm=UNDERLINE ctermfg=black ctermbg=lightgray +hi DiffDelete gui=NONE guifg=black guibg=blue +hi DiffDelete cterm=NONE ctermfg=black ctermbg=blue +hi DiffAdd gui=UNDERLINE guifg=black guibg=cyan +hi DiffAdd cterm=UNDERLINE ctermfg=black ctermbg=cyan + + +" html {{{1 +hi htmlLink gui=UNDERLINE guifg=lightblue guibg=black +hi htmlLink cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi htmlBold gui=UNDERLINE guifg=black guibg=lightred +hi htmlBold cterm=UNDERLINE ctermfg=black ctermbg=lightred +hi htmlItalic gui=UNDERLINE guifg=black guibg=lightgreen +hi htmlItalic cterm=UNDERLINE ctermfg=black ctermbg=lightgreen +hi htmlBoldItalic gui=UNDERLINE guifg=black guibg=lightblue +hi htmlBoldItalic cterm=UNDERLINE ctermfg=black ctermbg=lightblue +hi htmlUnderline gui=UNDERLINE guifg=lightgray guibg=black +hi htmlUnderline cterm=UNDERLINE ctermfg=lightgray ctermbg=black +hi htmlBoldUnderline gui=UNDERLINE guifg=lightred guibg=black +hi htmlBoldUnderline cterm=UNDERLINE ctermfg=lightred ctermbg=black +hi htmlUnderlineItalic gui=UNDERLINE guifg=lightgreen guibg=black +hi htmlUnderlineItalic cterm=UNDERLINE ctermfg=lightgreen ctermbg=black +hi htmlBoldUnderlineItalic gui=UNDERLINE guifg=lightblue guibg=black +hi htmlBoldUnderlineItalic cterm=UNDERLINE ctermfg=lightblue ctermbg=black + + +" colors{{{1 +" 1 black +" 2 blue +" 3 brown +" 4 cyan +" 5 darkred +" 6 gray +" 7 green +" 8 lightblue +" 9 lightcyan +" 10 lightgray +" 11 lightgreen +" 12 lightmagenta +" 13 lightred +" 14 lightyellow +" 15 red +" 16 yellow +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhdyellow.vim b/dot_vim/colors/hhdyellow.vim new file mode 100644 index 0000000..d8d1b33 --- /dev/null +++ b/dot_vim/colors/hhdyellow.vim @@ -0,0 +1,235 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/08 (Sat) 15:09:19. +" Version: 1.3 +" This color scheme uses a dark background. + +" Options +" format: +" hhcs___="value" +" target: +" linenr +" "light" : underline, fg=black, bg=light +" "dark" : underline, fg=black, bg=dark +" "normal" : none, fg=light, bg=black +" nontext +" "underlined" : underline, fg=dark, bg=black +" "normal" : none, fg=dark, bg=black +" +" This is original settings. +" :let hhcs_both_all_linenr ="light" +" :let hhcs_both_all_nontext ="underlined" +" +" This is prototype settings. +" :let hhcs_both_all_linenr ="dark" +" :let hhcs_both_all_nontext ="underlined" +" +" If you don't want to eccentric feature, try this. +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" +" Normal, except hhdgray(gui), hhdgreen(cterm). +" :let hhcs_both_all_linenr ="normal" +" :let hhcs_both_all_nontext ="normal" +" :let hhcs_gui_hhdgray_linenr ="light" +" :let hhcs_gui_hhdgray_nontext ="underlined" +" :let hhcs_cterm_hhdgreen_linenr ="dark" +" :let hhcs_cterm_hhdgreen_nontext ="underlined" +" +" For poor cterm +" :let hhcs_cterm_all_linenr ="normal" + +" Happy Hacking color scheme ((DARK)) {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi NonText gui=UNDERLINE guifg=darkyellow guibg=black +hi NonText cterm=UNDERLINE ctermfg=darkyellow ctermbg=black +hi Folded gui=NONE guifg=darkyellow guibg=black +hi Folded cterm=NONE ctermfg=darkyellow ctermbg=black +hi FoldColumn gui=NONE guifg=darkyellow guibg=black +hi FoldColumn cterm=NONE ctermfg=darkyellow ctermbg=black +hi StatusLineNC gui=UNDERLINE guifg=black guibg=darkyellow +hi StatusLineNC gui=UNDERLINE ctermfg=black ctermbg=darkyellow +hi LineNr gui=NONE guifg=lightyellow guibg=black +hi LineNr cterm=NONE ctermfg=lightyellow ctermbg=black +hi LineNr gui=UNDERLINE guifg=black guibg=lightyellow +hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightyellow +hi VertSplit gui=NONE guifg=darkyellow guibg=darkyellow +hi VertSplit cterm=NONE ctermfg=darkyellow ctermbg=darkyellow +" title +hi Title gui=UNDERLINE guifg=lightgray guibg=darkyellow +hi Title cterm=UNDERLINE ctermfg=lightgray ctermbg=darkyellow +" message +hi MoreMsg gui=UNDERLINE guifg=black guibg=darkyellow +hi MoreMsg cterm=UNDERLINE ctermfg=black ctermbg=darkyellow +hi Question gui=UNDERLINE guifg=black guibg=darkyellow +hi Question cterm=UNDERLINE ctermfg=black ctermbg=darkyellow + + +" cursor {{{1 +hi StatusLine gui=UNDERLINE guifg=black guibg=gray +hi StatusLine cterm=UNDERLINE ctermfg=black ctermbg=gray +hi WildMenu gui=UNDERLINE guifg=black guibg=green +hi WildMenu cterm=UNDERLINE ctermfg=black ctermbg=green +hi Cursor gui=UNDERLINE guifg=black guibg=green +hi Cursor cterm=UNDERLINE ctermfg=black ctermbg=green +hi IncSearch gui=UNDERLINE guifg=black guibg=green +hi IncSearch cterm=UNDERLINE ctermfg=black ctermbg=green +hi CursorIM gui=UNDERLINE guifg=black guibg=green +hi CursorIM cterm=UNDERLINE ctermfg=black ctermbg=green +hi Search gui=UNDERLINE guifg=black guibg=yellow +hi Search cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi Visual gui=UNDERLINE guifg=black guibg=gray +hi Visual cterm=UNDERLINE ctermfg=black ctermbg=gray + + +" message {{{1 +hi ErrorMsg gui=UNDERLINE guifg=black guibg=red +hi ErrorMsg cterm=UNDERLINE ctermfg=black ctermbg=red +hi WarningMsg gui=UNDERLINE guifg=black guibg=yellow +hi WarningMsg cterm=UNDERLINE ctermfg=black ctermbg=yellow +hi ModeMsg gui=UNDERLINE guifg=black guibg=green +hi ModeMsg cterm=UNDERLINE ctermfg=black ctermbg=green + + +" inner {{{1 +hi Normal gui=NONE guifg=lightgray guibg=black +hi Normal cterm=NONE ctermfg=lightgray ctermbg=black +hi Ignore gui=NONE guifg=black guibg=black +hi Ignore cterm=NONE ctermfg=black ctermbg=black +hi Todo gui=UNDERLINE guifg=black guibg=red +hi Todo cterm=UNDERLINE ctermfg=black ctermbg=red +hi Error gui=UNDERLINE guifg=lightgray guibg=red +hi Error cterm=UNDERLINE ctermfg=lightgray ctermbg=red +hi Special gui=NONE guifg=lightcyan guibg=black +hi Special cterm=NONE ctermfg=lightcyan ctermbg=black +hi SpecialKey gui=NONE guifg=cyan guibg=black +hi SpecialKey cterm=NONE ctermfg=cyan ctermbg=black +hi Identifier gui=NONE guifg=cyan guibg=black +hi Identifier cterm=NONE ctermfg=cyan ctermbg=black +hi Constant gui=NONE guifg=lightred guibg=black +hi Constant cterm=NONE ctermfg=lightred ctermbg=black +hi Statement gui=NONE guifg=lightyellow guibg=black +hi Statement cterm=NONE ctermfg=lightyellow ctermbg=black +hi Comment gui=NONE guifg=lightblue guibg=black +hi Comment cterm=NONE ctermfg=lightblue ctermbg=black +hi Underlined gui=UNDERLINE guifg=lightblue guibg=black +hi Underlined cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi Directory gui=NONE guifg=lightgreen guibg=black +hi Directory cterm=NONE ctermfg=lightgreen ctermbg=black +hi PreProc gui=NONE guifg=lightmagenta guibg=black +hi PreProc cterm=NONE ctermfg=lightmagenta ctermbg=black +hi Type gui=NONE guifg=lightgreen guibg=black +hi Type cterm=NONE ctermfg=lightgreen ctermbg=black + + +" option {{{1 +function! s:SetOpt(term, theme, target, default) + let s:opt_{a:term}_{a:target} + \ = exists("g:hhcs_".a:term."_".a:theme."_".a:target) + \ ? g:hhcs_{a:term}_{a:theme}_{a:target} + \ : exists("g:hhcs_".a:term."_all_".a:target) + \ ? g:hhcs_{a:term}_all_{a:target} + \ : exists("g:hhcs_both_all_".a:target) + \ ? g:hhcs_both_all_{a:target} + \ : a:default +endfunction + + +" LineNr {{{2 +" light, dark, normal +call s:SetOpt( "gui", "hhdyellow", "linenr", "light") +call s:SetOpt("cterm", "hhdyellow", "linenr", "light") +"echo "s:opt_gui_linenr=".s:opt_gui_linenr +if s:opt_gui_linenr == "light" + hi LineNr gui=UNDERLINE guifg=black guibg=lightyellow +elseif s:opt_gui_linenr == "dark" + hi LineNr gui=UNDERLINE guifg=black guibg=darkyellow +else + hi LineNr gui=NONE guifg=lightyellow guibg=black +endif +"echo "s:opt_cterm_linenr=".s:opt_cterm_linenr +if s:opt_cterm_linenr == "light" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=lightyellow +elseif s:opt_gui_linenr == "dark" + hi LineNr cterm=UNDERLINE ctermfg=black ctermbg=darkyellow +else + hi LineNr cterm=NONE ctermfg=lightyellow ctermbg=black +endif + + +" NonText {{{2 +" underlined, normal +call s:SetOpt( "gui", "hhdyellow", "nontext", "underlined") +call s:SetOpt("cterm", "hhdyellow", "nontext", "underlined") +"echo "s:opt_gui_nontext=".s:opt_gui_nontext +if s:opt_gui_nontext == "underlined" + hi NonText gui=UNDERLINE guifg=darkyellow guibg=black +else + hi NonText gui=NONE guifg=darkyellow guibg=black +endif +"echo "s:opt_cterm_nontext=".s:opt_cterm_nontext +if s:opt_cterm_nontext == "underlined" + hi NonText cterm=UNDERLINE ctermfg=darkyellow ctermbg=black +else + hi NonText cterm=NONE ctermfg=darkyellow ctermbg=black +endif + + +" 2}}} +" diff {{{1 +hi DiffText gui=UNDERLINE guifg=black guibg=red +hi DiffText cterm=UNDERLINE ctermfg=black ctermbg=red +hi DiffChange gui=UNDERLINE guifg=black guibg=lightgray +hi DiffChange cterm=UNDERLINE ctermfg=black ctermbg=lightgray +hi DiffDelete gui=NONE guifg=black guibg=blue +hi DiffDelete cterm=NONE ctermfg=black ctermbg=blue +hi DiffAdd gui=UNDERLINE guifg=black guibg=cyan +hi DiffAdd cterm=UNDERLINE ctermfg=black ctermbg=cyan + + +" html {{{1 +hi htmlLink gui=UNDERLINE guifg=lightblue guibg=black +hi htmlLink cterm=UNDERLINE ctermfg=lightblue ctermbg=black +hi htmlBold gui=UNDERLINE guifg=black guibg=lightred +hi htmlBold cterm=UNDERLINE ctermfg=black ctermbg=lightred +hi htmlItalic gui=UNDERLINE guifg=black guibg=lightgreen +hi htmlItalic cterm=UNDERLINE ctermfg=black ctermbg=lightgreen +hi htmlBoldItalic gui=UNDERLINE guifg=black guibg=lightblue +hi htmlBoldItalic cterm=UNDERLINE ctermfg=black ctermbg=lightblue +hi htmlUnderline gui=UNDERLINE guifg=lightgray guibg=black +hi htmlUnderline cterm=UNDERLINE ctermfg=lightgray ctermbg=black +hi htmlBoldUnderline gui=UNDERLINE guifg=lightred guibg=black +hi htmlBoldUnderline cterm=UNDERLINE ctermfg=lightred ctermbg=black +hi htmlUnderlineItalic gui=UNDERLINE guifg=lightgreen guibg=black +hi htmlUnderlineItalic cterm=UNDERLINE ctermfg=lightgreen ctermbg=black +hi htmlBoldUnderlineItalic gui=UNDERLINE guifg=lightblue guibg=black +hi htmlBoldUnderlineItalic cterm=UNDERLINE ctermfg=lightblue ctermbg=black + + +" colors{{{1 +" 1 black +" 2 blue +" 3 cyan +" 4 darkyellow +" 5 gray +" 6 green +" 7 lightblue +" 8 lightcyan +" 9 lightgray +" 10 lightgreen +" 11 lightmagenta +" 12 lightred +" 13 lightyellow +" 14 red +" 15 yellow +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhorange.vim b/dot_vim/colors/hhorange.vim new file mode 100644 index 0000000..a1de49d --- /dev/null +++ b/dot_vim/colors/hhorange.vim @@ -0,0 +1,82 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/29 (Sat) 13:28:25. +" Version: 1.2 +" This color scheme uses a dark background. + +" Happy Hacking color scheme {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi LineNr gui=underline guifg=#756664 guibg=#1c1200 +hi Folded gui=none guifg=#756664 guibg=bg +hi FoldColumn gui=none guifg=#756664 guibg=bg +" title +hi Title gui=underline guifg=fg guibg=#553614 +" message +hi MoreMsg gui=underline guifg=bg guibg=#983235 +hi Question gui=underline guifg=bg guibg=#983235 + +hi NonText gui=underline guifg=#2c2210 guibg=#2c2210 +hi VertSplit gui=underline guifg=bg guibg=#1c1200 +hi StatusLine gui=underline guifg=fg guibg=#1c1200 +hi StatusLineNC gui=underline guifg=#3c2e2c guibg=#1c1200 + +" cursor {{{1 +hi WildMenu gui=underline guifg=bg guibg=#cc9069 +hi Cursor gui=underline guifg=bg guibg=#cc9069 +hi IncSearch gui=underline guifg=bg guibg=#cc9069 +hi CursorIM gui=underline guifg=fg guibg=#887900 +hi Search gui=underline guifg=bg guibg=#994113 +hi Visual gui=underline guifg=bg guibg=#886b46 + + +" message {{{1 +hi ErrorMsg gui=underline guifg=bg guibg=#dd66bb +hi WarningMsg gui=underline guifg=bg guibg=#cc668b +hi ModeMsg gui=underline guifg=bg guibg=#997433 + + +" inner {{{1 +hi Normal gui=none guifg=#9b8f78 guibg=#332412 +hi Ignore gui=none guifg=bg guibg=bg +hi Todo gui=underline guifg=bg guibg=#cc668b +hi Error gui=underline guifg=fg guibg=#413399 +hi Special gui=none guifg=#bb9466 guibg=bg +hi SpecialKey gui=none guifg=#becc66 guibg=bg +hi Identifier gui=none guifg=#be7569 guibg=bg +hi Constant gui=none guifg=#885222 guibg=bg +hi Statement gui=none guifg=#aa668f guibg=bg +hi Comment gui=none guifg=#887900 guibg=bg +hi Underlined gui=underline guifg=#66996d guibg=bg +hi Directory gui=none guifg=#774b44 guibg=bg +hi PreProc gui=none guifg=#775a55 guibg=bg +hi Type gui=none guifg=#bb7b22 guibg=bg + + +" diff {{{1 +hi DiffText gui=underline guifg=bg guibg=#ffa799 +hi DiffChange gui=underline guifg=bg guibg=#aa6155 +hi DiffDelete gui=none guifg=bg guibg=#aa7922 +hi DiffAdd gui=underline guifg=bg guibg=#cc2270 + + +" html {{{1 +hi htmlLink gui=underline guifg=#aaa366 guibg=bg +hi htmlBold gui=underline guifg=bg guibg=#aa668f +hi htmlBoldUnderline gui=underline guifg=#aa668f guibg=bg +hi htmlItalic gui=underline guifg=bg guibg=#cc8a44 +hi htmlUnderlineItalic gui=underline guifg=#cc8a44 guibg=bg +hi htmlBoldItalic gui=underline guifg=bg guibg=#aa3355 +hi htmlBoldUnderlineItalic gui=underline guifg=#aa3355 guibg=bg +hi htmlUnderline gui=underline guifg=fg guibg=bg + +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhpink.vim b/dot_vim/colors/hhpink.vim new file mode 100644 index 0000000..cffe418 --- /dev/null +++ b/dot_vim/colors/hhpink.vim @@ -0,0 +1,85 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/29 (Sat) 13:28:25. +" Version: 1.2 +" This color scheme uses a dark background. + +" Happy Hacking color scheme {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi Folded gui=none guifg=#855060 guibg=bg +hi FoldColumn gui=none guifg=#855060 guibg=bg +hi LineNr gui=underline guifg=#855060 guibg=#200510 +hi VertSplit gui=underline guifg=bg guibg=#200510 +hi StatusLine gui=underline guifg=fg guibg=#200510 +hi StatusLineNC gui=underline guifg=#3c2c31 guibg=#200510 +hi NonText gui=underline guifg=#3c2530 +hi NonText guibg=#3c2530 +" title +hi Title gui=underline guifg=fg guibg=#653040 +" message +hi MoreMsg gui=underline guifg=bg guibg=#983266 +hi Question gui=underline guifg=bg guibg=#983266 + + +" cursor {{{1 +hi WildMenu gui=underline guifg=bg guibg=#cc7990 +hi Cursor gui=underline guifg=bg guibg=#cc7990 +hi IncSearch gui=underline guifg=bg guibg=#cc7990 +hi CursorIM gui=underline guifg=fg guibg=#884830 +hi Search gui=underline guifg=bg guibg=#993356 +hi Visual gui=underline guifg=bg guibg=#885672 + + +" message {{{1 +hi ErrorMsg gui=underline guifg=bg guibg=#c666dd +hi WarningMsg gui=underline guifg=bg guibg=#cc66bc +hi ModeMsg gui=underline guifg=bg guibg=#994333 + + +"TODO + +" inner {{{1 +hi Normal gui=none guifg=#bb7899 guibg=#40202a +hi Ignore gui=none guifg=bg guibg=bg +hi Todo gui=underline guifg=bg guibg=#cc568c +hi Error gui=underline guifg=fg guibg=#335699 +hi Special gui=none guifg=#bb6b66 guibg=bg +hi SpecialKey gui=none guifg=#cca966 guibg=bg +hi Identifier gui=none guifg=#be6986 guibg=bg +hi Constant gui=none guifg=#882223 guibg=bg +hi Statement gui=none guifg=#a466aa guibg=bg +hi Comment gui=none guifg=#884830 guibg=bg +hi Underlined gui=underline guifg=#779966 guibg=bg +hi Directory gui=none guifg=#774455 guibg=bg +hi PreProc gui=none guifg=#775561 guibg=bg +hi Type gui=none guifg=#aa3222 guibg=bg + + +" diff {{{1 +hi DiffText gui=underline guifg=bg guibg=#ff99bc +hi DiffChange gui=underline guifg=bg guibg=#aa5572 +hi DiffDelete gui=none guifg=bg guibg=#aa3822 +hi DiffAdd gui=underline guifg=bg guibg=#cc22c2 + + +" html {{{1 +hi htmlLink gui=underline guifg=#aa8266 guibg=bg +hi htmlBold gui=underline guifg=bg guibg=#a466aa +hi htmlBoldUnderline gui=underline guifg=#a466aa guibg=bg +hi htmlItalic gui=underline guifg=bg guibg=#cc4944 +hi htmlUnderlineItalic gui=underline guifg=#cc4944 guibg=bg +hi htmlBoldItalic gui=underline guifg=bg guibg=#aa338e +hi htmlBoldUnderlineItalic gui=underline guifg=#aa338e guibg=bg +hi htmlUnderline gui=underline guifg=fg guibg=bg + +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhspring.vim b/dot_vim/colors/hhspring.vim new file mode 100644 index 0000000..cee4174 --- /dev/null +++ b/dot_vim/colors/hhspring.vim @@ -0,0 +1,83 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/29 (Sat) 13:28:25. +" Version: 1.2 +" This color scheme uses a dark background. + +" Happy Hacking color scheme {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi LineNr gui=underline guifg=#757164 guibg=#1c1910 +hi Folded gui=none guifg=#757164 guibg=bg +hi FoldColumn gui=none guifg=#757164 guibg=bg +" title +hi Title gui=underline guifg=fg guibg=#555144 +" message +hi MoreMsg gui=underline guifg=bg guibg=#986c32 +hi Question gui=underline guifg=bg guibg=#986c32 + +hi NonText gui=underline guifg=#2c2920 guibg=#2c2920 +hi VertSplit gui=underline guifg=bg guibg=#1c1910 +hi StatusLine gui=underline guifg=fg guibg=#1c1910 +hi StatusLineNC gui=underline guifg=#3c382c guibg=#1c1910 + +" cursor {{{1 +hi WildMenu gui=underline guifg=bg guibg=#ccbf99 +hi Cursor gui=underline guifg=bg guibg=#ccbf99 +hi IncSearch gui=underline guifg=bg guibg=#ccbf99 +hi CursorIM gui=underline guifg=fg guibg=#458800 +hi Search gui=underline guifg=bg guibg=#997e33 +hi Visual gui=underline guifg=bg guibg=#887f66 + + +" message {{{1 +hi ErrorMsg gui=underline guifg=bg guibg=#dd6674 +hi WarningMsg gui=underline guifg=bg guibg=#cc7e66 +hi ModeMsg gui=underline guifg=bg guibg=#819933 + + +"TODO +" inner {{{1 +hi Normal gui=none guifg=#bbae88 guibg=#332f22 +hi Ignore gui=none guifg=bg guibg=bg +hi Todo gui=underline guifg=bg guibg=#cc7e66 +hi Error gui=underline guifg=fg guibg=#7e3399 +hi Special gui=none guifg=#afbb66 guibg=bg +hi SpecialKey gui=none guifg=#81cc66 guibg=bg +hi Identifier gui=none guifg=#bea869 guibg=bg +hi Constant gui=none guifg=#818822 guibg=bg +hi Statement gui=none guifg=#aa6667 guibg=bg +hi Comment gui=none guifg=#458800 guibg=bg +hi Underlined gui=underline guifg=#66998c guibg=bg +hi Directory gui=none guifg=#776a44 guibg=bg +hi PreProc gui=none guifg=#776e55 guibg=bg +hi Type gui=none guifg=#9fbb22 guibg=bg + + +" diff {{{1 +hi DiffText gui=underline guifg=bg guibg=#ffe499 +hi DiffChange gui=underline guifg=bg guibg=#aa9455 +hi DiffDelete gui=none guifg=bg guibg=#89aa22 +hi DiffAdd gui=underline guifg=bg guibg=#cc3a22 + + +" html {{{1 +hi htmlLink gui=underline guifg=#89aa66 guibg=bg +hi htmlBold gui=underline guifg=bg guibg=#aa6667 +hi htmlBoldUnderline gui=underline guifg=#aa6667 guibg=bg +hi htmlItalic gui=underline guifg=bg guibg=#bccc44 +hi htmlUnderlineItalic gui=underline guifg=#bccc44 guibg=bg +hi htmlBoldItalic gui=underline guifg=bg guibg=#aa5833 +hi htmlBoldUnderlineItalic gui=underline guifg=#aa5833 guibg=bg +hi htmlUnderline gui=underline guifg=fg guibg=bg + +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhteal.vim b/dot_vim/colors/hhteal.vim new file mode 100644 index 0000000..79dbb3c --- /dev/null +++ b/dot_vim/colors/hhteal.vim @@ -0,0 +1,83 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/29 (Sat) 13:28:25. +" Version: 1.2 +" This color scheme uses a dark background. + +" Happy Hacking color scheme {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi LineNr gui=underline guifg=#647564 guibg=#101c10 +hi Folded gui=none guifg=#647564 guibg=bg +hi FoldColumn gui=none guifg=#647564 guibg=bg +" title +hi Title gui=underline guifg=fg guibg=#445544 +" message +hi MoreMsg gui=underline guifg=bg guibg=#439832 +hi Question gui=underline guifg=bg guibg=#439832 + +hi NonText gui=underline guifg=#202c20 guibg=#202c20 +hi VertSplit gui=underline guifg=bg guibg=#101c10 +hi StatusLine gui=underline guifg=fg guibg=#101c10 +hi StatusLineNC gui=underline guifg=#2c3c2c guibg=#101c10 + +" cursor {{{1 +hi WildMenu gui=underline guifg=bg guibg=#99cc99 +hi Cursor gui=underline guifg=bg guibg=#99cc99 +hi IncSearch gui=underline guifg=bg guibg=#99cc99 +hi CursorIM gui=underline guifg=fg guibg=#008866 +hi Search gui=underline guifg=bg guibg=#339933 +hi Visual gui=underline guifg=bg guibg=#668866 + + +" message {{{1 +hi ErrorMsg gui=underline guifg=bg guibg=#ccdd66 +hi WarningMsg gui=underline guifg=bg guibg=#99cc66 +hi ModeMsg gui=underline guifg=bg guibg=#339966 + + +"TODO +" inner {{{1 +hi Normal gui=none guifg=#88bb88 guibg=#223322 +hi Ignore gui=none guifg=bg guibg=bg +hi Todo gui=underline guifg=bg guibg=#99cc66 +hi Error gui=underline guifg=fg guibg=#993333 +hi Special gui=none guifg=#66bb88 guibg=bg +hi SpecialKey gui=none guifg=#66cccc guibg=bg +hi Identifier gui=none guifg=#69be69 guibg=bg +hi Constant gui=none guifg=#228844 guibg=bg +hi Statement gui=none guifg=#99aa66 guibg=bg +hi Comment gui=none guifg=#008866 guibg=bg +hi Underlined gui=underline guifg=#666699 guibg=bg +hi Directory gui=none guifg=#447744 guibg=bg +hi PreProc gui=none guifg=#557755 guibg=bg +hi Type gui=none guifg=#22bb66 guibg=bg + + +" diff {{{1 +hi DiffText gui=underline guifg=bg guibg=#99ff99 +hi DiffChange gui=underline guifg=bg guibg=#55aa55 +hi DiffDelete gui=none guifg=bg guibg=#22aa66 +hi DiffAdd gui=underline guifg=bg guibg=#88cc22 + + +" html {{{1 +hi htmlLink gui=underline guifg=#66aa99 guibg=bg +hi htmlBold gui=underline guifg=bg guibg=#99aa66 +hi htmlBoldUnderline gui=underline guifg=#99aa66 guibg=bg +hi htmlItalic gui=underline guifg=bg guibg=#44cc77 +hi htmlUnderlineItalic gui=underline guifg=#44cc77 guibg=bg +hi htmlBoldItalic gui=underline guifg=bg guibg=#66aa33 +hi htmlBoldUnderlineItalic gui=underline guifg=#66aa33 guibg=bg +hi htmlUnderline gui=underline guifg=fg guibg=bg + +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/hhviolet.vim b/dot_vim/colors/hhviolet.vim new file mode 100644 index 0000000..b8fbf62 --- /dev/null +++ b/dot_vim/colors/hhviolet.vim @@ -0,0 +1,83 @@ +" Vim color file {{{1 +" Maintainer: hira@users.sourceforge.jp +" Last Change: 2003/11/29 (Sat) 13:28:25. +" Version: 1.2 +" This color scheme uses a dark background. + +" Happy Hacking color scheme {{{1 +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = expand(":t:r") +let html_my_rendering = 1 + + +" frame & title & message (theme) {{{1 +hi LineNr gui=underline guifg=#686475 guibg=#13101c +hi Folded gui=none guifg=#686475 guibg=bg +hi FoldColumn gui=none guifg=#686475 guibg=bg +" title +hi Title gui=underline guifg=fg guibg=#484455 +" message +hi MoreMsg gui=underline guifg=bg guibg=#373298 +hi Question gui=underline guifg=bg guibg=#373298 + +hi NonText gui=underline guifg=#23202c guibg=#23202c +hi VertSplit gui=underline guifg=bg guibg=#13101c +hi StatusLine gui=underline guifg=fg guibg=#13101c +hi StatusLineNC gui=underline guifg=#302c3c guibg=#13101c + +" cursor {{{1 +hi WildMenu gui=underline guifg=bg guibg=#a499cc +hi Cursor gui=underline guifg=bg guibg=#a499cc +hi IncSearch gui=underline guifg=bg guibg=#a499cc +hi CursorIM gui=underline guifg=fg guibg=#662088 +hi Search gui=underline guifg=bg guibg=#493399 +hi Visual gui=underline guifg=bg guibg=#6d6688 + + +" message {{{1 +hi ErrorMsg gui=underline guifg=bg guibg=#66b2dd +hi WarningMsg gui=underline guifg=bg guibg=#6683cc +hi ModeMsg gui=underline guifg=bg guibg=#7c3399 + + +"TODO +" inner {{{1 +hi Normal gui=none guifg=#9388bb guibg=#262233 +hi Ignore gui=none guifg=bg guibg=bg +hi Todo gui=underline guifg=bg guibg=#6683cc +hi Error gui=underline guifg=fg guibg=#335544 +hi Special gui=none guifg=#9b66bb guibg=bg +hi SpecialKey gui=none guifg=#cc66b6 guibg=bg +hi Identifier gui=none guifg=#7c69be guibg=bg +hi Constant gui=none guifg=#774499 guibg=bg +hi Statement gui=none guifg=#668aaa guibg=bg +hi Comment gui=none guifg=#662088 guibg=bg +hi Underlined gui=underline guifg=#997166 guibg=bg +hi Directory gui=none guifg=#4f4477 guibg=bg +hi PreProc gui=none guifg=#5c5577 guibg=bg +hi Type gui=none guifg=#7733cc guibg=bg + + +" diff {{{1 +hi DiffText gui=underline guifg=bg guibg=#af99ff +hi DiffChange gui=underline guifg=bg guibg=#6855aa +hi DiffDelete gui=none guifg=bg guibg=#8422aa +hi DiffAdd gui=underline guifg=bg guibg=#2263cc + + +" html {{{1 +hi htmlLink gui=underline guifg=#a866aa guibg=bg +hi htmlBold gui=underline guifg=bg guibg=#668aaa +hi htmlBoldUnderline gui=underline guifg=#668aaa guibg=bg +hi htmlItalic gui=underline guifg=bg guibg=#9544cc +hi htmlUnderlineItalic gui=underline guifg=#9544cc guibg=bg +hi htmlBoldItalic gui=underline guifg=bg guibg=#334caa +hi htmlBoldUnderlineItalic gui=underline guifg=#334caa guibg=bg +hi htmlUnderline gui=underline guifg=fg guibg=bg + +"}}}1 +" vim:set nowrap foldmethod=marker expandtab: diff --git a/dot_vim/colors/ibmedit.vim b/dot_vim/colors/ibmedit.vim new file mode 100644 index 0000000..4b846c6 --- /dev/null +++ b/dot_vim/colors/ibmedit.vim @@ -0,0 +1,60 @@ +" Vim color file +" Maintainer: Maarten Slaets +" Last Change: 2002 Aug 16 + +" Color settings similar to that used in IBM Edit + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="ibmedit" + +hi Normal term=NONE cterm=NONE ctermfg=Gray ctermbg=DarkBlue +hi Normal gui=NONE guifg=#CCCCCC guibg=DarkBlue +hi NonText term=NONE cterm=NONE ctermfg=Gray ctermbg=DarkBlue +hi NonText gui=NONE guifg=#CCCCCC guibg=DarkBlue + +hi Statement term=NONE cterm=NONE ctermfg=White ctermbg=DarkBlue +hi Statement gui=NONE guifg=White guibg=DarkBlue +hi Special term=NONE cterm=NONE ctermfg=White ctermbg=DarkBlue +hi Special gui=NONE guifg=White guibg=DarkBlue +hi Constant term=NONE cterm=NONE ctermfg=Cyan ctermbg=DarkBlue +hi Constant gui=NONE guifg=#99CCFF guibg=DarkBlue +hi Comment term=NONE cterm=NONE ctermfg=Blue ctermbg=DarkBlue +hi Comment gui=NONE guifg=#6666FF guibg=DarkBlue +hi Preproc term=NONE cterm=NONE ctermfg=Cyan ctermbg=DarkBlue +hi Preproc gui=NONE guifg=#99CCFF guibg=DarkBlue +hi Type term=NONE cterm=NONE ctermfg=Gray ctermbg=DarkBlue +hi Type gui=NONE guifg=#CCCCCC guibg=DarkBlue +hi Identifier term=NONE cterm=NONE ctermfg=Grey ctermbg=DarkBlue +hi Identifier gui=NONE guifg=#CCCCCC guibg=DarkBlue + +hi StatusLine term=bold cterm=bold ctermfg=Black ctermbg=White +hi StatusLine gui=bold guifg=Black guibg=White + +hi StatusLineNC term=NONE cterm=NONE ctermfg=Black ctermbg=White +hi StatusLineNC gui=NONE guifg=Black guibg=White + +hi Visual term=NONE cterm=NONE ctermfg=Black ctermbg=DarkCyan +hi Visual gui=NONE guifg=Black guibg=Gray + +hi Search term=NONE cterm=NONE ctermbg=Gray +hi Search gui=NONE guibg=Gray + +hi VertSplit term=NONE cterm=NONE ctermfg=Black ctermbg=White +hi VertSplit gui=NONE guifg=Black guibg=White + +hi Directory term=NONE cterm=NONE ctermfg=Green ctermbg=DarkBlue +hi Directory gui=NONE guifg=Green guibg=DarkBlue + +hi WarningMsg term=standout cterm=NONE ctermfg=Red ctermbg=DarkBlue +hi WarningMsg gui=standout guifg=Red guibg=DarkBlue + +hi Error term=NONE cterm=NONE ctermfg=White ctermbg=Red +hi Error gui=NONE guifg=White guibg=Red + +hi Cursor ctermfg=Black ctermbg=Yellow +hi Cursor guifg=Black guibg=Yellow + diff --git a/dot_vim/colors/inkpot.vim b/dot_vim/colors/inkpot.vim new file mode 100644 index 0000000..e70d992 --- /dev/null +++ b/dot_vim/colors/inkpot.vim @@ -0,0 +1,138 @@ +" Vim color file +" Name: inkpot.vim +" Maintainer: Ciaran McCreesh +" This should work in the GUI, rxvt-unicode (88 colour mode) and xterm (256 +" colour mode). It won't work in 8/16 colour terminals. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "inkpot" + +" map a urxvt cube number to an xterm-256 cube number +fun! M(a) + return strpart("0135", a:a, 1) + 0 +endfun + +" map a urxvt colour to an xterm-256 colour +fun! X(a) + if &t_Co == 88 + return a:a + else + if a:a == 8 + return 237 + elseif a:a < 16 + return a:a + elseif a:a > 79 + return 232 + (3 * (a:a - 80)) + else + let l:b = a:a - 16 + let l:x = l:b % 4 + let l:y = (l:b / 4) % 4 + let l:z = (l:b / 16) + return 16 + M(l:x) + (6 * M(l:y)) + (36 * M(l:z)) + endif + endif +endfun + +if has("gui_running") + hi Normal gui=NONE guifg=#cfbfad guibg=#1e1e27 + hi IncSearch gui=BOLD guifg=#303030 guibg=#cd8b60 + hi Search gui=NONE guifg=#303030 guibg=#cd8b60 + hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#ff3300 + hi WarningMsg gui=BOLD guifg=#ffffff guibg=#ff6600 + hi ModeMsg gui=BOLD guifg=#7e7eae guibg=NONE + hi MoreMsg gui=BOLD guifg=#7e7eae guibg=NONE + hi Question gui=BOLD guifg=#ffcd00 guibg=NONE + hi StatusLine gui=BOLD guifg=#b9b9b9 guibg=#3e3e5e + hi StatusLineNC gui=NONE guifg=#b9b9b9 guibg=#3e3e5e + hi VertSplit gui=NONE guifg=#b9b9b9 guibg=#3e3e5e + hi WildMenu gui=BOLD guifg=#ffcd00 guibg=#1e1e2e + + hi DiffText gui=NONE guifg=#ffffcd guibg=#00cd00 + hi DiffChange gui=NONE guifg=#ffffcd guibg=#008bff + hi DiffDelete gui=NONE guifg=#ffffcd guibg=#cd0000 + hi DiffAdd gui=NONE guifg=#ffffcd guibg=#00cd00 + + hi Cursor gui=NONE guifg=#404040 guibg=#8b8bff + hi lCursor gui=NONE guifg=#404040 guibg=#8b8bff + hi CursorIM gui=NONE guifg=#404040 guibg=#8b8bff + + hi Folded gui=NONE guifg=#cfcfcd guibg=#4b208f + hi FoldColumn gui=NONE guifg=#8b8bcd guibg=#2e2e2e + + hi Directory gui=NONE guifg=#00ff8b guibg=NONE + hi LineNr gui=NONE guifg=#8b8bcd guibg=#2e2e2e + hi NonText gui=BOLD guifg=#8b8bcd guibg=NONE + hi SpecialKey gui=BOLD guifg=#8b00cd guibg=NONE + hi Title gui=BOLD guifg=#af4f4b guibg=#1e1e27 + hi Visual gui=NONE guifg=#603030 guibg=#edab60 + + hi Comment gui=NONE guifg=#cd8b00 guibg=NONE + hi Constant gui=NONE guifg=#ffcd8b guibg=NONE + hi String gui=NONE guifg=#ffcd8b guibg=#404040 + hi Error gui=NONE guifg=#ffffff guibg=#ff0000 + hi Identifier gui=NONE guifg=#ff8bff guibg=NONE + hi Ignore gui=NONE guifg=#8b8bcd guibg=NONE + hi Number gui=NONE guifg=#506dbd guibg=NONE + hi PreProc gui=NONE guifg=#409090 guibg=NONE + hi Special gui=NONE guifg=#c080d0 guibg=NONE + hi Statement gui=NONE guifg=#808bed guibg=NONE + hi Todo gui=BOLD guifg=#303030 guibg=#c080d0 + hi Type gui=NONE guifg=#ff8bff guibg=NONE + hi Underlined gui=BOLD guifg=#ffffcd guibg=NONE + hi TaglistTagName gui=BOLD guifg=#808bed guibg=NONE + +else + exec "hi Normal cterm=NONE ctermfg=" . X("78") . " ctermbg=" . X(80) . "" + exec "hi IncSearch cterm=BOLD ctermfg=" . X("80") . " ctermbg=" . X(73) . "" + exec "hi Search cterm=NONE ctermfg=" . X("80") . " ctermbg=" . X(73) . "" + exec "hi ErrorMsg cterm=BOLD ctermfg=" . X("79") . " ctermbg=" . X(64) . "" + exec "hi WarningMsg cterm=BOLD ctermfg=" . X("79") . " ctermbg=" . X(68) . "" + exec "hi ModeMsg cterm=BOLD ctermfg=" . X("39") . "" + exec "hi MoreMsg cterm=BOLD ctermfg=" . X("39") . "" + exec "hi Question cterm=BOLD ctermfg=" . X("72") . "" + exec "hi StatusLine cterm=BOLD ctermfg=" . X("84") . " ctermbg=" . X(81) . "" + exec "hi StatusLineNC cterm=NONE ctermfg=" . X("84") . " ctermbg=" . X(81) . "" + exec "hi VertSplit cterm=NONE ctermfg=" . X("84") . " ctermbg=" . X(82) . "" + exec "hi WildMenu cterm=BOLD ctermfg=" . X("72") . " ctermbg=" . X(80) . "" + + exec "hi DiffText cterm=NONE ctermfg=" . X("78") . " ctermbg=" . X(24) . "" + exec "hi DiffChange cterm=NONE ctermfg=" . X("78") . " ctermbg=" . X(23) . "" + exec "hi DiffDelete cterm=NONE ctermfg=" . X("78") . " ctermbg=" . X(48) . "" + exec "hi DiffAdd cterm=NONE ctermfg=" . X("78") . " ctermbg=" . X(24) . "" + + exec "hi Cursor cterm=NONE ctermfg=" . X("8") . " ctermbg=" . X(39) . "" + exec "hi lCursor cterm=NONE ctermfg=" . X("8") . " ctermbg=" . X(39) . "" + exec "hi CursorIM cterm=NONE ctermfg=" . X("8") . " ctermbg=" . X(39) . "" + + exec "hi Folded cterm=NONE ctermfg=" . X("78") . " ctermbg=" . X(35) . "" + exec "hi FoldColumn cterm=NONE ctermfg=" . X("38") . " ctermbg=" . X(80) . "" + + exec "hi Directory cterm=NONE ctermfg=" . X("29") . " ctermbg=NONE" + exec "hi LineNr cterm=NONE ctermfg=" . X("38") . " ctermbg=" . X(80) . "" + exec "hi NonText cterm=BOLD ctermfg=" . X("38") . " ctermbg=NONE" + exec "hi SpecialKey cterm=BOLD ctermfg=" . X("34") . " ctermbg=NONE" + exec "hi Title cterm=BOLD ctermfg=" . X("52") . " ctermbg=" . X(80) . "" + exec "hi Visual cterm=NONE ctermfg=" . X("80") . " ctermbg=" . X(73) . "" + + exec "hi Comment cterm=NONE ctermfg=" . X("52") . " ctermbg=NONE" + exec "hi Constant cterm=NONE ctermfg=" . X("73") . " ctermbg=NONE" + exec "hi String cterm=NONE ctermfg=" . X("73") . " ctermbg=" . X(8) . "" + exec "hi Error cterm=NONE ctermfg=" . X("79") . " ctermbg=" . X(64) . "" + exec "hi Identifier cterm=NONE ctermfg=" . X("71") . " ctermbg=NONE" + exec "hi Ignore cterm=NONE ctermfg=" . X("38") . " ctermbg=NONE" + exec "hi Number cterm=NONE ctermfg=" . X("22") . " ctermbg=NONE" + exec "hi PreProc cterm=NONE ctermfg=" . X("10") . " ctermbg=NONE" + exec "hi Special cterm=NONE ctermfg=" . X("39") . " ctermbg=NONE" + exec "hi Statement cterm=NONE ctermfg=" . X("26") . " ctermbg=NONE" + exec "hi Todo cterm=BOLD ctermfg=" . X("08") . " ctermbg=" . X(39) . "" + exec "hi Type cterm=NONE ctermfg=" . X("71") . " ctermbg=NONE" + exec "hi Underlined cterm=BOLD ctermfg=" . X("78") . " ctermbg=NONE" + exec "hi TaglistTagName cterm=BOLD ctermfg=" . X("26") . " ctermbg=NONE" +endif + +" vim: set et : diff --git a/dot_vim/colors/ironman.vim b/dot_vim/colors/ironman.vim new file mode 100644 index 0000000..c82ce3d --- /dev/null +++ b/dot_vim/colors/ironman.vim @@ -0,0 +1,80 @@ +" Vim color file +" Maintainer: Michael Boehler +" Mail: michael@familie-boehler.de +" Last Change: 2002-09-24 +" Version: 1.3 +" This color scheme uses a light background. +" GUI only + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "ironman" + +hi Normal guifg=#333333 guibg=NONE + +" Search +hi IncSearch gui=NONE guifg=#303040 guibg=#ffff00 +hi Search gui=NONE guifg=#303040 guibg=#ccff00 + +" Messages +hi ErrorMsg gui=NONE guifg=#FF0000 guibg=NONE +hi WarningMsg gui=NONE guifg=#FF6600 guibg=NONE +hi ModeMsg gui=NONE guifg=#0070ff guibg=NONE +hi MoreMsg gui=NONE guifg=#a800ff guibg=NONE +hi Question gui=NONE guifg=#008050 guibg=NONE + +" Split area +hi StatusLine gui=NONE guifg=#fffacd guibg=#DF6A6A +hi StatusLineNC gui=NONE guifg=#fffacd guibg=#b2bbcc +hi VertSplit gui=NONE guifg=#fffacd guibg=#b2bbcc +hi WildMenu gui=NONE guifg=#ffffff guibg=#3399cc + +" Diff +hi DiffText gui=NONE guifg=#f83010 guibg=#ffeae0 +hi DiffChange gui=NONE guifg=#006800 guibg=#d0ffd0 +hi DiffDelete gui=NONE guifg=#2020ff guibg=#c8f2ea +hi DiffAdd gui=NONE guifg=#2020ff guibg=#c8f2ea + +" Cursor +hi Cursor gui=NONE guifg=#ffffff guibg=#DF6A6A +hi lCursor gui=NONE guifg=#f8f8f8 guibg=#8000ff +hi CursorIM gui=NONE guifg=#f8f8f8 guibg=#8000ff + +" Fold +hi Folded gui=NONE guifg=#3399ff guibg=#EAF5FF +hi FoldColumn gui=NONE guifg=#3399ff guibg=#EAF5FF + +" Other +hi Directory gui=NONE guifg=#0000ff guibg=NONE +hi LineNr gui=NONE guifg=#cccccc guibg=NONE +hi NonText gui=NONE guifg=#cccccc guibg=NONE +hi SpecialKey gui=NONE guifg=#66cccc guibg=NONE +hi Title gui=NONE guifg=#004060 guibg=#c8f0f8 +hi Visual gui=NONE guifg=#ffffff guibg=#6889de + +" Syntax group +hi Comment gui=NONE guifg=#ff5050 guibg=#ffebeb +hi Constant gui=NONE guifg=#333333 guibg=#ededed +hi Error gui=BOLD guifg=#ffffff guibg=#ff4080 +hi Identifier gui=NONE guifg=#339933 guibg=NONE +hi Ignore gui=NONE guifg=#f8f8f8 guibg=NONE +hi PreProc gui=NONE guifg=#0070e6 guibg=NONE +hi Special gui=NONE guifg=#0000ff guibg=#ccf7ee +hi Statement gui=NONE guifg=#0000FF guibg=NONE +hi Todo gui=NONE guifg=#ff0070 guibg=#ffe0f4 +hi Type gui=NONE guifg=#eb7950 guibg=NONE +hi Underlined gui=UNDERLINE guifg=#0000ff guibg=NONE + +" HTML +hi htmlLink gui=UNDERLINE guifg=#0000ff guibg=NONE +hi htmlBold gui=BOLD +hi htmlBoldItalic gui=BOLD,ITALIC +hi htmlBoldUnderline gui=BOLD,UNDERLINE +hi htmlBoldUnderlineItalic gui=BOLD,UNDERLINE,ITALIC +hi htmlItalic gui=ITALIC +hi htmlUnderline gui=UNDERLINE +hi htmlUnderlineItalic gui=UNDERLINE,ITALIC diff --git a/dot_vim/colors/jhdark.vim b/dot_vim/colors/jhdark.vim new file mode 100644 index 0000000..22e5494 --- /dev/null +++ b/dot_vim/colors/jhdark.vim @@ -0,0 +1,72 @@ +" Vim color file by Jrn Horstmann +" Light background in GUI, dark background in Console +" Last change 16.07.2004 +" TODO + +set bg=dark + +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "jhdark" + +hi Normal guifg=#999999 guibg=#000000 gui=none ctermfg=gray ctermbg=black cterm=none + +hi ErrorMsg guifg=#ff0000 guibg=bg gui=none ctermfg=red ctermbg=bg cterm=none +hi Visual guifg=bg guibg=#4444aa gui=none ctermfg=bg ctermbg=darkcyan cterm=none +hi VisualNOS guifg=bg guibg=#4444aa gui=none ctermfg=bg ctermbg=darkcyan cterm=none +hi Todo guifg=bg guibg=#aaaa00 gui=none ctermfg=bg ctermbg=yellow cterm=none +"hi Todo guifg=#884400 guibg=bg gui=none ctermfg=bg ctermbg=yellow cterm=none +hi Search guifg=bg guibg=#8888ee gui=none ctermfg=bg ctermbg=blue cterm=none +hi IncSearch guifg=bg guibg=#8888ee gui=none ctermfg=bg ctermbg=blue cterm=none + +hi SpecialKey guifg=#775522 guibg=bg gui=none ctermfg=magenta ctermbg=bg cterm=none +hi Directory guifg=#000088 guibg=bg gui=none ctermfg=blue ctermbg=bg cterm=none +hi WarningMsg guifg=#ff0000 guibg=bg gui=none ctermfg=red ctermbg=bg cterm=none +hi WildMenu guifg=bg guibg=#ffff00 gui=none ctermfg=bg ctermbg=yellow cterm=none +hi ModeMsg guifg=fg guibg=bg gui=none ctermfg=fg ctermbg=bg cterm=none +hi Title guifg=fg guibg=#cccccc gui=none ctermfg=bg ctermbg=fg cterm=none +hi MoreMsg guifg=fg guibg=bg gui=none ctermfg=bg ctermbg=fg cterm=none +hi Question guifg=fg guibg=bg gui=none ctermfg=bg ctermbg=fg cterm=none +hi NonText guifg=#666666 guibg=bg gui=none ctermfg=fg ctermbg=bg cterm=none + +hi StatusLine guifg=#dddddd guibg=#000088 gui=none ctermfg=bg ctermbg=darkblue cterm=none +hi StatusLineNC guifg=#dddddd guibg=#333333 gui=none ctermfg=bg ctermbg=darkgray cterm=none +hi VertSplit guifg=#dddddd guibg=#333333 gui=none ctermfg=bg ctermbg=darkgray cterm=none + +hi Folded guifg=#bb0099 guibg=#222222 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +hi FoldColumn guifg=#bb0099 guibg=#222222 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +hi SignColumn guifg=#bb0099 guibg=#222222 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +hi LineNr guifg=#bb0099 guibg=#222222 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none + +"hi Folded guifg=#dddddd guibg=#666666 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +"hi FoldColumn guifg=#dddddd guibg=#666666 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +"hi SignColumn guifg=#dddddd guibg=#666666 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +"hi LineNr guifg=#dddddd guibg=#666666 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none + +hi DiffChange guifg=bg guibg=#888800 gui=none ctermfg=bg ctermbg=brown cterm=none +hi DiffAdd guifg=bg guibg=#000088 gui=none ctermfg=bg ctermbg=darkblue cterm=none +hi DiffDelete guifg=bg guibg=#880000 gui=none ctermfg=bg ctermbg=darkred cterm=none +hi DiffText guifg=fg guibg=#dd0000 gui=none ctermfg=fg ctermbg=red cterm=none + +hi Cursor guifg=bg guibg=fg gui=none ctermfg=bg ctermbg=fg cterm=none +hi lCursor guifg=bg guibg=fg gui=none ctermfg=bg ctermbg=fg cterm=none + +hi Comment guifg=#008800 guibg=bg gui=none ctermfg=darkgreen ctermbg=bg cterm=none +hi Operator guifg=fg guibg=bg gui=none ctermfg=fg ctermbg=bg cterm=none +hi Constant guifg=#aa0000 guibg=bg gui=none ctermfg=darkred ctermbg=bg cterm=none +hi Special guifg=#997700 guibg=bg gui=none ctermfg=brown ctermbg=bg cterm=none + +hi Identifier guifg=#dddddd guibg=bg gui=none ctermfg=white ctermbg=bg cterm=none + +hi Type guifg=#6666dd guibg=bg gui=none ctermfg=cyan ctermbg=bg cterm=none +hi Statement guifg=#dddddd guibg=bg gui=none ctermfg=white ctermbg=bg cterm=none + +hi PreProc guifg=#008888 guibg=bg gui=none ctermfg=darkcyan ctermbg=bg cterm=none + +hi Error guifg=fg guibg=#ff0000 gui=none ctermfg=bg ctermbg=red cterm=none + +hi Ignore guifg=bg ctermfg=bg +hi Underlined guifg=fg guibg=bg ctermfg=fg ctermbg=bg cterm=underline term=underline gui=underline diff --git a/dot_vim/colors/jhlight.vim b/dot_vim/colors/jhlight.vim new file mode 100644 index 0000000..753232e --- /dev/null +++ b/dot_vim/colors/jhlight.vim @@ -0,0 +1,80 @@ +" Vim color file by Jrn Horstmann +" Light background, works in GUI and cobnsole +" Last change 08.09.2004 +" TODO + +set bg=light + +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "jhlight" + +hi Normal guifg=#000000 guibg=#dddddd gui=none ctermfg=black ctermbg=grey cterm=none + +hi ErrorMsg guifg=#ff0000 guibg=bg gui=none ctermfg=red ctermbg=bg cterm=none +hi Visual guifg=bg guibg=#4444aa gui=none ctermfg=bg ctermbg=darkcyan cterm=none +hi VisualNOS guifg=bg guibg=#4444aa gui=none ctermfg=bg ctermbg=darkcyan cterm=none +hi Todo guifg=fg guibg=#bbbb77 gui=none ctermfg=bg ctermbg=brown cterm=none +"hi Todo guifg=#884400 guibg=bg gui=none ctermfg=bg ctermbg=yellow cterm=none +hi Search guifg=fg guibg=#8888ee gui=none ctermfg=bg ctermbg=blue cterm=none +hi IncSearch guifg=fg guibg=#8888ee gui=none ctermfg=bg ctermbg=blue cterm=none + +hi SpecialKey guifg=#553300 guibg=bg gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +hi Directory guifg=#000088 guibg=bg gui=none ctermfg=blue ctermbg=bg cterm=none +hi WarningMsg guifg=#ff0000 guibg=bg gui=none ctermfg=red ctermbg=bg cterm=none +hi WildMenu guifg=fg guibg=#ffff00 gui=none ctermfg=bg ctermbg=brown cterm=none +hi ModeMsg guifg=fg guibg=bg gui=none ctermfg=fg ctermbg=bg cterm=none +hi Title guifg=#000088 guibg=#cccccc gui=none ctermfg=fg ctermbg=bg cterm=none +hi MoreMsg guifg=#000088 guibg=bg gui=none ctermfg=fg ctermbg=bg cterm=none +hi Question guifg=#000088 guibg=bg gui=none ctermfg=fg ctermbg=bg cterm=none +hi NonText guifg=#444444 guibg=bg gui=none ctermfg=fg ctermbg=bg cterm=none + +hi StatusLine guifg=#dddddd guibg=#000088 gui=none ctermfg=white ctermbg=darkblue cterm=none +hi StatusLineNC guifg=#dddddd guibg=#333333 gui=none ctermfg=grey ctermbg=black cterm=none +hi VertSplit guifg=#dddddd guibg=#333333 gui=none ctermfg=white ctermbg=black cterm=none + +hi Folded guifg=#005500 guibg=#999999 gui=none ctermfg=darkgreen ctermbg=darkgray cterm=none +hi FoldColumn guifg=#005500 guibg=#999999 gui=none ctermfg=darkgreen ctermbg=darkgray cterm=none +hi SignColumn guifg=#005500 guibg=#999999 gui=none ctermfg=darkgreen ctermbg=darkgray cterm=none +hi LineNr guifg=#005500 guibg=#999999 gui=none ctermfg=darkgreen ctermbg=darkgray cterm=none + +"hi Folded guifg=#dddddd guibg=#666666 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +"hi FoldColumn guifg=#dddddd guibg=#666666 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +"hi SignColumn guifg=#dddddd guibg=#666666 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +"hi LineNr guifg=#dddddd guibg=#666666 gui=none ctermfg=darkmagenta ctermbg=bg cterm=none + +hi DiffChange guifg=bg guibg=#888800 gui=none ctermfg=bg ctermbg=brown cterm=none +hi DiffAdd guifg=bg guibg=#000088 gui=none ctermfg=bg ctermbg=darkblue cterm=none +hi DiffDelete guifg=bg guibg=#880000 gui=none ctermfg=bg ctermbg=darkred cterm=none +hi DiffText guifg=fg guibg=#dd0000 gui=none ctermfg=fg ctermbg=red cterm=none + +hi Cursor guifg=bg guibg=fg gui=none ctermfg=bg ctermbg=fg cterm=none +hi lCursor guifg=bg guibg=fg gui=none ctermfg=bg ctermbg=fg cterm=none + +hi Comment guifg=#005500 guibg=bg gui=none ctermfg=darkgreen ctermbg=bg cterm=none +hi Operator guifg=fg guibg=bg gui=none ctermfg=fg ctermbg=bg cterm=none +hi Constant guifg=#880000 guibg=bg gui=none ctermfg=darkred ctermbg=bg cterm=none +hi Special guifg=#553300 guibg=bg gui=none ctermfg=brown ctermbg=bg cterm=none + +hi Identifier guifg=#000088 guibg=bg gui=none ctermfg=darkblue ctermbg=bg cterm=none +"hi Function guifg=#000044 gui=none + +"hi Keyword guifg=#000088 gui=none + +if exists("g:jh_hi_use_bold") + hi Type guifg=#660044 guibg=bg gui=bold ctermfg=darkmagenta ctermbg=bg cterm=none + hi Statement guifg=#440066 guibg=bg gui=bold ctermfg=darkmagenta ctermbg=bg cterm=none +else + hi Type guifg=#660044 guibg=bg gui=none ctermfg=darkmagenta ctermbg=bg cterm=none + hi Statement guifg=#440066 guibg=bg gui=none ctermfg=darkmagenta ctermbg=bg cterm=none +endif + +hi PreProc guifg=#004466 guibg=bg gui=none ctermfg=darkcyan ctermbg=bg cterm=none + +hi Error guifg=fg guibg=#880000 gui=none ctermfg=bg ctermbg=red cterm=none + +hi Ignore guifg=bg ctermfg=bg +hi Underlined guifg=fg guibg=bg ctermfg=fg ctermbg=bg cterm=underline term=underline gui=underline diff --git a/dot_vim/colors/less.vim b/dot_vim/colors/less.vim new file mode 100644 index 0000000..c874913 --- /dev/null +++ b/dot_vim/colors/less.vim @@ -0,0 +1,54 @@ +" vim color file +" Maintainer: Brian Nelson +" Last Change: $Revision: 1.1 $ $Date: 2003/12/15 17:25:08 $ +" +" Less is More - A minimal color scheme. +" Disigned to work equally well on 8 or 16 colors, terminal or gui. + +hi clear +set background=dark +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "less" + +hi Normal term=none ctermfg=7 ctermbg=0 gui=none guifg=LightGray guibg=black +hi Directory term=bold cterm=bold ctermfg=blue guifg=Blue +hi Search term=reverse ctermfg=white ctermbg=blue guifg=white guibg=Blue +hi MoreMsg term=bold cterm=bold ctermfg=darkgreen gui=bold guifg=DarkGreen +hi ModeMsg term=bold cterm=bold gui=bold guifg=White guibg=Blue +hi LineNr term=underline cterm=bold ctermfg=darkcyan guifg=DarkCyan +hi Question term=standout cterm=bold ctermfg=darkgreen gui=bold guifg=DarkGreen +hi Comment term=bold cterm=bold ctermfg=0 gui=none guifg=DarkGray +hi Constant term=bold cterm=none ctermfg=7 gui=none guifg=LightGray +hi Special term=bold cterm=none ctermfg=3 gui=none guifg=Orange +hi Identifier term=none cterm=none ctermfg=7 gui=none guifg=LightGray +hi PreProc term=underline cterm=bold ctermfg=7 gui=bold guifg=White +hi Error term=reverse cterm=bold ctermfg=7 ctermbg=1 gui=bold guifg=Black guibg=Red +hi Todo term=standout cterm=none ctermfg=0 ctermbg=7 guifg=Black guibg=White +hi String term=none cterm=none ctermfg=3 gui=none guifg=LightYellow +hi Function term=bold cterm=bold ctermfg=3 gui=none guifg=Yellow +hi Statement term=bold cterm=bold ctermfg=7 gui=bold guifg=White +hi Include term=bold cterm=bold ctermfg=4 gui=none guifg=LightBlue +hi StorageClass term=bold cterm=bold ctermfg=5 gui=none guifg=LightMagenta +hi Type term=none cterm=none ctermfg=7 gui=none guifg=LightGray +hi Defined term=bold cterm=bold ctermfg=6 gui=none guifg=LightCyan +hi link Character String +hi link Number Constant +hi link Boolean Constant +hi link Float Number +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 Macro Include +hi link PreCondit PreProc +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 diff --git a/dot_vim/colors/lilac.vim b/dot_vim/colors/lilac.vim new file mode 100644 index 0000000..ef825fa --- /dev/null +++ b/dot_vim/colors/lilac.vim @@ -0,0 +1,75 @@ +" GUI-only vim color file +" Author: Christian MICHON +" Version: 1.0 +" Last Change: 10 Oct 2002 + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "lilac" + +hi Boolean guifg=#00f080 guibg=#503040 gui=none +hi Character guifg=#00f080 guibg=#503040 gui=none +hi Comment guifg=#c0c0c0 guibg=#503040 gui=underline +hi Conditional guifg=#60d0d0 guibg=#503040 gui=bold +hi Constant guifg=#00f080 guibg=#503040 gui=none +hi Cursor guifg=#000000 guibg=#f0f000 gui=none +hi Debug guifg=#b0d0f0 guibg=#503040 gui=none +hi Define guifg=#f0f000 guibg=#503040 gui=none +hi Delimiter guifg=#b0d0f0 guibg=#503040 gui=none +hi DiffAdd guifg=#f0f000 guibg=#805070 gui=bold +hi DiffChange guifg=#f0f0f0 guibg=#805070 gui=none +hi DiffDelete guifg=#503040 guibg=#805070 gui=none +hi DiffText guifg=#000000 guibg=#f0f000 gui=bold +hi Directory guifg=#f0f000 guibg=#503040 gui=underline +hi Error guifg=#000000 guibg=#b0d0f0 gui=bold +hi ErrorMsg guifg=#000000 guibg=#b0d0f0 gui=bold +hi Exception guifg=#60d0d0 guibg=#503040 gui=bold +hi Float guifg=#00f080 guibg=#503040 gui=none +hi FoldColumn guifg=#b0d0f0 guibg=#805070 gui=bold +hi Folded guifg=#b0d0f0 guibg=#805070 gui=bold +hi Function guifg=#f0a070 guibg=#503040 gui=none +hi Identifier guifg=#f0a070 guibg=#503040 gui=none +hi Ignore guifg=#503040 guibg=#503040 gui=none +hi Include guifg=#f0f000 guibg=#503040 gui=none +hi IncSearch guifg=#000000 guibg=#b0d0f0 gui=bold +hi Keyword guifg=#60d0d0 guibg=#503040 gui=bold +hi Label guifg=#60d0d0 guibg=#503040 gui=bold +hi lCursor guifg=#f0f0f0 guibg=#503040 gui=none +hi LineNr guifg=#c0c0c0 guibg=#805070 gui=bold +hi Macro guifg=#f0f000 guibg=#503040 gui=none +hi ModeMsg guifg=#f0f0f0 guibg=#503040 gui=bold +hi MoreMsg guifg=#f070a0 guibg=#503040 gui=bold +hi NonText guifg=#c0c0c0 guibg=#503040 gui=bold +hi Normal guifg=#f0f0f0 guibg=#503040 gui=none +hi Number guifg=#00f080 guibg=#503040 gui=none +hi Operator guifg=#60d0d0 guibg=#503040 gui=bold +hi PreCondit guifg=#f0f000 guibg=#503040 gui=none +hi PreProc guifg=#f0f000 guibg=#503040 gui=none +hi Question guifg=#f070a0 guibg=#503040 gui=bold +hi Repeat guifg=#60d0d0 guibg=#503040 gui=bold +hi Search guifg=#000000 guibg=#b0d0f0 gui=bold +hi Special guifg=#b0d0f0 guibg=#503040 gui=none +hi SpecialChar guifg=#b0d0f0 guibg=#503040 gui=none +hi SpecialComment guifg=#b0d0f0 guibg=#503040 gui=none +hi SpecialKey guifg=#f0f000 guibg=#503040 gui=none +hi Statement guifg=#60d0d0 guibg=#503040 gui=bold +hi StatusLine guifg=#000000 guibg=#f0f0f0 gui=bold +hi StatusLineNC guifg=#c0c0c0 guibg=#805070 gui=bold +hi StorageClass guifg=#f070a0 guibg=#503040 gui=bold +hi String guifg=#00f080 guibg=#503040 gui=none +hi Structure guifg=#f070a0 guibg=#503040 gui=bold +hi Tag guifg=#b0d0f0 guibg=#503040 gui=none +hi Title guifg=#00f080 guibg=#503040 gui=bold +hi Todo guifg=#f0f000 guibg=#0000f0 gui=none +hi Type guifg=#f070a0 guibg=#503040 gui=bold +hi Typedef guifg=#f070a0 guibg=#503040 gui=bold +hi Underlined guifg=#b0d0f0 guibg=#503040 gui=underline +hi VertSplit guifg=#000000 guibg=#b0d0f0 gui=bold +hi Visual guifg=#000000 guibg=#b0d0f0 gui=underline +hi VisualNOS guifg=#f0f0f0 guibg=#503040 gui=underline +hi WarningMsg guifg=#000000 guibg=#b0d0f0 gui=bold +hi WildMenu guifg=#f0f0f0 guibg=#0000f0 gui=none diff --git a/dot_vim/colors/lingodirector.vim b/dot_vim/colors/lingodirector.vim new file mode 100644 index 0000000..57f2b3c --- /dev/null +++ b/dot_vim/colors/lingodirector.vim @@ -0,0 +1,44 @@ +" Vim color file +" Maintainer: Thomas Schmall +" Last Change: 2004 June 16 +" Version:1.0 +" URL: http://www.oxpal.com/index.php?o=dev_vim&lan=en +" +" Note: you can type :set number! to activate or deactivate the line numbering, wich also +" looks similar to Director + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="lingodirector" + +hi Normal guifg=black guibg=white ctermfg=Black ctermbg=white +hi Title guifg=black guibg=white ctermfg=Black ctermbg=white gui=BOLD +hi lCursor guibg=Cyan guifg=NONE + +hi LineNr guifg=white guibg=#8c9bfa + + + +" syntax highlighting groups +hi Comment ctermfg=Red guifg=#c80000 gui=NONE +hi Operator term=None cterm=None gui=None + +hi Identifier ctermfg=Green guifg=#008000 gui=NONE + +hi Statement ctermfg=Blue guifg=#0000c8 gui=NONE +hi TypeDef ctermfg=Blue guifg=#0000c8 gui=NONE +hi Type ctermfg=Blue guifg=#0000c8 gui=NONE +hi Boolean ctermfg=Blue guifg=#0000c8 gui=NONE + +hi String ctermfg=Gray guifg=#808080 gui=NONE +hi Number ctermfg=Gray guifg=#808080 gui=NONE +hi Constant ctermfg=Gray guifg=#808080 gui=NONE + +hi Function ctermfg=Green guifg=#008040 gui=NONE +hi PreProc ctermfg=Green guifg=#008040 gui=NONE +hi Keyword ctermfg=Green guifg=#008040 gui=NONE + +"set number diff --git a/dot_vim/colors/manxome.vim b/dot_vim/colors/manxome.vim new file mode 100644 index 0000000..0db38ea --- /dev/null +++ b/dot_vim/colors/manxome.vim @@ -0,0 +1,47 @@ +""" local syntax file - set colors on a per-machine basis: +""" Vim color file +""" Title: Manxome Foes Color Scheme +""" Maintainer: Ricardo SIGNES +""" This Version: R2v2 [2003-07-16] +""" suggested vim editing options: tw=0 ts=4 sw=4 + +"" clear and re-initialize global variables +hi clear +set background=dark +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "manxome" + +"" set highlight groups +"" you'll notice that the ctermbg is often 'none'; this is so that when +"" console vim runs in a terminal, transparency (if any) is not broken + +highlight Title ctermfg=3 ctermbg=none cterm=bold guifg=#ffff00 guibg=#000000 gui=none +highlight Directory ctermfg=4 ctermbg=none cterm=bold guifg=#0000ff guibg=#000000 gui=none +highlight StatusLine ctermfg=7 ctermbg=4 cterm=bold guifg=#ffffff guibg=#0000ff gui=none +highlight StatusLineNC ctermfg=0 ctermbg=4 cterm=bold guifg=#000000 guibg=#0000ff gui=none +highlight Normal ctermfg=7 ctermbg=none cterm=none guifg=#cccccc guibg=#000000 gui=none +highlight Search ctermfg=7 ctermbg=4 cterm=bold guifg=#ffffff guibg=#0000ff gui=none +highlight Visual ctermfg=7 ctermbg=6 cterm=bold guifg=#ffffff guibg=#00aaaa gui=none + +"" set major preferred groups + +highlight Comment ctermfg=2 ctermbg=none cterm=bold guifg=#00ff00 guibg=#000000 gui=none +highlight Constant ctermfg=6 ctermbg=none cterm=bold guifg=#00ffff guibg=#000000 gui=none +highlight Identifier ctermfg=4 ctermbg=none cterm=bold guifg=#0000ee guibg=#000000 gui=none +highlight Statement ctermfg=6 ctermbg=none cterm=none guifg=#00aaaa guibg=#000000 gui=none +highlight PreProc ctermfg=7 ctermbg=none cterm=bold guifg=#ffffff guibg=#000000 gui=none +highlight Type ctermfg=6 ctermbg=none cterm=none guifg=#00aaaa guibg=#000000 gui=none +highlight Special ctermfg=7 ctermbg=none cterm=bold guifg=#ffffff guibg=#000000 gui=none +highlight Underlined ctermfg=2 ctermbg=none cterm=none guifg=#00aa00 guibg=#000000 gui=none +highlight Ignore ctermfg=0 ctermbg=none cterm=bold guifg=#aaaaaa guibg=#000000 gui=none +highlight Error ctermfg=1 ctermbg=none cterm=bold guibg=#ff0000 guibg=#000000 gui=none +highlight Todo ctermfg=3 ctermbg=none cterm=none guifg=#aaaa00 guibg=#000000 gui=none + +" set syntax-specific groups +" I'd like to avoid using these, but the default settings for these two are +" just no good. Seeing italic text in Vim is just plain wrong. + +highlight htmlBold ctermfg=7 ctermbg=none cterm=bold guifg=#ffffff guibg=#000000 gui=none +highlight htmlItalic ctermfg=5 ctermbg=none cterm=bold guifg=#ff00ff guibg=#000000 gui=none diff --git a/dot_vim/colors/mars.vim b/dot_vim/colors/mars.vim new file mode 100644 index 0000000..408ae79 --- /dev/null +++ b/dot_vim/colors/mars.vim @@ -0,0 +1,142 @@ +" Maintainer: Tim Aldrich +" Last Change: 19 November 2003 + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="mars" +" GUI colors {{{ +"hi Normal guifg=#FFFFFF guibg=#961E00 +hi Normal guifg=#FFFFFF guibg=#961E00 +hi Cursor guifg=#A0963C guibg=#FFFFFF +hi CursorIM guifg=#6699CC guibg=#99CCCC +hi Directory guifg=#B45000 guibg=#961E00 +hi DiffAdd guifg=#FFFFCC guibg=#961E00 +hi DiffChange guifg=#FF9900 guibg=#961E00 +hi DiffDelete guifg=#999999 guibg=#961E00 +hi DiffText guifg=#FFFFFF guibg=#961E00 +hi ErrorMsg guifg=#FFFFFF guibg=#FF0000 +hi VertSplit guifg=#FFFFFF guibg=#961E00 +hi Folded guifg=#999999 guibg=#BE1E00 gui=italic +hi FoldColumn guifg=#CC0000 guibg=#999999 +hi IncSearch guifg=#FFFF00 guibg=#961E00 +hi LineNr guifg=#999999 guibg=#BE1E00 +hi ModeMsg guifg=#FFFFFF guibg=#961E00 +hi MoreMsg guifg=#FFFFFF guibg=#961E00 +hi NonText guifg=#FFFFFF guibg=#A0141E +hi Question guifg=#FFFFFF guibg=#EE0000 +hi Search guifg=#A0142B guibg=#FFFF00 gui=underline +hi SpecialKey guifg=#FFFF00 guibg=#961E00 +hi StatusLine guifg=#FFFFFF guibg=#961E00 +hi StatusLineNC guifg=#CCCCCC guibg=#961E00 +hi Title guifg=#FFFFFF guibg=#FF9900 +hi Visual guifg=#B45000 guibg=#961E00 +hi WarningMsg guifg=#FF0000 guibg=#FFFFFF +hi WildMenu guifg=#961E00 guibg=#999999 +" }}} + +" cterm colors {{{ +hi Normal ctermfg=white ctermbg=darkblue +hi Cursor ctermfg=darkblue ctermbg=white +hi CursorIM ctermfg=lightcyan ctermbg=lightcyan +hi Directory ctermfg=lightblue ctermbg=lightcyan +hi DiffAdd ctermfg=LightYellow ctermbg=darkblue +hi DiffChange ctermfg=darkred ctermbg=darkblue +hi DiffDelete ctermfg=grey ctermbg=darkblue +hi DiffText ctermfg=white ctermbg=darkblue +hi ErrorMsg ctermfg=red ctermbg=lightcyan +hi VertSplit ctermfg=white ctermbg=darkblue +hi Folded ctermfg=grey ctermbg=darkblue +hi FoldColumn ctermfg=darkred ctermbg=lightcyan +hi IncSearch ctermfg=yellow ctermbg=darkblue +hi LineNr ctermfg=lightyellow ctermbg=darkblue +hi ModeMsg ctermfg=white ctermbg=darkblue +hi MoreMsg ctermfg=white ctermbg=darkblue +hi NonText ctermfg=white ctermbg=lightblue +hi Question ctermfg=white ctermbg=darkblue +hi Search ctermfg=darkred ctermbg=lightcyan +hi SpecialKey ctermfg=yellow ctermbg=darkblue +hi StatusLine ctermfg=white ctermbg=darkblue +hi StatusLineNC ctermfg=lightgrey ctermbg=darkblue +hi Title ctermfg=white ctermbg=yellow +hi Visual ctermfg=lightblue ctermbg=cyan +hi WarningMsg ctermfg=red ctermbg=white +hi WildMenu ctermfg=darkblue ctermbg=grey +" }}} + +" GUI hilight groups {{{ + +hi Comment guifg=#999999 +hi Constant guifg=#FFFF00 +hi String guifg=#CCCC99 +hi Character guifg=#A0963C +hi Number guifg=#A0963C +hi Boolean guifg=#A0963C +hi Float guifg=#A0963C +hi Identifier guifg=#E6fA46 +hi Function guifg=#E6fA46 +hi Statement guifg=#FFFFCC +hi Conditional guifg=#FFFFCC +hi Repeat guifg=#FFFFCC +hi Label guifg=#E66E46 +hi Operator guifg=#FFFF00 +hi Keyword guifg=#FFFF00 +hi Exception guifg=#FFFFAA +hi PreProc guifg=#C8783C +hi Include guifg=#C8783C +hi Define guifg=#C8783C +hi Macro guifg=#C8783C +hi PreCondit guifg=#C8783C +hi Type guifg=#E6641E +hi StorageClass guifg=#E66E46 +hi Structure guifg=#E66E46 +hi Typedef guifg=#E66E46 +hi Special guifg=#00FF00 +hi SpecialChar guifg=#00FF00 +hi Tag guifg=#CCCCFF +hi Delimiter guifg=#CCCCFF +hi SpecialComment guifg=#FFFFCC +hi Debug guifg=#CC3300 +hi Ignore guifg=#961E00 +hi Error guifg=#FF0000 guibg=#FFFFFF +hi Todo guifg=#FFFF00 guibg=#961E00 +" }}} + +" cterm hilight groups {{{ +hi Comment ctermfg=grey +hi Constant ctermfg=lightgreen +hi String ctermfg=brown +hi Character ctermfg=lightgreen +hi Number ctermfg=lightgreen +hi Boolean ctermfg=lightgreen +hi Float ctermfg=lightgreen +hi Identifier ctermfg=lightcyan +hi Function ctermfg=lightcyan +hi Statement ctermfg=lightyellow +hi Conditional ctermfg=lightyellow +hi Repeat ctermfg=lightyellow +hi Label ctermfg=lightcyan +hi Operator ctermfg=yellow +hi Keyword ctermfg=yellow +hi Exception ctermfg=yellow +hi PreProc ctermfg=darkcyan +hi Include ctermfg=darkcyan +hi Define ctermfg=darkcyan +hi Macro ctermfg=darkcyan +hi PreCondit ctermfg=darkcyan +hi Type ctermfg=lightcyan +hi StorageClass ctermfg=lightcyan +hi Structure ctermfg=lightcyan +hi Typedef ctermfg=lightcyan +hi Special ctermfg=green +hi SpecialChar ctermfg=green +hi Tag ctermfg=brown +hi Delimiter ctermfg=brown +hi SpecialComment ctermfg=lightyellow +hi Debug ctermfg=magenta +hi Ignore ctermfg=lightblue +hi Error ctermfg=red ctermbg=white +hi Todo ctermfg=grey ctermbg=white +" }}} diff --git a/dot_vim/colors/matrix.vim b/dot_vim/colors/matrix.vim new file mode 100644 index 0000000..da5c687 --- /dev/null +++ b/dot_vim/colors/matrix.vim @@ -0,0 +1,80 @@ +" vim:set ts=8 sts=2 sw=2 tw=0: +" +" matrix.vim - MATRIX like colorscheme. +" +" Maintainer: MURAOKA Taro +" Last Change: 10-Jun-2003. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = 'matrix' + +" the character under the cursor +hi Cursor guifg=#226622 guibg=#55ff55 +hi lCursor guifg=#226622 guibg=#55ff55 +" like Cursor, but used when in IME mode |CursorIM| +hi CursorIM guifg=#226622 guibg=#55ff55 +" directory names (and other special names in listings) +hi Directory guifg=#55ff55 guibg=#000000 +" diff mode: Added line |diff.txt| +hi DiffAdd guifg=#55ff55 guibg=#226622 gui=none +" diff mode: Changed line |diff.txt| +hi DiffChange guifg=#55ff55 guibg=#226622 gui=none +" diff mode: Deleted line |diff.txt| +hi DiffDelete guifg=#113311 guibg=#113311 gui=none +" diff mode: Changed text within a changed line |diff.txt| +hi DiffText guifg=#55ff55 guibg=#339933 gui=bold +" error messages on the command line +hi ErrorMsg guifg=#55ff55 guibg=#339933 +" the column separating vertically split windows +hi VertSplit guifg=#339933 guibg=#339933 +" line used for closed folds +hi Folded guifg=#44cc44 guibg=#113311 +" 'foldcolumn' +hi FoldColumn guifg=#44cc44 guibg=#226622 +" 'incsearch' highlighting; also used for the text replaced with +hi IncSearch guifg=#226622 guibg=#55ff55 gui=none +" line number for ":number" and ":#" commands, and when 'number' +hi LineNr guifg=#44cc44 guibg=#000000 +" 'showmode' message (e.g., "-- INSERT --") +hi ModeMsg guifg=#44cc44 guibg=#000000 +" |more-prompt| +hi MoreMsg guifg=#44cc44 guibg=#000000 +" '~' and '@' at the end of the window, characters from +hi NonText guifg=#44cc44 guibg=#113311 +" normal text +hi Normal guifg=#44cc44 guibg=#000000 +" |hit-enter| prompt and yes/no questions +hi Question guifg=#44cc44 guibg=#000000 +" Last search pattern highlighting (see 'hlsearch'). +hi Search guifg=#113311 guibg=#44cc44 gui=none +" Meta and special keys listed with ":map", also for text used +hi SpecialKey guifg=#44cc44 guibg=#000000 +" status line of current window +hi StatusLine guifg=#55ff55 guibg=#339933 gui=none +" status lines of not-current windows +hi StatusLineNC guifg=#113311 guibg=#339933 gui=none +" titles for output from ":set all", ":autocmd" etc. +hi Title guifg=#55ff55 guibg=#113311 gui=bold +" Visual mode selection +hi Visual guifg=#55ff55 guibg=#339933 gui=none +" Visual mode selection when vim is "Not Owning the Selection". +hi VisualNOS guifg=#44cc44 guibg=#000000 +" warning messages +hi WarningMsg guifg=#55ff55 guibg=#000000 +" current match in 'wildmenu' completion +hi WildMenu guifg=#226622 guibg=#55ff55 + +hi Comment guifg=#226622 guibg=#000000 +hi Constant guifg=#55ff55 guibg=#226622 +hi Special guifg=#44cc44 guibg=#226622 +hi Identifier guifg=#55ff55 guibg=#000000 +hi Statement guifg=#55ff55 guibg=#000000 gui=bold +hi PreProc guifg=#339933 guibg=#000000 +hi Type guifg=#55ff55 guibg=#000000 gui=bold +hi Underlined guifg=#55ff55 guibg=#000000 gui=underline +hi Error guifg=#55ff55 guibg=#339933 +hi Todo guifg=#113311 guibg=#44cc44 gui=none diff --git a/dot_vim/colors/metacosm.vim b/dot_vim/colors/metacosm.vim new file mode 100644 index 0000000..e5eaa5f --- /dev/null +++ b/dot_vim/colors/metacosm.vim @@ -0,0 +1,132 @@ +" Vim color file +" Maintainer: Robert Melton ( vim at metacosm dot dhs dot org ) +" Last Change: 2004 June 19th + + +" ----------------------------------------------------------------------------- +" This color scheme uses a dark grey background. +" This theme, based on evening (with some input from Torte) is designed to +" seperate active text (code) from background/line numbers/folds/listchars by +" having different background colors on the non-code and the code (just +" slightly). If you look at the screenshot below, you will get the idea. +" All non-code(include indents) and string literals have a black background +" while code has a very dark grey background. +" ----------------------------------------------------------------------------- +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "metacosm" + + +" ----------------------------------------------------------------------------- +" Primary (hyper/selected/colored background) +" ----------------------------------------------------------------------------- +" Search +hi IncSearch guibg=black guifg=cyan +hi Search guibg=black guifg=cyan + +" Visual +hi Visual guibg=black guifg=yellow +hi VisualNOS guibg=black guifg=yellow gui=underline + +" Borders +hi StatusLine guibg=black guifg=white +hi StatusLineNC guibg=grey22 guifg=grey45 +hi VertSplit guibg=black guifg=grey45 + +" Cursors +hi Cursor guibg=white guifg=black +hi lCursor guibg=white guifg=black + +" Diff +hi DiffText guibg=red guifg=white gui=bold +hi DiffAdd guibg=darkblue guifg=white +hi DiffChange guibg=darkmagenta guifg=white +hi DiffDelete guibg=darkcyan guifg=blue gui=bold + +" Misc +hi Title guifg=magenta gui=bold +hi Question guibg=black guifg=green gui=bold +hi Todo guibg=black guifg=cyan +hi Error guibg=red guifg=white +hi WildMenu guibg=cyan guifg=black + + +" ----------------------------------------------------------------------------- +" Primary (active/code/text/grey background) +" ----------------------------------------------------------------------------- +" Normal +hi Normal guibg=grey22 guifg=white + +" Constants +hi Constant guibg=grey22 guifg=#ffa0a0 +hi String guibg=grey22 guifg=#ffa0a0 +hi Character guibg=grey22 guifg=#ffa0a0 +hi Number guibg=grey22 guifg=#ffa0a0 +hi Boolean guibg=grey22 guifg=#ffa0a0 +hi Float guibg=grey22 guifg=#ffa0a0 + +" Identifier +hi Identifier guibg=grey22 guifg=#40ffff +hi Function guibg=grey22 guifg=#40ffff + +" Statement +hi Statement guibg=grey22 guifg=#ffff60 +hi Conditional guibg=grey22 guifg=#ffff60 +hi Repeat guibg=grey22 guifg=#ffff60 +hi Label guibg=grey22 guifg=#ffff60 +hi Operator guibg=grey22 guifg=#ffff60 +hi Keyword guibg=grey22 guifg=#ffff60 +hi Exception guibg=grey22 guifg=#ffff60 + +" PreProc +hi PreProc guibg=grey22 guifg=#ff80ff +hi Include guibg=grey22 guifg=#ff80ff +hi Define guibg=grey22 guifg=#ff80ff +hi Macro guibg=grey22 guifg=#ff80ff +hi PreCondit guibg=grey22 guifg=#ff80ff + +" Type +hi Type guibg=grey22 guifg=#60ff60 +hi StorageClass guibg=grey22 guifg=#60ff60 +hi Structure guibg=grey22 guifg=#60ff60 +hi Typedef guibg=grey22 guifg=#60ff60 + +" Special +hi Special guibg=grey22 guifg=orange +hi SpecialChar guibg=grey22 guifg=orange +hi Tag guibg=grey22 guifg=orange +hi Delimiter guibg=grey22 guifg=orange +hi Debug guibg=grey22 guifg=orange + +" Misc +hi Underlined guibg=grey22 guifg=#ffff60 gui=underline + + +" ----------------------------------------------------------------------------- +" Secondary (inactive/black background) +" ----------------------------------------------------------------------------- +" Comments +hi Comment guibg=black guifg=#80a0ff +hi SpecialComment guibg=black guifg=#80a0ff gui=underline + +" Messages +hi ModeMsg guibg=black guifg=white gui=bold +hi MoreMsg guibg=black guifg=seagreen gui=bold +hi WarningMsg guibg=black guifg=blue gui=bold +hi ErrorMsg guibg=black guifg=red gui=bold + +" Folding +hi Folded guibg=black guifg=grey45 +hi FoldColumn guibg=black guifg=grey45 + +" Misc +hi Ignore guibg=black guifg=grey45 +hi NonText guibg=black guifg=grey45 +hi LineNr guibg=black guifg=grey45 +hi SpecialKey guibg=black guifg=grey45 +hi SignColumn guibg=black guifg=grey45 +hi Directory guibg=black guifg=cyan diff --git a/dot_vim/colors/midnight.vim b/dot_vim/colors/midnight.vim new file mode 100644 index 0000000..5fab610 --- /dev/null +++ b/dot_vim/colors/midnight.vim @@ -0,0 +1,80 @@ +" Vim color file +" Maintainer: Michael Brailsford +" Date: $Date: 2002/04/11 03:29:51 $ +" Version: $Revision: 1.4 $ + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +" your pick: +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="midnight" + +hi Normal guifg=lightsteelblue guibg=#00006f ctermfg=14 + +"Toggle semicolon matching at the end of lines +nmap ; :call ToggleSemicolonHighlighting() +"{{{ +function! ToggleSemicolonHighlighting() + if exists("b:semicolon") + unlet b:semicolon + hi semicolon guifg=NONE gui=NONE ctermfg=NONE + else + syn match semicolon #;$# + hi semicolon guifg=red gui=bold ctermfg=1 + let b:semicolon = 1 + endif +endfunction +"}}} + +hi Cursor guifg=bg guibg=fg ctermfg=0 ctermbg=11 +"hi CursorIM +hi Directory gui=bold +hi DiffAdd guifg=yellow guibg=darkgreen ctermbg=0 +"hi DiffChange +"hi DiffDelete +"hi DiffText +hi ErrorMsg guibg=red ctermfg=1 +"hi VertSplit +hi Folded guibg=#000047 ctermbg=4 guifg=yellow ctermfg=11 gui=bold +hi FoldColumn guibg=steelblue3 ctermbg=14 guifg=darkblue ctermfg=11 gui=bold +"hi IncSearch +hi LineNr guifg=yellow ctermfg=11 +hi ModeMsg guifg=yellow gui=bold +"hi MoreMsg +"hi NonText +"hi Question +hi Search guibg=yellow guifg=bg +"hi SpecialKey +hi StatusLine guifg=steelblue1 +hi StatusLineNC guifg=steelblue3 +"hi Title +hi Visual guifg=fg guibg=bg +"hi VisualNOS +"hi WarningMsg +"hi WildMenu +"hi Menu +"hi Scrollbar +"hi Tooltip + +" syntax highlighting groups +hi Comment guifg=green ctermfg=10 +hi Constant guifg=lightmagenta gui=bold ctermfg=13 +hi String guifg=indianred1 ctermfg=5 +hi Character guifg=violet ctermfg=5 +hi Number guifg=turquoise1 ctermfg=5 +"hi Identifier +hi Statement guifg=khaki1 gui=bold ctermfg=15 cterm=underline +hi PreProc guifg=firebrick1 gui=italic ctermfg=9 +hi Type guifg=gold gui=bold ctermfg=3 +"hi Special +"hi Underlined +"hi Ignore +"hi Error +hi Todo guifg=yellow guibg=blue gui=bold diff --git a/dot_vim/colors/midnight2.vim b/dot_vim/colors/midnight2.vim new file mode 100644 index 0000000..da99d00 --- /dev/null +++ b/dot_vim/colors/midnight2.vim @@ -0,0 +1,86 @@ +" Vim color file +" Maintainer: Michael Brailsford +" Date: $Date: 2002/04/11 03:29:51 $ +" Version: $Revision: 1.4 $ +" Inspiration: This colorscheme was inspired by midnight.vim. It is a darker +" version of it. With some colors tweaked. +" Thanks: Thanks go to Hans Fugal for creating the colorscheme template. +" Without it I would have been lost creating the original midnight.vim +" Note: If you do not like the dark look of the colorscheme, you can +" easily lighten things up with the following line: +" :%s/\(\w\)3/\12/g +" It is easily pasteable into the command line. you can also +" change "\12" to "\11", "\1" or "\14" (if you want things even +" darker). If you do use the "\14" replacement, then it looks +" like your monitor in a fog bank. :) + +" your pick: +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="midnight2" + +hi Normal guifg=slategray3 guibg=#000029 ctermfg=14 + +"Toggle semicolon matching at the end of lines +nmap ; :call ToggleSemicolonHighlighting() +"{{{ +function! ToggleSemicolonHighlighting() + if exists("b:semicolon") + unlet b:semicolon + hi semicolon guifg=NONE gui=NONE ctermfg=NONE + else + syn match semicolon #;$# + hi semicolon guifg=red3 gui=bold ctermfg=1 + let b:semicolon = 1 + endif +endfunction +"}}} + +hi Cursor guifg=bg guibg=fg ctermfg=0 ctermbg=11 +"hi CursorIM +hi Directory gui=bold +hi DiffAdd guifg=yellow3 guibg=darkgreen ctermbg=0 +"hi DiffChange +"hi DiffDelete +"hi DiffText +hi ErrorMsg guibg=red3 ctermfg=1 +"hi VertSplit +hi Folded guibg=#00001a ctermbg=4 guifg=yellow3 ctermfg=11 gui=NONE +hi FoldColumn guibg=steelblue3 ctermbg=14 guifg=navyblue ctermfg=11 gui=bold +"hi IncSearch +hi LineNr guifg=yellow3 ctermfg=11 +hi ModeMsg guifg=yellow3 gui=bold +"hi MoreMsg +"hi NonText +"hi Question +hi Search guibg=yellow3 guifg=bg +"hi SpecialKey +hi StatusLine guifg=steelblue3 +hi StatusLineNC guifg=steelblue4 +"hi Title +hi Visual guifg=fg guibg=bg +"hi VisualNOS +"hi WarningMsg +"hi WildMenu +"hi Menu +"hi Scrollbar +"hi Tooltip + +" syntax highlighting groups +hi Comment guifg=chartreuse3 ctermfg=10 +hi Constant guifg=plum3 gui=bold ctermfg=13 +hi String guifg=indianred3 ctermfg=5 +hi Character guifg=mediumpurple3 ctermfg=5 +hi Number guifg=turquoise3 ctermfg=5 +"hi Identifier +hi Statement guifg=khaki3 gui=bold ctermfg=15 cterm=underline +hi PreProc guifg=firebrick3 gui=italic ctermfg=9 +hi Type guifg=gold3 gui=bold ctermfg=3 +"hi Special +"hi Underlined +"hi Ignore +"hi Error +hi Todo guifg=yellow3 guibg=blue3 gui=bold diff --git a/dot_vim/colors/mod_tcsoft.vim b/dot_vim/colors/mod_tcsoft.vim new file mode 100644 index 0000000..b36dab2 --- /dev/null +++ b/dot_vim/colors/mod_tcsoft.vim @@ -0,0 +1,68 @@ +"mod_tcsoft is based on the tcsoft-color scheme +"(http://www.vim.org/scripts/script.php?script_id=641), made by Ingo Fabbri +" +" +"I changed the cursor and the background-colors. Hope you like it. + +" Author: Andr Kelpe +" Last Change: Jan 13 10:33:46 CET 2005 +" + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = "mod_tcsoft" + +hi Normal guifg=#000000 guibg=floralwhite +hi Ignore guifg=bg +hi Comment guifg=#1050ff gui=italic +hi Folded guifg=black guibg=#d1cdc5 +hi FoldColumn guifg=black guibg=#d1cdc5 +hi Constant guifg=#666666 gui=NONE "grau +hi Special guifg=#FF0000 gui=NONE "rot +hi Identifier guifg=#993300 gui=NONE "rostfarbig +hi Statement guifg=#FF9900 gui=NONE "orange +hi PreProc guifg=#009900 gui=NONE "dunkelgrn +hi Type guifg=#FF9900 gui=bold "orange +hi Cursor guifg=#FFFFFF guibg=#000000 "schwarz +hi LineNr guifg=#000000 gui=NONE "schwarz +hi StatusLine guifg=#000000 gui=reverse,bold "schwarz +hi Title guifg=#1050ff gui=bold +hi Todo guibg=#1050ff guifg=floralwhite gui=bold +hi Search guifg=white guibg=#1050ff + + +hi link Function PreProc +hi link String Constant +hi link Character Constant + +hi! link MoreMsg Comment +hi! link ErrorMsg Visual +hi! link WarningMsg ErrorMsg +hi! link Question Comment + +hi link Number Special +hi link Boolean Constant +hi link Float Number + +hi link Operator Identifier +hi link Keyword Statement +hi link Exception Statement +hi link Include PreProc +hi link Define PreProc +hi link Macro PreProc + +hi link Conditional Statement +hi link Repeat Statement +hi link Label Statement + +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 Comment +hi link Debug Special diff --git a/dot_vim/colors/navajo-night.vim b/dot_vim/colors/navajo-night.vim new file mode 100644 index 0000000..f0c27f0 --- /dev/null +++ b/dot_vim/colors/navajo-night.vim @@ -0,0 +1,119 @@ +" Vim colour file +" Maintainer: Matthew Hawkins +" Last Change: Mon, 22 Apr 2002 15:28:04 +1000 +" URI: http://mh.dropbear.id.au/vim/navajo-night.png +" +" This colour scheme uses a "navajo-black" background +" I have added colours for the statusbar and for spell checking +" as taken from Cream (http://cream.sf.net/) + + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "navajo-night" + +" This is the list of colour changes from Navajo that +" weren't a simple mathematical subtraction from 0xffffff +" DarkBlue -> #ffff74 +" DarkRed -> #74ffff +" DarkGreen -> #ff9bff +" DarkCyan -> #ff7474 +" DarkMagenta -> #74ff74 +" DarkYellow -> #7474ff +" DarkGray -> #565656 +" Blue -> Yellow +" Red -> Cyan +" Yellow -> Blue +" Gray -> #414141 +" Brown -> #5ad5d5 +" #ff8060 -> #007f9f +" #f6e8d0 -> #09172f +" #edb5cd -> #124a32 +" #c0c0c0 -> #3f3f3f +" #907050 -> #6f8faf +" #808080 -> #7f7f7f +" #707070 -> #8f8f8f +" SeaGreen -> #d174a8 +" LightRed (assuming #ee9090) -> #116f6f +" LightBlue -> #522719 + +hi Normal ctermfg=White guifg=White guibg=#35536f + +hi SpecialKey term=bold ctermfg=darkblue guifg=Yellow +hi NonText term=bold ctermfg=darkblue cterm=bold gui=bold guifg=#7f7f7f +hi Directory term=bold ctermfg=darkblue guifg=Yellow +hi ErrorMsg term=standout ctermfg=grey ctermbg=darkred cterm=bold gui=bold guifg=Black guibg=Cyan +hi IncSearch term=reverse cterm=reverse gui=reverse +hi Search term=reverse ctermbg=White ctermfg=Black cterm=reverse guibg=Black guifg=Yellow +hi MoreMsg term=bold ctermfg=green gui=bold guifg=#d174a8 +hi ModeMsg term=bold cterm=bold gui=bold +hi LineNr term=underline ctermfg=darkcyan ctermbg=grey guibg=#7f7f7f gui=bold guifg=White +hi Question term=standout ctermfg=darkgreen gui=bold guifg=#d174a8 +hi StatusLine term=bold,reverse cterm=bold,reverse gui=bold guifg=Black guibg=White +hi StatusLineNC term=reverse cterm=reverse gui=bold guifg=#116f6f guibg=#8f8f8f +hi VertSplit term=reverse cterm=reverse gui=bold guifg=Black guibg=#8f8f8f +hi Title term=bold ctermfg=green gui=bold guifg=#74ff74 +"+++ Cream: +"hi Visual term=reverse cterm=reverse gui=reverse guifg=#3f3f3f guibg=White +"+++ +hi VisualNOS term=bold,underline cterm=bold,underline gui=reverse guifg=#414141 guibg=Black +hi WarningMsg term=standout ctermfg=darkred gui=bold guifg=Cyan +hi WildMenu term=standout ctermfg=White ctermbg=darkyellow guifg=White guibg=Blue +hi Folded term=standout ctermfg=darkblue ctermbg=grey guifg=White guibg=NONE guifg=#afcfef +hi FoldColumn term=standout ctermfg=darkblue ctermbg=grey guifg=#ffff74 guibg=#3f3f3f +hi DiffAdd term=bold ctermbg=darkblue guibg=Black +hi DiffChange term=bold ctermbg=darkmagenta guibg=#124a32 +hi DiffDelete term=bold ctermfg=darkblue ctermbg=blue cterm=bold gui=bold guifg=#522719 guibg=#09172f +hi DiffText term=reverse ctermbg=darkblue cterm=bold gui=bold guibg=#007f9f +hi Cursor gui=reverse guifg=#bfbfef guibg=Black +hi lCursor guifg=fg guibg=bg +hi Match term=bold,reverse ctermbg=Blue ctermfg=Yellow cterm=bold,reverse gui=bold,reverse guifg=Blue guibg=Yellow + + +" Colours for syntax highlighting +hi Comment term=bold ctermfg=darkblue guifg=#e7e77f +hi Constant term=underline ctermfg=darkred guifg=#3fffa7 +hi Special term=bold ctermfg=darkgreen guifg=#bfbfef +hi Identifier term=underline ctermfg=darkcyan cterm=NONE guifg=#ef9f9f +hi Statement term=bold ctermfg=darkred cterm=bold gui=bold guifg=#5ad5d5 +hi PreProc term=underline ctermfg=darkmagenta guifg=#74ff74 +hi Type term=underline ctermfg=green gui=bold guifg=#d174a8 +hi Ignore ctermfg=grey cterm=bold guifg=bg + +hi Error term=reverse ctermfg=grey ctermbg=darkred cterm=bold gui=bold guifg=Black guibg=Cyan +hi Todo term=standout ctermfg=darkblue ctermbg=Blue guifg=Yellow guibg=Blue + +"+++ Cream: statusbar +" Colours for statusbar +"hi User1 gui=bold guifg=#565656 guibg=#0c0c0c +"hi User2 gui=bold guifg=White guibg=#0c0c0c +"hi User3 gui=bold guifg=Yellow guibg=#0c0c0c +"hi User4 gui=bold guifg=Cyan guibg=#0c0c0c +highlight User1 gui=bold guifg=#999933 guibg=#45637f +highlight User2 gui=bold guifg=#e7e77f guibg=#45637f +highlight User3 gui=bold guifg=Black guibg=#45637f +highlight User4 gui=bold guifg=#33cc99 guibg=#45637f +"+++ + +"+++ Cream: selection +highlight Visual gui=bold guifg=Black guibg=#aacc77 +"+++ + +"+++ Cream: bookmarks +highlight Cream_ShowMarksHL ctermfg=blue ctermbg=lightblue cterm=bold guifg=Black guibg=#aacc77 gui=bold +"+++ + +"+++ Cream: spell check +" Colour misspelt words +"hi BadWord ctermfg=White ctermbg=darkred cterm=bold guifg=Yellow guibg=#522719 gui=bold +" mathematically correct: +"highlight BadWord ctermfg=black ctermbg=lightblue gui=NONE guifg=White guibg=#003333 +" adjusted: +highlight BadWord ctermfg=black ctermbg=lightblue gui=NONE guifg=#ff9999 guibg=#003333 +"+++ + + diff --git a/dot_vim/colors/navajo.vim b/dot_vim/colors/navajo.vim new file mode 100644 index 0000000..e7eebe7 --- /dev/null +++ b/dot_vim/colors/navajo.vim @@ -0,0 +1,65 @@ +" Vim color file +" Maintainer: R. Edward Ralston +" Last Change: 2002-01-24 09:56:48 +" URI: http://eralston.tripod.com/navajo.png +" +" This color scheme uses a "navajo-white" background +" + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "navajo" + +" looks good on Linux +"hi Normal ctermfg=Black guifg=Black guibg=#b39674 +"hi Normal ctermfg=Black guifg=Black guibg=NavajoWhite3 + +" slightly brighter for w32 +hi Normal ctermfg=Black guifg=Black guibg=#ba9c80 + +hi SpecialKey term=bold ctermfg=DarkBlue guifg=Blue +hi NonText term=bold ctermfg=DarkBlue cterm=bold gui=bold guifg=#808080 +hi Directory term=bold ctermfg=DarkBlue guifg=Blue +hi ErrorMsg term=standout ctermfg=Gray ctermbg=DarkRed cterm=bold gui=bold guifg=White guibg=Red +hi IncSearch term=reverse cterm=reverse gui=reverse +hi Search term=reverse ctermbg=Black ctermfg=White cterm=reverse guibg=White +hi MoreMsg term=bold ctermfg=DarkGreen gui=bold guifg=SeaGreen +hi ModeMsg term=bold cterm=bold gui=bold +hi LineNr term=underline ctermfg=DarkCyan ctermbg=Gray guibg=#808080 gui=bold guifg=black +hi Question term=standout ctermfg=DarkGreen 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=LightRed guibg=#707070 +hi VertSplit term=reverse cterm=reverse gui=bold guifg=White guibg=#707070 +hi Title term=bold ctermfg=DarkMagenta gui=bold guifg=DarkMagenta +hi Visual term=reverse cterm=reverse gui=reverse guifg=#c0c0c0 guibg=black +hi VisualNOS term=bold,underline cterm=bold,underline gui=reverse guifg=Grey guibg=white +hi WarningMsg term=standout ctermfg=DarkRed gui=bold guifg=Red +hi WildMenu term=standout ctermfg=Black ctermbg=DarkYellow guifg=Black guibg=Yellow +hi Folded term=standout ctermfg=DarkBlue ctermbg=Gray guifg=Black guibg=NONE guifg=#907050 +hi FoldColumn term=standout ctermfg=DarkBlue ctermbg=Gray guifg=DarkBlue guibg=#c0c0c0 +hi DiffAdd term=bold ctermbg=DarkBlue guibg=White +hi DiffChange term=bold ctermbg=DarkMagenta guibg=#edb5cd +hi DiffDelete term=bold ctermfg=DarkBlue ctermbg=6 cterm=bold gui=bold guifg=LightBlue guibg=#f6e8d0 +hi DiffText term=reverse ctermbg=DarkRed cterm=bold gui=bold guibg=#ff8060 +hi Cursor gui=reverse guifg=#404010 guibg=white +hi lCursor guifg=bg guibg=fg +hi Match term=bold,reverse ctermbg=Yellow ctermfg=Blue cterm=bold,reverse gui=bold,reverse guifg=yellow guibg=blue + + +" Colors for syntax highlighting +hi Comment term=bold ctermfg=DarkBlue guifg=#181880 +hi Constant term=underline ctermfg=DarkRed guifg=#c00058 +hi Special term=bold ctermfg=DarkMagenta guifg=#404010 +hi Identifier term=underline ctermfg=DarkCyan cterm=NONE guifg=#106060 +hi Statement term=bold ctermfg=DarkRed cterm=bold gui=bold guifg=Brown +hi PreProc term=underline ctermfg=DarkMagenta guifg=DarkMagenta +hi Type term=underline ctermfg=DarkGreen gui=bold guifg=SeaGreen +hi Ignore ctermfg=Gray cterm=bold guifg=bg +hi Error term=reverse ctermfg=Gray ctermbg=DarkRed cterm=bold gui=bold guifg=White guibg=Red +hi Todo term=standout ctermfg=DarkBlue ctermbg=Yellow guifg=Blue guibg=Yellow + +" vim:set list et: diff --git a/dot_vim/colors/nedit.vim b/dot_vim/colors/nedit.vim new file mode 100644 index 0000000..652891f --- /dev/null +++ b/dot_vim/colors/nedit.vim @@ -0,0 +1,26 @@ +" Vim color file +" Maintainer: Vladimir Vrzic +" Last Change: 28. june 2003. +" URL: http://galeb.etf.bg.ac.yu/~random/pub/vim/ + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="nedit" + +hi Normal guifg=Black guibg=grey90 + +hi Comment gui=italic guifg=gray20 guibg=NONE +hi Constant gui=NONE guifg=darkGreen guibg=NONE +hi Identifier gui=bold guifg=red guibg=NONE +hi Statement gui=bold guifg=black guibg=NONE +hi PreProc gui=NONE guifg=RoyalBlue4 guibg=NONE +hi Type gui=bold guifg=brown guibg=NONE +hi Special gui=NONE guifg=darkGreen guibg=NONE +"hi Underlined +"hi Ignore +"hi Error +"hi Todo + diff --git a/dot_vim/colors/nedit2.vim b/dot_vim/colors/nedit2.vim new file mode 100644 index 0000000..54811f0 --- /dev/null +++ b/dot_vim/colors/nedit2.vim @@ -0,0 +1,29 @@ +" Vim color file based on nedit by Vladimir Vrzic +" Maintainer: KraL +" Last Change: Friday 13 february 2004. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="nedit2" + +hi Normal guifg=Black guibg=grey90 + +hi Cursor guifg=white guibg=black +hi CursorIM guifg=black guibg=black + +hi Comment gui=italic guifg=Purple guibg=NONE +hi Constant gui=NONE guifg=blue guibg=NONE +hi Identifier gui=bold guifg=red guibg=NONE +hi Statement gui=bold guifg=black guibg=NONE +hi PreProc gui=NONE guifg=RoyalBlue4 guibg=NONE +hi Type gui=bold guifg=brown guibg=NONE +hi String gui=NONE guifg=RoyalBlue guibg=NONE +hi Special gui=bold guifg=Magenta3 guibg=NONE +"hi Underlined +"hi Ignore +"hi Error gui=NONE guifg=Red guibg=Linen +"hi Todo + diff --git a/dot_vim/colors/neon.vim b/dot_vim/colors/neon.vim new file mode 100644 index 0000000..d0ba309 --- /dev/null +++ b/dot_vim/colors/neon.vim @@ -0,0 +1,70 @@ +" Vim color file +" Maintainer: Tiza +" Last Change: 2002/10/25 Fri 16:23. +" version: 1.2 +" This color scheme uses a dark background. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "neon" + +hi Normal guifg=#f0f0f0 guibg=#303030 + +" Search +hi IncSearch gui=UNDERLINE guifg=#80ffff guibg=#0060c0 +hi Search gui=NONE guifg=#ffffa8 guibg=#808000 +" hi Search gui=NONE guifg=#b0ffb0 guibg=#008000 + +" Messages +hi ErrorMsg gui=BOLD guifg=#ffa0ff guibg=NONE +hi WarningMsg gui=BOLD guifg=#ffa0ff guibg=NONE +hi ModeMsg gui=BOLD guifg=#a0d0ff guibg=NONE +hi MoreMsg gui=BOLD guifg=#70ffc0 guibg=#8040ff +hi Question gui=BOLD guifg=#e8e800 guibg=NONE + +" Split area +hi StatusLine gui=NONE guifg=#000000 guibg=#c4c4c4 +hi StatusLineNC gui=NONE guifg=#707070 guibg=#c4c4c4 +hi VertSplit gui=NONE guifg=#707070 guibg=#c4c4c4 +hi WildMenu gui=NONE guifg=#000000 guibg=#ff80c0 + +" Diff +hi DiffText gui=NONE guifg=#ff78f0 guibg=#a02860 +hi DiffChange gui=NONE guifg=#e03870 guibg=#601830 +hi DiffDelete gui=NONE guifg=#a0d0ff guibg=#0020a0 +hi DiffAdd gui=NONE guifg=#a0d0ff guibg=#0020a0 + +" Cursor +hi Cursor gui=NONE guifg=#70ffc0 guibg=#8040ff +hi lCursor gui=NONE guifg=#ffffff guibg=#8800ff +hi CursorIM gui=NONE guifg=#ffffff guibg=#8800ff + +" Fold +hi Folded gui=NONE guifg=#40f0f0 guibg=#006090 +hi FoldColumn gui=NONE guifg=#40c0ff guibg=#404040 + +" Other +hi Directory gui=NONE guifg=#c8c8ff guibg=NONE +hi LineNr gui=NONE guifg=#707070 guibg=NONE +hi NonText gui=BOLD guifg=#d84070 guibg=#383838 +hi SpecialKey gui=BOLD guifg=#8888ff guibg=NONE +hi Title gui=BOLD guifg=fg guibg=NONE +hi Visual gui=NONE guifg=#b0ffb0 guibg=#008000 +hi VisualNOS gui=NONE guifg=#ffe8c8 guibg=#c06800 + +" Syntax group +hi Comment gui=NONE guifg=#c0c0c0 guibg=NONE +hi Constant gui=NONE guifg=#92d4ff guibg=NONE +hi Error gui=BOLD guifg=#ffffff guibg=#8000ff +hi Identifier gui=NONE guifg=#40f8f8 guibg=NONE +hi Ignore gui=NONE guifg=bg guibg=NONE +hi PreProc gui=NONE guifg=#ffa8ff guibg=NONE +hi Special gui=NONE guifg=#ffc890 guibg=NONE +hi Statement gui=NONE guifg=#dcdc78 guibg=NONE +hi Todo gui=BOLD,UNDERLINE guifg=#ff80d0 guibg=NONE +hi Type gui=NONE guifg=#60f0a8 guibg=NONE +hi Underlined gui=UNDERLINE guifg=fg guibg=NONE diff --git a/dot_vim/colors/night.vim b/dot_vim/colors/night.vim new file mode 100644 index 0000000..8fb7f56 --- /dev/null +++ b/dot_vim/colors/night.vim @@ -0,0 +1,70 @@ +" Vim color file +" Maintainer: Tiza +" Last Change: 2002/10/13 Sun 16:59. +" version: 2.2 +" This color scheme uses a dark background. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "night" + +hi Normal guifg=#f0f0f8 guibg=#303040 + +" Search +hi IncSearch gui=UNDERLINE,BOLD guifg=#f0f0f8 guibg=#d000d0 +hi Search gui=BOLD guifg=#ffd0ff guibg=#c000c0 + +" Messages +hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#f00080 +hi WarningMsg gui=BOLD guifg=#ffffff guibg=#f00080 +hi ModeMsg gui=BOLD guifg=#00e0ff guibg=NONE +hi MoreMsg gui=BOLD guifg=#00ffdd guibg=NONE +hi Question gui=BOLD guifg=#d0d050 guibg=NONE + +" Split area +hi StatusLine gui=NONE guifg=#000000 guibg=#c8c8d8 +hi StatusLineNC gui=NONE guifg=#606080 guibg=#c8c8d8 +hi VertSplit gui=NONE guifg=#606080 guibg=#c8c8d8 +hi WildMenu gui=NONE guifg=#000000 guibg=#e0e078 + +" Diff +hi DiffText gui=NONE guifg=#ffffff guibg=#40a060 +hi DiffChange gui=NONE guifg=#ffffff guibg=#007070 +hi DiffDelete gui=NONE guifg=#ffffff guibg=#40a0c0 +hi DiffAdd gui=NONE guifg=#ffffff guibg=#40a0c0 + +" Cursor +hi Cursor gui=NONE guifg=#ffffff guibg=#d86020 +hi lCursor gui=NONE guifg=#ffffff guibg=#e000b0 +hi CursorIM gui=NONE guifg=#ffffff guibg=#e000b0 + +" Fold +hi Folded gui=NONE guifg=#ffffff guibg=#9060c0 +hi FoldColumn gui=NONE guifg=#c0a0ff guibg=#404052 + +" Other +hi Directory gui=NONE guifg=#00ffff guibg=NONE +hi LineNr gui=NONE guifg=#787894 guibg=NONE +hi NonText gui=BOLD guifg=#8040ff guibg=#383848 +hi SpecialKey gui=BOLD guifg=#60a0ff guibg=NONE +hi Title gui=BOLD guifg=#f0f0f8 guibg=#9000a0 +hi Visual gui=NONE guifg=#ffffff guibg=#c08040 +" hi VisualNOS gui=NONE guifg=#ffffff guibg=#c08040 + +" Syntax group +hi Comment gui=NONE guifg=#e0e070 guibg=NONE +hi Constant gui=NONE guifg=#f0f0f8 guibg=#4830a0 +hi Error gui=BOLD guifg=#ffffff guibg=#f00080 +hi Identifier gui=NONE guifg=#ffa0ff guibg=NONE +hi Ignore gui=NONE guifg=#303040 guibg=NONE +hi Number gui=BOLD guifg=#b8b8c8 guibg=NONE +hi PreProc gui=NONE guifg=#40ffa0 guibg=NONE +hi Special gui=NONE guifg=#40f8f8 guibg=#4830a0 +hi Statement gui=BOLD guifg=#00d8f8 guibg=NONE +hi Todo gui=BOLD guifg=#00ffe0 guibg=#0080a0 +hi Type gui=BOLD guifg=#bbaaff guibg=NONE +hi Underlined gui=UNDERLINE,BOLD guifg=#f0f0f8 guibg=NONE diff --git a/dot_vim/colors/nightshimmer.vim b/dot_vim/colors/nightshimmer.vim new file mode 100644 index 0000000..53dce84 --- /dev/null +++ b/dot_vim/colors/nightshimmer.vim @@ -0,0 +1,111 @@ +" Vim color file +" Maintainer: Niklas Lindstrm +" Last Change: 2002-03-22 +" Version: 0.3 +" URI: http://localhost/ + + +""" Init +set background=dark +highlight clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "nightshimmer" + + +""""""""\ Colors \"""""""" + + +"""" GUI Colors + +highlight Cursor gui=None guibg=Green guifg=White +highlight CursorIM gui=bold guifg=white guibg=Green1 +highlight Directory guifg=LightSeaGreen guibg=bg +highlight DiffAdd gui=None guifg=fg guibg=DarkCyan +highlight DiffChange gui=None guifg=fg guibg=Green4 +highlight DiffDelete gui=None guifg=fg guibg=black +highlight DiffText gui=bold guifg=fg guibg=bg +highlight ErrorMsg guifg=LightYellow guibg=FireBrick +" previously 'FillColumn': +"highlight FillColumn gui=NONE guifg=black guibg=grey60 +highlight VertSplit gui=NONE guifg=black guibg=grey60 +highlight Folded gui=bold guibg=#305060 guifg=#b0d0e0 +highlight FoldColumn gui=bold guibg=#305060 guifg=#b0d0e0 +highlight IncSearch gui=reverse guifg=fg guibg=bg +highlight LineNr gui=bold guibg=grey6 guifg=Purple3 +highlight ModeMsg guibg=DarkGreen guifg=LightGreen +highlight MoreMsg gui=bold guifg=SeaGreen4 guibg=bg +if version < 600 + " same as SpecialKey + highlight NonText guibg=#123A4A guifg=#3D5D6D +else + " Bottom fill (use e.g. same as LineNr) + highlight NonText gui=None guibg=grey6 guifg=Purple +endif +highlight Normal gui=None guibg=#103040 guifg=honeydew2 +highlight Question gui=bold guifg=SeaGreen2 guibg=bg +highlight Search gui=NONE guibg=Purple4 guifg=NONE +highlight SpecialKey guibg=#123A4A guifg=#426272 +highlight StatusLine gui=bold guibg=grey88 guifg=black +highlight StatusLineNC gui=NONE guibg=grey60 guifg=grey10 +highlight Title gui=bold guifg=MediumOrchid1 guibg=bg +highlight Visual gui=reverse guibg=WHITE guifg=SeaGreen +highlight VisualNOS gui=bold,underline guifg=fg guibg=bg +highlight WarningMsg gui=bold guifg=FireBrick1 guibg=bg +highlight WildMenu gui=bold guibg=Chartreuse guifg=Black + + +"""" Syntax Colors + +highlight Comment gui=reverse guifg=#507080 +"highlight Comment gui=None guifg=#507080 + +highlight Constant guifg=Cyan guibg=bg + "hi String gui=None guifg=Cyan guibg=bg + "hi Character gui=None guifg=Cyan guibg=bg + highlight Number gui=None guifg=Cyan guibg=bg + highlight Boolean gui=bold guifg=Cyan guibg=bg + "hi Float gui=None guifg=Cyan guibg=bg + +highlight Identifier guifg=orchid1 + "hi Function gui=None guifg=orchid1 guibg=bg + +highlight Statement gui=NONE guifg=LightGreen + highlight Conditional gui=None guifg=LightGreen guibg=bg + highlight Repeat gui=None guifg=SeaGreen2 guibg=bg + "hi Label gui=None guifg=LightGreen guibg=bg + highlight Operator gui=None guifg=Chartreuse guibg=bg + highlight Keyword gui=bold guifg=LightGreen guibg=bg + highlight Exception gui=bold guifg=LightGreen guibg=bg + +highlight PreProc guifg=MediumPurple1 + "hi Include gui=None guifg=MediumPurple1 guibg=bg + "hi Define gui=None guifg=MediumPurple1g guibg=bg + "hi Macro gui=None guifg=MediumPurple1g guibg=bg + "hi PreCondit gui=None guifg=MediumPurple1g guibg=bg + +highlight Type gui=NONE guifg=LightBlue + "hi StorageClass gui=None guifg=LightBlue guibg=bg + "hi Structure gui=None guifg=LightBlue guibg=bg + "hi Typedef gui=None guifg=LightBlue guibg=bg + +highlight Special gui=bold guifg=White + "hi SpecialChar gui=bold guifg=White guibg=bg + "hi Tag gui=bold guifg=White guibg=bg + "hi Delimiter gui=bold guifg=White guibg=bg + "hi SpecialComment gui=bold guifg=White guibg=bg + "hi Debug gui=bold guifg=White guibg=bg + +highlight Underlined gui=underline guifg=honeydew4 guibg=bg + +highlight Ignore guifg=#204050 + +highlight Error guifg=LightYellow guibg=FireBrick + +highlight Todo guifg=Cyan guibg=#507080 + +""" OLD COLORS + + + diff --git a/dot_vim/colors/nightwish.vim b/dot_vim/colors/nightwish.vim new file mode 100644 index 0000000..e9bfe55 --- /dev/null +++ b/dot_vim/colors/nightwish.vim @@ -0,0 +1,59 @@ +" local syntax file - set colors on a per-machine basis: +" vim: tw=0 ts=4 sw=4 +" Vim color file, derived from colorscheme 'murphy' +" Maintainer: Michael Muhler +" Version: 1.0 +" URL: http://home.arcor.de/muhler +" Last Change: 2003 Apr 15 + +"help see colortest.vim + +hi clear +set background=dark +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "nightwish" + + +hi Comment term=bold ctermfg=LightRed guifg=Orange +hi Constant term=underline ctermfg=LightGreen guifg=White gui=NONE +hi Directory term=bold ctermfg=LightCyan guifg=Cyan +hi Error term=reverse ctermbg=Red ctermfg=White guibg=Red guifg=White +hi ErrorMsg term=standout ctermbg=DarkRed ctermfg=White guibg=Red guifg=White +hi Identifier term=underline ctermfg=LightCyan guifg=#00ffff +hi Ignore ctermfg=black guifg=bg +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 PreProc term=underline ctermfg=LightBlue guifg=Wheat +hi Question term=standout ctermfg=LightGreen gui=bold guifg=Cyan +hi Search term=reverse guifg=white guibg=Blue +hi Special term=bold ctermfg=LightRed guifg=magenta +hi SpecialKey term=bold ctermfg=LightBlue guifg=Cyan +hi Statement term=bold ctermfg=Yellow guifg=#ffff00 gui=NONE +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 Todo term=standout ctermbg=Yellow ctermfg=Black guifg=Blue guibg=Yellow +hi Type ctermfg=LightGreen guifg=grey gui=none +hi Visual term=reverse cterm=reverse gui=NONE guifg=white guibg=darkgreen +hi WarningMsg term=standout ctermfg=LightRed guifg=Red + +hi Normal ctermbg=Black ctermfg=lightgreen guibg=Black guifg=#a0a0ff +hi Cursor guifg=bg guibg=Green +hi String term=underline cterm=bold ctermfg=magenta guifg=#ffa0a0 +hi Repeat term=underline ctermfg=Magenta guifg=Red +hi Delimiter term=standout ctermfg=Blue guifg=#00ff88 +hi Label term=standout ctermfg=DarkYellow guifg=DarkYellow +hi Keyword term=standout ctermfg=Green guifg=Green +hi Operator term=standout ctermfg=Yellow guifg=#ff5555 +hi Exception term=standout ctermfg=Magenta guifg=#ff0dd5 +hi Tag term=standout ctermfg=Green guifg=#55ff0d + +" missing items in murphy +hi Scrollbar guifg=darkcyan guibg=cyan +hi Menu guifg=black guibg=cyan +hi link Conditional Repeat diff --git a/dot_vim/colors/northsky.vim b/dot_vim/colors/northsky.vim new file mode 100644 index 0000000..e705ae4 --- /dev/null +++ b/dot_vim/colors/northsky.vim @@ -0,0 +1,70 @@ +" Vim color file based on bluegreen +" Maintainer: Sergey Khorev +" Last Change: +" URL: + + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="northsky" + +hi Normal guifg=white guibg=#061A3E + +" Search +"hi Search guibg=#A28D68 guifg=bg gui=none +"hi Search guibg=#4668A1 guifg=bg gui=none +hi Search guibg=#3D5B8C guifg=yellow gui=none +hi IncSearch guifg=bg guibg=cyan gui=bold + +" highlight groups +hi Cursor guibg=#D74141 guifg=#e3e3e3 +hi VertSplit guibg=#C0FFFF guifg=#075554 gui=none +hi Folded guifg=plum1 guibg=#061A3E +hi FoldColumn guibg=#800080 guifg=tan +hi ModeMsg guifg=#404040 guibg=#C0C0C0 +hi MoreMsg guifg=darkturquoise guibg=#188F90 +hi NonText guibg=#334C75 guifg=#9FADC5 +hi Question guifg=#F4BB7E + +hi SpecialKey guifg=#BF9261 +hi StatusLine guibg=#067C7B guifg=cyan gui=none +hi StatusLineNC guibg=#004443 guifg=DimGrey gui=none +hi Title guifg=#8DB8C3 +"hi Visual gui=bold guifg=black guibg=#C0FFC0 +hi Visual gui=bold guifg=black guibg=#84AF84 +hi WarningMsg guifg=#F60000 gui=underline + +" syntax highlighting groups +hi Comment guifg=DarkGray +hi Constant guifg=#72A5E4 gui=bold +hi Number guifg=chartreuse2 gui=bold +hi Identifier guifg=#ADCBF1 +hi Statement guifg=yellow +hi PreProc guifg=#14967C +hi Type guifg=#FFAE66 +hi Special guifg=#EEBABA +hi Ignore guifg=grey60 +hi Todo guibg=#9C8C84 guifg=#244C0A +hi Label guifg=#ffc0c0 + +" Vim defaults +hi ErrorMsg guifg=White guibg=Red +hi DiffAdd guibg=DarkBlue +hi DiffChange guibg=aquamarine4 +hi DiffDelete gui=bold guifg=Yellow guibg=DarkBlue +hi DiffText gui=bold guibg=firebrick3 +hi Directory guifg=Cyan +hi LineNr guifg=DarkGreen +hi WildMenu guifg=Black guibg=Yellow +" hi lCursor guifg=bg guibg=fg +hi lCursor guibg=SeaGreen1 guifg=NONE +hi Underlined gui=underline guifg=#80a0ff +hi Error guifg=White guibg=Red diff --git a/dot_vim/colors/nuvola.vim b/dot_vim/colors/nuvola.vim new file mode 100644 index 0000000..f9a608a --- /dev/null +++ b/dot_vim/colors/nuvola.vim @@ -0,0 +1,107 @@ +" local syntax file - set colors on a per-machine basis: +" vim: tw=0 ts=4 sw=4 +" Vim color file +" Maintainer: Dr. J. Pfefferl +" Source: $Source: /MISC/projects/cvsroot/user/pfefferl/vim/colors/nuvola.vim,v $ +" Id: $Id: nuvola.vim,v 1.14 2003/08/11 14:03:28 pfefferl Exp $ +" Last Change: $Date: 2003/08/11 14:03:28 $ + +" Intro {{{1 +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "nuvola" + +" Normal {{{1 +hi Normal ctermfg=black ctermbg=NONE guifg=black guibg=#F9F5F9 + +" Search {{{1 +hi IncSearch cterm=UNDERLINE ctermfg=Black ctermbg=brown gui=UNDERLINE guifg=Black guibg=#FFE568 +hi Search term=reverse cterm=UNDERLINE ctermfg=Black ctermbg=brown gui=NONE guifg=Black guibg=#FFE568 + +" Messages {{{1 +hi ErrorMsg gui=BOLD guifg=#EB1513 guibg=NONE +hi! link WarningMsg ErrorMsg +hi ModeMsg gui=BOLD guifg=#0070ff guibg=NONE +hi MoreMsg guibg=NONE guifg=seagreen +hi! link Question MoreMsg + +" Split area {{{1 +hi StatusLine term=BOLD,reverse cterm=NONE ctermfg=Yellow ctermbg=DarkGray gui=BOLD guibg=#56A0EE guifg=white +hi StatusLineNC gui=NONE guibg=#56A0EE guifg=#E9E9F4 +hi! link VertSplit StatusLineNC +hi WildMenu gui=UNDERLINE guifg=#56A0EE guibg=#E9E9F4 + +" Diff {{{1 +hi DiffText gui=NONE guifg=#f83010 guibg=#ffeae0 +hi DiffChange gui=NONE guifg=#006800 guibg=#d0ffd0 +hi DiffDelete gui=NONE guifg=#2020ff guibg=#c8f2ea +hi! link DiffAdd DiffDelete + +" Cursor {{{1 +hi Cursor gui=none guifg=black guibg=orange +"hi lCursor gui=NONE guifg=#f8f8f8 guibg=#8000ff +hi CursorIM gui=NONE guifg=#f8f8f8 guibg=#8000ff + +" Fold {{{1 +hi Folded gui=NONE guibg=#B5EEB5 guifg=black +"hi FoldColumn gui=NONE guibg=#9FD29F guifg=black +hi! link FoldColumn Folded + +" Other {{{1 +hi Directory gui=NONE guifg=#0000ff guibg=NONE +hi LineNr gui=NONE guifg=#8080a0 guibg=NONE +hi NonText gui=BOLD guifg=#4000ff guibg=#EFEFF7 +"hi SpecialKey gui=NONE guifg=#A35B00 guibg=NONE +hi Title gui=BOLD guifg=#1014AD guibg=NONE +hi Visual term=reverse ctermfg=yellow ctermbg=black gui=NONE guifg=Black guibg=#BDDFFF +hi VisualNOS term=reverse ctermfg=yellow ctermbg=black gui=UNDERLINE guifg=Black guibg=#BDDFFF + +" Syntax group {{{1 +hi Comment term=BOLD ctermfg=darkgray guifg=#3F6B5B +hi Constant term=UNDERLINE ctermfg=red guifg=#B91F49 +hi Error term=REVERSE ctermfg=15 ctermbg=9 guibg=Red guifg=White +hi Identifier term=UNDERLINE ctermfg=Blue guifg=Blue +hi Number term=UNDERLINE ctermfg=red gui=NONE guifg=#00C226 +hi PreProc term=UNDERLINE ctermfg=darkblue guifg=#1071CE +hi Special term=BOLD ctermfg=darkmagenta guifg=red2 +hi Statement term=BOLD ctermfg=DarkRed gui=NONE guifg=#F06F00 +hi Tag term=BOLD ctermfg=DarkGreen guifg=DarkGreen +hi Todo term=STANDOUT ctermbg=Yellow ctermfg=blue guifg=Blue guibg=Yellow +hi Type term=UNDERLINE ctermfg=Blue gui=NONE guifg=Blue +hi! link String Constant +hi! link Character Constant +hi! link Boolean Constant +hi! link Float Number +hi! link Function Identifier +hi! link Conditional Statement +hi! link Repeat Statement +hi! link Label Statemengreen +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 + +" HTML {{{1 +hi htmlLink gui=UNDERLINE guifg=#0000ff guibg=NONE +hi htmlBold gui=BOLD +hi htmlBoldItalic gui=BOLD,ITALIC +hi htmlBoldUnderline gui=BOLD,UNDERLINE +hi htmlBoldUnderlineItalic gui=BOLD,UNDERLINE,ITALIC +hi htmlItalic gui=ITALIC +hi htmlUnderline gui=UNDERLINE +hi htmlUnderlineItalic gui=UNDERLINE,ITALIC + +" vim600:foldmethod=marker diff --git a/dot_vim/colors/oceanblack.vim b/dot_vim/colors/oceanblack.vim new file mode 100644 index 0000000..e6e6be3 --- /dev/null +++ b/dot_vim/colors/oceanblack.vim @@ -0,0 +1,115 @@ +" Vim color file +" Maintainer: Chris Vertonghen +" Last Change: 2003-03-25 +" Version: 0.1 +" based on Tom Regner's oceanblue.vim + +""" Init +set background=dark +highlight clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "oceanblack" + + +""""""""\ Colors \"""""""" + + +"""" GUI Colors + +highlight Cursor gui=None guibg=PaleTurquoise3 guifg=White +highlight CursorIM gui=bold guifg=white guibg=PaleTurquoise3 +highlight Directory guifg=LightSeaGreen guibg=bg +highlight DiffAdd gui=None guifg=fg guibg=DarkCyan +highlight DiffChange gui=None guifg=fg guibg=Green4 +highlight DiffDelete gui=None guifg=fg guibg=black +highlight DiffText gui=bold guifg=fg guibg=bg +highlight ErrorMsg guifg=LightYellow guibg=FireBrick +" previously 'FillColumn': +"highlight FillColumn gui=NONE guifg=black guibg=grey60 +highlight VertSplit gui=NONE guifg=black guibg=grey60 +highlight Folded gui=bold guibg=#305060 guifg=#b0d0e0 +highlight FoldColumn gui=None guibg=#305060 guifg=#b0d0e0 +highlight IncSearch gui=reverse guifg=fg guibg=bg +"highlight LineNr guibg=grey6 guifg=LightSkyBlue3 +highlight LineNr guibg=grey6 guifg=#777777 +highlight ModeMsg guibg=DarkGreen guifg=LightGreen +highlight MoreMsg gui=bold guifg=SeaGreen4 guibg=bg +if version < 600 + " same as SpecialKey + highlight NonText guibg=#123A4A guifg=#3D5D6D +else + " Bottom fill (use e.g. same as LineNr) + highlight NonText gui=None guibg=#000000 guifg=LightSkyBlue +endif +highlight Normal gui=None guibg=#000000 guifg=honeydew2 +highlight Question gui=bold guifg=SeaGreen2 guibg=bg +highlight Search gui=NONE guibg=LightSkyBlue4 guifg=NONE +highlight SpecialKey guibg=#103040 guifg=#324262 +highlight StatusLine gui=bold guibg=grey88 guifg=black +highlight StatusLineNC gui=NONE guibg=grey60 guifg=grey10 +highlight Title gui=bold guifg=MediumOrchid1 guibg=bg +highlight Visual gui=reverse guibg=WHITE guifg=SeaGreen +highlight VisualNOS gui=bold,underline guifg=fg guibg=bg +highlight WarningMsg gui=bold guifg=FireBrick1 guibg=bg +highlight WildMenu gui=bold guibg=Chartreuse guifg=Black + + +"""" Syntax Colors + +"highlight Comment gui=reverse guifg=#507080 +"highlight Comment gui=None guifg=#507080 +highlight Comment gui=None guifg=#7C7268 + +highlight Constant guifg=cyan3 guibg=bg +"hi String gui=None guifg=turquoise2 guibg=bg +hi String gui=None guifg=#80a0ff guibg=bg + "hi Character gui=None guifg=Cyan guibg=bg + "highlight Number gui=None guifg=Cyan guibg=bg + highlight Number gui=None guifg=Cyan guibg=black + highlight Boolean gui=bold guifg=Cyan guibg=bg + "hi Float gui=None guifg=Cyan guibg=bg + +highlight Identifier guifg=LightSkyBlue3 +hi Function gui=None guifg=DarkSeaGreen3 guibg=bg + +highlight Statement gui=NONE guifg=LightGreen + highlight Conditional gui=None guifg=LightGreen guibg=bg + highlight Repeat gui=None guifg=SeaGreen2 guibg=bg + "hi Label gui=None guifg=LightGreen guibg=bg + highlight Operator gui=None guifg=Chartreuse guibg=bg + highlight Keyword gui=None guifg=LightGreen guibg=bg + highlight Exception gui=None guifg=LightGreen guibg=bg + +highlight PreProc guifg=SkyBlue1 +hi Include gui=None guifg=LightSteelBlue3 guibg=bg +hi Define gui=None guifg=LightSteelBlue2 guibg=bg +hi Macro gui=None guifg=LightSkyBlue3 guibg=bg +hi PreCondit gui=None guifg=LightSkyBlue2 guibg=bg + +highlight Type gui=NONE guifg=LightBlue +hi StorageClass gui=None guifg=LightBlue guibg=bg +hi Structure gui=None guifg=LightBlue guibg=bg +hi Typedef gui=None guifg=LightBlue guibg=bg + +"highlight Special gui=bold guifg=aquamarine3 +highlight Special guifg=#999999 + "hi SpecialChar gui=bold guifg=White guibg=bg + "hi Tag gui=bold guifg=White guibg=bg + "hi Delimiter gui=bold guifg=White guibg=bg + "hi SpecialComment gui=bold guifg=White guibg=bg + "hi Debug gui=bold guifg=White guibg=bg + +highlight Underlined gui=underline guifg=honeydew4 guibg=bg + +highlight Ignore guifg=#204050 + +highlight Error guifg=LightYellow guibg=FireBrick + +highlight Todo guifg=Cyan guibg=#507080 + +""" OLD COLORS + + + diff --git a/dot_vim/colors/oceandeep.vim b/dot_vim/colors/oceandeep.vim new file mode 100644 index 0000000..c19b2c0 --- /dev/null +++ b/dot_vim/colors/oceandeep.vim @@ -0,0 +1,111 @@ +" Vim color file +" Maintainer: Tom Regner +" Last Change: 2002-12-05 +" Version: 1.1 +" URL: http://vim.sourceforge.net/script.php?script_id=368 + + +""" Init +set background=dark +highlight clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "oceandeep" + + +""""""""\ Colors \"""""""" + + +"""" GUI Colors + +highlight Cursor gui=None guibg=PaleTurquoise3 guifg=White +highlight CursorIM gui=bold guifg=white guibg=PaleTurquoise3 +highlight Directory guifg=LightSeaGreen guibg=bg +highlight DiffAdd gui=None guifg=fg guibg=DarkCyan +highlight DiffChange gui=None guifg=fg guibg=Green4 +highlight DiffDelete gui=None guifg=fg guibg=black +highlight DiffText gui=bold guifg=fg guibg=bg +highlight ErrorMsg guifg=LightYellow guibg=FireBrick +" previously 'FillColumn': +"highlight FillColumn gui=NONE guifg=black guibg=grey60 +highlight VertSplit gui=NONE guifg=black guibg=grey60 +highlight Folded gui=bold guibg=#305060 guifg=#b0d0e0 +highlight FoldColumn gui=bold guibg=#305060 guifg=#b0d0e0 +highlight IncSearch gui=reverse guifg=fg guibg=bg +highlight LineNr gui=bold guibg=grey6 guifg=LightSkyBlue3 +highlight ModeMsg guibg=DarkGreen guifg=LightGreen +highlight MoreMsg gui=bold guifg=SeaGreen4 guibg=bg +if version < 600 + " same as SpecialKey + highlight NonText guibg=#123A4A guifg=#3D5D6D +else + " Bottom fill (use e.g. same as LineNr) + highlight NonText gui=None guibg=#103040 guifg=LightSkyBlue +endif +highlight Normal gui=None guibg=#103040 guifg=honeydew2 +highlight Question gui=bold guifg=SeaGreen2 guibg=bg +highlight Search gui=NONE guibg=LightSkyBlue4 guifg=NONE +highlight SpecialKey guibg=#103040 guifg=#324262 +highlight StatusLine gui=bold guibg=grey88 guifg=black +highlight StatusLineNC gui=NONE guibg=grey60 guifg=grey10 +highlight Title gui=bold guifg=MediumOrchid1 guibg=bg +highlight Visual gui=reverse guibg=WHITE guifg=SeaGreen +highlight VisualNOS gui=bold,underline guifg=fg guibg=bg +highlight WarningMsg gui=bold guifg=FireBrick1 guibg=bg +highlight WildMenu gui=bold guibg=Chartreuse guifg=Black + + +"""" Syntax Colors + +"highlight Comment gui=reverse guifg=#507080 +highlight Comment gui=None guifg=#507080 + +highlight Constant guifg=cyan3 guibg=bg +hi String gui=None guifg=turquoise2 guibg=bg + "hi Character gui=None guifg=Cyan guibg=bg + highlight Number gui=None guifg=Cyan guibg=bg + highlight Boolean gui=bold guifg=Cyan guibg=bg + "hi Float gui=None guifg=Cyan guibg=bg + +highlight Identifier guifg=LightSkyBlue3 +hi Function gui=None guifg=DarkSeaGreen3 guibg=bg + +highlight Statement gui=NONE guifg=LightGreen + highlight Conditional gui=None guifg=LightGreen guibg=bg + highlight Repeat gui=None guifg=SeaGreen2 guibg=bg + "hi Label gui=None guifg=LightGreen guibg=bg + highlight Operator gui=None guifg=Chartreuse guibg=bg + highlight Keyword gui=bold guifg=LightGreen guibg=bg + highlight Exception gui=bold guifg=LightGreen guibg=bg + +highlight PreProc guifg=SkyBlue1 +hi Include gui=None guifg=LightSteelBlue3 guibg=bg +hi Define gui=None guifg=LightSteelBlue2 guibg=bg +hi Macro gui=None guifg=LightSkyBlue3 guibg=bg +hi PreCondit gui=None guifg=LightSkyBlue2 guibg=bg + +highlight Type gui=NONE guifg=LightBlue +hi StorageClass gui=None guifg=LightBlue guibg=bg +hi Structure gui=None guifg=LightBlue guibg=bg +hi Typedef gui=None guifg=LightBlue guibg=bg + +highlight Special gui=bold guifg=aquamarine3 + "hi SpecialChar gui=bold guifg=White guibg=bg + "hi Tag gui=bold guifg=White guibg=bg + "hi Delimiter gui=bold guifg=White guibg=bg + "hi SpecialComment gui=bold guifg=White guibg=bg + "hi Debug gui=bold guifg=White guibg=bg + +highlight Underlined gui=underline guifg=honeydew4 guibg=bg + +highlight Ignore guifg=#204050 + +highlight Error guifg=LightYellow guibg=FireBrick + +highlight Todo guifg=Cyan guibg=#507080 + +""" OLD COLORS + + + diff --git a/dot_vim/colors/oceanlight.vim b/dot_vim/colors/oceanlight.vim new file mode 100644 index 0000000..08fb22e --- /dev/null +++ b/dot_vim/colors/oceanlight.vim @@ -0,0 +1,105 @@ +" Vim color file +" Maintainer: Hkan Wikstrm +" Last Change: 2005-01-06 +" Version: 0.1 +" URL: +" Originally based on oceandeep by Tom Regner (Vim script #368) + + +""" Init +set background=light +highlight clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "oceanlight" + + +""""""""\ Colors \"""""""" + + +"""" GUI Colors + +highlight Cursor gui=None guibg=PaleTurquoise3 guifg=White +highlight CursorIM gui=none guifg=white guibg=PaleTurquoise3 +highlight Directory guifg=SeaGreen guibg=bg +highlight DiffAdd gui=None guifg=SteelBlue guibg=LightGray +highlight DiffChange gui=None guifg=fg guibg=CadetBlue +highlight DiffDelete gui=None guifg=LightGray guibg=SteelBlue +highlight DiffText gui=none guifg=fg guibg=bg +highlight ErrorMsg guifg=FireBrick guibg=bg +highlight VertSplit gui=NONE guifg=black guibg=grey60 +highlight Folded gui=none guibg=LightSteelBlue guifg=SteelBlue +highlight FoldColumn gui=none guibg=LightSteelBLue guifg=SteelBlue +highlight IncSearch gui=reverse guifg=fg guibg=bg +highlight LineNr gui=none guibg=#d3d3d3 guifg=#5daf83 +highlight ModeMsg guibg=CadetBlue guifg=LightGrey +highlight MoreMsg gui=none guifg=CadetBlue guibg=bg +if version < 600 + " same as SpecialKey + highlight NonText guibg=#d3d3d3 guifg=#3D5D6D +else + " Bottom fill (use e.g. same as LineNr) + highlight NonText gui=None guibg=#d3d3d3 guifg=#5daf83 +endif +highlight Normal gui=None guibg=#f5f5f5 guifg=DimGray +highlight Question gui=none guifg=SeaGreen2 guibg=bg +highlight Search gui=NONE guibg=SlateGray2 guifg=NONE +highlight SpecialKey guibg=LightGray guifg=CadetBlue +highlight StatusLine gui=none guibg=SlateGrey guifg=LightGrey +highlight StatusLineNC gui=NONE guibg=LightGrey guifg=SlateGrey +highlight Title gui=none guifg=MediumOrchid1 guibg=bg +highlight Visual gui=reverse guibg=slategray4 guifg=SlateGray2 +highlight VisualNOS gui=none,underline guifg=fg guibg=bg +highlight WarningMsg gui=none guifg=FireBrick1 guibg=bg +highlight WildMenu gui=none guibg=Chartreuse guifg=Black + + +"""" Syntax Colors + +"highlight Comment gui=reverse guifg=#507080 +highlight Comment gui=None guifg=LightSteelBlue + +highlight Constant guifg=#483d8b guibg=bg +hi String gui=None guifg=MediumAquamarine guibg=bg + "hi Character gui=None guifg=Cyan guibg=bg + highlight Number gui=None guifg=MediumSeaGreen guibg=bg + highlight Boolean gui=none guifg=DarkSeaGreen guibg=bg + "hi Float gui=None guifg=Cyan guibg=bg + +highlight Identifier guifg=CornflowerBlue +hi Function gui=None guifg=DarkSeaGreen guibg=bg + +highlight Statement gui=NONE guifg=SeaGreen + highlight Conditional gui=None guifg=#5daf83 guibg=bg + highlight Repeat gui=None guifg=#5daf83 guibg=bg + "hi Label gui=None guifg=seagreen guibg=bg + highlight Operator gui=None guifg=LightSlateBlue guibg=bg + highlight Keyword gui=none guifg=SeaGreen guibg=bg + highlight Exception gui=none guifg=SeaGreen guibg=bg + +highlight PreProc guifg=SkyBlue1 +hi Include gui=None guifg=SteelBlue guibg=bg +hi Define gui=None guifg=LightSteelBlue2 guibg=bg +hi Macro gui=None guifg=LightSkyBlue3 guibg=bg +hi PreCondit gui=None guifg=LightSkyBlue2 guibg=bg + +highlight Type gui=NONE guifg=SteelBlue +hi StorageClass gui=None guifg=SteelBlue guibg=bg +hi Structure gui=None guifg=SteelBlue guibg=bg +hi Typedef gui=None guifg=SteelBlue guibg=bg + +highlight Special gui=none guifg=aquamarine3 + "hi SpecialChar gui=none guifg=White guibg=bg + "hi Tag gui=none guifg=White guibg=bg + "hi Delimiter gui=none guifg=White guibg=bg + "hi SpecialComment gui=none guifg=White guibg=bg + "hi Debug gui=none guifg=White guibg=bg + +highlight Underlined gui=underline guifg=honeydew4 guibg=bg + +highlight Ignore guifg=#204050 + +highlight Error guifg=FireBrick gui=Bold guibg=bg + +highlight Todo guifg=LightSkyBlue guibg=SlateGray diff --git a/dot_vim/colors/olive.vim b/dot_vim/colors/olive.vim new file mode 100644 index 0000000..26dcd2c --- /dev/null +++ b/dot_vim/colors/olive.vim @@ -0,0 +1,119 @@ +" Vim color file +" Maintainer: Charles +" Last Change: 11 June 2004 +" URL: http:// + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="olive" + +"======================================================= +hi Normal guifg=#D9D9C3 guibg=#333300 +hi Cursor guifg=black guibg=white +hi CursorIM guifg=black guibg=green +hi Directory guifg=gold gui=underline +"hi DiffAdd +"hi DiffChange +"hi DiffDelete +"hi DiffText +hi ErrorMsg guibg=indianred +"hi VertSplit guifg=gold +hi Folded guifg=khaki guibg=darkolivegreen gui=underline +hi FoldColumn guifg=khaki guibg=darkolivegreen gui=none +hi IncSearch guifg=black guibg=khaki +hi LineNr guifg=gray80 +hi ModeMsg guifg=greenyellow gui=bold +hi MoreMsg guifg=greenyellow gui=bold +"hi NonText guibg=black +hi Question guifg=yellowgreen gui=NONE +hi Search guifg=black guibg=khaki gui=NONE +hi SpecialKey guifg=black guibg=darkkhaki +hi StatusLine guifg=palegoldenrod guibg=#808000 gui=none +hi StatusLineNC guifg=gray guibg=darkolivegreen gui=none +hi Title guifg=gold gui=bold +hi Visual guifg=black guibg=darkkhaki gui=NONE +"hi VisualNOS +hi WarningMsg guifg=palevioletred +"hi WildMenu +"hi Menu +"hi Scrollbar +"hi Tooltip + + +" ============================================================ +" syntax highlighting groups +" ============================================================ +hi Comment guifg=darkkhaki guibg=#4C4C00 gui=underline + +hi Constant guifg=navajowhite +hi String guifg=greenyellow +"hi Character +"hi Number +"hi Boolean +"hi Float + +hi Identifier guifg=lightsteelblue +" hi Function guibg=gray60 + +hi Statement guifg=darkseagreen gui=bold +"hi Conditional +"hi Repeat +"hi Label +hi Operator guifg=gold +"hi Keyword +"hi Exception + +hi PreProc guifg=sandybrown gui=bold +"hi Include +"hi Define +"hi Macro +"hi PreCondit + +hi Type guifg=goldenrod +"hi StorageClass +"hi Structure +"hi Typedef + +hi Special guifg=navajowhite gui=underline +"hi SpecialChar +"hi Tag +"hi Delimiter +"hi SpecialComment +"hi Debug + +hi Underlined gui=underline + +hi Ignore guifg=black + +hi Error guifg=white + +hi Todo guifg=black guibg=gold gui=NONE + +" ================================================================= +" Language specific color +" ================================================================= + +" C / C++ +hi cIncluded guifg=yellowgreen + +" HTML +hi Title guifg=palegoldenrod + +" VIM +hi VimError guifg=red gui=bold +hi VimOption guifg=gold + +" TeX / LaTeX +hi texSection guifg=greenyellow +" tex between { and } +hi texMatcher guifg=yellowgreen gui=none +hi texMath gui=none + diff --git a/dot_vim/colors/papayawhip.vim b/dot_vim/colors/papayawhip.vim new file mode 100644 index 0000000..5f8725a --- /dev/null +++ b/dot_vim/colors/papayawhip.vim @@ -0,0 +1,31 @@ +" Vim color file +" Maintainer: Gerald S. Williams +" Last Change: 2003 Apr 17 + +" A nice light background (you guessed it, PapayaWhip) that's relatively easy +" on the eyes yet very usable. Not nearly as "puffy" as peachpuff. +" +" Only values that differ from defaults are specified. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "PapayaWhip" + +hi Normal guifg=#3f1f1f guibg=PapayaWhip ctermbg=Gray ctermfg=Black +hi NonText guibg=Moccasin guifg=Brown ctermfg=Brown +hi LineNr guibg=Moccasin +hi DiffDelete guibg=LightRed guifg=Black ctermbg=DarkRed ctermfg=White +hi DiffAdd guibg=LightGreen ctermbg=DarkGreen ctermfg=White +hi DiffChange guibg=LightCyan3 ctermbg=DarkCyan ctermfg=White +hi DiffText gui=NONE guibg=Gray80 ctermbg=DarkCyan ctermfg=Yellow +hi Comment guifg=MediumBlue +hi Constant guifg=DeepPink +hi PreProc guifg=DarkMagenta +hi StatusLine guibg=White guifg=#5f3705 cterm=bold ctermbg=Brown ctermfg=White +hi StatusLineNC gui=None guibg=Gray +hi VertSplit gui=None guibg=Gray +hi Identifier guifg=#005f5f +hi Statement ctermfg=DarkRed diff --git a/dot_vim/colors/potts.vim b/dot_vim/colors/potts.vim new file mode 100644 index 0000000..79bc5e9 --- /dev/null +++ b/dot_vim/colors/potts.vim @@ -0,0 +1,53 @@ +" -*- vim -*- +" FILE: "/home/dp/.vim/colors/potts2.vim" {{{ +" LAST MODIFICATION: "Fri, 08 Feb 2002 09:47:10 (dp)" +" (C) 2001 by Douglas L. Potts, +" $Id: potts2.vim,v 1.3 2002/02/18 20:25:27 dp Exp $ }}} + +set background=dark +highlight clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="potts2" + +highlight SpecialKey term=bold ctermfg=9 guifg=Cyan +highlight NonText term=bold ctermfg=9 gui=bold guifg=green +highlight Directory term=bold ctermfg=11 guifg=Cyan +highlight ErrorMsg term=standout ctermfg=15 ctermbg=4 guifg=White guibg=Red +highlight IncSearch term=reverse cterm=reverse gui=reverse +highlight Search term=reverse ctermfg=15 ctermbg=12 guifg=white guibg=Red +highlight MoreMsg term=bold ctermfg=10 gui=bold guifg=SeaGreen +highlight ModeMsg term=bold cterm=bold gui=bold +highlight LineNr term=underline ctermfg=14 guifg=Yellow +highlight Question term=standout ctermfg=10 gui=bold guifg=Green +highlight StatusLine term=bold,reverse cterm=bold,reverse gui=bold,reverse +highlight StatusLineNC term=reverse cterm=reverse gui=reverse +highlight VertSplit term=reverse cterm=reverse gui=reverse +highlight Title term=bold ctermfg=13 gui=bold guifg=Magenta +highlight Visual term=reverse cterm=reverse gui=reverse guifg=gray guibg=black +highlight VisualNOS term=bold,underline cterm=bold,underline gui=bold,underline +highlight WarningMsg term=standout ctermfg=12 guifg=Red +highlight WildMenu term=standout ctermfg=0 ctermbg=14 guifg=Black guibg=Yellow +highlight Folded term=standout cterm=bold ctermfg=11 guifg=cyan guibg=bg +highlight FoldColumn term=standout cterm=bold ctermfg=11 guifg=cyan guibg=bg +highlight DiffAdd term=bold ctermfg=10 ctermbg=9 guifg=Green guibg=Black +highlight DiffChange term=bold ctermfg=15 ctermbg=9 guifg=White guibg=Blue +highlight DiffDelete term=bold ctermfg=13 ctermbg=11 gui=bold guifg=Magenta guibg=Black +highlight DiffText term=reverse cterm=bold ctermfg=15 ctermbg=12 gui=bold guifg=White guibg=Red +highlight Cursor guifg=bg guibg=fg +highlight lCursor guifg=bg guibg=fg +highlight Normal guifg=gray guibg=black font='6x13' +highlight Comment term=bold ctermfg=11 guifg=#80a0ff +highlight Constant term=underline ctermfg=13 guifg=#ffa0a0 +highlight Special term=bold ctermfg=12 guifg=Orange +highlight Identifier term=underline cterm=bold ctermfg=11 guifg=#40ffff +highlight Statement term=bold ctermfg=14 gui=bold guifg=#ffff60 +highlight PreProc term=underline ctermfg=9 guifg=#ff80ff +highlight Type term=underline ctermfg=10 gui=bold guifg=#60ff60 +highlight Underlined term=underline cterm=underline ctermfg=9 gui=underline guifg=#80a0ff +highlight Ignore ctermfg=0 guifg=bg +highlight Error term=reverse ctermfg=15 ctermbg=12 guifg=White guibg=Red +highlight Todo term=standout ctermfg=0 ctermbg=14 guifg=Blue guibg=Yellow +highlight DebugBreak ctermfg=15 ctermbg=4 guifg=white guibg=darkred +highlight DebugStop ctermfg=15 ctermbg=10 guifg=white guibg=lightgreen diff --git a/dot_vim/colors/print_bw.vim b/dot_vim/colors/print_bw.vim new file mode 100644 index 0000000..4be35f4 --- /dev/null +++ b/dot_vim/colors/print_bw.vim @@ -0,0 +1,65 @@ +" Vim color file +" Maintainer: Mike Williams +" Last Change: 2nd June 2003 +" Version: 1.1 + +" Remove all existing highlighting. +set background=light + +hi clear + +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "print_bw" + +highlight Normal cterm=NONE ctermfg=black ctermbg=white gui=NONE guifg=black guibg=white +highlight NonText ctermfg=black ctermbg=white guifg=black guibg=white +highlight LineNr cterm=italic ctermfg=black ctermbg=white gui=italic guifg=black guibg=white + +" Syntax highlighting scheme +highlight Comment cterm=italic ctermfg=black ctermbg=white gui=italic guifg=black guibg=white + +highlight Constant ctermfg=black ctermbg=white guifg=black guibg=white +highlight String ctermfg=black ctermbg=white guifg=black guibg=white +highlight Character ctermfg=black ctermbg=white guifg=black guibg=white +highlight Number ctermfg=black ctermbg=white guifg=black guibg=white +" Boolean defaults to Constant +highlight Float ctermfg=black ctermbg=white guifg=black guibg=white + +highlight Identifier ctermfg=black ctermbg=white guifg=black guibg=white +highlight Function ctermfg=black ctermbg=white guifg=black guibg=white + +highlight Statement ctermfg=black ctermbg=white guifg=black guibg=white +highlight Conditional ctermfg=black ctermbg=white guifg=black guibg=white +highlight Repeat ctermfg=black ctermbg=white guifg=black guibg=white +highlight Label ctermfg=black ctermbg=white guifg=black guibg=white +highlight Operator ctermfg=black ctermbg=white guifg=black guibg=white +" Keyword defaults to Statement +" Exception defaults to Statement + +highlight PreProc cterm=bold ctermfg=black ctermbg=white gui=bold guifg=black guibg=white +" Include defaults to PreProc +" Define defaults to PreProc +" Macro defaults to PreProc +" PreCondit defaults to PreProc + +highlight Type cterm=bold ctermfg=black ctermbg=white gui=bold guifg=black guibg=white +" StorageClass defaults to Type +" Structure defaults to Type +" Typedef defaults to Type + +highlight Special cterm=italic ctermfg=black ctermbg=white gui=italic guifg=black guibg=white +" SpecialChar defaults to Special +" Tag defaults to Special +" Delimiter defaults to Special +highlight SpecialComment cterm=italic ctermfg=black ctermbg=white gui=italic guifg=black guibg=white +" Debug defaults to Special + +highlight Todo cterm=italic,bold ctermfg=black ctermbg=white gui=italic,bold guifg=black guibg=white +" Ideally, the bg color would be white but VIM cannot print white on black! +highlight Error cterm=bold,reverse ctermfg=black ctermbg=grey gui=bold,reverse guifg=black guibg=grey + +" vim:et:ff=unix:tw=0:ts=4:sw=4 +" EOF print_bw.vim diff --git a/dot_vim/colors/ps_color.vim b/dot_vim/colors/ps_color.vim new file mode 100644 index 0000000..909abcf --- /dev/null +++ b/dot_vim/colors/ps_color.vim @@ -0,0 +1,400 @@ +" Vim colour file --- PSC +" Maintainer: Pan Shizhu +" Last Change: 17 November 2004 +" Version: 2.82 +" URL: http://vim.sourceforge.net/scripts/script.php?script_id=760 +" +" Please prepend [VIM] in the title when writing e-mail to me, or it will +" be automatically treated as spam and removed. +" +" See the help document for all details, the help document will be +" installed after the script has been sourced once, do not open the +" script when you source it for the first time. +" + +" Initializations: {{{1 +" +function! s:init_option(var, value) + if !exists("g:psc_".a:var) + execute "let s:".a:var." = ".a:value + else + let s:{a:var} = g:psc_{a:var} + endif +endfunction +command! -nargs=+ InitOpt call s:init_option() + +function! s:multi_hi(setting, ...) + let l:idx = a:0 + while l:idx > 0 + let l:hlgroup = a:{l:idx} + execute "highlight ".l:hlgroup." ".a:setting + let l:idx = l:idx - 1 + endwhile +endfunction +command! -nargs=+ MultiHi call s:multi_hi() + +InitOpt style 'cool' +InitOpt inversed_todo 0 +InitOpt use_default_for_cterm 0 +InitOpt statement_different_from_type 0 +if s:style == 'warm' + InitOpt fontface 'mixed' +else + InitOpt fontface 'plain' +endif + +if !has("gui_running") + call s:init_option("cterm_style", "'".s:style."'") + + " Forces 'cool' style when gui is not present Since the 'warm' style for + " terminal isn't available now, and probably never will be. + if s:cterm_style=='warm' | let s:cterm_style = 'cool' + endif + if s:use_default_for_cterm==1 | let s:cterm_style = 'default' + elseif s:use_default_for_cterm==2 | let s:cterm_style = 'defdark' + endif +endif + + +InitOpt other_style 0 + +if has("gui_running") + if s:style=='warm' || s:style=='default' + set background=light + elseif s:style=='cool' || s:style=='defdark' + set background=dark + else | let s:other_style = 1 + endif +else + if s:cterm_style=='cool' || s:cterm_style=='defdark' + set background=dark + elseif s:cterm_style=='default' + set background=light + else | let s:other_style = 1 + endif +endif + + +highlight clear + +if exists("syntax_on") + syntax reset +endif + +let s:color_name = expand(":t:r") + +if s:other_style==0 | let g:colors_name = s:color_name + " Go from console version to gui, the color scheme should be sourced again + execute "autocmd TermChanged * if g:colors_name == '".s:color_name."' | " + \."colo ".s:color_name." | endif" +else + execute "runtime colors/".s:style.".vim" +endif + +" Command to go different schemes easier. +execute "command! -nargs=1 Colo if '".s:color_name."'!=\"\" | " + \'let g:psc_style = ""| endif | colo '.s:color_name + +" Give control to 'reloaded' scheme if possible +if s:style == 'reloaded' + finish +endif + +" }}}1 + +" Relevant Help: +" :h highlight-groups +" :h psc-cterm-color-table +" :ru syntax/hitest.vim +" +" Hardcoded Colors Comment: +" #aabbcc = Red aa, Green bb, Blue cc +" we must use hard-coded colours to get more 'tender' colours +" + + +" GUI: +" +" I don't want to abuse folding, but here folding is used to avoid confusion. +if s:style=='warm' + " Warm style for gui here {{{2 + " LIGHT COLOR DEFINE START + + highlight Normal guifg=#000000 guibg=#e0e0e0 + highlight Search guifg=#902000 guibg=#f8f8f8 + highlight Visual guifg=fg guibg=#a6caf0 + highlight Cursor guifg=#f0f0f0 guibg=#008000 + " The idea of CursorIM is pretty good, however, the feature is still buggy + " in the current version (Vim 6.3). + " The following line will be kept commented until the bug fixed. + " + " highlight CursorIM guifg=#f0f0f0 guibg=#800080 + highlight Special guifg=#907000 guibg=bg + highlight Comment guifg=#505800 guibg=bg + highlight Number guifg=#907000 guibg=bg + highlight Constant guifg=#007068 guibg=bg + highlight StatusLine guifg=fg guibg=#a6caf0 + highlight LineNr guifg=#686868 guibg=bg + highlight Question guifg=fg guibg=#d0d090 + highlight PreProc guifg=#009030 guibg=bg + if s:statement_different_from_type==1 + highlight Statement guifg=#4020a0 guibg=bg + else + highlight Statement guifg=#2060a8 guibg=bg + endif + highlight Type guifg=#0850a0 guibg=bg + if s:inversed_todo==1 + highlight Todo guifg=#e0e090 guibg=#000080 + else + highlight Todo guifg=#800000 guibg=#e0e090 + endif + " NOTE THIS IS IN THE WARM SECTION + highlight Error guifg=#c03000 guibg=bg + highlight Identifier guifg=#a030a0 guibg=bg + highlight ModeMsg guifg=fg guibg=#b0b0e0 + highlight VisualNOS guifg=fg guibg=#b0b0e0 + highlight SpecialKey guifg=#1050a0 guibg=bg + highlight NonText guifg=#002090 guibg=#d0d0d0 + highlight Directory guifg=#a030a0 guibg=bg + highlight ErrorMsg guifg=fg guibg=#f0b090 + highlight MoreMsg guifg=#489000 guibg=bg + highlight Title guifg=#a030a0 guibg=bg + highlight WarningMsg guifg=#b02000 guibg=bg + highlight WildMenu guifg=fg guibg=#d0d090 + highlight Folded guifg=fg guibg=#b0e0b0 + highlight FoldColumn guifg=fg guibg=#90e090 + highlight DiffAdd guifg=fg guibg=#b0b0e0 + highlight DiffChange guifg=fg guibg=#e0b0e0 + highlight DiffDelete guifg=#002090 guibg=#d0d0d0 + highlight DiffText guifg=fg guibg=#c0e080 + highlight SignColumn guifg=fg guibg=#90e090 + highlight IncSearch guifg=#f0f0f0 guibg=#806060 + highlight StatusLineNC guifg=fg guibg=#c0c0c0 + highlight VertSplit guifg=fg guibg=#c0c0c0 + highlight Underlined guifg=#6a5acd guibg=bg gui=underline + highlight Ignore guifg=bg guibg=bg + + " LIGHT COLOR DEFINE END + " }}}2 +elseif s:style=='cool' + " Cool style for gui here {{{2 + " DARK COLOR DEFINE START + + highlight Normal guifg=#d0d0d0 guibg=#202020 + highlight Comment guifg=#d0d090 guibg=bg + highlight Constant guifg=#80c0e0 guibg=bg + highlight Number guifg=#e0c060 guibg=bg + highlight Identifier guifg=#f0c0f0 guibg=bg + if s:statement_different_from_type==1 + highlight Statement guifg=#98a8f0 guibg=bg + else + highlight Statement guifg=#c0d8f8 guibg=bg + endif + highlight PreProc guifg=#60f080 guibg=bg + highlight Type guifg=#b0d0f0 guibg=bg + highlight Special guifg=#e0c060 guibg=bg + highlight Error guifg=#f08060 guibg=bg + if s:inversed_todo==1 + highlight Todo guifg=#d0d090 guibg=#000080 + else + highlight Todo guifg=#800000 guibg=#d0d090 + endif + highlight Search guifg=#e0e0e0 guibg=#800000 + highlight Visual guifg=#000000 guibg=#a6caf0 + highlight Cursor guifg=#000000 guibg=#00f000 + " NOTE THIS IS IN THE COOL SECTION + " highlight CursorIM guifg=#000000 guibg=#f000f0 + highlight StatusLine guifg=#000000 guibg=#a6caf0 + highlight LineNr guifg=#b0b0b0 guibg=bg + highlight Question guifg=#000000 guibg=#d0d090 + highlight ModeMsg guifg=fg guibg=#000080 + highlight VisualNOS guifg=fg guibg=#000080 + highlight SpecialKey guifg=#b0d0f0 guibg=bg + highlight NonText guifg=#6080f0 guibg=#101010 + highlight Directory guifg=#80c0e0 guibg=bg + highlight ErrorMsg guifg=#d0d090 guibg=#800000 + highlight MoreMsg guifg=#c0e080 guibg=bg + highlight Title guifg=#f0c0f0 guibg=bg + highlight WarningMsg guifg=#f08060 guibg=bg + highlight WildMenu guifg=#000000 guibg=#d0d090 + highlight Folded guifg=#d0d0d0 guibg=#004000 + highlight FoldColumn guifg=#e0e0e0 guibg=#008000 + highlight DiffAdd guifg=fg guibg=#000080 + highlight DiffChange guifg=fg guibg=#800080 + highlight DiffDelete guifg=#6080f0 guibg=#202020 + highlight DiffText guifg=#000000 guibg=#c0e080 + highlight SignColumn guifg=#e0e0e0 guibg=#008000 + highlight IncSearch guifg=#000000 guibg=#d0d0d0 + highlight StatusLineNC guifg=#000000 guibg=#c0c0c0 + highlight VertSplit guifg=#000000 guibg=#c0c0c0 + highlight Underlined guifg=#80a0ff guibg=bg gui=underline + highlight Ignore guifg=#000000 guibg=bg + + " DARK COLOR DEFINE END + " }}}2 +elseif s:style=='defdark' + highlight Normal guifg=#f0f0f0 guibg=#000000 +endif + +" Take NT gui for example, If you want to use a console font such as +" Lucida_Console with font size larger than 14, the font looks already thick, +" and the bold font for that will be too thick, you may not want it be bolded. +" The following code does this. +" +" All of the bold font may be disabled, since continuously switching between +" bold and plain font hurts consistency and will inevitably fatigue your eye! + +" Maximum 20 parameters for vim script function +" +MultiHi gui=NONE ModeMsg Search Cursor Special Comment Constant Number LineNr Question PreProc Statement Type Todo Error Identifier Normal + +MultiHi gui=NONE VisualNOS SpecialKey NonText Directory ErrorMsg MoreMsg Title WarningMsg WildMenu Folded FoldColumn DiffAdd DiffChange DiffDelete DiffText SignColumn + +" For reversed stuffs +MultiHi gui=NONE IncSearch StatusLine StatusLineNC VertSplit Visual + +if s:style=="cool" || s:style=="warm" + if s:fontface=="mixed" + MultiHi gui=bold IncSearch StatusLine StatusLineNC VertSplit Visual + endif +else + if s:fontface=="mixed" + hi StatusLine gui=bold,reverse + else + hi StatusLine gui=reverse + endif + MultiHi gui=reverse IncSearch StatusLineNC VertSplit Visual +endif + +" Enable the bold style +if s:fontface=="mixed" + MultiHi gui=bold Question DiffText Statement Type MoreMsg ModeMsg NonText Title VisualNOS DiffDelete +endif + + + + +" Color Term: + +" It's not quite possible to support 'cool' and 'warm' simultaneously, since +" we cannot expect a terminal to have more than 16 color names. +" + +" I assume Vim will never go to cterm mode when has("gui_running") returns 1, +" Please enlighten me if I am wrong. +" +if !has('gui_running') + " cterm settings {{{1 + if s:cterm_style=='cool' + + highlight Normal ctermfg=LightGrey ctermbg=Black + highlight Search ctermfg=White ctermbg=DarkRed + highlight Visual ctermfg=Black ctermbg=DarkCyan + highlight Cursor ctermfg=Black ctermbg=Green + highlight Special ctermfg=Yellow ctermbg=Black + highlight Comment ctermfg=DarkYellow ctermbg=Black + highlight Constant ctermfg=Blue ctermbg=Black + highlight Number ctermfg=Yellow ctermbg=Black + highlight StatusLine ctermfg=Black ctermbg=DarkCyan + highlight LineNr ctermfg=DarkGrey ctermbg=Black + highlight Question ctermfg=Black ctermbg=DarkYellow + highlight PreProc ctermfg=Green ctermbg=Black + highlight Statement ctermfg=Cyan ctermbg=Black + highlight Type ctermfg=Cyan ctermbg=Black + if s:inversed_todo==0 + highlight Todo ctermfg=DarkRed ctermbg=DarkYellow + else + highlight Todo ctermfg=DarkYellow ctermbg=DarkBlue + endif + highlight Error ctermfg=Red ctermbg=Black + highlight Identifier ctermfg=Magenta ctermbg=Black + highlight Folded ctermfg=White ctermbg=DarkGreen + highlight ModeMsg ctermfg=Grey ctermbg=DarkBlue + highlight VisualNOS ctermfg=Grey ctermbg=DarkBlue + highlight SpecialKey ctermfg=Cyan ctermbg=Black + highlight NonText ctermfg=Blue ctermbg=Black + highlight Directory ctermfg=Blue ctermbg=Black + highlight ErrorMsg ctermfg=DarkYellow ctermbg=DarkRed + highlight MoreMsg ctermfg=Green ctermbg=Black + highlight Title ctermfg=Magenta ctermbg=Black + highlight WarningMsg ctermfg=Red ctermbg=Black + highlight WildMenu ctermfg=Black ctermbg=DarkYellow + highlight FoldColumn ctermfg=White ctermbg=DarkGreen + highlight SignColumn ctermfg=White ctermbg=DarkGreen + highlight DiffText ctermfg=Black ctermbg=DarkYellow + highlight DiffDelete ctermfg=Blue ctermbg=Black + + if &t_Co==8 + " 8 colour terminal support, this assumes 16 colour is available through + " setting the 'bold' attribute, will get bright foreground colour. + " However, the bright background color is not available for 8-color terms. + " + " You can manually set t_Co=16 in your .vimrc to see if your terminal + " supports 16 colours, + MultiHi cterm=none DiffText Visual Cursor Comment Todo StatusLine Question DiffChange ModeMsg VisualNOS ErrorMsg WildMenu DiffAdd Folded DiffDelete Normal + MultiHi cterm=bold Search Special Constant Number LineNr PreProc Statement Type Error Identifier SpecialKey NonText MoreMsg Title WarningMsg FoldColumn SignColumn Directory DiffDelete + + else + " Background > 7 is only available with 16 or more colors + + " Only use the s:fontface option when there is 16-colour(or more) + " terminal support + + MultiHi cterm=none WarningMsg Search Visual Cursor Special Comment Constant Number LineNr PreProc Todo Error Identifier Folded SpecialKey Directory ErrorMsg Normal + MultiHi cterm=none WildMenu FoldColumn SignColumn DiffAdd DiffChange Question StatusLine DiffText + MultiHi cterm=reverse IncSearch StatusLineNC VertSplit + + " Well, well, bold font with color 0-7 is not possible. + " So, the Question, StatusLine, DiffText cannot act as expected. + + call s:multi_hi("cterm=".((s:fontface=="plain") ? "none" : "bold"), "Statement", "Type", "MoreMsg", "ModeMsg", "NonText", "Title", "VisualNOS", "DiffDelete") + + endif + + elseif s:cterm_style=='defdark' + highlight Normal ctermfg=LightGrey ctermbg=Black + endif + " }}}1 +endif + + +" Term: +" For console with only 4 colours (term, not cterm), we'll use the default. +" ... +" The default colorscheme is good enough for terms with no more than 4 colours +" + + +" Links: +" +if (s:style=='cool') || (s:style == 'warm') + " COLOR LINKS DEFINE START + + highlight link String Constant + " Character must be different from strings because in many languages + " (especially C, C++) a 'char' variable is scalar while 'string' is pointer, + " mistaken a 'char' for a 'string' will cause disaster! + highlight link Character Number + highlight link SpecialChar LineNr + highlight link Tag Identifier + " The following are not standard hi links, + " these are used by DrChip + highlight link Warning MoreMsg + highlight link Notice Constant + " these are used by Calendar + highlight link CalToday PreProc + " these are used by TagList + highlight link MyTagListTagName IncSearch + highlight link MyTagListTagScope Constant + + " COLOR LINKS DEFINE END +endif + + +" Clean: +" +delcommand InitOpt +delcommand MultiHi + +" vim:et:nosta:sw=2:ts=8: +" vim600:fdm=marker:fdl=1: diff --git a/dot_vim/colors/putty.vim b/dot_vim/colors/putty.vim new file mode 100644 index 0000000..4c86ad5 --- /dev/null +++ b/dot_vim/colors/putty.vim @@ -0,0 +1,82 @@ +" Vim color file +" Maintainer: Prachya Boonkwan +" Last Change: April 29, 2003 +" Licence: Public Domain + +" This package offers a eye-catching color scheme that resembles the +" default color scheme of Putty telnet terminal. + +" First remove all existing highlighting. +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "putty" + +hi Normal guifg=Grey guibg=Black + +hi ErrorMsg guibg=Red guifg=White +hi IncSearch gui=reverse +hi ModeMsg gui=bold +hi StatusLine gui=reverse,bold +hi StatusLineNC gui=reverse +hi VertSplit gui=reverse +hi Visual gui=reverse guifg=Grey guibg=fg +hi VisualNOS gui=underline,bold +hi DiffText gui=bold guibg=Red +hi Cursor guibg=Green guifg=NONE +hi lCursor guibg=Cyan guifg=NONE +hi Directory guifg=Blue +hi LineNr guifg=#BBBB00 +hi MoreMsg gui=bold guifg=SeaGreen +hi NonText gui=bold guifg=Blue guibg=Black +hi Question gui=bold guifg=SeaGreen +hi Search guibg=#BBBB00 guifg=NONE +hi SpecialKey guifg=Blue +hi Title gui=bold guifg=Magenta +hi WarningMsg guifg=Red +hi WildMenu guibg=Cyan guifg=Black +hi Folded guibg=White guifg=DarkBlue +hi FoldColumn guibg=Grey guifg=DarkBlue +hi DiffAdd guibg=LightBlue +hi DiffChange guibg=LightMagenta +hi DiffDelete gui=bold guifg=Blue guibg=LightCyan + +hi Comment guifg=Blue guibg=Black +hi Constant guifg=#BB0000 guibg=Black +hi PreProc guifg=#BB00BB guibg=Black +hi Statement gui=NONE guifg=#BBBB00 guibg=Black +hi Special guifg=#BB00BB guibg=Black +hi Ignore guifg=Grey +hi Identifier guifg=#00BBBB guibg=Black +hi Type guifg=#00BB00 guibg=Black + +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 + +" vim: sw=2 diff --git a/dot_vim/colors/python.vim b/dot_vim/colors/python.vim new file mode 100644 index 0000000..6f4a765 --- /dev/null +++ b/dot_vim/colors/python.vim @@ -0,0 +1,104 @@ +""" Init +set background=light +highlight clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "python" + + +""""""""\ Colors \"""""""" + + +"""" GUI Colors + +highlight Cursor gui=None guibg=Palegreen3 guifg=White +highlight CursorIM gui=bold guifg=white guibg=PaleTurquoise3 +highlight Directory guifg=LightSeaGreen guibg=bg +highlight DiffAdd gui=None guifg=fg guibg=DarkCyan +highlight DiffChange gui=None guifg=fg guibg=Green4 +highlight DiffDelete gui=None guifg=fg guibg=black +highlight DiffText gui=bold guifg=fg guibg=bg +highlight ErrorMsg guifg=LightYellow guibg=FireBrick +" previously 'FillColumn': +"highlight FillColumn gui=NONE guifg=black guibg=grey60 +highlight VertSplit gui=NONE guifg=black guibg=#c8d6b3 +highlight Folded gui=bold guibg=#305060 guifg=#b0d0e0 +highlight FoldColumn gui=bold guibg=#395602 guifg=#6f9b1f +highlight IncSearch gui=reverse guifg=fg guibg=bg +highlight LineNr gui=bold guibg=#395602 guifg=#6f9b1f +highlight ModeMsg guibg=DarkGreen guifg=Green +highlight MoreMsg gui=bold guifg=SeaGreen4 guibg=bg +if version < 600 + " same as SpecialKey + highlight NonText guibg=#123A4A guifg=#3D5D6D +else + " Bottom fill (use e.g. same as LineNr) + highlight NonText gui=None guibg=bg guifg=fg +endif +highlight Normal gui=None guibg=#f6ffe5 guifg=black +highlight Question gui=bold guifg=SeaGreen2 guibg=bg +highlight Search gui=NONE guibg=LightSkyBlue4 guifg=NONE +highlight SpecialKey guibg=#103040 guifg=#324262 +highlight StatusLine gui=bold guibg=#c8d6b3 guifg=black +highlight StatusLineNC gui=NONE guibg=#c8d6b3 guifg=black +highlight Title gui=bold guifg=MediumOrchid1 guibg=bg +highlight Visual gui=reverse guibg=WHITE guifg=SeaGreen +highlight VisualNOS gui=bold,underline guifg=fg guibg=bg +highlight WarningMsg gui=bold guifg=FireBrick1 guibg=bg +highlight WildMenu gui=bold guibg=Chartreuse guifg=Black + + +"""" Syntax Colors + +"highlight Comment gui=reverse guifg=#507080 +highlight Comment gui=italic guifg=#507080 + +highlight Constant guifg=black guibg=bg +hi String gui=None guifg=#ccab3f guibg=bg + "hi Character gui=None guifg=#969248 guibg=bg + highlight Number gui=None guifg=#969248 guibg=bg + highlight Boolean gui=bold guifg=#969248 guibg=bg + "hi Float gui=None guifg=#969248 guibg=bg + +highlight Identifier guifg=#6f9b1f +hi Function gui=None guifg=#775d05 guibg=bg + +highlight Statement gui=NONE guifg=#669907 + highlight Conditional gui=None guifg=Green guibg=bg + highlight Repeat gui=None guifg=SeaGreen2 guibg=bg + "hi Label gui=None guifg=Green guibg=bg + highlight Operator gui=None guifg=Chartreuse guibg=bg + highlight Keyword gui=bold guifg=#6f9b1f guibg=bg + highlight Exception gui=bold guifg=Green guibg=bg + +highlight PreProc guifg=SkyBlue1 +hi Include gui=None guifg=#725c05 guibg=bg +hi Define gui=None guifg=#725c05 guibg=bg +hi Macro gui=None guifg=#486610 guibg=bg +hi PreCondit gui=None guifg=LightSkyBlue2 guibg=bg + +highlight Type gui=NONE guifg=#ccab3f +hi StorageClass gui=None guifg=#ccab3f guibg=bg +hi Structure gui=None guifg=#ccab3f guibg=bg +hi Typedef gui=None guifg=#ccab3f guibg=bg + +highlight Special gui=bold guifg=#ddb100 + "hi SpecialChar gui=bold guifg=White guibg=bg + "hi Tag gui=bold guifg=White guibg=bg + "hi Delimiter gui=bold guifg=White guibg=bg + "hi SpecialComment gui=bold guifg=White guibg=bg + "hi Debug gui=bold guifg=White guibg=bg + +highlight Underlined gui=underline guifg=honeydew4 guibg=bg + +highlight Ignore guifg=#204050 + +highlight Error guifg=LightYellow guibg=FireBrick + +highlight Todo guifg=#969248 guibg=#507080 + +""" OLD COLORS + + + diff --git a/dot_vim/colors/redblack.vim b/dot_vim/colors/redblack.vim new file mode 100644 index 0000000..793af52 --- /dev/null +++ b/dot_vim/colors/redblack.vim @@ -0,0 +1,62 @@ +set background=dark +hi clear + +hi Normal ctermbg=black guibg=black ctermfg=grey guifg=grey +hi Boolean ctermbg=black guibg=black ctermfg=grey guifg=grey +hi Character ctermbg=black guibg=black ctermfg=red guifg=red +hi Comment ctermbg=black guibg=black ctermfg=darkgrey guifg=#606060 cterm=bold +hi Condtional ctermbg=black guibg=black ctermfg=red guifg=red +hi Constant ctermbg=black guibg=black ctermfg=red guifg=red +hi Cursor ctermbg=black guibg=white ctermfg=grey guifg=grey +hi Debug ctermbg=black guibg=black ctermfg=grey guifg=grey +hi Define ctermbg=black guibg=black ctermfg=white guifg=white +hi Delimiter ctermbg=black guibg=black ctermfg=grey guifg=grey +hi DiffAdd ctermbg=NONE guibg=NONE ctermfg=NONE guifg=NONE cterm=NONE gui=NONE +hi DiffChange ctermbg=white guibg=white ctermfg=darkgrey guifg=#606060 +hi DiffDelete ctermbg=black guibg=black ctermfg=darkgrey guifg=#606060 cterm=bold +hi DiffText ctermbg=red guibg=red ctermfg=white guifg=white +hi Directory ctermbg=black guibg=black ctermfg=white guifg=white +hi Error ctermbg=red guibg=red ctermfg=white guifg=white +hi ErrorMsg ctermbg=red guibg=red ctermfg=white guifg=white +hi Exception ctermbg=black guibg=black ctermfg=grey guifg=grey +hi Float ctermbg=black guibg=black ctermfg=red guifg=red cterm=NONE gui=NONE +hi FoldColumn ctermbg=black guibg=black ctermfg=grey guifg=grey +hi Folded ctermbg=black guibg=black ctermfg=red guifg=red +hi Function ctermbg=black guibg=black ctermfg=white guifg=white +hi Identifier ctermbg=black guibg=black ctermfg=grey guifg=grey +hi Include ctermbg=black guibg=black ctermfg=white guifg=white +hi IncSearch ctermbg=green guibg=green ctermfg=darkgrey guifg=#606060 +hi Keyword ctermbg=black guibg=black ctermfg=red guifg=red +hi Label ctermbg=black guibg=black ctermfg=white guifg=white +hi LineNr ctermbg=black guibg=black ctermfg=darkgrey guifg=#606060 cterm=bold +hi Macro ctermbg=black guibg=black ctermfg=grey guifg=grey +hi ModeMsg ctermbg=black guibg=black ctermfg=grey guifg=grey +hi MoreMsg ctermbg=black guibg=black ctermfg=grey guifg=grey +hi NonText ctermbg=black guibg=black ctermfg=darkgrey guifg=#606060 cterm=bold +hi Number ctermbg=black guibg=black ctermfg=red guifg=red cterm=NONE gui=NONE +hi Operator ctermbg=black guibg=black ctermfg=white guifg=white +hi PreCondit ctermbg=black guibg=black ctermfg=white guifg=white +hi PreProc ctermbg=black guibg=black ctermfg=white guifg=white +hi Question ctermbg=black guibg=black ctermfg=grey guifg=grey +hi Repeat ctermbg=black guibg=black ctermfg=white guifg=white +hi Search ctermbg=black guibg=black ctermfg=green guifg=green +hi SpecialChar ctermbg=black guibg=black ctermfg=white guifg=white +hi SpecialComment ctermbg=black guibg=black ctermfg=white guifg=white +hi Special ctermbg=black guibg=black ctermfg=white guifg=white +hi SpecialKey ctermbg=white guibg=white ctermfg=black guifg=black +hi Statement ctermbg=black guibg=black ctermfg=white guifg=white +hi StatusLine ctermbg=white guibg=white ctermfg=red guifg=red +hi StatusLineNC ctermbg=black guibg=black ctermfg=grey guifg=grey +hi StorageClass ctermbg=black guibg=black ctermfg=white guifg=white +hi String ctermbg=black guibg=black ctermfg=grey guifg=grey +hi Structure ctermbg=black guibg=black ctermfg=white guifg=white +hi Tag ctermbg=black guibg=black ctermfg=red guifg=red +hi Title ctermbg=black guibg=black ctermfg=grey guifg=grey +hi Todo ctermbg=black guibg=black ctermfg=white guifg=white +hi Typedef ctermbg=black guibg=black ctermfg=white guifg=white +hi Type ctermbg=black guibg=black ctermfg=white guifg=white +hi VertSplit ctermbg=black guibg=black ctermfg=grey guifg=grey +hi Visual ctermbg=black guibg=black ctermfg=grey guifg=grey +hi VisualNOS ctermbg=black guibg=black ctermfg=grey guifg=grey +hi WarningMsg ctermbg=black guibg=black ctermfg=red guifg=red +hi WildMenu ctermbg=white guibg=white ctermfg=darkgrey guifg=#606060 diff --git a/dot_vim/colors/relaxedgreen.vim b/dot_vim/colors/relaxedgreen.vim new file mode 100644 index 0000000..6cc21df --- /dev/null +++ b/dot_vim/colors/relaxedgreen.vim @@ -0,0 +1,114 @@ +" ---------------------------------------------------------------------------------------------------------------------------------- +" Filename: relaxedgreen.vim +" Last Modified: 14 Aug 2006 02:24:33 PM by Dave V +" Maintainer: Dave Vehrs (dvehrs at gmail.com) +" Copyright: 2002,2003,2004,2005,2006 Dave Vehrs +" This script is free software; you can redistribute it and/or +" modify it under the terms of the GNU General Public License as +" published by the Free Software Foundation; either version 2 of +" the License, or (at your option) any later version. +" Description: Vim colorscheme file. +" Install: Put this file in the users colors directory (~/.vim/colors) or +" in the shared colors directory (/usr/shared/vim/vim/colors/), +" then load it with :colorscheme relaxedgreen +" +" +" ---------------------------------------------------------------------------------------------------------------------------------- +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "relaxedgreen" +highlight Cursor term=reverse ctermfg=green ctermbg=blue guifg=#000000 guibg=#559955 +highlight CursorIM term=reverse ctermfg=black ctermbg=darkgreen guifg=#000000 guibg=#336633 +highlight CursorColumn term=none ctermbg=darkblue guibg=#333366 +highlight CursorColumn term=none ctermbg=darkblue guibg=#333366 +highlight Comment term=italic ctermfg=darkcyan ctermbg=black guifg=#00a594 +highlight Constant term=underline ctermfg=blue guifg=#0099dd +highlight Debug term=bold ctermfg=red ctermbg=black guifg=#dc0000 guibg=#000000 +highlight DiffAdd term=reverse ctermfg=black ctermbg=cyan guifg=#000000 guibg=#007200 +highlight DiffChange term=underline cterm=reverse ctermfg=darkgreen ctermbg=black guifg=#000000 guibg=#006700 +highlight DiffDelete term=standout ctermfg=black ctermbg=cyan guifg=#000000 guibg=#007200 +highlight DiffText term=bold ctermfg=green ctermbg=black guifg=#00ac00 guibg=#000000 +highlight Directory term=underline ctermfg=green ctermbg=black guifg=#336633 guibg=#000000 +highlight Error term=reverse,bold ctermfg=black ctermbg=red guifg=#000000 guibg=#dc0000 +highlight ErrorMsg term=reverse,bold ctermfg=white ctermbg=red guifg=#ffffff guibg=#dc0000 +highlight Folded ctermfg=darkgreen ctermbg=black guifg=#20de20 guibg=#000000 +highlight FoldColumn ctermfg=darkgreen ctermbg=black guifg=#20de20 guibg=#000000 +highlight Function term=standout ctermfg=darkgreen guifg=#22bb22 +highlight Identifier term=underline ctermfg=darkcyan gui=underline guifg=#008800 +highlight Ignore ctermfg=lightgreen guifg=#33bb33 +highlight IncSearch term=reverse ctermfg=black ctermbg=darkgreen guifg=#000000 guibg=#336633 +highlight LineNr term=bold ctermfg=green guifg=#00ff00 +highlight MatchParen term=bold ctermfg=black ctermbg=green guibg=#00ff00 guifg=#000000 +highlight ModeMsg term=bold cterm=bold gui=bold +highlight MoreMsg term=bold cterm=bold gui=bold +highlight NonText ctermfg=darkcyan guifg=#999999 +highlight Normal ctermfg=gray ctermbg=black guifg=#aaaaaa guibg=#000000 +highlight Pmenu term=reverse ctermfg=black ctermbg=green guifg=#000000 guibg=#337733 +highlight PmenuSel term=bold ctermfg=black ctermbg=gray guifg=#000000 guibg=#999999 +highlight PmenuSbar term=reverse ctermfg=black ctermbg=green guifg=#000000 guibg=#337733 +highlight PmenuThumb term=reverse ctermfg=gray ctermbg=black guifg=#999999 guibg=#000000 +highlight PreProc term=standout ctermfg=darkgreen guifg=#22bb22 +highlight Question term=standout ctermfg=red guifg=#ff0000 +highlight Search term=reverse ctermfg=black ctermbg=darkgreen guifg=#000000 guibg=#228822 +highlight SignColumn ctermfg=darkgreen guifg=#20de20 guibg=#000000 +highlight Special term=bold ctermfg=green guifg=#00ff00 +highlight SpecialKey term=bold ctermfg=green guifg=#00ff00 +highlight SpellBad term=reverse cterm=underline ctermfg=red ctermbg=black gui=undercurl guisp=#ff0000 +highlight SpellCap term=reverse cterm=underline ctermfg=yellow ctermbg=black gui=undercurl guisp=#00ffff +highlight SpellLocal term=reverse cterm=underline ctermfg=blue ctermbg=black gui=undercurl guisp=#0000ff +highlight SpellRare term=reverse cterm=underline ctermfg=darkgreen ctermbg=black gui=undercurl guisp=#00ff00 +highlight Statement term=standout ctermfg=darkred guifg=#ac0000 +highlight StatusLine term=reverse ctermfg=darkgreen ctermbg=black gui=none guibg=#228822 guifg=#000000 +highlight StatusLineNC term=reverse ctermfg=darkgreen ctermbg=blue gui=none guibg=#336633 guifg=#000000 +highlight TabLine term=reverse cterm=reverse ctermfg=black ctermbg=green guibg=#222222 guifg=#228822 +highlight TabLineFill term=reverse cterm=reverse ctermfg=green ctermbg=black guibg=#222222 guifg=#226622 +highlight TabLineSel ctermfg=black ctermbg=green guibg=#228822 guifg=#222222 +highlight Title term=reverse ctermfg=black ctermbg=green guifg=#000000 guibg=#00ff00 +highlight Todo term=reverse cterm=reverse ctermfg=darkgreen ctermbg=black guibg=#336633 guifg=#000000 +highlight Type term=standout ctermfg=green guifg=#559955 +highlight Visual term=reverse cterm=reverse ctermfg=darkgreen guifg=#000000 guibg=#336633 +highlight VisualNOS term=reverse,bold cterm=reverse ctermbg=darkgreen guifg=#000000 guibg=#228822 +highlight VertSplit term=reverse ctermfg=darkgreen guifg=#336633 +highlight User1 term=standout cterm=bold ctermbg=darkgreen ctermfg=red gui=bold guibg=#228822 guifg=#FF0000 +highlight WarningMsg term=reverse ctermfg=black ctermbg=yellow guifg=#000000 guibg=#007a7a +highlight WildMenu term=reverse ctermfg=blue ctermbg=darkgreen guifg=#000099 guibg=#00ac00 + +" ---------------------------------------------------------------------------------------------------------------------------------- +" Common groups that link to other highlight definitions. + +highlight link Constant Character +highlight link Constant Number +highlight link Constant Boolean +highlight link Constant String + +highlight link LineNr Operator + +highlight link Number Float + +highlight link PreProc Define +highlight link PreProc Include +highlight link PreProc Macro +highlight link PreProc PreCondit + +highlight link Question Repeat + +highlight link Repeat Conditional + +highlight link Special Delimiter +highlight link Special SpecialChar +highlight link Special SpecialComment +highlight link Special Tag + +highlight link Statement Exception +highlight link Statement Keyword +highlight link Statement Label + +highlight link Type StorageClass +highlight link Type Structure +highlight link Type Typedef + +" ---------------------------------------------------------------------------------------------------------------------------------- +" vim:tw=132:ts=4:sw=4 diff --git a/dot_vim/colors/reloaded.vim b/dot_vim/colors/reloaded.vim new file mode 100644 index 0000000..0c0c382 --- /dev/null +++ b/dot_vim/colors/reloaded.vim @@ -0,0 +1,856 @@ +" Vim colour file: The colorscheme reloaded. +" Maintainer: Pan Shizhu +" Last Change: 16 July 2004 +" URL: http://vim.sourceforge.net/scripts/script.php?script_id=760 +" Version: 0.6 +" +" Please prepend [VIM] in the title when writing e-mail to me, or it will +" be silently discarded. +" +" Description: +" +" See :h reloaded.txt for details +" +" Release Notes: +" +" v0.6 For default users it may be slow, Added :se lz to disable refresh +" Changed some groups of the sample parameter +" Use bracketed variable instead of the exe statement +" Changed the order of most division calculation to improve accuracy +" v0.5 Initial upload at 15 July 2004. +" + + +" minimal value of all the given numbers, maximum 20 parameters +fu! s:min(num1,num2,...) + let l:min = a:num1 0 + let l:var = a:{l:idx} + if l:var < l:min + let l:min = l:var + en + let l:idx = l:idx - 1 + endw + retu l:min +endf + +" same as above for maximal value +fu! s:max(num1,num2,...) + let l:max = a:num1>a:num2 ? a:num1 : a:num2 + + let l:idx = a:0 + wh l:idx > 0 + let l:var = a:{l:idx} + if l:var > l:max + let l:max = l:var + en + let l:idx = l:idx - 1 + endw + retu l:max +endf + +" guard the var to be in the range between unity and base. +" if base is omitted, treat like degrees. +fu! s:guard(var,unity,...) + if a:0 + if a:var < a:1 + retu a:1 + elsei a:var > a:unity + retu a:unity + en + retu a:var + en + if a:var < 0 + retu a:unity + (a:var % a:unity) + en + retu a:var % a:unity +endf + +" sub-function + " 8-bit integer to 2 digit hexadecimal + fu! s:to_hex(num) + retu '0123456789abcdef' [a:num/16%16] . '0123456789abcdef' [a:num%16] + endf + +" rgb to rgb color string +fu! s:rgb2colors(red,green,blue) + retu "#".s:to_hex(a:red+0).s:to_hex(a:green+0).s:to_hex(a:blue+0) +endf + +" sub-functions + fu! s:hue2rgb(v1, v2, hue) + " trim to the first period + let l:hue = s:guard(a:hue, 360) + + if l:hue < 60 + retu a:v1 + l:hue * (a:v2 - a:v1) / 60 + en + if l:hue < 180 + retu a:v2 + en + if l:hue < 240 + retu a:v1 + (240 - l:hue) * (a:v2 - a:v1) / 60 + en + retu a:v1 + endf + +" hsl to rgb color string +fu! s:hsb2colors(hue,sat,bri) + " Hue: Any integer degree (modular 360) + " Saturation: 0 to 1023/1023 + " Luminance: 0 to 1023/1023 + " RGB results = 0 to 255 + + if a:sat == 0 + let l:lum = a:bri / 4 + retu s:rgb2colors(l:lum, l:lum, l:lum) + en + + if a:bri < 512 + let l:v2 = a:bri * ( 1023 + a:sat ) + el + let l:v2 = ( a:bri + a:sat ) * 1023 - ( a:sat * a:bri ) + en + + let l:v1 = 2 * 1023 * a:bri - l:v2 + + let l:red = s:hue2rgb(l:v1, l:v2, a:hue + 120) / 4092 + let l:green = s:hue2rgb(l:v1, l:v2, a:hue) / 4092 + let l:blue = s:hue2rgb(l:v1, l:v2, a:hue - 120) / 4092 + + retu s:rgb2colors(l:red, l:green, l:blue) + +endf + +" rgb color number to s:rgb +fu! s:color2rgb(color) + let s:red = a:color / 0x10000 + let s:green = (a:color / 0x100) % 0x100 + let s:blue = a:color % 0x100 +endf + +" rgb to s:hsl +fu! s:rgb2hsb(red,green,blue) + + let l:red = a:red * 1023 / 255 + let l:green = a:green * 1023 / 255 + let l:blue = a:blue * 1023 / 255 + + let l:min = s:min(l:red, l:green, l:blue) + let l:max = s:max(l:red, l:green, l:blue) + let l:delta = l:max - l:min + + let s:bri = (l:max + l:min) / 2 + + if l:delta == 0 + let s:hue = 180 " When sat = 0, hue default to 180 + let s:sat = 0 + el + if s:bri < 512 + let s:sat = l:delta * 1023 / (l:max + l:min) + el + let s:sat = l:delta * 1023 / (2*1023 - l:max - l:min) + en + + let l:del_r = ( (l:max-l:red) + (l:delta*3) ) * 60 / l:delta + let l:del_g = ( (l:max-l:green) + (l:delta*3) ) * 60 / l:delta + let l:del_b = ( (l:max-l:blue) + (l:delta*3) ) * 60 / l:delta + + if l:red == l:max + let s:hue = l:del_b - l:del_g + elsei l:green == l:max + let s:hue = 120 + l:del_r - l:del_b + elsei l:blue == l:max + let s:hue = 240 + l:del_g - l:del_r + en + + let s:hue = s:guard(s:hue, 360) + en +endf + +" sub-functions + if !exists("s:loaded") | let s:hue_range = 0 | let s:hue_phase = 0 | en + fu! s:cast_hue(hue) + retu a:hue * s:hue_range / 360 - s:hue_range / 2 + s:hue_phase + endf + + if !exists("s:loaded") | let s:sat_base = 0 | let s:sat_modify = 0 | en + fu! s:cast_sat(sat) + let l:sat = a:sat * (1024 - s:sat_base) / 1024 + s:sat_base + retu l:sat * s:sat_modify / 100 + endf + + if !exists("s:loaded") | let s:bri_base = 0 | let s:bri_modify = 0 | en + fu! s:cast_bri(bri) + let l:bri = a:bri * (1024 - s:bri_base) / 1024 + s:bri_base + retu l:bri * s:bri_modify / 100 + endf + +" input hsl, do modification in HSL color space, output rgb color string +fu! s:make_hsb(hue,sat,bri) + + let l:hue = s:guard(s:cast_hue(a:hue), 360) + let l:sat = s:guard(s:cast_sat(a:sat), 1023, s:sat_base) + let l:bri = s:guard(s:cast_bri(a:bri), 1023, s:bri_base) + + if s:verbose | ec "\"\tH=".l:hue."\tS=".l:sat."\tL=".l:bri | en + retu s:hsb2colors(l:hue, l:sat, l:bri) + +endf + +" input rgb color number, transfer to HSL, then do make_hsb +fu! s:make_color(color) + cal s:color2rgb(a:color) + cal s:rgb2hsb(s:red, s:green, s:blue) + retu s:make_hsb(s:hue, s:sat, s:bri) +endf + +" input color string, transfer in HSL, output rgb color string +fu! s:parse_color(p) + if a:p[6] == "#" + let l:p = '0x'.strpart(a:p, 7, 6) + 0 + retu strpart(a:p, 0, 6).s:make_color(l:p) + elsei a:p[6] == "@" + let l:hue = s:guard(strpart(a:p, 7, 3) + 0, 360) + let l:sat = s:guard(strpart(a:p, 10, 4) + 0, 1023, 0) + let l:bri = s:guard(strpart(a:p, 14, 4) + 0, 1023, 0) + retu strpart(a:p, 0, 6).s:make_hsb(l:hue, l:sat, l:bri) + el + retu a:p + en +endf + +if !exists("s:loaded") | let s:verbose = 0 | en +fu! s:psc_hi(group, p1, p2, ...) + if a:0 == 0 + let l:p3 = "gui=NONE" + el + let l:p3 = a:1 + en + let l:p1 = s:parse_color(a:p1) + let l:p2 = s:parse_color(a:p2) + if s:verbose | ec "hi ".a:group." ".l:p1." ".l:p2." ".l:p3 | en + exe "hi ".a:group." ".l:p1." ".l:p2." ".l:p3 +endf + +fu! s:multi_hi(setting, ...) + let l:idx = a:0 + wh l:idx > 0 + let l:hlgroup = a:{l:idx} + if s:verbose | ec "hi ".l:hlgroup." ".a:setting | en + exe "hi ".l:hlgroup." ".a:setting + let l:idx = l:idx - 1 + endw +endf + +" Transfer global variable into script variable +fu! s:init_option(var, value) + if !exists("g:psc_".a:var) + exe "let s:".a:var." = ".a:value + el + let s:{a:var} = g:psc_{a:var} + en +endf + +if !exists("loaded") | let s:file = expand("") | en + +cal s:init_option("reload_prefix", "'".fnamemodify(s:file,":p:h")."/'") + +fu! s:psc_reload(...) + + " Only do color for GUI + if !has("gui_running") | retu | en + + if a:0 > 10 + echoe "Too many parameters, ".'a:0 == '.a:0 + retu + en + + com! -nargs=+ InitOpt cal s:init_option() + + if a:0 >= 6 + " Hue = phase +- (range/2) + " Sat = sat * modify% then promoted from base to 1024 + " Bri = bri * modify% then promoted from base to 1024 + + let s:hue_range = a:1 + let s:sat_modify = a:2 + let s:bri_modify = a:3 + + let s:hue_phase = a:4 + let s:sat_base = a:5 + let s:bri_base = a:6 + el + InitOpt hue_range 360 + InitOpt sat_modify 100 + InitOpt bri_modify 100 + + InitOpt hue_phase 180 + InitOpt sat_base 0 + InitOpt bri_base 0 + en + + if a:0 >= 7 + let s:lightbg = a:7 + el + InitOpt style 'cool' + if s:style == 'warm' + InitOpt lightbg 1 + el + InitOpt lightbg 0 + en + en + + if a:0 >= 8 + let s:plainfont = a:8 + el + InitOpt fontface 'mixed' + if s:fontface == 'mixed' + InitOpt plainfont 0 + el + InitOpt plainfont 1 + en + en + + if a:0 >= 9 + let s:verbose = a:9 + el + InitOpt verbose 0 + en + + if a:0 == 10 + let s:reload_filename = a:10 + el + InitOpt reload_filename 'ps_color.vim' + en + + delc InitOpt + + let s:reload_filename = s:reload_prefix.s:reload_filename + + if !filereadable(s:reload_filename) + echoe "Color data file ".s:reload_filename." not found." + retu + en + + se lz + + if !s:lightbg | se bg=dark | el | se bg=light | en + + hi clear + + if exists("syntax_on") | sy reset | en + + " This is mandatory, personally I think it is a bug rather than a feature. + let g:colors_name = expand(":t:r") + + + " GUI: + " + " Matrix Reloaded style for gui + " + let s:tempfile = '__Temp_Colors__' + + exe "sil! 1new ".s:tempfile + sil! %d + exe "sil! 0r ".s:reload_filename + if s:verbose + ec '" Reloaded color scheme from '.s:reload_filename + ec '" with param ' s:hue_range s:sat_modify s:bri_modify + \s:hue_phase s:sat_base s:bri_base s:lightbg s:plainfont + ec '" ' + en + + if !s:lightbg + sil! 1,/^\s*" DARK COLOR DEFINE START$/d + sil! /^\s*" DARK COLOR DEFINE END$/,$d + el + sil! 1,/^\s*" LIGHT COLOR DEFINE START$/d + sil! /^\s*" LIGHT COLOR DEFINE END$/,$d + en + + sil! 0 + let s:nnb = 1 + com! -nargs=+ PscHi cal s:psc_hi() + wh 1 + let s:nnb = nextnonblank(s:nnb) + if !s:nnb | brea | en + + let s:line = getline(s:nnb) + + let s:nnb = s:nnb + 1 + + " Skip invalid lines + if s:line !~ '^\s*hi\%[ghlight]\s*.*' | con | en + + exe substitute(s:line, '\', 'PscHi', '') + endw + sil! q! + delc PscHi + + " Enable the bold style + com! -nargs=+ MultiHi cal s:multi_hi() + if !s:plainfont + MultiHi gui=bold Question StatusLine DiffText Statement Type MoreMsg ModeMsg NonText Title VisualNOS DiffDelete + endif + delc MultiHi + + " Color Term: + " Are you crazy? + + + " Term: + " Don't be silly... + + + " Links: + " Something sensible + + exe "sil! 1new ".s:tempfile + sil! %d + exe "sil! 0r ".s:reload_filename + + sil! 1,/^\s*" COLOR LINKS DEFINE START$/d + sil! /^\s*" COLOR LINKS DEFINE END$/,$d + + sil! 0 + let s:nnb = 1 + wh 1 + let s:nnb = nextnonblank(s:nnb) + if !s:nnb + brea + en + let s:line = getline(s:nnb) + + let s:nnb = s:nnb + 1 + " Skip invalid lines + if s:line !~ '^\s*hi\%[ghlight]\s*.*' | con | en + + if s:verbose | ec s:line | en + + sil! exe s:line + endw + sil! q! + +endf + +" To flag the script variables are initialized +let s:loaded = 1 + +com! -nargs=* Reload cal psc_reload() + +" vim:et:nosta:sw=2:ts=8: +" HelpExtractor: +" The document {{{2 +fu! s:extract_help() + se lz + let docdir = substitute(s:file, '\', 'doc', '') + exe "silent! 1new ".docfile + sil! %d + exe "silent! 0r ".fnamemodify(s:file, ":p") + sil! 1,/^" HelpExtractorDoc:$/d + norm! GVkkd + cal append(line('$'), '') + cal append(line('$'), 'v' . 'im:tw=78:ts=8:noet:ft=help:fo+=t:norl:noet:') + sil! wq! + exe "helptags ".substitute(docfile,'^\(.*doc.\).*$','\1','e') + + exe "silent! 1new ".fnamemodify(s:file, ":p") + 1 + sil! /^" HelpExtractor:$/,$g/.*/d + sil! wq! + + noh +endf + +cal s:extract_help() +fini + +" --------------------------------------------------------------------- +" Put the help after the HelpExtractorDoc label... +" HelpExtractorDoc: +*reloaded.txt* Color Tuner and Reloader Last change: 16 July 2004 + + +PERSONAL COLOUR TUNER AND RELOADER *psc_reload* + + +Author: Pan, Shizhu. at > + (prepend '[VIM]' in the title or your mail may be silently removed.) +< +============================================================================== +CONTENTS *pcr* *pcr-contents* + + 1. Contents.....................|pcr-contents| + 2. PCR Overview.................|pcr-overview| + 3. PCR Usage....................|pcr-usage| + 4. PCR Options..................|pcr-options| + 5. PCR FAQ .....................|pcr-faq| + 6. PCR Todo List................|pcr-todo| + +For release notes, please see the header of reloaded.vim + +============================================================================== +PCR FEATURES OVERVIEW *pcr-features* *pcr-overview* + + Features ~ + + . PCR is a color scheme tuner and reloader. + . PCR is an optional utility for ps_color as well as other schemes + . It tunes the whole color scheme in HSL color space. + . Thousands of color styles can be achieved by HSL tuning. + . Tuned output can be saved to create new color schemes. + . Can be configured to tune your own color scheme. + . Works under GUI only, do not affect console version. + + Design Concern ~ + + When I'm designing the color scheme |ps_color|, I realized it is + extremely difficult to fine-tune the color, the whole step is not at + all straight forward. What is more, RGB is not quite comprehensive + for most average people. It would be much better if it is possible to + tune the color scheme in HSL color space. Many color schemes in vim + are actually similar, just some tune in the HSL color space. + + It is very easy to understand HSL color space even if one has NO + previous knowledge. This may be another reason to use HSL color + space. + + Portability ~ + + Before playing the game of colors, you are strongly recommended to + adjust your monitor to 6500k color temperature and proper gamma curve. + This has been described in the |ps_color.txt| at the same + "Portability" section. If you don't know how, just skip it. + + The only portability issue, for the obvious reason, this is GUI only. + ;-) + +============================================================================== +PSC USAGE *pcr-usage* + + For the impatient ~ + + Make sure both ps_color.vim and reloaded.vim are in your + [runtimepath]/colors and type in the following command > + + :colo reloaded +< + in your Vim or append to your |.vimrc|. The [runtimepath] can be any + 'writable' directory listed in |vimfiles|, normally your $HOME/.vim in + Unix or $HOME/vimfiles in Windows. + + Note that you don't need to remove your current :colo lines in .vimrc, + since the :colo reloaded does nothing on color scheme, the + reloaded.vim has to be a color scheme for some bizarre reason. + + Note if you do not want to have ps_color.vim, go to FAQ section to see + how to create your own. + + Experiencing ~ + + Normally, nothing will happen when you sourced the colorscheme + reloaded, this only enables the command :Reload. + + The :Reload command will be available after you sourced the + colorscheme reloaded. If not, type :colo reloaded now. + + Now try the following: +> + :Reload 60 100 100 120 341 0 0 0 0 +< + If you do as above, you will get a greenish feeling like "Matrix + reloaded". You can run the Reload command in vim command line as well + as in .vimrc. To see what the :Reload is capable of, try the + following, one by one: +> + :Reload 120 100 100 60 341 128 + :Reload 120 100 100 60 341 0 1 + :Reload 480 84 84 195 256 96 0 + :Reload 720 71 100 360 0 0 0 + :Reload 60 100 100 150 341 0 0 + :Reload 240 120 100 330 341 0 1 + :Reload 360 100 100 180 0 0 0 1 + :Reload 360 100 100 180 0 0 1 0 +< + (Hint: choose a document which has as much highlight as possible to + see what the come scheme looks like. Vim scripts or Vim help documents + may be good samples.) + + . The first line will give you a golden feeling, followed by + a reversed version. + . Next comes a low contrast dark-cyan-background scheme. + . Next comes a black background with decreased saturation. + . The Hue can be changed anyway. This is a cyan-green style, call it + "Matrix revolution"? + . Be hot, lets try a reddish style. + . The last two lines will give you the same as ps_color 'cool' and + 'warm' style. + + Are you amazed? I guess so. And, of course all the above can be + further fine-tuned. + + If you want to explore the mysteries inside this, see the next + section. + +============================================================================== +PCR OPTIONS *pcr-options* + + Since it is much easier and straight forward to specify command line + arguments, there are no need to create individual options. Here we + describe the 10 parameters. + + Synopsis ~ + + :Reload h_r s_m l_m h_p s_b l_b [ lbg [ pf [ vb [ cdf ] ] ] ] + + Scope ~ + + Hue is the dominant parameter to a color, because the human eye is + very sensitive to the changing of hue. Generally, the hue is + expressed by angle, can be 0 to 360 degrees, where 359 degree is equal + to -1 degree, 360 degree is equal to 0 degree, 361 degree is equal to + 1 degree, etc. + + The human eye is less sensitive to Saturation, the Black, Grey, and + White has saturation=0, The pure Red, Green, and Blue has + saturation=max, usually, saturation is defined to be between 0 and 1. + But Vim is not capable of handling floating points, so I defined the + saturation to be between 0 and 1023. + + The saturation is the amount the different color elements differs, if + the red, green, blue are similar, the saturation is low. + + The human eye is least sensitive to Luminance, since the dynamic range + of human eye can be changed on the fly. The luminance, or to say + brightness, needs no explanation, since the meaning is quite obvious. + + The Luminance is also defined to be 0 to 1023, for the same reason. + + Parameter h_r and h_p ~ + + This refers to hue range and hue phase. + + set the hue range to any positive value, the hue will be in the range + of hue_phase-(hue_range/2) to hue_phase-(hue_range/2) + + The normal hue is from 0 to 360, let hue_range=360 and hue_phase=180 + will have the range 0 to 360, hence the hue of original color scheme + will be retained. + + Set the hue range to between 0 and 360 will have the hue range + compressed, or to say a color-filtered look. Set the hue range to + 0 will force all colors in the color scheme to have the same hue value + as hue_phase. You may not want it to be that low, since the + hue_range=60 will in most cases enough to give the whole color scheme + a color-filtered look. + + Set the hue range to >360 will have the color changed without compress + the hue range, the behavior is not easy to describe, you need to do + more experiments to understand what it does. + + Set the hue range to <0 is illegal. + + The hue_phase is the base value the whole color scheme designed + around. Usually, the Hue=0 is Red, Hue=60 is Yellow, Hue=120 is + Green, Hue=180 is Cyan, Hue=240 is Blue, Hue=300 is Magenta, any other + value is between two color, for example, Hue=30 is Orange color. + + It would be very interesting to see how a color scheme changes when + change the hue_phase. + + Parameter s_m and s_b ~ + + This refers to saturation modify and saturation base + + The saturation modify is a percent value, 100 means no modify. + If set to 50, all saturation will be decreased to 50%, + If set to 0, the screen will be black and white (greyscale), + If set to 200, all saturation will be increased to 200% times the + original value. + + The saturation base is a linear value, it defines the minimum + saturation. + If set to 0, the saturation will not be modified. + If set to 256, the minimum saturation will be 1/4. + If set to 341, the minimum saturation will be 1/3. + If set to 512, the minimum saturation will be 1/2. + + Oops, please _note_ that a too high value of saturation is not quite + comfortable for most people. + + Parameter l_m and l_b ~ + + This refers to luminance modify and luminance base + + The luminance modify is a percent value, 100 means no modify. + If set to 50, all luminance will be decreased to 50%, + If set to 0, the screen will be completely dark (can be possibly used + for boss key?) + If set to 200, all luminance will be increased to 200% times the + original value. + + The luminance base is a linear value, it defines the minimum + luminance. + + Main use of this is to tune the background for a dark background + colorscheme. + If set to 0, the background will be black. + If set to 128, the background will be a 1/8 dark one, the color of + background can be tuned by saturation_base and hue_phase. + If set to 1023, the screen will be completely white. + + For light background, it is recommended to set luminance base to 0. + + + Parameter lbg ~ + + This refers to light background + + when set to 1, the reloader choose a light background scheme and set + bg to light, otherwise, it is set to 0. + + This options is optional, if omitted, it checks the value of + g:psc_style, if the style is 'warm', the light background is set to 1. + + Parameter pf ~ + + This refers to plain font + + Optional, set to 1 will turn all bolded font to plain font. + When not set, will check for g:psc_fontface, if non-exists, + default to 0. + + Parameter vb ~ + + This refers to 'verbose' + + When set to 1, some debug messages will be echoed when running the + command. + + Parameter cdf ~ + + This refers to custom data file + + The default data file is the ps_color.vim placed at the same directory + as reloaded.vim. You can set it to any file you want. + + When present, it should be the file name of your data file. + For example, if your data file is ~/.vim/colors/template.vim: +> + :Reload 360 100 100 180 0 0 1 0 0 template.vim +< + will reload the light color scheme in template.vim + *pcr-custom-data* + Designing a data file ~ + + The data file can be a normal color scheme script, such as + ps_color.vim, You may need to know more if you want to do + modifications. + + The ps_color.vim is fairly complicated, but only part of the file are + imported as data. Mainly, you only need to see how it organizes + statements in between "DEFINE START" and "DEFINE END" blocks. + + The data file should conform to some restrictions: + + . Must be in the same directory as reloaded.vim + + . ALL highlight group must be defined, do not accept any default + value, this include the Underline and Ignore groups, this also hints + that both foreground and background must be defined. Use :ru + syntax/hitest.vim to check if all highlight groups are defined. + + . Color names like "SlateBlue" should not be used, only hardcoded color + like #rrggbb is acceptable, the fg and bg can be used though, Since + fg and bg comes from the group Normal, and Normal group must be + defined with #rrggbb form of foreground and background. + + . The following should exist in the file +> + " DARK COLOR DEFINE START + " DARK COLOR DEFINE END + " LIGHT COLOR DEFINE START + " LIGHT COLOR DEFINE END + " COLOR LINKS DEFINE START + " COLOR LINKS DEFINE END +< + the highlight statement should be placed in between START and END. + All statement other than the 'highlight' will be silently discarded. + + You can put dark color scheme defines in dark color define section, + or light color scheme in light color section. It doesn't matter if + you have nothing in the section, since the defaults are used. + However, the defaults will not be tuned in the HSL color space, + which may be you want, and may not! + + Further statements can be put in color links define section, you can + put any 'highlight' statements in this section since the statements + in this section will be execute unparsed, if you want to manually + change some groups in a reloaded scheme, put something there. + + +============================================================================== +PCR FAQ AND TIPS *pcr-faq* +> + Q: How to make my own color to be tunable? +< + A: Your own color scheme must conform to some restrictions, + see |pcr-custom-data| for details. +> + Q: How to run reloaded.vim without having ps_color.vim? +< + A: reloaded.vim is just a utility to reload colorscheme, it does not + contain any colors. You must have a data file, or to say + colorscheme, contains the 'highlight' statements like those in + ps_color.vim, and tell the reloaded.vim to use that file. + Instructions on creating custom data file is described in + |pcr-custom-data|. +> + Q: How to export the tuned output to create new color scheme? +< + A: This is still under construction, currently you can set verbose in + the command line parameter and capture the output, but it is not + working very well. +> + Q: Why this should be a colorschme instead of a plugin utility? +< + A: This seems to be a Vim bug (or to say 'feature' if you prefer), the + main function will hang up if run as a plugin and you will not be + able to source the colorscheme in the current Vim session, so, + please put reloaded.vim in ~/.vim/colors, do NOT put it in + ~/.vim/plugin ! +> + Q: Why it is impossible to browse functions in reloaded.vim with + taglist plugin? +< + A: The old versions of exuberant ctags utility do not cope with + functions very well, please download and recompile the newest + version of exuberant ctags utility. + + +============================================================================== +PCR TODO LIST *pcr-todo* + + o Fix the remaining bugs. + o Try to be able to parse color names + o Improve the output feature + +============================================================================== +vim:et:nosta:sw=2:ts=8: +}}}2 vim600:fdm=marker:fdl=1: diff --git a/dot_vim/colors/revolutions.vim b/dot_vim/colors/revolutions.vim new file mode 100644 index 0000000..15450c9 --- /dev/null +++ b/dot_vim/colors/revolutions.vim @@ -0,0 +1,75 @@ +" MATRIX-REVOLUTIONS colorscheme +" Author: Christian MICHON +" Version: 1.0 +" Last Change: 23 Jun 2004 + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = 'revolutions' + +hi Boolean guifg=#e6fff3 guibg=#43705a gui=none +hi Character guifg=#e6fff3 guibg=#43705a gui=none +hi Comment guifg=#43705a guibg=#000000 gui=underline +hi Conditional guifg=#e6fff3 guibg=#000000 gui=bold +hi Constant guifg=#e6fff3 guibg=#43705a gui=none +hi Cursor guifg=#43705a guibg=#e6fff3 gui=none +hi Debug guifg=#61a181 guibg=#000000 gui=none +hi Define guifg=#e6fff3 guibg=#000000 gui=none +hi Delimiter guifg=#61a181 guibg=#000000 gui=none +hi DiffAdd guifg=#e6fff3 guibg=#43705a gui=bold +hi DiffChange guifg=#e6fff3 guibg=#43705a gui=none +hi DiffDelete guifg=#e6fff3 guibg=#43705a gui=none +hi DiffText guifg=#000000 guibg=#e6fff3 gui=bold +hi Directory guifg=#e6fff3 guibg=#000000 gui=none +hi Error guifg=#e6fff3 guibg=#61a181 gui=bold +hi ErrorMsg guifg=#e6fff3 guibg=#61a181 gui=bold +hi Exception guifg=#e6fff3 guibg=#000000 gui=bold +hi Float guifg=#e6fff3 guibg=#43705a gui=none +hi FoldColumn guifg=#9bcfb5 guibg=#43705a gui=bold +hi Folded guifg=#9bcfb5 guibg=#43705a gui=bold +hi Function guifg=#e6fff3 guibg=#000000 gui=none +hi Identifier guifg=#e6fff3 guibg=#000000 gui=none +hi Ignore guifg=#000000 guibg=#000000 gui=none +hi Include guifg=#e6fff3 guibg=#000000 gui=none +hi IncSearch guifg=#1d3026 guibg=#61a181 gui=bold +hi Keyword guifg=#e6fff3 guibg=#000000 gui=bold +hi Label guifg=#e6fff3 guibg=#000000 gui=bold +hi lCursor guifg=#43705a guibg=#e6fff3 gui=none +hi LineNr guifg=#9bcfb5 guibg=#000000 gui=bold +hi Macro guifg=#e6fff3 guibg=#000000 gui=none +hi ModeMsg guifg=#9bcfb5 guibg=#000000 gui=bold +hi MoreMsg guifg=#9bcfb5 guibg=#000000 gui=bold +hi NonText guifg=#9bcfb5 guibg=#1d3026 gui=bold +hi Normal guifg=#9bcfb5 guibg=#000000 gui=none +hi Number guifg=#e6fff3 guibg=#000000 gui=none +hi Operator guifg=#e6fff3 guibg=#000000 gui=bold +hi PreCondit guifg=#e6fff3 guibg=#000000 gui=none +hi PreProc guifg=#61a181 guibg=#000000 gui=none +hi Question guifg=#9bcfb5 guibg=#000000 gui=bold +hi Repeat guifg=#e6fff3 guibg=#000000 gui=bold +hi Search guifg=#1d3026 guibg=#61a181 gui=bold +hi Special guifg=#61a181 guibg=#000000 gui=none +hi SpecialChar guifg=#61a181 guibg=#000000 gui=none +hi SpecialComment guifg=#61a181 guibg=#000000 gui=none +hi SpecialKey guifg=#9bcfb5 guibg=#000000 gui=none +hi Statement guifg=#e6fff3 guibg=#000000 gui=bold +hi StatusLine guifg=#e6fff3 guibg=#61a181 gui=bold +hi StatusLineNC guifg=#1d3026 guibg=#61a181 gui=bold +hi StorageClass guifg=#f070a0 guibg=#000000 gui=bold +hi String guifg=#e6fff3 guibg=#000000 gui=none +hi Structure guifg=#f070a0 guibg=#000000 gui=bold +hi Tag guifg=#61a181 guibg=#000000 gui=none +hi Title guifg=#e6fff3 guibg=#1d3026 gui=bold +hi Todo guifg=#1d3026 guibg=#9bcfb5 gui=none +hi Type guifg=#e6fff3 guibg=#000000 gui=bold +hi Typedef guifg=#f070a0 guibg=#000000 gui=bold +hi Underlined guifg=#e6fff3 guibg=#000000 gui=underline +hi VertSplit guifg=#61a181 guibg=#61a181 gui=none +hi Visual guifg=#e6fff3 guibg=#61a181 gui=none +hi VisualNOS guifg=#9bcfb5 guibg=#000000 gui=underline +hi WarningMsg guifg=#1d3026 guibg=#61a181 gui=bold +hi WildMenu guifg=#43705a guibg=#e6fff3 gui=none diff --git a/dot_vim/colors/robinhood.vim b/dot_vim/colors/robinhood.vim new file mode 100644 index 0000000..b6eb1bd --- /dev/null +++ b/dot_vim/colors/robinhood.vim @@ -0,0 +1,99 @@ +" vim: set tw=0 sw=4 sts=4 et: + +" Vim color file +" Maintainer: Datila Carvalho +" Last Change: November, 3, 2003 +" Version: 0.1 + +" This is a VIM's version of the emacs color theme +" _Robin Hood_ created by Alex Schroede. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "robinhood" + + +""" Colors + +" GUI colors +hi Cursor guifg=fg guibg=gray +hi CursorIM guifg=NONE guibg=gray +"hi Directory +"hi DiffAdd +"hi DiffChange +"hi DiffDelete +"hi DiffText +hi ErrorMsg gui=bold guifg=White guibg=Red +"hi VertSplit +"hi Folded +"hi FoldColumn +"hi IncSearch +"hi LineNr +"hi ModeMsg +"hi MoreMsg +"hi NonText +hi Normal guibg=#304020 guifg=navajowhite +"hi Question +hi Search gui=bold guifg=Black guibg=gray +"hi SpecialKey +hi StatusLine guifg=palegreen +hi StatusLineNC guifg=yellowgreen +"hi Title +hi Visual guifg=darkslategrey guibg=fg +hi VisualNOS gui=bold guifg=Black guibg=fg +hi WarningMsg guifg=White guibg=Tomato +"hi WildMenu + +" Colors for syntax highlighting +hi Comment guifg=lightblue + +hi Constant gui=bold guifg=lightcyan + hi String guifg=lightsalmon + hi Character guifg=lightsalmon + hi Number gui=bold guifg=lightcyan + hi Boolean gui=bold guifg=lightcyan + hi Float gui=bold guifg=lightcyan + +hi Identifier gui=bold guifg=palegreen + hi Function guifg=yellowgreen + +hi Statement gui=bold guifg=salmon + hi Conditional gui=bold guifg=salmon + hi Repeat gui=bold guifg=salmon + hi Label guifg=salmon + hi Operator guifg=salmon + "hi Keyword + "hi Exception + +hi PreProc guifg=palegreen + hi Include gui=bold guifg=palegreen + hi Define guifg=palegreen + hi Macro guifg=aquamarine + hi PreCondit guifg=palegreen + +hi Type gui=bold guifg=palegreen + hi StorageClass gui=bold guifg=aquamarine + hi Structure gui=bold guifg=aquamarine + hi Typedef gui=bold guifg=aquamarine + +"hi Special + ""Underline Character + "hi SpecialChar gui=underline + "hi Tag gui=bold,underline + ""Statement + "hi Delimiter gui=bold + ""Bold comment (in Java at least) + "hi SpecialComment gui=bold + "hi Debug gui=bold + +hi Underlined gui=underline + +hi Ignore guifg=bg + +hi Error gui=bold guifg=White guibg=Red + +"hi Todo diff --git a/dot_vim/colors/sand.vim b/dot_vim/colors/sand.vim new file mode 100644 index 0000000..cc673df --- /dev/null +++ b/dot_vim/colors/sand.vim @@ -0,0 +1,30 @@ +" Vim color file +" Maintainer: Tim Alexeevsky +" Last Change: 2002-03-14 +" Version: 0.5 +" URL: http://sunsite.cs.msu.su/~tim/vim/sand.vim +" +" Thanx to Hans Fugal for his colorscheme_template.vim + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="sand" + +highlight Normal guibg=cornsilk guifg=NONE +highlight PreProc guibg=NONE guifg=Maroon4 +highlight Comment guibg=NONE guifg=SteelBlue4 +highlight Constant guibg=NONE guifg=NavajoWhite4 +highlight Special guibg=NONE guifg=SlateBlue4 +highlight Identifier guibg=NONE guifg=SeaGreen +highlight Statement guibg=NONE guifg=bisque4 +highlight Type guibg=NONE guifg=DarkOliveGreen +highlight Todo guibg=LightYellow3 guifg=Blue4 +highlight NonText guibg=NONE guifg=DarkGreen +highlight LineNr guibg=NONE guifg=Brown +highlight StatusLineNC guifg=#8090a0 +highlight StatusLine guifg=#005070 + +"vim: tw=0 sw=3 ts=3 sts=3 et diff --git a/dot_vim/colors/scite.vim b/dot_vim/colors/scite.vim new file mode 100644 index 0000000..609ad98 --- /dev/null +++ b/dot_vim/colors/scite.vim @@ -0,0 +1,48 @@ +" Vim color file +" Maintainer: Gergely Kontra +" Last Change: 2002. 04. 09. + +" I'm a bit red-blind, so if you have suggestions, don't hesitate :) +" ^^^^^^^^^ Sorry, I cannot speak English well, just want to say, +" that in some rare cases I cannot distinguish between some colors +" (I've just realized it, when I see some special tests) + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +"colorscheme default +let g:colors_name = "scite" + +" hardcoded colors : + +" GUI +"highlight Normal guifg=#7F6F5F guibg=#eeeeee +highlight Normal guifg=#7F6F5F guibg=#ffffff +highlight Search guibg=#bbbbbb gui=bold +highlight Visual guifg=#DADADA +highlight Folded guifg=#ffffff guibg=#666666 +highlight Cursor guifg=#666666 guibg=#000000 gui=bold +highlight Special guifg=#7F007F guibg=#eeeeff gui=bold +highlight Comment guifg=#007F00 guibg=#eeeeee +highlight StatusLine guifg=#000000 guibg=#aacccc +highlight StatusLineNC guifg=#557777 guibg=#ffffff +highlight Statement guifg=#007F7F gui=bold +highlight Type guifg=#0000ff gui=NONE +highlight Function guifg=#007F7F gui=bold +highlight LineNr guifg=#000000 guibg=#bbbbbb +highlight FoldColumn guifg=#000000 guibg=#dddddd +highlight Define guifg=#00007F guibg=#ddddff gui=bold +highlight Number guifg=#000000 guibg=#eeffff gui=bold +highlight Subtitle guifg=#000000 guibg=#66bbbb gui=bold,underline +highlight String guifg=#7F007F guibg=#ffdddd +highlight Delimiter guifg=#000000 guibg=#dde0dd gui=bold +highlight PreProc guifg=#0000ff guibg=#ffffff gui=bold +highlight Constant guifg=#000000 guibg=#aaaaaa gui=underline,bold + +"{{{ + +"}}} + + diff --git a/dot_vim/colors/sea.vim b/dot_vim/colors/sea.vim new file mode 100644 index 0000000..0c79c47 --- /dev/null +++ b/dot_vim/colors/sea.vim @@ -0,0 +1,69 @@ +" Vim color file +" Maintainer: Tiza +" Last Change: 2002/10/30 Wed 00:01. +" version: 1.0 +" This color scheme uses a dark background. + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "sea" + +hi Normal guifg=#f0f0f8 guibg=#343478 + +" Search +hi IncSearch gui=UNDERLINE,BOLD guifg=#ffffff guibg=#c030ff +hi Search gui=BOLD guifg=#f0e0ff guibg=#b020ff + +" Messages +hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#f000a0 +hi WarningMsg gui=BOLD guifg=#ffffff guibg=#f000a0 +hi ModeMsg gui=BOLD guifg=#00e0ff guibg=NONE +hi MoreMsg gui=BOLD guifg=#00ffff guibg=#6060ff +hi Question gui=BOLD guifg=#00f0d0 guibg=NONE + +" Split area +hi StatusLine gui=NONE guifg=#000000 guibg=#d0d0e0 +hi StatusLineNC gui=NONE guifg=#606080 guibg=#d0d0e0 +hi VertSplit gui=NONE guifg=#606080 guibg=#d0d0e0 +hi WildMenu gui=NONE guifg=#000000 guibg=#ff90ff + +" Diff +hi DiffText gui=UNDERLINE guifg=#ffff00 guibg=#000000 +hi DiffChange gui=NONE guifg=#ffffff guibg=#000000 +hi DiffDelete gui=NONE guifg=#60ff60 guibg=#000000 +hi DiffAdd gui=NONE guifg=#60ff60 guibg=#000000 + +" Cursor +hi Cursor gui=NONE guifg=#ffffff guibg=#d86020 +hi lCursor gui=NONE guifg=#ffffff guibg=#e000b0 +hi CursorIM gui=NONE guifg=#ffffff guibg=#e000b0 + +" Fold +hi Folded gui=NONE guifg=#ffffff guibg=#0080a0 +hi FoldColumn gui=NONE guifg=#9090ff guibg=#3c3c88 + +" Other +hi Directory gui=NONE guifg=#00ffff guibg=NONE +hi LineNr gui=NONE guifg=#7070e8 guibg=NONE +hi NonText gui=BOLD guifg=#8080ff guibg=#2c2c78 +hi SpecialKey gui=BOLD guifg=#60c0ff guibg=NONE +hi Title gui=BOLD guifg=#f0f0f8 guibg=NONE +hi Visual gui=NONE guifg=#ffffff guibg=#6060ff +" hi VisualNOS gui=NONE guifg=#ffffff guibg=#6060ff + +" Syntax group +hi Comment gui=NONE guifg=#b0b0c8 guibg=NONE +hi Constant gui=NONE guifg=#60ffff guibg=NONE +hi Error gui=BOLD guifg=#ffffff guibg=#f000a0 +hi Identifier gui=NONE guifg=#c0c0ff guibg=NONE +hi Ignore gui=NONE guifg=#303080 guibg=NONE +hi PreProc gui=NONE guifg=#ffb0ff guibg=NONE +hi Special gui=NONE guifg=#ffd858 guibg=NONE +hi Statement gui=NONE guifg=#f0f060 guibg=NONE +hi Todo gui=BOLD,UNDERLINE guifg=#ff70e0 guibg=NONE +hi Type gui=NONE guifg=#40ff80 guibg=NONE +hi Underlined gui=UNDERLINE,BOLD guifg=#f0f0f8 guibg=NONE diff --git a/dot_vim/colors/sean.vim b/dot_vim/colors/sean.vim new file mode 100644 index 0000000..1aa2b1e --- /dev/null +++ b/dot_vim/colors/sean.vim @@ -0,0 +1,83 @@ +" local syntax file - set colors on a per-machine basis: +" vim: tw=0 ts=4 sw=4 +" Vim color file +" Maintainer:Sean Richards +" Last Change:Fri Aug 30 8:50 2002 NZST + +hi clear +set background=dark +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "sean" +hi Normal guifg=white guibg=black +hi SpecialKey guifg=Blue +hi NonText gui=bold guifg=Blue +hi Directory guifg=Blue +hi ErrorMsg guifg=White guibg=Red +hi Search guifg=white guibg=Red +hi MoreMsg gui=bold guifg=SeaGreen +hi ModeMsg gui=bold guifg=White guibg=Blue +hi LineNr ctermfg=Darkyellow guifg=Yellow +hi Question gui=bold guifg=Green +hi StatusLineNC cterm=none ctermfg=grey ctermbg=darkblue gui=NONE guifg=white guibg=darkblue +hi StatusLine cterm=none ctermfg=white ctermbg=darkblue gui=bold guifg=white guibg=darkblue +hi VertSplit gui=bold guifg=White guibg=darkblue +hi Title gui=bold guifg=Magenta +hi Visual cterm=none ctermfg=white ctermbg=darkgreen gui=NONE guifg=white guibg=darkgreen +hi WarningMsg guifg=Red +hi FoldColumn ctermfg=Black ctermbg=Grey guibg=DarkGrey guifg=Black +hi Folded ctermfg=Black ctermbg=Grey guifg=Black +hi Cursor guifg=bg guibg=Green +hi Comment cterm=none ctermfg=darkgreen gui=italic guifg=green +hi Constant ctermfg=darkcyan guifg=darkcyan +hi Special ctermfg=darkyellow guifg=Orange +hi Identifier ctermfg=cyan guifg=cyan +hi Statement ctermfg=darkyellow gui=bold guifg=darkyellow +hi Number ctermfg=Cyan guifg=Cyan +hi PreProc ctermfg=darkmagenta guifg=darkmagenta +hi String ctermfg=darkred guifg=Red +hi Type ctermfg=darkblue guifg=blue +hi Error ctermfg=red guifg=Red guibg=Black +hi Todo ctermfg=blue ctermbg=yellow guifg=Blue guibg=Yellow +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 + + +"Toggle semicolon matching at the end of lines, author unknown! +nmap sc :call ToggleSemicolonHighlighting() +"{{{ +function! ToggleSemicolonHighlighting() + if exists("b:semicolon") + unlet b:semicolon + hi semicolon guifg=NONE gui=NONE ctermfg=NONE + else + syn match semicolon #;$# + hi semicolon guifg=red gui=bold ctermfg=1 + let b:semicolon = 1 + endif +endfunction +"}}} diff --git a/dot_vim/colors/seashell.vim b/dot_vim/colors/seashell.vim new file mode 100644 index 0000000..130785d --- /dev/null +++ b/dot_vim/colors/seashell.vim @@ -0,0 +1,32 @@ +" Vim color file +" Maintainer: Gerald S. Williams +" Last Change: 2003 Apr 17 + +" This is very reminiscent of a seashell. Good contrast, yet not too hard on +" the eyes. This is something of a cross between zellner and peachpuff, if +" such a thing is possible... +" +" Only values that differ from defaults are specified. + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name = "seashell" + +hi Normal guibg=seashell ctermbg=Gray ctermfg=Black +hi NonText guibg=LavenderBlush guifg=Gray30 +hi LineNr guibg=LavenderBlush guifg=Gray30 +hi DiffDelete guibg=LightRed guifg=Black ctermbg=DarkRed ctermfg=White +hi DiffAdd guibg=LightGreen ctermbg=DarkGreen ctermfg=White +hi DiffChange guibg=Gray90 ctermbg=DarkCyan ctermfg=White +hi DiffText gui=NONE guibg=LightCyan2 ctermbg=DarkCyan ctermfg=Yellow +hi Comment guifg=MediumBlue +hi Constant guifg=DeepPink +hi PreProc guifg=DarkMagenta +hi StatusLine guibg=White guifg=DarkSeaGreen cterm=None ctermfg=White ctermbg=DarkGreen +hi StatusLineNC gui=None guibg=Gray +hi VertSplit gui=None guibg=Gray +hi Identifier guifg=#006f6f +hi Statement ctermfg=DarkRed diff --git a/dot_vim/colors/sf.vim b/dot_vim/colors/sf.vim new file mode 100644 index 0000000..5b3033f --- /dev/null +++ b/dot_vim/colors/sf.vim @@ -0,0 +1,76 @@ +" GUI-only vim color file, based on colors from vim.sf.net +" Author: Christian MICHON +" Email: christian_michon@yahoo.fr +" Version: 1.1 +" Last Change: 28 Jul 2004 + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "sf" + +hi Boolean guifg=#007f00 guibg=#f0f0dd gui=none +hi Character guifg=#007f00 guibg=#f0f0dd gui=none +hi Comment guifg=#b0b0b0 guibg=#f0f0dd gui=underline +hi Conditional guifg=#0000ee guibg=#f0f0dd gui=bold +hi Constant guifg=#007f00 guibg=#f0f0dd gui=none +hi Cursor guifg=#f0f0dd guibg=#cc0000 gui=none +hi Debug guifg=#0000ee guibg=#f0f0dd gui=none +hi Define guifg=#cc0000 guibg=#f0f0dd gui=none +hi Delimiter guifg=#0000ee guibg=#f0f0dd gui=none +hi DiffAdd guifg=#551a8b guibg=#007f00 gui=bold +hi DiffChange guifg=#f0f0dd guibg=#007f00 gui=none +hi DiffDelete guifg=#551a8b guibg=#007f00 gui=none +hi DiffText guifg=#f0f0dd guibg=#551a8b gui=bold +hi Directory guifg=#cc0000 guibg=#f0f0dd gui=underline +hi Error guifg=#ffffff guibg=#cc0000 gui=bold +hi ErrorMsg guifg=#ffffff guibg=#cc0000 gui=bold +hi Exception guifg=#0000ee guibg=#f0f0dd gui=bold +hi Float guifg=#007f00 guibg=#f0f0dd gui=none +hi FoldColumn guifg=#f0f0dd guibg=#007f00 gui=bold +hi Folded guifg=#f0f0dd guibg=#007f00 gui=bold +hi Function guifg=#cc0000 guibg=#f0f0dd gui=none +hi Identifier guifg=#cc0000 guibg=#f0f0dd gui=none +hi Ignore guifg=#f0f0dd guibg=#f0f0dd gui=none +hi Include guifg=#cc0000 guibg=#f0f0dd gui=none +hi IncSearch guifg=#ffffff guibg=#38d878 gui=bold +hi Keyword guifg=#0000ee guibg=#f0f0dd gui=bold +hi Label guifg=#0000ee guibg=#f0f0dd gui=bold +hi lCursor guifg=#000066 guibg=#f0f0dd gui=none +hi LineNr guifg=#b0b0b0 guibg=#007f00 gui=bold +hi Macro guifg=#cc0000 guibg=#f0f0dd gui=none +hi ModeMsg guifg=#000066 guibg=#f0f0dd gui=bold +hi MoreMsg guifg=#551a8b guibg=#f0f0dd gui=bold +hi NonText guifg=#b0b0b0 guibg=#f0f0dd gui=bold +hi Normal guifg=#000066 guibg=#f0f0dd gui=none +hi Number guifg=#007f00 guibg=#f0f0dd gui=none +hi Operator guifg=#0000ee guibg=#f0f0dd gui=bold +hi PreCondit guifg=#cc0000 guibg=#f0f0dd gui=none +hi PreProc guifg=#cc0000 guibg=#f0f0dd gui=none +hi Question guifg=#551a8b guibg=#f0f0dd gui=bold +hi Repeat guifg=#0000ee guibg=#f0f0dd gui=bold +hi Search guifg=#ffffff guibg=#38d878 gui=bold +hi Special guifg=#999973 guibg=#f0f0dd gui=none +hi SpecialChar guifg=#0000ee guibg=#f0f0dd gui=none +hi SpecialComment guifg=#0000ee guibg=#f0f0dd gui=none +hi SpecialKey guifg=#cc0000 guibg=#f0f0dd gui=none +hi Statement guifg=#0000ee guibg=#f0f0dd gui=bold +hi StatusLine guifg=#f0f0dd guibg=#cc0000 gui=bold +hi StatusLineNC guifg=#f0f0dd guibg=#000066 gui=bold +hi StorageClass guifg=#551a8b guibg=#f0f0dd gui=bold +hi String guifg=#007f00 guibg=#f0f0dd gui=none +hi Structure guifg=#551a8b guibg=#f0f0dd gui=bold +hi Tag guifg=#0000ee guibg=#f0f0dd gui=none +hi Title guifg=#007f00 guibg=#f0f0dd gui=bold +hi Todo guifg=#f0f0dd guibg=#0000ee gui=none +hi Type guifg=#551a8b guibg=#f0f0dd gui=bold +hi Typedef guifg=#551a8b guibg=#f0f0dd gui=bold +hi Underlined guifg=#0000ee guibg=#f0f0dd gui=underline +hi VertSplit guifg=#f0f0dd guibg=#000066 gui=bold +hi Visual guifg=#ffffff guibg=#00009c gui=none +hi VisualNOS guifg=#ffffff guibg=#b0b0b0 gui=none +hi WarningMsg guifg=#ffffff guibg=#cc0000 gui=bold +hi WildMenu guifg=#f0f0dd guibg=#0000ee gui=none diff --git a/dot_vim/colors/simpleandfriendly.vim b/dot_vim/colors/simpleandfriendly.vim new file mode 100644 index 0000000..6222e76 --- /dev/null +++ b/dot_vim/colors/simpleandfriendly.vim @@ -0,0 +1,56 @@ +" Vim color file +" Maintainer: Thomas Schmall +" Last Change: 2004 Nov 20 +" URL: http://www.vim.org/scripts/script.php?script_id=792 +" Version: 1.3 + +" This color scheme uses a light grey background. + +" Last Changes: +" *line number colors changed + + +" First remove all existing highlighting. +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "simpleandfriendly" + +"Set nice colors #DC6210 +"Cursor is Cyan when ":lmap" mappings are active +hi lCursor guibg=Cyan guifg=NONE +hi LineNr guifg=white guibg=#acbbff + +"Text below the last line is darker grey +hi NonText guibg=grey80 +"Normal text is black background is grey +hi Normal guifg=black guibg=grey89 ctermfg=Black ctermbg=LightGrey +hi Comment guifg=Orange guibg=grey94 ctermfg=DarkCyan term=bold +"Constants are not underlined but have a slightly lighter background +hi Constant guifg=#8080a0 guibg=grey92 gui=NONE term=underline +hi String guifg=#80a0ff guibg=grey93 gui=NONE term=underline +hi Number guifg=#80a5ff guibg=grey91 gui=NONE ctermfg=Gray term=none +"Words like _if_ or _else_ (Grey27) +hi Statement guifg=#4A2B99 gui=NONE ctermfg=Blue + +hi Title guifg=red ctermfg=red gui=NONE term=BOLD +"color for _NONE_ for instance: +hi PreProc term=underline ctermfg=LightBlue guifg=#DC6210 +"color for _guifg_ for instance: (SlateBlue works here nice too) +hi Type guifg=#008080 ctermfg=LightGreen gui=None term=underline +hi Function guifg=#61577A term=bold +"in lingo the defined functions. (alt: SlateBlue) +hi Identifier guifg=Seagreen +"hi Identifier term=underline cterm=bold ctermfg=Cyan guifg=#40ffff + +"hi Repeat term=underline ctermfg=White guifg=white +"hi Ignore guifg=bg ctermfg=black +hi Error term=reverse ctermbg=Red ctermfg=White guibg=Red guifg=White +hi Todo term=standout ctermbg=Yellow ctermfg=Black guifg=Blue guibg=Yellow +"Special Characters +hi Special guibg=grey90 guifg=Slateblue gui=UNDERLINE + +hi operator guifg=gray25 ctermfg=Black term=bold cterm=bold gui=bold diff --git a/dot_vim/colors/taqua.vim b/dot_vim/colors/taqua.vim new file mode 100644 index 0000000..947ebc9 --- /dev/null +++ b/dot_vim/colors/taqua.vim @@ -0,0 +1,85 @@ +" Vim color file +" Maintainer: TaQ +" Last Change: 18 March 2003 +" URL: http://taq.cjb.net + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name="taqua" + +hi Normal gui=NONE guifg=#303030 guibg=#FFFFFF +hi NonText gui=BOLD guifg=#303030 guibg=#FFFFFF + +" Search +hi IncSearch gui=BOLD guifg=#008000 guibg=#CCFF00 +hi Search gui=BOLD guifg=#008000 guibg=#CCFF00 + +" Messages +hi ErrorMsg gui=BOLD guifg=#FFFFFF guibg=#FF0000 +hi WarningMsg gui=BOLD guifg=#008000 guibg=#CCFF00 + +" Split area +hi StatusLine gui=BOLD guifg=#FFFFFF guibg=#0E8ED3 +hi StatusLineNC gui=BOLD guifg=#FFFFFF guibg=#0A6799 + +" Diff +hi DiffText gui=BOLD guifg=#FF0000 guibg=#FFEAE0 +hi DiffChange gui=BOLD guifg=#303030 guibg=#FFFFFF +hi DiffDelete gui=NONE guifg=#FFFFFF guibg=#FF0000 +hi DiffAdd gui=NONE guifg=#008000 guibg=#00FF00 + +" Cursor +hi Cursor gui=BOLD guifg=#FFFFFF guibg=#000000 +hi lCursor gui=BOLD guifg=#f8f8f8 guibg=#162CF7 +hi CursorIM gui=NONE guifg=#f8f8f8 guibg=#162CF7 + +" Fold +hi Folded gui=BOLD guifg=#0E8ED3 guibg=#DBF2FF +hi FoldColumn gui=NONE guifg=#0E8ED3 guibg=#DBF2FF + +" Other +hi LineNr gui=BOLD guifg=#00A0FF guibg=#DBF2FF +hi Directory gui=BOLD guifg=#0A6799 guibg=#FFFFFF +hi NonText gui=BOLD guifg=#009999 guibg=#FFFFFF +hi SpecialKey gui=BOLD guifg=#2020FF guibg=#FFFFFF +hi Title gui=BOLD guifg=#0000A0 guibg=#FFFFFF +hi Visual gui=NONE guifg=#404060 guibg=#dddde8 + +" Syntax group +" purple was #8000FF +hi Comment gui=NONE guifg=#0E8ED3 guibg=#DBF2FF +hi Constant gui=NONE guifg=#303030 guibg=#F5F5F5 +hi Error gui=BOLD guifg=#FF0000 guibg=#FFFFFF +hi Identifier gui=NONE guifg=#1F89E0 guibg=#FFFFFF +hi Ignore gui=NONE guifg=#f8f8f8 guibg=#FFFFFF +hi PreProc gui=BOLD guifg=#0BBF20 guibg=#FFFFFF +hi Special gui=NONE guifg=#0E8ED3 guibg=#DBF2FF +hi Statement gui=BOLD guifg=#2E9BF4 guibg=#FFFFFF +hi Todo gui=NONE guifg=#FF0070 guibg=#FFE0F4 +hi Type gui=BOLD guifg=#0971F9 guibg=#FFFFFF +hi Underlined gui=UNDERLINE guifg=#0000ff guibg=NONE + +" HTML +hi htmlLink gui=UNDERLINE guifg=#0000ff guibg=NONE +hi htmlBold gui=BOLD +hi htmlBoldItalic gui=BOLD,ITALIC +hi htmlBoldUnderline gui=BOLD,UNDERLINE +hi htmlBoldUnderlineItalic gui=BOLD,UNDERLINE,ITALIC +hi htmlItalic gui=ITALIC +hi htmlUnderline gui=UNDERLINE +hi htmlUnderlineItalic gui=UNDERLINE,ITALIC + +" Scrollbar +hi Scrollbar gui=BOLD guifg=#00C0FF guibg=#FFFFFF +hi VertSplit gui=BOLD guifg=#FFFFFF guibg=#0E8ED3 +hi Visual gui=BOLD guifg=#FFFFFF guibg=#1679F9 + + diff --git a/dot_vim/colors/tcsoft.vim b/dot_vim/colors/tcsoft.vim new file mode 100644 index 0000000..072831e --- /dev/null +++ b/dot_vim/colors/tcsoft.vim @@ -0,0 +1,62 @@ +" Vim Farben-Datei +" Ersteller: Ingo Fabbri +" Letzte nderung: 2003 May 13 + +" Mein persnliches Farbschema. Es schont die Augen, da es keine grellen Farben verwendet. +" Am Besten geignet fr PHP + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let colors_name = "TCSoft" + +" Farb-Einstellungen fr das GUI +hi Normal guifg=#000000 guibg=#FFFFFF "Schwarze Schrift auf weiem Hintergrund + +hi Ignore guifg=bg + +hi Comment guifg=#000099 gui=italic "dunkelblau +hi Constant guifg=#666666 gui=NONE "grau +hi Special guifg=#FF0000 gui=NONE "rot +hi Identifier guifg=#993300 gui=NONE "rostfarbig +hi Statement guifg=#FF9900 gui=NONE "orange +hi PreProc guifg=#009900 gui=NONE "dunkelgrn +hi Type guifg=#FF9900 gui=bold "orange +hi Cursor guifg=#000000 gui=reverse "schwarz +hi LineNr guifg=#000000 gui=NONE "schwarz +hi StatusLine guifg=#000000 gui=reverse,bold "schwarz + +hi link Function PreProc +hi link String Constant +hi link Character Constant + +hi! link MoreMsg Comment +hi! link ErrorMsg Visual +hi! link WarningMsg ErrorMsg +hi! link Question Comment + +hi link Number Special +hi link Boolean Constant +hi link Float Number + +hi link Operator Identifier +hi link Keyword Statement +hi link Exception Statement +hi link Include PreProc +hi link Define PreProc +hi link Macro PreProc + +hi link Conditional Statement +hi link Repeat Statement +hi link Label Statement + +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 Comment +hi link Debug Special diff --git a/dot_vim/colors/tibet.vim b/dot_vim/colors/tibet.vim new file mode 100644 index 0000000..48807bf --- /dev/null +++ b/dot_vim/colors/tibet.vim @@ -0,0 +1,101 @@ +" Vim color file +" Maintainer: Miguel Figueiredo + +" /usr/X11R6/lib/X11 +set background=dark + +if exists("syntax_on") + syntax reset +endif + +let g:colors_name="tibet" + +hi Normal guifg=ivory guibg=darkred + +" highlight groups +"hi Cursor guibg=khaki guifg=slategrey +hi Cursor guibg=blue4 guifg=white +"hi CursorIM +"hi Directory +"hi DiffAdd +"hi DiffChange +"hi DiffDelete +"hi DiffText +"hi ErrorMsg +"hi VertSplit guibg=#c2bfa5 guifg=grey50 gui=none +hi VertSplit guibg=darkgreen guifg=white gui=none +hi Folded guibg=darkred guifg=gold +hi FoldColumn guibg=grey30 guifg=tan +hi IncSearch guifg=slategrey guibg=khaki +hi LineNr guifg=yellow guibg=darkred +hi ModeMsg guifg=goldenrod +hi MoreMsg guifg=SeaGreen +hi NonText guifg=LightBlue guibg=darkred +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 Visual gui=none guifg=white guibg=#003300 +"hi VisualNOS +hi WarningMsg guifg=salmon +"hi WildMenu +"hi Menu +"hi Scrollbar +"hi Tooltip + +" syntax highlighting groups +hi Comment guifg=goldenrod +hi Constant guifg=#ffa0a0 +"hi String guifg=blue +hi Identifier guifg=palegreen +hi Statement guifg=khaki +hi PreProc guifg=#ffa0a0 +"hi Type guifg=darkkhaki +hi Type guifg=khaki +hi Special guifg=navajowhite +"hi Underlined +hi Ignore guifg=grey40 +"hi Error +hi Todo guifg=yellow guibg=#003300 + +" 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 ctermfg=darkgrey +hi Error cterm=bold ctermfg=7 ctermbg=1 + + +" diff --git a/dot_vim/colors/tolerable.vim b/dot_vim/colors/tolerable.vim new file mode 100644 index 0000000..7b97b9a --- /dev/null +++ b/dot_vim/colors/tolerable.vim @@ -0,0 +1,43 @@ +" Vim color file +" Maintainer: Ian Langworth +" Last Change: 2004 Dec 24 +" Email: + +" Color settings inspired by BBEdit for Mac OS, plus I liked +" the low-contrast comments from the 'oceandeep' colorscheme + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="tolerable" + +hi Cursor guifg=white guibg=darkgreen + +hi Normal gui=none guifg=black guibg=white +hi NonText gui=none guifg=orange guibg=white + +hi Statement gui=none guifg=blue +hi Special gui=none guifg=red +hi Constant gui=none guifg=darkred +hi Comment gui=none guifg=#555555 +hi Preproc gui=none guifg=darkcyan +hi Type gui=none guifg=darkmagenta +hi Identifier gui=none guifg=darkgreen +hi Title gui=none guifg=black + +hi StatusLine gui=none guibg=#333333 guifg=white +hi StatusLineNC gui=none guibg=#333333 guifg=white +hi VertSplit gui=none guibg=#333333 guifg=white + +hi Visual gui=none guibg=green guifg=black +hi Search gui=none guibg=yellow +hi Directory gui=none guifg=darkblue +hi WarningMsg gui=none guifg=red +hi Error gui=none guifg=white guibg=red +hi Todo gui=none guifg=black guibg=yellow + +hi MoreMsg gui=none +hi ModeMsg gui=none + diff --git a/dot_vim/colors/tomatosoup.vim b/dot_vim/colors/tomatosoup.vim new file mode 100644 index 0000000..7864aed --- /dev/null +++ b/dot_vim/colors/tomatosoup.vim @@ -0,0 +1,80 @@ +" Vim color file +" Maintainer: Michael Brailsford +" Date: $Date: 2002/04/11 03:29:51 $ +" Version: $Revision: 1.4 $ + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +" your pick: +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="tomatosoup" + +hi Normal guifg=black guibg=tomato1 ctermfg=14 + +"Toggle semicolon matching at the end of lines +nmap ; :call ToggleSemicolonHighlighting() +"{{{ +function! ToggleSemicolonHighlighting() + if exists("b:semicolon") + unlet b:semicolon + hi semicolon guifg=NONE gui=NONE ctermfg=NONE + else + syn match semicolon #;$# + hi semicolon guifg=red gui=bold ctermfg=1 + let b:semicolon = 1 + endif +endfunction +"}}} + +hi Cursor guifg=bg guibg=fg ctermfg=0 ctermbg=11 +"hi CursorIM +hi Directory gui=bold +hi DiffAdd guifg=yellow guibg=darkgreen ctermbg=0 +"hi DiffChange +"hi DiffDelete +"hi DiffText +hi ErrorMsg guibg=red ctermfg=1 +"hi VertSplit +hi Folded guibg=darkred ctermbg=4 guifg=gold ctermfg=11 gui=bold +hi FoldColumn guibg=darkred ctermbg=14 guifg=gold ctermfg=11 gui=bold +"hi IncSearch +hi LineNr guifg=yellow ctermfg=11 +hi ModeMsg guifg=yellow gui=bold +"hi MoreMsg +"hi NonText +"hi Question +hi Search guibg=yellow guifg=bg +"hi SpecialKey +hi StatusLine guifg=brown +hi StatusLineNC guifg=darkred +"hi Title +hi Visual guifg=fg guibg=bg +"hi VisualNOS +"hi WarningMsg +"hi WildMenu +"hi Menu +"hi Scrollbar +"hi Tooltip + +" syntax highlighting groups +hi Comment guifg=pink ctermfg=10 +hi Constant guifg=lightmagenta gui=bold ctermfg=13 +hi String guifg=grey85 ctermfg=5 +hi Character guifg=violet ctermfg=5 +hi Number guifg=red ctermfg=5 +"hi Identifier +hi Statement guifg=khaki1 gui=bold ctermfg=15 cterm=underline +hi PreProc guifg=white gui=italic ctermfg=9 +hi Type guifg=yellow gui=bold ctermfg=3 +hi Special guifg=red gui=bold +"hi Underlined +"hi Ignore +"hi Error +hi Todo guifg=yellow guibg=blue gui=bold diff --git a/dot_vim/colors/toothpik.vim b/dot_vim/colors/toothpik.vim new file mode 100644 index 0000000..22e07a1 --- /dev/null +++ b/dot_vim/colors/toothpik.vim @@ -0,0 +1,45 @@ +set background=light +highlight clear +if exists( "syntax_on" ) + syntax reset +endif +let g:colors_name="toothpik" + +highlight Comment term=bold guifg=Yellow +highlight Constant term=underline guifg=Blue guibg=grey +highlight Cursor gui=reverse guifg=red guibg=white +highlight lCursor guifg=black guibg=green +highlight DiffAdd term=bold guibg=LightBlue +highlight DiffChange term=bold guibg=LightMagenta +highlight DiffDelete term=bold gui=bold guifg=Blue guibg=LightCyan +highlight DiffText term=reverse gui=bold guibg=Red +highlight Directory term=bold guifg=Blue +highlight Error term=reverse guifg=White guibg=Red +highlight ErrorMsg term=standout guifg=White guibg=Red +highlight Folded term=standout guifg=DarkBlue guibg=LightGrey +highlight FoldColumn term=standout guifg=DarkBlue guibg=Grey +highlight Identifier term=underline guifg=DarkCyan +highlight Ignore guifg=bg +highlight IncSearch term=reverse gui=reverse +highlight LineNr term=underline guifg=Brown +highlight MoreMsg term=bold gui=bold guifg=SeaGreen +highlight ModeMsg term=bold gui=bold +highlight NonText term=bold gui=bold guifg=Blue guibg=grey +highlight Normal guibg=grey font='Fixedsys' +highlight Question term=standout gui=bold guifg=SeaGreen +highlight PreProc term=underline guifg=Purple +highlight Search term=reverse guibg=Yellow +highlight Special term=bold guifg=darkred guibg=grey +highlight SpecialKey term=bold guifg=Blue +highlight Statement term=bold gui=bold guifg=Brown +highlight StatusLine term=bold,reverse gui=bold,reverse +highlight StatusLineNC term=reverse gui=reverse +highlight Title term=bold gui=bold guifg=Magenta +highlight Todo term=standout guifg=Blue guibg=Yellow +highlight Type term=underline gui=bold guifg=DarkGreen +highlight Underlined term=underline gui=underline guifg=SlateBlue +highlight VertSplit term=reverse gui=reverse +highlight Visual term=reverse gui=reverse guifg=Yellow guibg=Black +highlight VisualNOS term=bold,underline gui=bold,underline +highlight WarningMsg term=standout guifg=Red +highlight WildMenu term=standout guifg=Black guibg=Yellow diff --git a/dot_vim/colors/torte.vim b/dot_vim/colors/torte.vim new file mode 100644 index 0000000..f28ed60 --- /dev/null +++ b/dot_vim/colors/torte.vim @@ -0,0 +1,51 @@ +" Vim color file +" Maintainer: Thorsten Maerz +" Last Change: 2001 Jul 23 +" grey on black +" optimized for TFT panels +" $Revision: 1.1 $ + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +"colorscheme default +let g:colors_name = "torte" + +" 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=Grey25 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=Grey25 gui=bold + highlight Special ctermfg=LightBlue cterm=NONE guifg=LightBlue gui=NONE + highlight Comment ctermfg=Cyan cterm=NONE guifg=LightBlue gui=NONE + endif +endif + diff --git a/dot_vim/colors/transparent.vim b/dot_vim/colors/transparent.vim new file mode 100644 index 0000000..274cd8e --- /dev/null +++ b/dot_vim/colors/transparent.vim @@ -0,0 +1,97 @@ +" Vim color file +" Maintainer: Sir Raorn +" Last Change: Nov 10, 2002 +" URL: http://hell.binec.ru/ + +" This color scheme uses "transparent" background (dark dark blue in gvim) +" Looks really nice when vim (console) started in transparent aterm +" But gvim is good either +set background=dark + +" First remove all existing highlighting. +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="transparent" + +" default groups +hi Normal ctermfg=Gray ctermbg=NONE guifg=Gray guibg=#00002A + +hi Cursor guifg=Black guibg=Green +"hi CursorIM NONE guifg=Black guibg=Purple +hi Directory ctermfg=White guifg=White +hi DiffAdd ctermfg=White ctermbg=DarkCyan guifg=White guibg=DarkCyan +hi DiffChange ctermfg=Black ctermbg=Gray guifg=Black guibg=DarkGray +hi DiffDelete ctermfg=White ctermbg=DarkRed guifg=White guibg=DarkRed +hi DiffText cterm=bold ctermfg=White ctermbg=Gray gui=bold guifg=White guibg=DarkGray +hi ErrorMsg ctermfg=White ctermbg=DarkRed guifg=White guibg=DarkRed +hi VertSplit cterm=reverse gui=reverse +hi Folded cterm=bold ctermfg=Cyan ctermbg=NONE gui=bold guifg=Cyan guibg=DarkCyan +hi FoldColumn ctermfg=Green ctermbg=NONE guifg=Green guibg=#00002A +hi IncSearch ctermfg=White ctermbg=Black guifg=White guibg=Black +hi LineNr ctermfg=Yellow guifg=DarkCyan +hi ModeMsg cterm=bold ctermfg=White gui=bold guifg=White +hi MoreMsg cterm=bold ctermfg=White gui=bold guifg=White +hi NonText ctermfg=NONE guifg=NONE +hi Question ctermfg=Green guifg=Green +hi Search cterm=reverse ctermfg=fg ctermbg=NONE gui=reverse guifg=fg guibg=bg +hi SpecialKey ctermfg=LightRed guifg=Red +hi StatusLine cterm=bold,reverse ctermfg=White ctermbg=Black gui=bold,reverse guifg=White guibg=Black +hi StatusLineNC cterm=reverse ctermfg=Gray ctermbg=Black gui=reverse guifg=DarkGray guibg=Black +hi Title ctermfg=LightGreen gui=bold guifg=Green +hi Visual cterm=inverse ctermfg=White ctermbg=DarkGray gui=inverse guifg=DarkGray guibg=Black +hi VisualNOS cterm=bold,underline gui=bold,underline +hi WarningMsg ctermfg=White ctermbg=DarkRed guifg=White guibg=DarkRed +hi WildMenu cterm=bold ctermfg=Black ctermbg=Yellow gui=bold guifg=Black guibg=Yellow +"hi Menu +"hi Scrollbar +"hi Tooltip + +" syntax highlighting groups +hi Comment ctermfg=DarkCyan guifg=DarkCyan + +hi Constant ctermfg=LightGreen guifg=LightGreen +hi String ctermfg=Yellow guifg=Yellow +hi Character ctermfg=Yellow guifg=Yellow +"hi Number +"hi Boolean +"hi Float + +hi Identifier ctermfg=LightCyan guifg=LightCyan +hi Function ctermfg=White guifg=White + +hi Statement ctermfg=Yellow guifg=Yellow +"hi Conditional +"hi Repeat +hi Label ctermfg=White guifg=White +hi Operator ctermfg=Green guifg=Green +"hi Keyword +hi Exception ctermfg=Black ctermbg=DarkRed guifg=Black guibg=DarkRed + +hi PreProc ctermfg=DarkGreen guifg=DarkGreen +"hi Include +"hi Define +"hi Macro +"hi PreCondit + +hi Type ctermfg=Green guifg=Green +"hi StorageClass +"hi Structure +hi Typedef ctermfg=Red guifg=Red + +hi Special ctermfg=Red guifg=Red +"hi SpecialChar +hi Tag ctermfg=LightGreen guifg=LightGreen +hi Delimiter ctermfg=Green guifg=Green +"hi SpecialComment +hi Debug ctermfg=White ctermbg=Black guifg=White guibg=Black + +hi Underlined cterm=underline gui=underline + +hi Ignore ctermfg=DarkBlue guifg=DarkBlue + +hi Error ctermfg=White ctermbg=DarkRed guifg=White guibg=DarkRed + +hi Todo ctermfg=Black ctermbg=Gray guifg=Black guibg=Gray + diff --git a/dot_vim/colors/turbo.vim b/dot_vim/colors/turbo.vim new file mode 100644 index 0000000..c6fda54 --- /dev/null +++ b/dot_vim/colors/turbo.vim @@ -0,0 +1,68 @@ +" Vim color file +" Maintainer: Bryant Casteel +" Web Site: http://bethings.provoplatinum.com +" Last Change: 2004 Jan. 22 + +" turbo -- Intended to look like the color scheme +" from Borland's Turbo C++ and Turbo Pascal. + +set bg=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let colors_name = "turbo" + + +hi Normal guifg=yellow guibg=#000040 ctermfg=yellow 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 +hi IncSearch guifg=#b0ffff guibg=#2050d0 ctermfg=darkblue ctermbg=gray + + +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 +hi ModeMsg guifg=#22cce2 ctermfg=lightblue +hi MoreMsg guifg=darkgreen ctermfg=darkgreen +hi Question guifg=green gui=none ctermfg=green cterm=none +hi NonText guifg=#0030ff ctermfg=darkblue + +" Split window status bar +hi StatusLine guifg=blue guibg=yellow gui=none ctermfg=blue ctermbg=gray cterm=none +hi StatusLineNC guifg=black guibg=green gui=none ctermfg=black ctermbg=gray cterm=none +hi VertSplit guifg=black guibg=orange gui=none ctermfg=black ctermbg=gray cterm=none + +" Folded code +hi Folded guifg=#808080 guibg=#000040 ctermfg=darkgrey ctermbg=black cterm=bold +hi FoldColumn guifg=#808080 guibg=#000040 ctermfg=darkgrey ctermbg=black cterm=bold +hi LineNr guifg=#90f020 ctermfg=green cterm=none + + +hi DiffAdd guibg=darkblue ctermbg=darkblue cterm=none +hi DiffChange guibg=darkmagenta ctermbg=magenta cterm=none +hi DiffDelete guifg=Blue guibg=DarkCyan gui=bold ctermfg=blue ctermbg=cyan +hi DiffText guibg=Red gui=bold ctermbg=red cterm=bold + +" Cursor +hi Cursor guifg=#000020 guibg=#ffaf38 ctermfg=bg ctermbg=brown +hi lCursor guifg=#ffffff guibg=#000000 ctermfg=bg ctermbg=darkgreen + +" Syntax highlighting: +hi Comment guifg=darkcyan ctermfg=darkcyan +hi Constant guifg=darkred ctermfg=darkred cterm=none +hi Special guifg=magenta gui=none ctermfg=magenta cterm=none +hi Identifier guifg=green ctermfg=green cterm=none +hi Statement guifg=white gui=bold ctermfg=white cterm=bold +hi PreProc guifg=darkgreen gui=none ctermfg=darkgreen cterm=none +hi type guifg=grey gui=bold ctermfg=grey cterm=bold +hi Underlined gui=underline cterm=underline +hi Ignore guifg=bg ctermfg=bg + + diff --git a/dot_vim/colors/umber-green.vim b/dot_vim/colors/umber-green.vim new file mode 100644 index 0000000..d1743a1 --- /dev/null +++ b/dot_vim/colors/umber-green.vim @@ -0,0 +1,89 @@ +" Vim color file +" Maintainer: horrorvacui-at-gmx.net +" Last Change: today... oh yes, it's 16.9.03 +" URL: + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +" your pick: +set background=dark " or light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="umber-green" + +"hi Normal + +" OR + +" highlight clear Normal +" set background& +" highlight clear +" if &background == "light" +" highlight Error ... +" ... +" else +" highlight Error ... +" ... +" endif + +" A good way to see what your colorscheme does is to follow this procedure: +" :w +" :so % +" +" Then to see what the current setting is use the highlight command. +" For example, +" :hi Cursor +" gives +" Cursor xxx guifg=bg guibg=fg + +" Uncomment and complete the commands you want to change from the default. + +hi Cursor guibg=#ffffff +"hi CursorIM +"hi Directory +"hi DiffAdd +"hi DiffChange +"hi DiffDelete +"hi DiffText +"hi ErrorMsg +"hi VertSplit +"hi Folded +"hi FoldColumn +"hi IncSearch +hi LineNr guifg=#e2844d guibg=#000000 +"hi ModeMsg +"hi MoreMsg +"hi NonText +"hi Question +"hi Search +"hi SpecialKey +hi StatusLine guifg=#ffffff +hi StatusLineNC guifg=#ffffff +"hi Title +"hi Visual +"hi VisualNOS +"hi WarningMsg +"hi WildMenu +"hi Menu +"hi Scrollbar +"hi Tooltip + +" syntax highlighting groups +hi Normal guifg=#eeaa11 guibg=#333333 +hi Comment guifg=#ff5555 +hi Constant guifg=#eeaa11 +hi Identifier guifg=#0000ff +hi Statement guifg=#77ee44 +hi PreProc guifg=#ff0000 +hi Type guifg=#eecc88 +hi Special guifg=#ddffcc +"hi Underlined +"hi Ignore +"hi Error +"hi Todo + diff --git a/dot_vim/colors/vc.vim b/dot_vim/colors/vc.vim new file mode 100644 index 0000000..53ecc22 --- /dev/null +++ b/dot_vim/colors/vc.vim @@ -0,0 +1,24 @@ +" Vim color file +" Maintainer: Vladimir Vrzic +" Last Change: 28. june 2003. +" URL: http://galeb.etf.bg.ac.yu/~random/pub/vim/ + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="vc" + +hi Comment gui=NONE guifg=SeaGreen guibg=NONE +hi Constant gui=NONE guifg=#004488 guibg=NONE +"hi Identifier gui=NONE guifg=Blue guibg=NONE +hi Statement gui=NONE guifg=Blue guibg=NONE +hi PreProc gui=NONE guifg=Blue guibg=NONE +hi Type gui=NONE guifg=Blue guibg=NONE +hi Special gui=NONE guifg=SteelBlue guibg=NONE +"hi Underlined +"hi Ignore +"hi Error +"hi Todo + diff --git a/dot_vim/colors/vcbc.vim b/dot_vim/colors/vcbc.vim new file mode 100644 index 0000000..07777c3 --- /dev/null +++ b/dot_vim/colors/vcbc.vim @@ -0,0 +1,31 @@ +" Vim color file +" Maintainer: Rajas Sambhare +" Last Change: Nov 18, 2004 +" Version: 1.0 +" Based on the colors for Visual C++ 6.0 and Beyond Compare for diffs. +" Inspired by vc.vim by Vladimir Vrzic + +set background=light +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="vcbc" + +hi Normal cterm=NONE ctermfg=Black ctermbg=White gui=NONE guifg=NONE guibg=NONE +hi NonText cterm=NONE ctermfg=Black ctermbg=Grey gui=NONE guifg=NONE guibg=LightGrey +hi LineNr cterm=NONE ctermfg=Black ctermbg=LightGrey gui=NONE guifg=NONE guibg=LightGrey +hi Comment cterm=NONE ctermfg=DarkGreen ctermbg=White gui=italic guifg=DarkGreen guibg=NONE +hi Constant cterm=NONE ctermfg=Red ctermbg=White gui=NONE guifg=Red guibg=NONE +hi Identifier cterm=NONE ctermfg=LightBlue ctermbg=White gui=NONE guifg=LightBlue guibg=NONE +hi Statement cterm=bold ctermfg=Blue ctermbg=White gui=bold guifg=Blue guibg=NONE +hi PreProc cterm=NONE ctermfg=DarkRed ctermbg=White gui=NONE guifg=DarkRed guibg=NONE +hi Type cterm=NONE ctermfg=Blue ctermbg=White gui=NONE guifg=Blue guibg=NONE +hi Underlined cterm=NONE ctermfg=Black ctermbg=White gui=underline guifg=NONE guibg=NONE +hi Error cterm=NONE ctermfg=Yellow ctermbg=Red gui=NONE guifg=Yellow guibg=Red +hi Todo cterm=NONE ctermfg=Black ctermbg=Yellow gui=NONE guifg=NONE guibg=LightYellow +"Diff colors +hi DiffAdd cterm=NONE ctermfg=Red ctermbg=LightGrey gui=NONE guifg=Red guibg=#fff0f0 +hi DiffChange cterm=NONE ctermfg=Red ctermbg=LightGrey gui=NONE guifg=Red guibg=#fff0f0 +hi DiffText cterm=NONE ctermfg=White ctermbg=DarkRed gui=bold,italic guifg=Red guibg=#fff0f0 +hi DiffDelete cterm=NONE ctermfg=White ctermbg=LightGrey gui=NONE guifg=DarkGrey guibg=#f0f0f0 diff --git a/dot_vim/colors/white.vim b/dot_vim/colors/white.vim new file mode 100644 index 0000000..25d055b --- /dev/null +++ b/dot_vim/colors/white.vim @@ -0,0 +1,62 @@ +" Vim color file +" created by mksa on 30.10.2003 10:58:20 +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + + + +set background=light +" First remove all existing highlighting. +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name="white" + +" color terminal definitions +hi Normal ctermfg=black ctermbg=white guifg=black guibg=white +hi SpecialKey ctermfg=darkgreen guifg=darkgreen +hi NonText ctermfg=black ctermbg=white guifg=black guibg=white +hi Directory ctermfg=darkcyan guifg=darkcyan +hi ErrorMsg ctermfg=lightred ctermbg=yellow guifg=lightred guibg=yellow +hi IncSearch ctermfg=white ctermbg=black guifg=white guibg=black +hi Search ctermfg=white ctermbg=black guifg=white guibg=black +hi MoreMsg ctermfg=darkgreen guifg=darkgreen +hi ModeMsg ctermfg=red guifg=red +hi LineNr ctermfg=yellow ctermbg=darkgrey guifg=yellow guibg=darkgrey +hi Question ctermfg=darkgreen guifg=darkgreen +"hi StatusLine cterm=reverse +hi StatusLineNC cterm=reverse +hi VertSplit cterm=reverse +hi Title ctermfg=lightred ctermbg=yellow guifg=red +hi Visual cterm=reverse +hi VisualNOS cterm=reverse +hi WarningMsg ctermfg=darkblue guifg=darkblue +hi WildMenu ctermfg=black ctermbg=darkcyan guifg=black guibg=darkcyan +hi Folded ctermfg=yellow ctermbg=darkgrey guifg=yellow guibg=darkgrey +hi FoldColumn ctermfg=yellow ctermbg=darkgrey guifg=yellow guibg=darkgrey +hi DiffAdd ctermfg=white ctermbg=red guifg=white guifg=red +hi DiffChange ctermfg=yellow ctermbg=magenta guifg=yellow guifg=magenta +hi DiffDelete ctermfg=red ctermbg=brown guifg=red guibg=brown +hi DiffText ctermbg=blue guibg=blue + +hi Comment ctermfg=white ctermbg=darkgrey guifg=white guibg=darkgrey +hi Constant ctermfg=darkblue guifg=darkblue +hi Special ctermfg=darkred guifg=darkred +hi Identifier ctermfg=darkmagenta guifg=darkmagenta +hi Statement ctermfg=blue guifg=blue +hi Operator ctermfg=blue guifg=blue +hi PreProc ctermfg=darkmagenta guifg=darkmagenta +hi Type ctermfg=blue guifg=blue +hi Underlined ctermbg=Yellow ctermfg=blue guifg=blue +hi Ignore ctermfg=grey guifg=grey +hi Error ctermfg=white ctermbg=red guifg=white guibg=red +hi Todo ctermfg=white ctermbg=darkgreen guifg=white guibg=darkgreen +hi String ctermfg=darkgreen guifg=darkgreen +hi Number ctermfg=magenta guifg=magenta + + +"vim: sw=4 diff --git a/dot_vim/colors/whitedust.vim b/dot_vim/colors/whitedust.vim new file mode 100644 index 0000000..a12dc7d --- /dev/null +++ b/dot_vim/colors/whitedust.vim @@ -0,0 +1,62 @@ +set background=light +hi clear + +hi Boolean guifg=#235C5C gui=bold +hi Character guifg=#235C5C gui=bold +hi Comment guifg=#808080 +hi Condtional guifg=#700000 +hi Constant guifg=#235C5C gui=bold +hi Cursor guifg=#FFFFFF guibg=#515151 +hi Debug guifg=#235C5C gui=bold +hi Define guifg=#003050 gui=bold +hi Delimiter guifg=#707070 +hi DiffAdd guibg=#9EC3B9 +hi DiffChange guibg=#CCCCCC +hi DiffDelete guifg=#CCCCCC guibg=#B9B9B9 gui=none +hi DiffText guifg=#000000 guibg=#E0E0E0 gui=bold +hi Directory guifg=#000000 gui=bold +hi Error guifg=#FFFFFF guibg=#FF0000 +hi ErrorMsg guifg=#FFFFFF guibg=#FF3F30 +hi Exception guifg=#700000 gui=underline +hi Float guifg=#636C4C +hi FoldColumn guifg=#235C5C guibg=#B9B9B9 +hi Folded guifg=#235C5C guibg=#CCCCCC +hi Function guifg=#000070 +hi Identifier guifg=#000000 +hi Include guifg=#003050 gui=bold +hi IncSearch guifg=#FFFFFF guibg=#3EA399 +hi Keyword guifg=#000000 gui=bold +hi Label guifg=#700000 gui=underline +hi LineNr guifg=#808080 guibg=#B9B9B9 +hi Macro guifg=#003050 gui=bold +hi ModeMsg guifg=#235C5C gui=bold +hi MoreMsg guifg=#000000 gui=bold +hi NonText guifg=#E0E0E0 +hi Normal guifg=#333333 guibg=#C0C0C0 +hi Number guifg=#535F5C +hi Operator guifg=#000000 +hi PreCondit guifg=#205070 gui=bold +hi PreProc guifg=#003050 gui=bold +hi Question guifg=#000000 gui=bold +hi Repeat guifg=#700000 gui=underline +hi Search guifg=#FFFFFF guibg=#3EA399 +hi SpecialChar guifg=#235C5C gui=bold +hi SpecialComment guifg=#235C5C gui=bold +hi Special guifg=#808080 +hi SpecialKey guifg=#818181 +hi Statement guifg=#700000 +hi StatusLine guifg=#CCCCCC guibg=#0E7369 +hi StatusLineNC guifg=#CCCCCC guibg=#333333 +hi StorageClass guifg=#000000 gui=bold +hi String guifg=#336C6C +hi Structure guifg=#000000 gui=bold,underline +hi Tag guifg=#235C5C gui=bold +hi Title guifg=#000000 guibg=#CCCCCC gui=bold +hi Todo guifg=#000000 guibg=#FFFFFF gui=bold +hi Typedef guifg=#000000 gui=bold,underline +hi Type guifg=#000000 gui=bold +hi VertSplit guifg=#CCCCCC guibg=#333333 +hi Visual guifg=#CCCCCC guibg=#0E7369 gui=reverse +hi VisualNOS guifg=#CCCCCC guibg=#0E7369 gui=bold,underline +hi WarningMsg guifg=#000000 guibg=#CCCCCC gui=bold +hi WildMenu guifg=#FFFFFF guibg=#235C5C diff --git a/dot_vim/colors/wintersday.vim b/dot_vim/colors/wintersday.vim new file mode 100644 index 0000000..9a77f7e --- /dev/null +++ b/dot_vim/colors/wintersday.vim @@ -0,0 +1,60 @@ +" Vim color file +" Mark Thomas +" Sun Feb 16, 2003 + +" This color scheme uses a dark background. + +" First remove all existing highlighting. +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "wintersday" + +hi Normal guifg=#CCCCCC guibg=#000000 + +hi Cursor gui=NONE guifg=#B9D3EE guibg=#8B8878 +"hi CursorIM +hi Directory gui=NONE guifg=#FFFFFF guibg=#000000 +hi DiffAdd gui=NONE guifg=#A0D0FF guibg=#0020A0 +hi DiffChange gui=NONE guifg=#E03870 guibg=#601830 +hi DiffDelete gui=NONE guifg=#A0D0FF guibg=#0020A0 +hi DiffText gui=NONE guifg=#FF9933 guibg=#A02860 +hi ErrorMsg gui=BOLD guifg=#FF6347 guibg=NONE +hi VertSplit gui=BOLD guifg=#FFFFFF guibg=#8B4513 +hi Folded gui=NONE guifg=#40F0F0 guibg=#005080 +hi FoldColumn gui=NONE guifg=#40C0FF guibg=#00305C +hi IncSearch gui=UNDERLINE guifg=#FFD700 guibg=#778899 +hi LineNr gui=NONE guifg=#696969 +hi ModeMsg gui=BOLD guifg=#990000 guibg=NONE +hi MoreMsg gui=BOLD guifg=#CC6666 guibg=NONE +hi NonText gui=BOLD guifg=#CC00FF guibg=NONE +hi Question gui=BOLD guifg=#CC00FF guibg=NONE +hi Search gui=NONE guifg=#FFD700 guibg=#778899 +hi SpecialKey gui=BOLD guifg=#CCCCCC guibg=NONE +hi StatusLine gui=BOLD guifg=#FFFFFF guibg=#8B4513 +hi StatusLineNC gui=BOLD guifg=#8B4513 guibg=#FFFFFF +hi Title gui=BOLD guifg=#CCCCCC guibg=NONE +hi Visual gui=NONE guifg=#B9D3EE guibg=#8B8878 +"hi VisualNOS +hi WarningMsg gui=BOLD guifg=#FFA0FF guibg=NONE +hi WildMenu gui=NONE guifg=#000000 guibg=#a0a0ff +"hi Menu +"hi Scrollbar +"hi Tooltip + +" syntax highlighting groups +hi Comment gui=NONE guifg=#6699CC guibg=NONE +hi Constant gui=NONE guifg=#99CCFF guibg=NONE +hi Identifier gui=NONE guifg=#FFD700 guibg=NONE +hi Statement gui=NONE guifg=#CC6666 guibg=NONE +hi PreProc gui=NONE guifg=#40F0A0 guibg=NONE +hi Type gui=NONE guifg=#B0C4DE guibg=NONE +hi Special gui=NONE guifg=#00FFCC guibg=NONE +hi Underlined gui=NONE guifg=#FFFFFF guibg=NONE +hi Ignore gui=NONE guifg=#000000 guibg=NONE +hi Error gui=NONE guifg=#FFFFFF guibg=#FF0088 +hi Todo gui=BOLD guifg=#FFA0A0 guibg=NONE +hi Number gui=NONE guifg=#FFCCCC guibg=NONE diff --git a/dot_vim/colors/wombat.vim b/dot_vim/colors/wombat.vim new file mode 100644 index 0000000..9ad1e56 --- /dev/null +++ b/dot_vim/colors/wombat.vim @@ -0,0 +1,51 @@ +" Maintainer: Lars H. Nielsen (dengmao@gmail.com) +" Last Change: January 22 2007 + +set background=dark + +hi clear + +if exists("syntax_on") + syntax reset +endif + +let colors_name = "wombat" + + +" Vim >= 7.0 specific colors +if version >= 700 + hi CursorLine guibg=#2d2d2d + hi CursorColumn guibg=#2d2d2d + hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold + hi Pmenu guifg=#f6f3e8 guibg=#444444 + hi PmenuSel guifg=#000000 guibg=#cae682 +endif + +" General colors +hi Cursor guifg=NONE guibg=#656565 gui=none +hi Normal guifg=#f6f3e8 guibg=#242424 gui=none +hi NonText guifg=#808080 guibg=#303030 gui=none +hi LineNr guifg=#857b6f guibg=#000000 gui=none +hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic +hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none +hi VertSplit guifg=#444444 guibg=#444444 gui=none +hi Folded guibg=#384048 guifg=#a0a8b0 gui=none +hi Title guifg=#f6f3e8 guibg=NONE gui=bold +hi Visual guifg=#f6f3e8 guibg=#444444 gui=none +hi SpecialKey guifg=#808080 guibg=#343434 gui=none + +" Syntax highlighting +hi Comment guifg=#99968b gui=italic +hi Todo guifg=#8f8f8f gui=italic +hi Constant guifg=#e5786d gui=none +hi String guifg=#95e454 gui=italic +hi Identifier guifg=#cae682 gui=none +hi Function guifg=#cae682 gui=none +hi Type guifg=#cae682 gui=none +hi Statement guifg=#8ac6f2 gui=none +hi Keyword guifg=#8ac6f2 gui=none +hi PreProc guifg=#e5786d gui=none +hi Number guifg=#e5786d gui=none +hi Special guifg=#e7f6da gui=none + + diff --git a/dot_vim/colors/xemacs.vim b/dot_vim/colors/xemacs.vim new file mode 100644 index 0000000..c47607c --- /dev/null +++ b/dot_vim/colors/xemacs.vim @@ -0,0 +1,46 @@ + +" Vim color file +" Maintainer: tranquility@portugalmail.pt +" Last Change: 5 June 2002 + + +" cool help screens +" :he group-name +" :he highlight-groups +" :he cterm-colors + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="xemacs" + +hi Normal guibg=#cdcecd guifg=black +hi Cursor guibg=red guifg=grey gui=bold +hi VertSplit guibg=grey60 guifg=black gui=none +hi Folded guibg=royalblue3 guifg=white +hi FoldColumn guibg=royalblue4 guifg=white +hi ModeMsg guifg=#cdcecd guibg=black +hi MoreMsg guifg=#cdcecd guibg=black +hi NonText guifg=black guibg=#cdcecd gui=none +hi Question guifg=black +hi Search guibg=#aceeee +hi SpecialKey guifg=navyblue +hi Special guifg=navyblue +hi StatusLine guibg=#b7b7b7 guifg=black gui=none +hi StatusLineNC guibg=#a6b7b7 guifg=black gui=none +hi Title guifg=bisque3 +hi Subtitle guifg=black +hi Visual guibg=#a4a5a3 guifg=black gui=none +hi WarningMsg guibg=#cdcecd guifg=black gui=bold +hi Comment guifg=#00008b +hi Constant guifg=#008900 +hi Identifier guibg=#cdcecd guifg=black +hi Statement guifg=royalblue4 +hi PreProc guifg=#0000cd +hi Type guifg=#4a81b4 gui=NONE +hi Ignore guifg=grey29 +hi Todo guibg=gold guifg=black +hi WildMenu guibg=#b7b7b7 guibg=grey91 +hi Directory guibg=#cdcecd guifg=navyblue diff --git a/dot_vim/colors/xian.vim b/dot_vim/colors/xian.vim new file mode 100644 index 0000000..3cc02d8 --- /dev/null +++ b/dot_vim/colors/xian.vim @@ -0,0 +1,50 @@ +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif + +let g:colors_name = "xian" + +hi Comment guifg=#C0C0C0 guibg=#946464 gui=underline +hi Constant guifg=#00FF80 guibg=#946464 gui=none +hi Cursor guifg=#00FFFF guibg=#000000 gui=reverse +hi DiffAdd guifg=#00FFFF guibg=#754F4F gui=bold,underline +hi DiffChange guibg=#754F4F +hi DiffDelete guifg=#C0C0C0 guibg=#754F4F gui=bold +hi DiffText guifg=#000000 guibg=#FF0000 gui=bold,underline +hi Directory guifg=#FFFF00 guibg=#946464 gui=underline +hi Error guifg=#000000 guibg=#FF0000 gui=bold,underline +hi ErrorMsg guifg=#000000 guibg=#FF0000 gui=bold,underline +hi FoldColumn guifg=#ffff74 guibg=#754F4F gui=bold +hi Folded guifg=#ffff74 guibg=#754F4F gui=underline +hi Identifier guifg=#EEAA73 guibg=#946464 gui=none +hi Ignore guifg=#946464 guibg=#946464 gui=none +hi IncSearch guifg=#FFFFFF guibg=#946464 gui=reverse +hi lCursor guifg=#FFFFFF guibg=#946464 gui=none +hi LineNr guifg=#C0C0C0 guibg=#754F4F gui=bold +hi Match guifg=#0000FF guibg=#FFFF00 gui=bold,reverse +hi ModeMsg guifg=#FFFFFF guibg=#946464 gui=bold +hi MoreMsg guifg=#d174a8 guibg=#946464 gui=bold +hi NonText guifg=#C0C0C0 guibg=#946464 gui=none +hi Normal guifg=#FFFFFF guibg=#946464 gui=none +hi PreProc guifg=#FFFF00 guibg=#946464 gui=none +hi Question guifg=#d174a8 guibg=#946464 gui=bold +hi Search guifg=#FFFF00 guibg=#FF8500 gui=underline +hi Special guifg=#bfbfef guibg=#946464 gui=none +hi SpecialKey guifg=#FFFF00 guibg=#946464 gui=none +hi Statement guifg=#5ad5d5 guibg=#946464 gui=bold +hi StatusLine guifg=#000000 guibg=#FFFFFF gui=bold +hi StatusLineNC guifg=#C0C0C0 guibg=#754F4F gui=bold +hi Title guifg=#74FF74 guibg=#946464 gui=bold +hi Todo guifg=#FFFF00 guibg=#0000FF gui=none +hi Type guifg=#FF74A8 guibg=#946464 gui=bold +hi User1 guifg=#999933 guibg=#45637F gui=bold +hi User2 guifg=#E7E77F guibg=#45637F gui=bold +hi User3 guifg=#000000 guibg=#45637F gui=bold +hi User4 guifg=#33CC99 guibg=#45637F gui=bold +hi VertSplit guifg=#FFFF00 guibg=#000000 gui=bold +hi Visual guifg=#FFFF00 guibg=#6B959B gui=none +hi VisualNOS guifg=#FFFFFF guibg=#946464 gui=underline +hi WarningMsg guifg=#000000 guibg=#FF0000 gui=bold,underline +hi WildMenu guifg=#FFFFFF guibg=#0000FF gui=none diff --git a/dot_vim/colors/zenburn.vim b/dot_vim/colors/zenburn.vim new file mode 100644 index 0000000..af9c07f --- /dev/null +++ b/dot_vim/colors/zenburn.vim @@ -0,0 +1,133 @@ +" Vim color file +" Maintainer: Jani Nurminen +" Last Change: $Id: zenburn.vim,v 1.13 2002/09/16 18:03:49 jnurmine Exp $ +" URL: Not yet... +" License: GPL +" +" Nothing too fancy, just some alien fruit salad to keep you in the zone. +" This syntax file was designed to be used with dark environments and +" low light situations. Of course, if it works during a daybright office, go +" ahead :) +" +" Owes heavily to other Vim color files! With special mentions +" to "BlackDust", "Camo" and "Desert". +" +" To install, copy to ~/.vim/colors directory. Then :colorscheme zenburn. +" See also :help syntax +" +" CONFIGURABLE PARAMETERS: +" +" You can use the default (don't set any parameters), or you can +" set some parameters to tweak the Zenlook colours. +" +" * To get more contrast to the Visual selection, use +" +" let g:zenburn_alternate_Visual = 1 +" +" * To use alternate colouring for Error message, use +" +" let g:zenburn_alternate_Error = 1 +" +" * The new default for Include is a duller orang.e To use the original +" colouring for Include, use +" +" let g:zenburn_alternate_Include = 1 +" +" * To turn the parameter(s) back to defaults, use unlet. +" +" That's it, enjoy! +" +" TODO +" - IME colouring (CursorIM) +" - obscure syntax groups: check and colourize +" - add more groups if necessary + +set background=dark +hi clear +if exists("syntax_on") + syntax reset +endif +let g:colors_name="zenburn" + +hi Boolean guifg=#dca3a3 +hi Character guifg=#dca3a3 gui=bold +hi Comment guifg=#7f9f7f +hi Conditional guifg=#f0dfaf gui=bold +hi Constant guifg=#dca3a3 gui=bold +hi Cursor guifg=#000d18 guibg=#8faf9f gui=bold +hi Debug guifg=#dca3a3 gui=bold +hi Define guifg=#ffcfaf gui=bold +hi Delimiter guifg=#8f8f8f +hi DiffAdd guifg=#709080 guibg=#313c36 gui=bold +hi DiffChange guibg=#333333 +hi DiffDelete guifg=#333333 guibg=#464646 +hi DiffText guifg=#ecbcbc guibg=#41363c gui=bold +hi Directory guifg=#dcdccc gui=bold +hi ErrorMsg guifg=#60b48a guibg=#3f3f3f gui=bold +hi Exception guifg=#c3bf9f gui=bold +hi Float guifg=#c0bed1 +hi FoldColumn guifg=#93b3a3 guibg=#3f4040 +hi Folded guifg=#93b3a3 guibg=#3f4040 +hi Function guifg=#efef8f +hi Identifier guifg=#efdcbc +hi IncSearch guibg=#f8f893 guifg=#385f38 +hi Keyword guifg=#f0dfaf gui=bold +hi Label guifg=#dfcfaf gui=underline +hi LineNr guifg=#7f8f8f guibg=#464646 +hi Macro guifg=#ffcfaf gui=bold +hi ModeMsg guifg=#ffcfaf gui=none +hi MoreMsg guifg=#ffffff gui=bold +hi NonText guifg=#404040 +hi Normal guifg=#dcdccc guibg=#3f3f3f +hi Number guifg=#8cd0d3 +hi Operator guifg=#f0efd0 +hi PreCondit guifg=#dfaf8f gui=bold +hi PreProc guifg=#ffcfaf gui=bold +hi Question guifg=#ffffff gui=bold +hi Repeat guifg=#ffd7a7 gui=bold +hi Search guifg=#ffffe0 guibg=#385f38 +hi SpecialChar guifg=#dca3a3 gui=bold +hi SpecialComment guifg=#82a282 gui=bold +hi Special guifg=#cfbfaf +hi SpecialKey guifg=#9ece9e +hi Statement guifg=#e3ceab guibg=#3f3f3f gui=none +hi StatusLine guifg=#1e2320 guibg=#acbc90 +hi StatusLineNC guifg=#2e3330 guibg=#88b090 +hi StorageClass guifg=#c3bf9f gui=bold +hi String guifg=#cc9393 +hi Structure guifg=#efefaf gui=bold +hi Tag guifg=#dca3a3 gui=bold +hi Title guifg=#efefef guibg=#3f3f3f gui=bold +hi Todo guifg=#7faf8f guibg=#3f3f3f gui=bold +hi Typedef guifg=#dfe4cf gui=bold +hi Type guifg=#dfdfbf gui=bold +hi Underlined guifg=#dcdccc guibg=#3f3f3f gui=underline +hi VertSplit guifg=#303030 guibg=#688060 +hi VisualNOS guifg=#333333 guibg=#f18c96 gui=bold,underline +hi WarningMsg guifg=#ffffff guibg=#333333 gui=bold +hi WildMenu guibg=#2c302d guifg=#cbecd0 gui=underline + +if exists("g:zenburn_alternate_Visual") + " Visual with more contrast, thanks to Steve Hall & Cream posse + hi Visual guifg=#000000 guibg=#71d3b4 +else + " use default visual + hi Visual guifg=#233323 guibg=#71d3b4 +endif + +if exists("g:zenburn_alternate_Error") + " use a bit different Error + hi Error guifg=#ef9f9f guibg=#201010 gui=bold +else + " default + hi Error guifg=#e37170 guibg=#332323 gui=none +endif + +if exists("g:zenburn_alternate_Include") + " original setting + hi Include guifg=#ffcfaf gui=bold +else + " new, less contrasted one + hi Include guifg=#dfaf8f gui=bold +endif + " TODO check every syntax group that they're ok diff --git a/dot_vim/compiler/ghc.vim b/dot_vim/compiler/ghc.vim new file mode 100644 index 0000000..77a36ce --- /dev/null +++ b/dot_vim/compiler/ghc.vim @@ -0,0 +1,470 @@ + +" Vim Compiler File +" Compiler: GHC +" Maintainer: Claus Reinke +" Last Change: 21/04/2009 +" +" part of haskell plugins: http://projects.haskell.org/haskellmode-vim + +" ------------------------------ paths & quickfix settings first +" + +if exists("current_compiler") && current_compiler == "ghc" + finish +endif +let current_compiler = "ghc" + +let s:scriptname = "ghc.vim" + +if (!exists("g:ghc") || !executable(g:ghc)) + if !executable('ghc') + echoerr s:scriptname.": can't find ghc. please set g:ghc, or extend $PATH" + finish + else + let g:ghc = 'ghc' + endif +endif +let ghc_version = substitute(system(g:ghc . ' --numeric-version'),'\n','','') +if (!exists("b:ghc_staticoptions")) + let b:ghc_staticoptions = '' +endif + +" set makeprg (for quickfix mode) +execute 'setlocal makeprg=' . g:ghc . '\ ' . escape(b:ghc_staticoptions,' ') .'\ -e\ :q\ %' +"execute 'setlocal makeprg=' . g:ghc .'\ -e\ :q\ %' +"execute 'setlocal makeprg=' . g:ghc .'\ --make\ %' + +" quickfix mode: +" fetch file/line-info from error message +" TODO: how to distinguish multiline errors from warnings? +" (both have the same header, and errors have no common id-tag) +" how to get rid of first empty message in result list? +setlocal errorformat= + \%-Z\ %#, + \%W%f:%l:%c:\ Warning:\ %m, + \%E%f:%l:%c:\ %m, + \%E%>%f:%l:%c:, + \%+C\ \ %#%m, + \%W%>%f:%l:%c:, + \%+C\ \ %#%tarning:\ %m, + +" oh, wouldn't you guess it - ghc reports (partially) to stderr.. +setlocal shellpipe=2> + +" ------------------------- but ghc can do a lot more for us.. +" + +" allow map leader override +if !exists("maplocalleader") + let maplocalleader='_' +endif + +" initialize map of identifiers to their types +" associate type map updates to changedtick +if !exists("b:ghc_types") + let b:ghc_types = {} + let b:my_changedtick = b:changedtick +endif + +if exists("g:haskell_functions") + finish +endif +let g:haskell_functions = "ghc" + +" avoid hit-enter prompts +set cmdheight=3 + +" edit static GHC options +" TODO: add completion for options/packages? +command! GHCStaticOptions call GHC_StaticOptions() +function! GHC_StaticOptions() + let b:ghc_staticoptions = input('GHC static options: ',b:ghc_staticoptions) + execute 'setlocal makeprg=' . g:ghc . '\ ' . escape(b:ghc_staticoptions,' ') .'\ -e\ :q\ %' + let b:my_changedtick -=1 +endfunction + +map T :call GHC_ShowType(1) +map t :call GHC_ShowType(0) +function! GHC_ShowType(addTypeDecl) + let namsym = haskellmode#GetNameSymbol(getline('.'),col('.'),0) + if namsym==[] + redraw + echo 'no name/symbol under cursor!' + return 0 + endif + let [_,symb,qual,unqual] = namsym + let name = qual=='' ? unqual : qual.'.'.unqual + let pname = ( symb ? '('.name.')' : name ) + call GHC_HaveTypes() + if !has_key(b:ghc_types,name) + redraw + echo pname "type not known" + else + redraw + for type in split(b:ghc_types[name],' -- ') + echo pname "::" type + if a:addTypeDecl + call append( line(".")-1, pname . " :: " . type ) + endif + endfor + endif +endfunction + +" show type of identifier under mouse pointer in balloon +if has("balloon_eval") + set ballooneval + set balloondelay=600 + set balloonexpr=GHC_TypeBalloon() + function! GHC_TypeBalloon() + if exists("b:current_compiler") && b:current_compiler=="ghc" + let [line] = getbufline(v:beval_bufnr,v:beval_lnum) + let namsym = haskellmode#GetNameSymbol(line,v:beval_col,0) + if namsym==[] + return '' + endif + let [start,symb,qual,unqual] = namsym + let name = qual=='' ? unqual : qual.'.'.unqual + let pname = name " ( symb ? '('.name.')' : name ) + silent call GHC_HaveTypes() + if has("balloon_multiline") + return (has_key(b:ghc_types,pname) ? split(b:ghc_types[pname],' -- ') : '') + else + return (has_key(b:ghc_types,pname) ? b:ghc_types[pname] : '') + endif + else + return '' + endif + endfunction +endif + +map si :call GHC_ShowInfo() +function! GHC_ShowInfo() + let namsym = haskellmode#GetNameSymbol(getline('.'),col('.'),0) + if namsym==[] + redraw + echo 'no name/symbol under cursor!' + return 0 + endif + let [_,symb,qual,unqual] = namsym + let name = qual=='' ? unqual : (qual.'.'.unqual) + let output = GHC_Info(name) + pclose | new + setlocal previewwindow + setlocal buftype=nofile + setlocal noswapfile + put =output + wincmd w + "redraw + "echo output +endfunction + +" fill the type map, unless nothing has changed since the last attempt +function! GHC_HaveTypes() + if b:ghc_types == {} && (b:my_changedtick != b:changedtick) + let b:my_changedtick = b:changedtick + return GHC_BrowseAll() + endif +endfunction + +" update b:ghc_types after successful make +au QuickFixCmdPost make if GHC_CountErrors()==0 | silent call GHC_BrowseAll() | endif + +" count only error entries in quickfix list, ignoring warnings +function! GHC_CountErrors() + let c=0 + for e in getqflist() | if e.type=='E' && e.text !~ "^[ \n]*Warning:" | let c+=1 | endif | endfor + return c +endfunction + +command! GHCReload call GHC_BrowseAll() +function! GHC_BrowseAll() + " let imports = haskellmode#GatherImports() + " let modules = keys(imports[0]) + keys(imports[1]) + let imports = {} " no need for them at the moment + let current = GHC_NameCurrent() + let module = current==[] ? 'Main' : current[0] + if GHC_VersionGE([6,8,1]) + return GHC_BrowseBangStar(module) + else + return GHC_BrowseMultiple(imports,['*'.module]) + endif +endfunction + +function! GHC_VersionGE(target) + let current = split(g:ghc_version, '\.' ) + let target = a:target + for i in current + if ((target==[]) || (i>target[0])) + return 1 + elseif (i==target[0]) + let target = target[1:] + else + return 0 + endif + endfor + return 1 +endfunction + +function! GHC_NameCurrent() + let last = line("$") + let l = 1 + while l, we get both unqualified and qualified ids + let qualified = (id =~ '\.') && (id =~ '[A-Z]') + let b:ghc_types[id] = type + if !qualified + for qual in qualifiers + let b:ghc_types[qual.'.'.id] = type + endfor + endif + else + let mlImported = matchlist( l, importedPat ) + let mlDefined = matchlist( l, definedPat ) + if mlImported != [] + let [_,modules;x] = mlImported + let qualifiers = split( modules, ', ' ) + elseif mlDefined != [] + let qualifiers = [module] + endif + endif + let ml = matchlist( rest , linePat ) + endwhile + return 1 +endfunction + +function! GHC_Process(imports,output) + let b = a:output + let imports = a:imports + let linePat = '^\(.\{-}\)\n\(.*\)' + let contPat = '\s\+\(.\{-}\)\n\(.*\)' + let typePat = '^\(\s*\)\(\S*\)\s*::\(.*\)' + let modPat = '^-- \(\S*\)' + " add '-- defined locally' and '-- imported via ..' + if !(b=~modPat) + echo s:scriptname.": GHCi reports errors (try :make?)" + return 0 + endif + let b:ghc_types = {} + let ml = matchlist( b , linePat ) + while ml != [] + let [_,l,rest;x] = ml + let mlDecl = matchlist( l, typePat ) + if mlDecl != [] + let [_,indent,id,type;x] = mlDecl + let ml2 = matchlist( rest , '^'.indent.contPat ) + while ml2 != [] + let [_,c,rest;x] = ml2 + let type .= c + let ml2 = matchlist( rest , '^'.indent.contPat ) + endwhile + let id = substitute(id, '^(\(.*\))$', '\1', '') + let type = substitute( type, '\s\+', " ", "g" ) + " using :browse *, we get both unqualified and qualified ids + if current_module " || has_key(imports[0],module) + if has_key(b:ghc_types,id) && !(matchstr(b:ghc_types[id],escape(type,'[].'))==type) + let b:ghc_types[id] .= ' -- '.type + else + let b:ghc_types[id] = type + endif + endif + if 0 " has_key(imports[1],module) + let qualid = module.'.'.id + let b:ghc_types[qualid] = type + endif + else + let mlMod = matchlist( l, modPat ) + if mlMod != [] + let [_,module;x] = mlMod + let current_module = module[0]=='*' + let module = current_module ? module[1:] : module + endif + endif + let ml = matchlist( rest , linePat ) + endwhile + return 1 +endfunction + +let s:ghc_templates = ["module _ () where","class _ where","class _ => _ where","instance _ where","instance _ => _ where","type family _","type instance _ = ","data _ = ","newtype _ = ","type _ = "] + +" use ghci :browse index for insert mode omnicompletion (CTRL-X CTRL-O) +function! GHC_CompleteImports(findstart, base) + if a:findstart + let namsym = haskellmode#GetNameSymbol(getline('.'),col('.'),-1) " insert-mode: we're 1 beyond the text + if namsym==[] + redraw + echo 'no name/symbol under cursor!' + return -1 + endif + let [start,symb,qual,unqual] = namsym + return (start-1) + else " find keys matching with "a:base" + let res = [] + let l = len(a:base)-1 + call GHC_HaveTypes() + for key in keys(b:ghc_types) + if key[0 : l]==a:base + let res += [{"word":key,"menu":":: ".b:ghc_types[key],"dup":1}] + endif + endfor + return res + endif +endfunction +set omnifunc=GHC_CompleteImports +set completeopt=menu,menuone,longest + +map ct :call GHC_CreateTagfile() +function! GHC_CreateTagfile() + redraw + echo "creating tags file" + let output = system(g:ghc . ' ' . b:ghc_staticoptions . ' -e ":ctags" ' . expand("%")) + " for ghcs older than 6.6, you would need to call another program + " here, such as hasktags + echo output +endfunction + +command! -nargs=1 GHCi redraw | echo system(g:ghc. ' ' . b:ghc_staticoptions .' '.expand("%").' -e "'.escape(,'"').'"') + +" use :make 'not in scope' errors to explicitly list imported ids +" cursor needs to be on import line, in correctly loadable module +map ie :call GHC_MkImportsExplicit() +function! GHC_MkImportsExplicit() + let save_cursor = getpos(".") + let line = getline('.') + let lineno = line('.') + let ml = matchlist(line,'^import\(\s*qualified\)\?\s*\([^( ]\+\)') + if ml!=[] + let [_,q,mod;x] = ml + silent make + if getqflist()==[] + if line=~"import[^(]*Prelude" + call setline(lineno,substitute(line,"(.*","","").'()') + else + call setline(lineno,'-- '.line) + endif + silent write + silent make + let qflist = getqflist() + call setline(lineno,line) + silent write + let ids = {} + for d in qflist + let ml = matchlist(d.text,'Not in scope: \([^`]*\)`\([^'']*\)''') + if ml!=[] + let [_,what,qid;x] = ml + let id = ( qid =~ "^[A-Z]" ? substitute(qid,'.*\.\([^.]*\)$','\1','') : qid ) + let pid = ( id =~ "[a-zA-Z0-9_']\\+" ? id : '('.id.')' ) + if what =~ "data" + call GHC_HaveTypes() + if has_key(b:ghc_types,id) + let pid = substitute(b:ghc_types[id],'^.*->\s*\(\S*\).*$','\1','').'('.pid.')' + else + let pid = '???('.pid.')' + endif + endif + let ids[pid] = 1 + endif + endfor + call setline(lineno,'import'.q.' '.mod.'('.join(keys(ids),',').')') + else + copen + endif + endif + call setpos('.', save_cursor) +endfunction + +if GHC_VersionGE([6,8,2]) + let opts = filter(split(substitute(system(g:ghc . ' -v0 --interactive', ':set'), ' ', '','g'), '\n'), 'v:val =~ "-f"') +else + let opts = ["-fglasgow-exts","-fallow-undecidable-instances","-fallow-overlapping-instances","-fno-monomorphism-restriction","-fno-mono-pat-binds","-fno-cse","-fbang-patterns","-funbox-strict-fields"] +endif + +amenu ]OPTIONS_GHC.- :echo '-' +aunmenu ]OPTIONS_GHC +for o in opts + exe 'amenu ]OPTIONS_GHC.'.o.' :call append(0,"{-# OPTIONS_GHC '.o.' #-}")' +endfor +if has("gui_running") + map opt :popup ]OPTIONS_GHC +else + map opt :emenu ]OPTIONS_GHC. +endif + +amenu ]LANGUAGES_GHC.- :echo '-' +aunmenu ]LANGUAGES_GHC +if GHC_VersionGE([6,8]) + let ghc_supported_languages = split(system(g:ghc . ' --supported-languages'),'\n') + for l in ghc_supported_languages + exe 'amenu ]LANGUAGES_GHC.'.l.' :call append(0,"{-# LANGUAGE '.l.' #-}")' + endfor + if has("gui_running") + map lang :popup ]LANGUAGES_GHC + else + map lang :emenu ]LANGUAGES_GHC. + endif +endif diff --git a/dot_vim/compiler/tex.vim b/dot_vim/compiler/tex.vim new file mode 100644 index 0000000..993ecfe --- /dev/null +++ b/dot_vim/compiler/tex.vim @@ -0,0 +1,293 @@ +" File: tex.vim +" Type: compiler plugin for LaTeX +" Original Author: Artem Chuprina +" Customization: Srinath Avadhanula +" CVS: $Id: tex.vim 997 2006-03-20 09:45:45Z srinathava $ +" Description: {{{ +" This file sets the 'makeprg' and 'errorformat' options for the LaTeX +" compiler. It is customizable to optionally ignore certain warnings and +" provides the ability to set a dynamic 'ignore-warning' level. +" +" By default it is set up in a 'non-verbose', 'ignore-common-warnings' mode, +" which means that irrelevant lines from the compilers output will be +" ignored and also some very common warnings are ignored. +" +" Depending on the 'ignore-level', the following kinds of messages are +" ignored. An ignore level of 3 for instance means that messages 1-3 will be +" ignored. By default, the ignore level is set to 4. +" +" 1. LaTeX Warning: Specifier 'h' changed to 't'. +" This errors occurs when TeX is not able to correctly place a floating +" object at a specified location, because of which it defaulted to the +" top of the page. +" 2. LaTeX Warning: Underfull box ... +" 3. LaTeX Warning: Overfull box ... +" both these warnings (very common) are due to \hbox settings not being +" satisfied nicely. +" 4. LaTeX Warning: You have requested ..., +" This warning occurs in slitex when using the xypic package. +" 5. Missing number error: +" Usually, when the name of an included eps file is spelled incorrectly, +" then the \bb-error message is accompanied by a bunch of "missing +" number, treated as zero" error messages. This level ignores these +" warnings. +" NOTE: number 5 is actually a latex error, not a warning! +" +" Use +" TCLevel +" where level is a number to set the ignore level dynamically. +" +" When TCLevel is called with the unquoted string strict +" TClevel strict +" then the 'efm' switches to a 'verbose', 'no-lines-ignored' mode which is +" useful when you want to make final checks of your document and want to be +" careful not to let things slip by. +" +" TIP: MikTeX has a bug where it sometimes erroneously splits a line number +" into multiple lines. i.e, if the warning is on line 1234. the compiler +" output is: +" LaTeX Warning: ... on input line 123 +" 4. +" In this case, vim will wrongly interpret the line-number as 123 instead +" of 1234. If you have cygwin, a simple remedy around this is to first +" copy the file vimlatex (provided) into your $PATH, make sure its +" executable and then set the variable g:tex_flavor to vimlatex in your +" ~/.vimrc (i.e putting let "g:tex_flavor = 'vimlatex'" in your .vimrc). +" This problem occurs rarely enough that its not a botheration for most +" people. +" +" TODO: +" 1. menu items for dynamically selecting a ignore warning level. +" }}} + +" avoid reinclusion for the same buffer. keep it buffer local so it can be +" externally reset in case of emergency re-sourcing. +if exists('b:doneTexCompiler') && !exists('b:forceRedoTexCompiler') + finish +endif +let b:doneTexCompiler = 1 + +" ============================================================================== +" Customization of 'efm': {{{ +" This section contains the customization variables which the user can set. +" g:Tex_IgnoredWarnings: This variable contains a seperated list of +" patterns which will be ignored in the TeX compiler's output. Use this +" carefully, otherwise you might end up losing valuable information. +if !exists('g:Tex_IgnoredWarnings') + let g:Tex_IgnoredWarnings = + \'Underfull'."\n". + \'Overfull'."\n". + \'specifier changed to'."\n". + \'You have requested'."\n". + \'Missing number, treated as zero.'."\n". + \'There were undefined references'."\n". + \'Citation %.%# undefined' +endif +" This is the number of warnings in the g:Tex_IgnoredWarnings string which +" will be ignored. +if !exists('g:Tex_IgnoreLevel') + let g:Tex_IgnoreLevel = 7 +endif +" There will be lots of stuff in a typical compiler output which will +" completely fall through the 'efm' parsing. This options sets whether or not +" you will be shown those lines. +if !exists('g:Tex_IgnoreUnmatched') + let g:Tex_IgnoreUnmatched = 1 +endif +" With all this customization, there is a slight risk that you might be +" ignoring valid warnings or errors. Therefore before getting the final copy +" of your work, you might want to reset the 'efm' with this variable set to 1. +" With that value, all the lines from the compiler are shown irrespective of +" whether they match the error or warning patterns. +" NOTE: An easier way of resetting the 'efm' to show everything is to do +" TCLevel strict +if !exists('g:Tex_ShowallLines') + let g:Tex_ShowallLines = 0 +endif + +" }}} +" ============================================================================== +" Customization of 'makeprg': {{{ + +" There are several alternate ways in which 'makeprg' is set up. +" +" Case 1 +" ------ +" The first is when this file is a part of latex-suite. In this case, a +" variable called g:Tex_DefaultTargetFormat exists, which gives the default +" format .tex files should be compiled into. In this case, we use the TTarget +" command provided by latex-suite. +" +" Case 2 +" ------ +" The user is using this file without latex-suite AND he wants to directly +" specify the complete 'makeprg'. Then he should set the g:Tex_CompileRule_dvi +" variable. This is a string which should be directly be able to be cast into +" &makeprg. An example of one such string is: +" +" g:Tex_CompileRule_dvi = 'pdflatex \\nonstopmode \\input\{$*\}' +" +" NOTE: You will need to escape back-slashes, {'s etc yourself if you are +" using this file independently of latex-suite. +" TODO: Should we also have a check for backslash escaping here based on +" platform? +" +" Case 3 +" ------ +" The use is using this file without latex-suite and he doesnt want any +" customization. In this case, this file makes some intelligent guesses based +" on the platform. If he doesn't want to specify the complete 'makeprg' but +" only the name of the compiler program (for example 'pdflatex' or 'latex'), +" then he sets b:tex_flavor or g:tex_flavor. + +if exists('g:Tex_DefaultTargetFormat') + exec 'TTarget '.g:Tex_DefaultTargetFormat +elseif exists('g:Tex_CompileRule_dvi') + let &l:makeprg = g:Tex_CompileRule_dvi +else + " If buffer-local variable 'tex_flavor' exists, it defines TeX flavor, + " otherwize the same for global variable with same name, else it will be LaTeX + if exists("b:tex_flavor") + let current_compiler = b:tex_flavor + elseif exists("g:tex_flavor") + let current_compiler = g:tex_flavor + else + let current_compiler = "latex" + end + if has('win32') + let escChars = '' + else + let escChars = '{}\' + endif + " Furthermore, if 'win32' is detected, then we want to set the arguments up so + " that miktex can handle it. + if has('win32') + let options = '--src-specials' + else + let options = '' + endif + let &l:makeprg = current_compiler . ' ' . options . + \ escape(' \nonstopmode \input{$*}', escChars) +endif + +" }}} +" ============================================================================== +" Functions for setting up a customized 'efm' {{{ + +" IgnoreWarnings: parses g:Tex_IgnoredWarnings for message customization {{{ +" Description: +function! IgnoreWarnings() + let i = 1 + while s:Strntok(g:Tex_IgnoredWarnings, "\n", i) != '' && + \ i <= g:Tex_IgnoreLevel + let warningPat = s:Strntok(g:Tex_IgnoredWarnings, "\n", i) + let warningPat = escape(substitute(warningPat, '[\,]', '%\\\\&', 'g'), ' ') + exe 'setlocal efm+=%-G%.%#'.warningPat.'%.%#' + let i = i + 1 + endwhile +endfunction + +" }}} +" SetLatexEfm: sets the 'efm' for the latex compiler {{{ +" Description: +function! SetLatexEfm() + + let pm = ( g:Tex_ShowallLines == 1 ? '+' : '-' ) + + set efm= + + if !g:Tex_ShowallLines + call s:IgnoreWarnings() + endif + + setlocal efm+=%E!\ LaTeX\ %trror:\ %m + setlocal efm+=%E!\ %m + + setlocal efm+=%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%# + setlocal efm+=%+W%.%#\ at\ lines\ %l--%*\\d + setlocal efm+=%+WLaTeX\ %.%#Warning:\ %m + + exec 'setlocal efm+=%'.pm.'Cl.%l\ %m' + exec 'setlocal efm+=%'.pm.'Cl.%l\ ' + exec 'setlocal efm+=%'.pm.'C\ \ %m' + exec 'setlocal efm+=%'.pm.'C%.%#-%.%#' + exec 'setlocal efm+=%'.pm.'C%.%#[]%.%#' + exec 'setlocal efm+=%'.pm.'C[]%.%#' + exec 'setlocal efm+=%'.pm.'C%.%#%[{}\\]%.%#' + exec 'setlocal efm+=%'.pm.'C<%.%#>%m' + exec 'setlocal efm+=%'.pm.'C\ \ %m' + exec 'setlocal efm+=%'.pm.'GSee\ the\ LaTeX%m' + exec 'setlocal efm+=%'.pm.'GType\ \ H\ %m' + exec 'setlocal efm+=%'.pm.'G\ ...%.%#' + exec 'setlocal efm+=%'.pm.'G%.%#\ (C)\ %.%#' + exec 'setlocal efm+=%'.pm.'G(see\ the\ transcript%.%#)' + exec 'setlocal efm+=%'.pm.'G\\s%#' + exec 'setlocal efm+=%'.pm.'O(%*[^()])%r' + exec 'setlocal efm+=%'.pm.'P(%f%r' + exec 'setlocal efm+=%'.pm.'P\ %\\=(%f%r' + exec 'setlocal efm+=%'.pm.'P%*[^()](%f%r' + exec 'setlocal efm+=%'.pm.'P(%f%*[^()]' + exec 'setlocal efm+=%'.pm.'P[%\\d%[^()]%#(%f%r' + if g:Tex_IgnoreUnmatched && !g:Tex_ShowallLines + setlocal efm+=%-P%*[^()] + endif + exec 'setlocal efm+=%'.pm.'Q)%r' + exec 'setlocal efm+=%'.pm.'Q%*[^()])%r' + exec 'setlocal efm+=%'.pm.'Q[%\\d%*[^()])%r' + if g:Tex_IgnoreUnmatched && !g:Tex_ShowallLines + setlocal efm+=%-Q%*[^()] + endif + if g:Tex_IgnoreUnmatched && !g:Tex_ShowallLines + setlocal efm+=%-G%.%# + endif + +endfunction + +" }}} +" Strntok: extract the n^th token from a list {{{ +" example: Strntok('1,23,3', ',', 2) = 23 +fun! Strntok(s, tok, n) + return matchstr( a:s.a:tok[0], '\v(\zs([^'.a:tok.']*)\ze['.a:tok.']){'.a:n.'}') +endfun + +" }}} +" SetTexCompilerLevel: sets the "level" for the latex compiler {{{ +function! SetTexCompilerLevel(...) + if a:0 > 0 + let level = a:1 + else + call Tex_ResetIncrementNumber(0) + echo substitute(g:Tex_IgnoredWarnings, + \ '^\|\n\zs\S', '\=Tex_IncrementNumber(1)." ".submatch(0)', 'g') + let level = input("\nChoose an ignore level: ") + if level == '' + return + endif + endif + if level == 'strict' + let g:Tex_ShowallLines = 1 + elseif level =~ '^\d\+$' + let g:Tex_ShowallLines = 0 + let g:Tex_IgnoreLevel = level + else + echoerr "SetTexCompilerLevel: Unkwown option [".level."]" + end + call s:SetLatexEfm() +endfunction + +com! -nargs=? TCLevel :call SetTexCompilerLevel() +" }}} + +" }}} +" ============================================================================== + +call s:SetLatexEfm() + +if !exists('*Tex_Debug') + function! Tex_Debug(...) + endfunction +endif + +call Tex_Debug("compiler/tex.vim: sourcing this file", "comp") + +" vim: fdm=marker:commentstring=\ \"\ %s diff --git a/dot_vim/doc/csupport.txt b/dot_vim/doc/csupport.txt new file mode 100644 index 0000000..266b8db --- /dev/null +++ b/dot_vim/doc/csupport.txt @@ -0,0 +1,1577 @@ +*csupport.txt* C/C++ Support November 21 2007 + +C/C++ Support *c-support* *csupport* + Plugin version 5.0.5 + for Vim version 6.0 and above + Fritz Mehner + +C/C++-IDE for Vim/gVim. It is written to considerably speed up writing code in +a consistent style. This is done by inserting complete statements,idioms, code +snippets, templates, and comments. Syntax checking, compiling, running a +program, running a code checker or indent can be done with a keystroke. + + + 1. Usage |csupport-usage-gvim| + 1.1 Menu 'Comments' |csupport-comm| + 1.1.1 Append aligned comments |csupport-comm-aligned| + 1.1.2 Adjust end-of-line comments |csupport-comm-realign| + 1.1.3 Code to comment |csupport-code-to-comm| + 1.1.4 Comment to code |csupport-comm-to-code| + 1.1.5 Frame comments, file header, ... |csupport-comm-frame| + 1.1.6 KEYWORD + comment |csupport-comm-keywords| + 1.1.7 C to C++ comments and vice versa |csupport-comm-c-cpp| + 1.1.8 Date and date+time |csupport-comm-date| + 1.2 Menu 'Statements' |csupport-stat| + 1.2.1 Normal mode, insert mode. |csupport-stat-normal-mode| + 1.2.2 Visual mode. |csupport-stat-visual-mode| + 1.3 Menu 'Preprocessor' |csupport-prep| + 1.3.1 Normal mode, insert mode. |csupport-prep-normal-mode| + 1.3.2 Visual mode. |csupport-prep-visual-mode| + 1.3.3 Block out code with #if 0 .. #endif |csupport-prep-if0| + 1.4 Menu 'Idioms' |csupport-idioms| + 1.5 Menu 'Snippets' |csupport-snippets| + 1.5.1 Code snippets |csupport-snippets| + 1.5.2 Picking up prototypes |csupport-proto| + 1.6 Menu 'C++' |csupport-c++| + 1.6.1 Normal mode, insert mode. |csupport-c++-normal-mode| + 1.6.2 Visual mode. |csupport-c++-visual-mode| + 1.6.3 Method implementation |csupport-c++-method-impl| + 1.7 Menu 'Run' |csupport-run| + 1.7.1 Minimal make functionality |csupport-run-buffer| + 1.7.2 Command line arguments |csupport-run-cmdline-args| + 1.7.3 Run make |csupport-run-make| + 1.7.4 Command line arguments for make |csupport-run-make-args| + 1.7.5 Splint |csupport-run-splint| + 1.7.6 CodeCheck |csupport-run-codecheck| + 1.7.7 Indent |csupport-run-indent| + 1.7.8 Hardcopy |csupport-run-hardcopy| + 1.7.9 Rebuild templates |csupport-run-templates| + 1.7.10 Xterm size |csupport-run-xterm| + 1.7.11 Output redirection |csupport-run-output| + 1.8 Help |csupport-help| + + 2. Usage without GUI |csupport-usage-vim| + 3. Hotkeys |csupport-hotkeys| + 4. Customization and configuration |csupport-custom| + 4.1 Global variables |csupport-custom-glob-vars| + 4.2 The root menu |csupport-custom-root-menu| + 4.3 System-wide installation |csupport-system-wide| + 5. Template files and tags |csupport-templates| + 5.1 Template files |csupport-templates-files| + 5.2 Macros |csupport-templates-macros| + 5.3 Templates |csupport-templates-names| + 5.3.1 Template names |csupport-templates-names| + 5.3.2 Template definition |csupport-templates-definition| + 5.3.3 Template expansion |csupport-templates-expansion| + 6. C/C++ Dictionaries |csupport-dictionary| + 7. Extend taglist.vim for make and qmake |csupport-taglist| + 8. Syntax based folding |csupport-folding| + 9. Windows particularities |csupport-windows| +10. Troubleshooting |csupport-troubleshooting| +11. Release Notes /Change Log |csupport-release-notes| + + How to add this help file to Vim's help |add-local-help| + + +============================================================================== +1. USAGE WITH GUI (gVim) *csupport-usage-gvim* +============================================================================== + +If the root menu 'C/C++' is not visible call it with the item "Load C Support" +from the standard Tools-menu. +The item "Load C Support" can also be used to unload the C/C++-root menu. + +Nearly all menu entries insert code snippets or comments. All these stuff is +taken from template files and can be changed by the user to meet his +requirements (see|csupport-templates|). + +------------------------------------------------------------------------------ +1.1 MENU 'Comments' *csupport-comm* +------------------------------------------------------------------------------ + +1.1.1 APPEND ALIGNED COMMENTS TO CONSECUTIVE LINES *csupport-comm-aligned* + +In NORMAL MODE the menu items 'end-of-line comment' will append an comment to +the current line. +In VISUAL MODE these item will append aligned comments to all marked lines. +Marking the first 4 lines + + print_double_array ( double array[], + int n, + int columns, + char* arrayname + ) + +and choosing 'end-of-line com. /**/' will yield. + + print_double_array ( double array[], /* */ + int n, /* */ + int columns, /* */ + char* arrayname /* */ + ) /* */ + +If one ore more lines go beyond the starting column (s.below) the comments +will start at the 2. column after the longest line. The cursor will be +positioned inside the first comment. + +The default starting column is 49 ( = (multiple of 2,4, or 8) + 1 ). This can +be changed by setting a global variable in the file ~/.vimrc , e.g. : + + let g:C_LineEndCommColDefault = 45 + +The starting column can also be set by the menu item +'Comments->set end-of-line com. col' . Just position the cursor in an +arbitrary column (column number is shown in the Vim status line) and choose +this menu item. This setting is buffer related. + +If the cursor was at the end of a line you will be asked for a column number +because this position is most likely not the desired starting column. +Your choice will be confirmed. + +------------------------------------------------------------------------------ + +1.1.2 ADJUST END-OF-LINE COMMENTS *csupport-comm-realign* + +After some changes end-of-line comments may be no longer aligned: + + print_double_array ( double array[], /* */ + long int n, /* */ + unsigned int columns, /* */ + char* a_name /* */ + ) /* */ + +Realignment can be achieved with the menu item 'adjust end-of-line com.' In +normal mode the comment (if any) in the current line will be aligned to the +end-of-line comment column (see above) if possible. In visual mode the +comments in the marked block will be aligned: + + print_double_array ( double array[], /* */ + long int n, /* */ + unsigned int columns, /* */ + char* a_name /* */ + ) /* */ + +------------------------------------------------------------------------------ + +1.1.3 CODE TO COMMENT *csupport-code-to-comm* + +The marked block + +xxxxxxxx +xxxxxxxx +xxxxxxxx + +will be changed by the menu item 'code->comment /**/' into the multiline +comment (all (partially) marked lines): + +/* xxxxxxxx + * xxxxxxxx + * xxxxxxxx + */ + +The marked block will be changed by the menu item 'code->comment //' into the +multiline comment + +//xxxxxxxx +//xxxxxxxx +//xxxxxxxx + +The menu items works also for a single line. A single line needs not to be +marked. + +------------------------------------------------------------------------------ + +1.1.4 COMMENT TO CODE *csupport-comm-to-code* + +If one (or more) complete comment (i.e. all lines belonging to the comment) is +marked the item 'comment->code' will uncomment it. If the following lines +are marked + + * printf ("\n"); + */ + + printf ("\n"); + + // printf ("\n"); + // + + /* + * printf ("\n"); + */ + +uncommenting will yield + + * printf ("\n"); + */ + + printf ("\n"); + + printf ("\n"); + + + + printf ("\n"); + +The first 2 lines are only a part of a C-comment and remain unchanged. +A C-comment can start with /* , /** or /*! . + +The menu item works also for a single line with a leading // . A single line +needs not to be marked. + +------------------------------------------------------------------------------ + +1.1.5 FRAME COMMENTS, FILE HEADER, ... *csupport-comm-frame* + +Frame comments, file header comments and function, methods, class descriptions +are read as templates from the appropriate files (see |csupport-templates|). + +------------------------------------------------------------------------------ + +1.1.6 KEYWORD+comment *csupport-comm-keywords* + +Preliminary comments to document (and find again) places where works will be +resumed shortly. Usually not meant for the final documentation. + +------------------------------------------------------------------------------ + +1.1.7 C TO C++ COMMENTS AND VICE VERSA *csupport-comm-c-cpp* + +The menu item '// xxx -> /* xxx */' changes a C++ comment into an C comment. +This is done for the current line in normal or insert mode and for a marked +area of lines in visual mode. +If there are multiple C comments only the first one will be changed: + printf ("\n"); /* one */ /* two */ /* three */ +will be changed into + printf ("\n"); // one /* two */ /* three */ + +The menu item '/* xxx */ -> // xxx' changes a C comment into an C++ comment. + +------------------------------------------------------------------------------ + +1.1.8 DATE AND DATE+TIME *csupport-comm-date* + +The format for 'date' and 'date time' can be defined by the user (see +|csupport-templates-date|). + +------------------------------------------------------------------------------ +1.2 MENU 'Statements' *csupport-stat* +------------------------------------------------------------------------------ + +1.2.1 NORMAL MODE, INSERT MODE. *csupport-stat-normal-mode* + +An empty statement will be inserted and properly indented. The item 'if{}' +will insert an if-statement: + +if ( ) +{ +} + + +1.2.2 VISUAL MODE. *csupport-stat-visual-mode* + +STATEMENTS WITH BLOCKS AND CASE LABEL. +-------------------------------------- +The highlighted area + +xxxxx +xxxxx + +can be surrounded by one of the following statements: + + +----------------------------+-----------------------------+ + | if ( ) | if ( ) | + | { | { | + | xxxxx | xxxxx | + | xxxxx | xxxxx | + | } | } | + | | else | + | | { | + | | } | + +----------------------------+-----------------------------+ + | for ( ; ; ) | while ( ) | + | { | { | + | xxxxx | xxxxx | + | xxxxx | xxxxx | + | } | } | + +----------------------------+-----------------------------+ + | do | | + | { | { | + | xxxxx | xxxxx | + | xxxxx | xxxxx | + | } | } | + | while ( ); | | + +----------------------------+-----------------------------+ + | switch ( ) { | + | case : | + | break; | + | | + | case : | + | break; | + | | + | case : | + | break; | + | | + | case : | + | break; | + | | + | default: | + | break; | + | } | + +----------------------------+-----------------------------+ + +For 'switch' and 'case' see |csupport-stat-switch| and |csupport-stat-case|. + +The whole statement will be indented after insertion. + + +STATEMENTS WITHOUT BLOCKS. +-------------------------- +One of the following statements can be inserted: + + +-------------------------------+--------------------------+ + | if ( ) | for ( ; ; ) | + +-------------------------------+--------------------------+ + | if ( ) | while ( ) | + | else | | + +-------------------------------+--------------------------+ + | case : | | + | break; | | + +-------------------------------+--------------------------+ + + +------------------------------------------------------------------------------ +1.3 MENU 'Preprocessor' *csupport-prep* +------------------------------------------------------------------------------ + +1.3.1 NORMAL MODE, INSERT MODE. *csupport-prep-normal-mode* + +The preprocessor statements will be inserted and properly indented. + +1.3.2 VISUAL MODE. *csupport-prep-visual-mode* + +STATEMENTS WITH BLOCKS +---------------------- +The highlighted area + +xxxxx +xxxxx + +can be surrounded by one of the following statements: + + +----------------------------+-----------------------------+ + | #if CONDITION | + | xxxxx | + | xxxxx | + | #else /* ----- #if CONDITION ----- */ | + | | + | #endif /* ----- #if CONDITION ----- */ | + +----------------------------------------------------------+ + | #ifdef CONDITION | + | xxxxx | + | xxxxx | + | #else /* ----- #ifdef CONDITION ----- */ | + | | + | #endif /* ----- #ifdef CONDITION ----- */ | + +----------------------------------------------------------+ + | #ifndef CONDITION | + | xxxxx | + | xxxxx | + | #else /* ----- #ifndef CONDITION ----- */ | + | | + | #endif /* ----- #ifndef CONDITION ----- */ | + +----------------------------------------------------------+ + | #ifndef INC_TEST | + | #define INC_TEST | + | xxxxx | + | xxxxx | + | #endif /* ----- #ifndef INC_TEST ----- */ | + +----------------------------------------------------------+ + | #if 0 /* ----- #if 0 : If0Label_1 ----- */ | + | | + | #endif /* ----- #if 0 : If0Label_1 ----- */ | + +----------------------------------------------------------+ + +The macro name for an include guard (e.g. INC_TEST above) will be derived as a +suggestion from the file name. + +1.3.3 BLOCK OUT CODE WITH #if 0 ... #endif *csupport-prep-if0* + +The menu item #if 0 #endif inserts the lines + + #if 0 /* ----- #if 0 : If0Label_1 ----- */ + + #endif /* ----- #if 0 : If0Label_1 ----- */ + +In visual mode the marked block of lines will be surrounded by these lines. + +This is usually done to temporarily block out some code. The label names like +If0Label_1 are automatically inserted into the comments. The trailing numbers +are automatically incremented. These numbers can be changed by the user. The +next number will be one above the highest number found in the current buffer. + +A corresponding label can be found by searching with the vim star command (*). +All labels can be found with a global search like :g/If0Label_/ or +:g/If0Label_\d\+/. All corresponding lines can be deleted with :g/If0Label_/d . + + +REMOVE THE ENCLOSING #if 0 ... #endif -CONSTRUCT. + +The menu item 'remove #if #endif' removes such a construct if the cursor is +in the middle of such a section or on one of the two enclosing lines. Nested +constructs will be untouched. + +------------------------------------------------------------------------------ +1.4 MENU 'Idioms' *csupport-idioms* +------------------------------------------------------------------------------ + +1.4.1 ENTRY 'function' + +NORMAL MODE, INSERT MODE: +The name of the function is asked for and the following lines (for function +name "f") will be inserted: + + void + f ( ) + { + return ; + } /* ---------- end of function f ---------- */ + +VISUAL MODE: +Main or [static] function: the highlighted lines will go inside the new +function or main. +for-loops: the highlighted lines will be set in braces. + +1.4.2 ENTRY 'open input file' + +The item 'open input file' will create the statements to open and close an +input file (e.g. with the file pointer 'infile'). + +1.4.3 ENTRY 'open output file' + +The item 'open output file' will create the statements to open and close an +output file (e.g. with the file pointer 'outfile'). + +------------------------------------------------------------------------------ +1.5 MENU 'Snippets' *csupport-snippets* +------------------------------------------------------------------------------ + +1.5.1 CODE SNIPPETS + +Code snippets are pieces of code which are kept in separate files in a special +directory (e.g. a few lines of code or a complete template for a Makefile). +File names are used to identify the snippets. The snippet directory will be +created during the installation ( $HOME/.vim/codesnippets-c is the default). +Snippets are managed with the 3 items + + C/C++ -> Snippets -> read code snippet + C/C++ -> Snippets -> write code snippet + C/C++ -> Snippets -> edit code snippet + +from the Snippets submenu. + +CREATING A NEW SNIPPET +When nothing is marked, "write code snippet" will write the whole buffer +to a snippet file, otherwise the marked area will be written to a file. + +INSERT A SNIPPET +Select the appropriate file from the snippet directory ("read code snippet"). +The inserted lines will be indented. + +EDIT A SNIPPET +This is a normal edit. + +INDENTATION / NO INDENTATION +Code snippets are normally indented after insertion. To suppress indentation +add the file extension "ni" or "noindent" to the snippet file name, e.g. + + parameter_handling.c.noindent + + +1.5.2 PICKING UP PROTOTYPES *csupport-proto* + +PICK UP PROTOTYPES. +To make a prototype from a function head mark the function head and choose +'Snippets -> pick up prototype'. From the first six lines of + + void + print_double_array ( double array[], /* array to print */ + int n, /* number of elements to print */ + int columns, /* number of elements per column */ + char* arrayname /* array name */ + ) + { + ... + } /* ---------- end of function print_double_array ---------- */ + +the prototype + + void print_double_array ( double array[], int n, int columns, char* arrayname ); + +is produced and put in an internal buffer. +- Leading and trailing whitespaces are removed. +- All inner whitespaces are squeezed. +- All comments will be discarded. +- Trailing parts of the function body (e.g a '{' ) will also be removed. +- The class name and the scope resolution operator will be removed (C++ method + implementations). +Further prototypes can be picked up and gathered in the buffer. + +For C++ methods namespace names and class names will be removed +(exception: 'std::' ). The first two lines of + + std::string + ROBOT::Robot::get_name ( void ) + { + return type_name; + } /* ----- end of method Robot::get_name ----- */ + +result in the prototype + + std::string get_name ( void ); + +Folding may help picking up prototypes (see |csupport-folding|). + + +INSERT PROTOTYPES +With 'Snippets -> insert prototype(s)' all picked up prototypes currently in +the buffer will be inserted below the cursor. +The prototype buffer will be cleared after insertion. + + +DISCARD PROTOTYPES +The prototype buffer can be cleared with 'Snippets -> clear prototype(s)' . + + +SHOW PROTOTYPES +The list of gathered prototypes can be shown with +'Snippets -> show prototype(s)'. The number and the filename are shown, e.g. + + (1) matrix.c # double** calloc_double_matrix ( int rows, int columns ); + (2) matrix.c # void free_double_matrix ( double **m ); + (3) foomain.c # void foo ( ); + + +REMARK. Generating prototypes this way is nice in a small project. You may +want to use an extractor like cextract or something else. + + +------------------------------------------------------------------------------ +1.6 MENU 'C++' *csupport-c++* +------------------------------------------------------------------------------ + +1.6.1 NORMAL MODE, INSERT MODE. *csupport-c++-normal-mode* + +An empty statement will be inserted and in some cases properly indented. The +item 'try .. catch' will insert the following lines: + + try { + } + catch ( const &ExceptObj ) { // handle exception: + } + catch (...) { // handle exception: unspezified + } + +The cursor will go into the try block. + +1.6.2 VISUAL MODE. *csupport-c++-visual-mode* + +The highlighted area can be surrounded by one of the following statements: + + try - catch + catch + catch(...) + namespace { } + extern "C" { } + +The whole statement will be indented after insertion. + +1.6.3 METHOD IMPLEMENTATION *csupport-c++-method-impl* + +The menu item 'method implement.' asks for a method name. If this item is +called the first time you will see just an scope resolution operator. If you +specify the scope this is used the next time you call this item. If you use +one of the menu items to generate a class (see |csupport-templates|) the +scope will be extracted and used for the next method. + +------------------------------------------------------------------------------ +1.7 MENU 'Run' *csupport-run* +------------------------------------------------------------------------------ + +1.7.1 MINIMAL MAKE FUNCTIONALITY *csupport-run-buffer* + +The 'Run' menu provides a minimal make functionality for single file projects +(e.g. in education) : + +SAVE AND COMPILE +'save and compile' saves the buffer and run the compiler with the given +options (see |csupport-custom-glob-vars|). + +An error window will be opened if the compiler reports errors and/or warnings. +Quickfix commands can now be used to jump to an error location. + +Consider using maps like + map :cp + map :cn +in your ~/.vimrc file to jump over the error locations and make navigation +easier. The error list and the error locations in your source buffer will be +synchronized. + + +LINK +'link' makes an executable from the current buffer. If the buffer is not +saved, or no object is available or the object is older then the source step +'save and compile' is executed first. + +The behavior of the compiler / linker is determined by the options assigned to +the variables described in |csupport-custom-glob-vars| (4.group). + +RUN +'run' runs the executable with the same name (extension .e) as the current +buffer. If the buffer is not saved, or no executable is available or the +executable is older then the source steps 'save and compile' and 'link' are +executed first. + + +1.7.2 COMMAND LINE ARGUMENTS *csupport-run-cmdline-args* + +The item 'command line arguments' calls an input dialog which asks for command +line arguments. These arguments are forwarded to the program which is run by +the 'run' item. The arguments are kept until you change them. + +The arguments belong to the current buffer (that is, each buffer can have its +own arguments). +If the buffer gets a new name with "save as" the arguments will now belong to +the buffer with the new name. + +The command line arguments can be followed by pipes and redirections: + + 11 22 | sort -rn | head -10 > out + +Caveat: If you look for the current arguments by calling this menu item again +be sure to leave it with a CR (not Esc !). Due to a limitation of an internal +Vim function CR will keep the arguments, Esc with discard them. + + +1.7.3 RUN make *csupport-run-make* + +The item 'make' runs the external make program. + + +1.7.4 COMMAND LINE ARGUMENTS FOR make *csupport-run-make-args* + +The item 'command line arguments for make' calls an input dialog which asks +for command line arguments for make. These arguments are forwarded to make +when called by the item 'make'. + + +1.7.5 SPLINT *csupport-run-splint* + +Splint is a tool for statically checking C programs (see http://www.splint.org). +Of course it has to be installed in order to be used within Vim. The menu +item 'Run->splint' will run the current buffer through splint. + +An error window will be opened if splint has something to complain about. +Quickfix commands can now be used to jump to an error location. For easier +navigation see tip under 'SAVE AND COMPILE' |csupport-run-buffer|. + +Splint has many options. Presumably the best way is to keep the options in an +option file (~/.splintrc). For a quick try you can use the menu item +'Run->cmd. line arg. for splint' to specify some buffer related options. + +When vim is started this plugin will check whether splint is executable. If +not, the menu item will *NOT' be visible. + + +1.7.6 CODECHECK *csupport-run-codecheck* + +CodeCheck (TM) is a commercial code analyzing tool produced by Abraxas +Software, Inc. (www.abraxas-software.com). +Of course it has to be installed in order to be used within Vim. The menu +item 'Run->CodeCheck' will run the current buffer through CodeCheck. + +An error window will be opened if CodeCheck has something to complain about. +Quickfix commands can now be used to jump to an error location. For easier +navigation see tip under 'SAVE AND COMPILE' |csupport-run-buffer|. + +CodeCheck has many options. For a quick try you can use the menu item +'Run->cmd. line arg. for CodeCheck' to specify some buffer related options. + +CodeCheck will be run with default options (see |csupport-custom-glob-vars|). +The default options can be overwritten by placing a global variable in +~/.vimrc , e.g. + + let g:C_CodeCheckOptions = "-K13 -Rmeyers" + +The default name for the executable is 'check'. There are other names in use +on different platforms. The name can be changed by placing a global variable +in ~/.vimrc , e.g. + + let g:C_CodeCheckExeName = "chknt.exe" + +When vim is started this plugin will check whether CodeCheck is executable. If +not, the menu item will *NOT' be visible. + + +1.7.7 INDENT *csupport-run-indent* + +The formatter 'indent' can be run over the whole buffer or a marked region. +Before formatting the whole buffer this buffer will be saved to disk and you +will be asked for a confirmation. + +Indent has many options. These are kept in the file '.indent.pro' in your home +directory. See the indent manual for more information. + + +1.7.8 HARDCOPY *csupport-run-hardcopy* + +Generates a PostScript file from the whole buffer or from a marked region. +On a Windows system a printer dialog is displayed. + +The print header contains date and time for the current locale. The definition +used is + + let s:C_Printheader = "%<%f%h%m%< %=%{strftime('%x %X')} Page %N" + +The current locale can be overwritten by changing the language, e.g. + + :language C + +or by setting a global variable in the file ~/.vimrc , e.g. : + + let g:C_Printheader = "%<%f%h%m%< %=%{strftime('%x %X')} SEITE %N" + +See :h printheader and :h strftime() for more details. + + +1.7.9 REBUILD TEMPLATES *csupport-run-templates* + +After editing one or more template files a click on this item rereads the +template files and rebuilds all templates. + + +1.7.10 XTERM SIZE *csupport-run-xterm* + +The size of the xterm used for running a program (below) can be set by this +menu item. The default is 80 columns with 24 lines. +This feature is not available under Windows. + + +1.7.11 OUTPUT REDIRECTION *csupport-run-output* + +Running a program can be done in one of three ways: +(1) Run the program from the gVim command line. + This is for interactive programs with little input and output. +(2) Run the program and direct the output into a window with name "C-Output". + The buffer and its content will disappear when the window is closed and + reused otherwise. + This is for non-interactive programs with little to very much output. + You have unlimited line length, regex search, navigation, ... + The tabstop value will be set to 8 for "C-Output". +(3) Run the program in an xterm. + +The output method can be chosen from the menu item 'Run->output: ...'. +This menu has three states: + + output: VIM->buffer->xterm + output: BUFFER->xterm->vim + output: XTERM->vim->buffer + +The first (uppercase) item shows the current method. The default is 'vim'. +This can be changed by setting the variable g:C_OutputGvim to another value. +Possible values are 'vim', 'buffer' and 'xterm' . + +The xterm defaults can be set in ~/.vimrc by the variable g:C_XtermDefaults . +The default is "-fa courier -fs 12 -geometry 80x24" : + font name : -fa courier + font size : -fs 12 + terminal size : -geometry 80x24 +See 'xterm -help' for more options. Xterms are not available under Windows. + +------------------------------------------------------------------------------ +1.8 'help' *csupport-help* +------------------------------------------------------------------------------ + +The root menu item 'help' shows this plugin help in a help window. The help +tags must have been generated with + :helptags ~/.vim/doc + +============================================================================== +2. USAGE WITHOUT GUI (Vim) *csupport-usage-vim* +============================================================================== + +The frequently used constructs can be inserted with key mappings. The +mappings are also described in the document c-hot-keys.pdf (reference card, +part of this package). +Hint: Typing speed matters. The combination of a leader ('\') and the +following character(s) will only be recognized for a short time. +The insert mode mappings start with ` (backtick). + +Legend: (i) insert mode, (n) normal mode, (v) visual mode + + -- Load / Unload C/C++ Support ---------------------------------------- + + \lcs Load C/C++ Support Menus (n, GUI only)} + \ucs Unload C/C++ Support Menus (n, GUI only)} + + -- Comments ----------------------------------------------------------- + + \cl end-of-line comment (n,v,i) + \cj adjust end-of-line comment(s) (n,v,i) + \cs set end-of-line comment column (n) + \c* code -> comment /* */ (n,v) + \c/ code -> comment // (n,v) + \co comment -> code (n,v) + \cfr frame comment (n,i) + \cfu function comment (n,i) + \cme method description (n,i) + \cca class description (n,i) + \cd date (n,i) + \ct date \& time (n,i) + + -- Statements --------------------------------------------------------- + + \sd do { } while (n,v,i) + \sf for (n,i) + \sfo for { } (n,v,i) + \si if (n,i) + \sif if { } (n,v,i) + \sie if else (n,v,i) + \sife if { } else { } (n,v,i) + \sw while (n,i) + \swh while { } (n,v,i) + \ss switch (n,v,i) + \sc case (n,i) + \s{ { } (n,v,i) + + -- Preprocessor ------------------------------------------------------- + + \p< #include <> (n,i) + \p" #include "" (n,i) + \pd #define (n,i) + \pu #undef (n,i) + \pie #if #else #endif (n,v,i) + \pid #ifdef #else #endif (n,v,i) + \pin #ifndef #else #endif (n,v,i) + \pind #ifndef #def #endif (n,v,i) + \pi0 #if 0 #endif (n,v,i) + \pr0 remove #if 0 #endif (n) + -- Idioms ------------------------------------------------------------- + + \if function (n,v,i) + \isf static function (n,v,i) + \im main() (n,v,i) + \i0 for( x=0; x=0; x-=1 ) (n,v,i) + \ie enum + typedef (n,i) + \is struct + typedef (n,i) + \iu union + typedef (n,i) + \ip printf() (n,i) + \isc scanf() (n,i) + \ica p=calloc() (n,i) + \ima p=malloc() (n,i) + \isi sizeof() (n,v,i) + \ias assert() (n,v,i) + \ii open input file (n,i) + \io open output file (n,i) + + -- Snippets ----------------------------------------------------------- + + \nr read code snippet (n) + \nw write code snippet (n,v) + \ne edit code snippet (n) + \np pick up prototype (n,v) + \ni insert prototype(s) (n) + \nc clear prototype(s) (n) + \ns show prototype(s) (n) + + -- C++ ---------------------------------------------------------------- + + \+m method implementation (n,i) + \+c class (n,i) + \+cn class (using new) (n,i) + \+tm template method implementation (n,i) + \+tc template class (n,i) + \+tcn template class (using new) (n,i) + \+tf template function (n,i) + \+ec error class (n,i) + \+tr try ... catch (n,v,i) + \+ca catch (n,v,i) + \+c. catch(...) (n,v,i) + + -- Run ---------------------------------------------------------------- + + \rc save and compile (n) + \rl link (n) + \rr run (n) + \ra set comand line arguments (n) + \rm run make (n) + \rg cmd. line arg. for make (n) + \rp run splint (n) + \ri cmd. line arg. for splint (n) + \rk run CodeCheck (TM) (n) + \re cmd. line arg. for CodeCheck (TM) (n) + \rd run indent (n,v) + \rh hardcopy buffer (n,v) + \rs show plugin settings (n) + \rx set xterm size (n, only Linux/UNIX & GUI) + \ro change output destination (n) + \rt rebuild templates (n) + +The hotkeys are defined in the file type plugin c.vim (part of this csupport +plugin package) and described in the document c-hot-keys.pdf + +============================================================================== +3. HOTKEYS *csupport-hotkeys* +============================================================================== + +The following hotkeys are defined in normal, visual and insert mode: + + F9 compile and link + Alt-F9 write buffer and compile + Ctrl-F9 run executable + Shift-F9 set command line arguments + + Shift-F2 switch between source files and header files + +Shift-F2 can be used to switch between source files and header files if the +plugin a.vim is present. To suppress the creation of a new header file when +switching from a source file the file ~/.vimrc should contain a line + + let g:alternateNoDefaultAlternate = 1 + +A header file will only be opened if it already exists. + +The hotkeys are defined in the file type plugin c.vim . + +All hotkeys from the non-GUI mode also work for gVim (see |csupport-usage-vim|). + +============================================================================== +4. CUSTOMIZATION *csupport-custom* +============================================================================== + +------------------------------------------------------------------------------ +4.1 GLOBAL VARIABLES *csupport-custom-glob-vars* +------------------------------------------------------------------------------ + +Several global variables are checked by the script to customize it: + + ---------------------------------------------------------------------------- + GLOBAL VARIABLE DEFAULT VALUE TAG (see below) + ---------------------------------------------------------------------------- + g:C_GlobalTemplateFile plugin_dir.'c-support/templates/Templates' + g:C_LocalTemplateFile $HOME.'/.vim/c-support/templates/Templates' + g:C_TemplateOverwrittenMsg 'yes' + + g:C_CodeSnippets plugin_dir."/c-support/codesnippets/" + g:C_Dictionary_File "" + g:C_LoadMenus "yes" + g:C_MenuHeader "yes" + g:C_OutputGvim "vim" + g:C_XtermDefaults "-fa courier -fs 12 -geometry 80x24" + g:C_Printheader "%<%f%h%m%< %=%{strftime('%x %X')} Page %N" + + Linux/UNIX: + g:C_ObjExtension ".o" + g:C_ExeExtension "" + g:C_CCompiler "gcc" + g:C_CplusCompiler "g++" + Windows: + g:C_ObjExtension ".obj" + g:C_ExeExtension ".exe" + g:C_CCompiler "gcc.exe" + g:C_CplusCompiler "g++.exe" + g:C_CFlags "-Wall -g -O0 -c" + g:C_LFlags "-Wall -g -O0" + g:C_Libs "-lm" + g:C_LineEndCommColDefault 49 + g:C_CExtension "c" + g:C_TypeOfH "cpp" + + g:C_CodeCheckExeName "check" + g:C_CodeCheckOptions "-K13" + +The variable plugin_dir will automatically be set to one of the following values: + $HOME.'/.vim/' for Linux/Unix + $VIM.'/vimfiles/' for Windows + + ---------------------------------------------------------------------------- + +1. group: g:C_GlobalTemplateFile : Sets the master template file (see|csupport-templates|) + g:C_LocalTemplateFile : Sets the local template file (see|csupport-templates|) + g:C_TemplateOverwrittenMsg : message if template is overwritten + +2. group: g:C_CodeSnippets : The name of the code snippet directory + (see |csupport-snippets|). + g:C_Dictionary_File : The name(s) of the dictionary file(s) used for + word completion (see also |csupport-dictionary|) + g:C_Root : the name of the root menu of this plugin + g:C_LoadMenus : Load menus and mappings ("yes", "no") at startup. + g:C_MenuHeader : Switch the submenu header on/off. + g:C_OutputGvim : when program is running output goes to the vim + command line ("vim"), to a buffer ("buffer") or to + an xterm ("xterm"). + g:C_XtermDefaults : the xterm defaults + g:C_Printheader : hardcopy: definition of the page header + +3. group: g:C_CExtension : Extension of C files. Everything else is C++. + g:C_TypeOfH : filetype of header files with extension 'h' (c,cpp) + (see |csupport-comm-style|) + g:C_CCompiler : The name of the C compiler. + g:C_CplusCompiler : The name of the C++ compiler. + g:C_CFlags : Compiler flags used for a compilation. + g:C_LFlags : Compiler flags used for linkage. + g:C_Libs : Libraries to link with. + g:C_ObjExtension : C/C+ file extension for objects + (leading point required if not empty) + g:C_ExeExtension : C/C+ file extension for executables + (leading point required if not empty) + g:C_LineEndCommColDefault : Default starting column for end-of-line comments. + g:C_CodeCheckExeName : The name of the CodeCheck (TM) executable + (the default is 'check') + g:C_CodeCheckOptions : Default options for CodeCheck (TM) + (see |csupport-run-codecheck|). + +To override the default add appropriate assignments to ~/.vimrc . + +------------------------------------------------------------------------------ +4.2 THE ROOT MENU *csupport-custom-root-menu* +------------------------------------------------------------------------------ + +The variable g:C_Root, if set (in ~/.vimrc or in ~/.gvimrc), gives the name of +the single Vim root menu item in which the C/C++ submenus will be put. The +default is + '&C\/C\+\+.' +Note the terminating dot. A single root menu can be used if the screen is +limited or several plugins are used in parallel. + +If set to "", this single root menu item will not appear. Now all submenus +are put into the Vim root menu. This is nice for beginners in a lab +installation or for C-only programmers. + +------------------------------------------------------------------------------ +4.3 SYSTEM-WIDE INSTALLATION *csupport-system-wide* +------------------------------------------------------------------------------ + +A system-wide installation (one installation for all users) is done as +follows. + +As *** SUPERUSER *** : + +(1) Find the Vim installation directory. +The Vim ex command ':echo $VIM' gives '/usr/local/share/vim' or something like +that. Beyond this directory you will find the Vim installation, e.g. in +'/usr/local/share/vim/vim71' if Vim version 7.1 has been installed. + +(2) Create a new subdirectory 'vimfiles', e.g. '/usr/local/share/vim/vimfiles'. + +(3) Install C/C++ Support +Copy the archive cvim.zip to this new directory and unpack it: + unzip cvim.zip + +(4) Generate the help tags: + :helptags $VIM/vimfiles/doc + + +As *** USER *** : + +Create your private snippet directory: + + mkdir --parents ~/.vim/c-support/codesnippets + +You may want to copy the snippets comming with this plugin (in +$VIM/vimfiles/c-support/codesnippets) into the new directory or to set a +link to the global directory. + +Create your private template directory: + + mkdir --parents ~/.vim/c-support/template + +Create a private template file 'Templates' in this directory to overwrite some +macros, e.g. + + *|AUTHOR|* = your name + *|AUTHORREF|* = ... + *|EMAIL|* = ... + *|COMPANY|* = ... + *|COPYRIGHT|* = ... + +You can also have local templates which overwrite the global ones. To suppress +the messages in this case set a global variable in '~/.vimrc' : + + let g:C_TemplateOverwrittenMsg= 'no' + +The default is 'yes'. + +============================================================================== +5. TEMPLATE FILES AND TAGS *csupport-templates* +============================================================================== + +------------------------------------------------------------------------------ +5.1 TEMPLATE FILES *csupport-templates-files* +------------------------------------------------------------------------------ + +Nearly all menu entries insert code snippets or comments. All these stuff is +taken from template files and can be changed by the user to meet his +requirements. + +The master template file is '$HOME/.vim/c-support/templates/Templates' for a +user installation and '$VIM/vimfiles/c-support/templates/Templates' for a +system-wide installation (see|csupport-system-wide|). + +The master template file starts with a macro section followed by templates for +single menu items or better by including other template files grouping the +templates according to the menu structure of this plugin. The master file +could look like this: + + $ + $ ============================================================= + $ ========== USER MACROS ====================================== + $ ============================================================= + $ + *|AUTHOR|* = Dr. Fritz Mehner + *|AUTHORREF|* = mn + *|EMAIL|* = mehner@fh-swf.de + *|COMPANY|* = FH Südwestfalen, Iserlohn + *|COPYRIGHT|* = Copyright (c)*|YEAR|, |AUTHOR|* + $ + $ ============================================================= + $ ========== FILE INCLUDES ==================================== + $ ============================================================= + $ + *|includefile|* = c.comments.template + *|includefile|* = c.cpp.template + *|includefile|* = c.idioms.template + *|includefile|* = c.preprocessor.template + *|includefile|* = c.statements.template + +Lines starting with a dollar sign are comments. The section starting +with *|AUTHOR|* assigns values to predefined tags +(see|csupport-templates-macros|) to personalize some templates. Other +predefined tags with given default values can be used (e.g. *|YEAR|* ). + +User defined tags are possible. They have the following syntax: + + *|macroname|* = replacement + +A macroname starts with a letter (uppercase or lowercase) followed by zero or +more letters, digits or underscores. + +------------------------------------------------------------------------------ +5.2 MACROS *csupport-templates-macros* +------------------------------------------------------------------------------ + +The following macro names are predefined. The first group is used to +personalize templates. + + ---------------------------------------------------------------------------- + PREDEFINED MACROS DEFAULT VALUE + ---------------------------------------------------------------------------- +*|AUTHOR|* "" +*|AUTHORREF|* "" +*|EMAIL|* "" +*|COMPANY|* "" +*|PROJECT|* "" +*|COPYRIGHTHOLDER|* "" +*|includefile|* "" + +*|BASENAME|* filename without path and suffix +*|DATE|* the preferred date representation for the current locale + without the time +*|FILENAME|* filename without path +*|PATH|* path without filename +*|SUFFIX|* filename suffix +*|TIME|* the preferred time representation for the current locale + without the date and the time zone or name or abbreviation +*|YEAR|* the year as a decimal number including the century + +*|includefile|* can be used to include an additional template file. A file +will be included only once. Commenting and uncommenting include macros is a +simple way to switch between several sets of templates (see also +|csupport-run-templates|). Overwriting existing macros and templates is +possible. + + ---------------------------------------------------------------------------- + PREDEFINED TAGS + ---------------------------------------------------------------------------- + The cursor position after insertion of a template + The split point when inserting in visual mode + (see|csupport-templates-definition|) + +A dependent template file can start with its own macro section. There is no +need to have all user defined macros in the master file. +When the first template definition is found (see below) macro definitions are +no longer recognized. + + ---------------------------------------------------------------------------- + USER DEFINED FORMATS FOR DATE AND TIME *csupport-templates-date* + ---------------------------------------------------------------------------- +The format for *|DATE|* ,*|TIME|* , and*|YEAR|* can be set by the user. The +defaults are + *|DATE|* '%x' + *|TIME|* '%X' + *|YEAR|* '%Y' +See the manual page of the C function strftime() for the format. The accepted +format depends on your system, thus this is not portable! The maximum length +of the result is 80 characters. + +User defined formats can be set using the following global variables in +~/.vimrc , e.g. + let g:C_FormatDate = '%D' + let g:C_FormatTime = '%H:%M' + let g:C_FormatYear = 'year %Y' + +------------------------------------------------------------------------------ +5.3 TEMPLATES *csupport-templates-names* +------------------------------------------------------------------------------ + +5.3.1 Template names + +The template behind a menu entry is identified by a given name. The first part +of the name identifies the menu, the second part identifies the item. The +modes are also hard coded (see|csupport-templates-definition|for the use of +). + + TEMPLATE NAME MODES + -------------------------------------------------------------------------- + comment.end-of-line-comment normal visual + comment.frame normal + comment.function normal + comment.method normal + comment.class normal + comment.file-description normal + comment.keyword-bug normal + comment.keyword-compiler normal + comment.keyword-todo normal + comment.keyword-tricky normal + comment.keyword-warning normal + comment.keyword-workaround normal + comment.keyword-keyword normal + comment.file-section-cpp-header-includes normal + comment.file-section-cpp-macros normal + comment.file-section-cpp-typedefs normal + comment.file-section-cpp-data-types normal + comment.file-section-cpp-class-defs normal + comment.file-section-cpp-local-variables normal + comment.file-section-cpp-prototypes normal + comment.file-section-cpp-function-defs-exported normal + comment.file-section-cpp-function-defs-local normal + comment.file-section-cpp-class-implementations-exported normal + comment.file-section-cpp-class-implementations-local normal + comment.file-section-hpp-header-includes normal + comment.file-section-hpp-macros normal + comment.file-section-hpp-exported-typedefs normal + comment.file-section-hpp-exported-data-types normal + comment.file-section-hpp-exported-class-defs normal + comment.file-section-hpp-exported-variables normal + comment.file-section-hpp-exported-function-declarations normal + + cpp.method-implementation normal + cpp.class normal + cpp.class-using-new normal + cpp.error-class normal + cpp.template-method-implementation normal + cpp.template-class normal + cpp.template-class-using-new normal + cpp.template-function normal + cpp.operator-in normal + cpp.operator-out normal + cpp.try-catch normal visual + cpp.catch normal visual + cpp.catch-points normal visual + cpp.extern normal visual + cpp.open-input-file normal + cpp.open-output-file normal + cpp.namespace normal visual + + idioms.function normal visual + idioms.function-static normal visual + idioms.main normal visual + idioms.enum normal visual + idioms.struct normal visual + idioms.union normal visual + idioms.calloc normal + idioms.malloc normal + idioms.open-input-file normal + idioms.open-output-file normal + idioms.fprintf normal + idioms.fscanf normal + + preprocessor.define normal + preprocessor.undefine normal + preprocessor.if-else-endif normal visual + preprocessor.ifdef-else-endif normal visual + preprocessor.ifndef-else-endif normal visual + preprocessor.ifndef-def-endif normal visual + + statements.do-while normal visual + statements.for normal + statements.for-block normal visual + statements.if normal + statements.if-block normal visual + statements.if-else normal visual + statements.if-block-else normal visual + statements.while normal + statements.while-block normal visual + statements.switch normal visual + statements.case normal + statements.block normal visual + + + +5.3.2 Template definition *csupport-templates-definition* + +A template definition starts with a template head line with the following +syntax: + + == templatename == [ position == ] + +The templatename is one of the above template identifiers. The position +attribute is optional. Possible attribute values are: + + above insert the template before the current line + append append the template to the current line + below insert the template below the current line + insert insert the template at the cursor position + start insert the template before the first line of the buffer + +An example: + + == comment.function == + /* + * === FUNCTION ======================================================= + * Name: + * Description: + * ====================================================================== + */ + +The definition of a template ends at the next head line or at the end of the +file. + +Templates for the visual mode can use . The text before will +than be inserted above the marked area, the text after will be +inserted behind the marked area. An example: + + == statements.if-block-else == + if ( ) { + } else { + } + +If applied to the marked block + + xxxxxxxxxxx + xxxxxxxxxxx + +this template yields + + if ( ) { + xxxxxxxxxxx + xxxxxxxxxxx + } else { + } + +The templates with a visual mode are shown in the table under +|csupport-templates-names|. + +5.3.3 Template expansion *csupport-templates-expansion* + +There are additional ways to control the expansion of a template. + +USER INPUT +---------- +If the usage of a yet undefined user macro starts with a question mark the +user will be asked for the replacement first, e.g. with the following template + + == idioms.function == + void + *|?FUNCTION_NAME|* ( ) + { + return ; + } /* ----- end of function*|FUNCTION_NAME|* ----- */ + +The can specify the function name which then will be applied twice. If the +macro was already in use the old value will be suggested as default. + +MACRO MANIPULATION +------------------ + +A macro expansion can be controlled by the following attributes + + :l change macro text to lowercase + :u change macro text to uppercase + :c capitalize macro text + :L legalize name + +The include guard template is an example for the use of ':L' : + + == preprocessor.ifndef-def-endif == + #ifndef *|?BASENAME:L|_INC* + #define *|BASENAME|_INC* + + #endif // ----- #ifndef*|BASENAME|_INC* ----- + +The base name of the file shall be used as part of the include guard name. +The predefined macro*|BASENAME|* is used to ask for this part because this +macro has already a defined value. That value can accepted or replaced by the +user. For the filename 'test test++test.h' the legalized base name +'TEST_TEST_TEST' will be suggested. + +Legalization means: + - replace all whitespaces by underscores + - replace all non-word characters by underscores + - replace '+' and '-' by underscore + + +============================================================================== +6. C/C++ DICTIONARY *csupport-dictionary* +============================================================================== + +The files + + c-c++-keywords.list + k+r.list + stl_index.list + +are a part of this plugin and can be used (together with your own lists) as +dictionaries for automatic word completion. This feature is enabled by +default. The default word lists are + + plugin_dir/c-support/wordlists/c-c++-keywords.list + plugin_dir/c-support/wordlists/k+r.list + plugin_dir/c-support/wordlists/stl_index.list + +The variable plugin_dir will automatically be set by the plugin to one of the +following values: + $HOME.'/.vim/' for Linux/Unix + $VIM.'/vimfiles/' for Windows +If you want to use an additional list MyC.list put the following lines into + ~/.vimrc : + + let g:C_Dictionary_File = PLUGIN_DIR.'/c-support/wordlists/c-c++-keywords.list,'. + \ PLUGIN_DIR.'/c-support/wordlists/k+r.list,'. + \ PLUGIN_DIR.'/c-support/wordlists/stl_index.list,'. + \ PLUGIN_DIR.'/c-support/wordlists/MyC.list' + +When in file ~/.vimrc the name PLUGIN_DIR has to be replaced by $HOME or +$VIM (see above). Whitespaces in the pathnames have to be escaped with a +backslash. +The right side is a comma separated list of files. Note the point at the end +of the first line (string concatenation) and the backslash in front of the +second line (continuation line). +You can use Vim's dictionary feature CTRL-X, CTRL-K (and CTRL-P, CTRL-N). + + +============================================================================== +7. EXTEND taglist.vim FOR make AND qmake *csupport-taglist* +============================================================================== + +The use of the Vim plugin taglist.vim (Author: Yegappan Lakshmanan) is highly +recommended. It uses the program ctags which generates tag files for 3 dozen +languages (Exuberant Ctags, Darren Hiebert, http://ctags.sourceforge.net). +With the following extensions the list of targets in a makefile can be shown +in the taglist window. + +1) Append the file customization.ctags to the file $HOME/.ctags . + +2) Add the following lines (from customization.vimrc) to $HOME/.vimrc : + + " + "------------------------------------------------------------------- + " taglist.vim : toggle the taglist window + " taglist.vim : define the title texts for make + " taglist.vim : define the title texts for qmake + "------------------------------------------------------------------- + noremap :Tlist + inoremap :Tlist + + let tlist_make_settings = 'make;m:makros;t:targets' + let tlist_qmake_settings = 'qmake;t:SystemVariables' + + if has("autocmd") + " ---------- qmake : set file type for *.pro ---------- + autocmd BufNewFile,BufRead *.pro set filetype=qmake + endif " has("autocmd") + +3) restart vim/gvim + +The two maps will toggle the taglist window (hotkey F11) in all editing modes. +The two assignments define the headings for the (q)make sections in the +taglist window. The autocmd set the file type 'qmake' for the filename +extension 'pro' (ctags needs this). + +============================================================================== +8. SYNTAX BASED FOLDING *csupport-folding* +============================================================================== + +Syntax based folding can be enabled by adding the following lines to the file +'~/.vim/syntax/c.vim': + + syn region cBlock start="{" end="}" transparent fold + set foldmethod=syntax + " initially all folds open: + set foldlevel=999 + +You may have to create this file first. See |folding| for more information. + +============================================================================== +9. WINDOWS PARTICULARITIES *csupport-windows* +============================================================================== + +The plugin should go into the directory structure below the local +installation directory $HOME/.vim/ for LINUX/UNIX and $VIM/vimfiles/ for +Windows. +The values of the two variables can be found from inside Vim: + :echo $VIM +or + :echo $HOME + +Configuration files: + + LINUX/UNIX : $HOME/.vimrc and $HOME/.gvimrc + Windows : $VIM/_vimrc and $VIM/_gvimrc + +Compiler settings: + +It could be necessary to add further settings for your compiler. To compile +C++-programs using a Dev-C++ installation (http://www.bloodshed.net) the +following item in $VIM/_vimrc is needed (depends on the Dev-C++ install +directory): + + let g:C_CFlags = '-Wall -g -o0 -c -I c:\programs\dev-c++\include\g++' + +============================================================================== +10. TROUBLESHOOTING *csupport-troubleshooting* +============================================================================== + +* I do not see any new main menu item. + - Was the archive extracted into the right directory? + +* How can I see what was loaded? + - Use ':scriptnames' from the Vim command line. + +* No main menu item. + - Loading of plugin files must be enabled. If not use + :filetype plugin on + This is the minimal content of the file '$HOME/.vimrc'. Create one if there + is none, or better use customization.vimrc. + +* Most key mappings do not work. + - They are defined in a filetype plugin in '$HOME/.vim/ftplugin/'. Use ':filetype' + to check if filetype plugins are enabled. If not, add the line + filetype plugin on + to the file '~/.vimrc'. + +* Some hotkeys do not work. + - The hotkeys might be in use by your graphical desktop environment. + Under KDE Ctrl-F9 is the hotkey which let you switch to the 9. desktop. + The key settings can usually be redefined. + +* Splint and/or CodeCheck menu item not visible. + - The program is not installed or not found (path not set) or not executable. + +============================================================================== +11. RELEASE NOTES *csupport-release-notes* +============================================================================== +See file c-support/doc/ChangeLog . + +============================================================================== +vim:tw=78:noet:ts=2:ft=help:norl: diff --git a/dot_vim/doc/haskellmode.txt b/dot_vim/doc/haskellmode.txt new file mode 100644 index 0000000..905349c --- /dev/null +++ b/dot_vim/doc/haskellmode.txt @@ -0,0 +1,456 @@ +*haskellmode.txt* Haskell Mode Plugins 23/04/2009 + +Authors: + Claus Reinke ~ + +Homepage: + http://projects.haskell.org/haskellmode-vim + +CONTENTS *haskellmode* + + 1. Overview |haskellmode-overview| + 1.1 Runtime Requirements |haskellmode-requirements| + 1.2 Quick Reference |haskellmode-quickref| + 2. Settings |haskellmode-settings| + 2.1 GHC and web browser |haskellmode-settings-main| + 2.2 Fine tuning - more configuration options |haskellmode-settings-fine| + 3. GHC Compiler Integration |haskellmode-compiler| + 4. Haddock Integration |haskellmode-haddock| + 4.1 Indexing |haskellmode-indexing| + 4.2 Lookup |haskellmode-lookup| + 4.3 Editing |haskellmode-editing| + 5. Hpaste Integration |haskellmode-hpaste| + 6. Additional Resources |haskellmode-resources| + +============================================================================== + *haskellmode-overview* +1. Overview ~ + + The Haskell mode plugins provide advanced support for Haskell development + using GHC/GHCi on Windows and Unix-like systems. The functionality is + based on Haddock-generated library indices, on GHCi's interactive + commands, or on simply activating (some of) Vim's built-in program editing + support in Haskell-relevant fashion. These plugins live side-by-side with + the pre-defined |syntax-highlighting| support for |haskell| sources, and + any other Haskell-related plugins you might want to install (see + |haskellmode-resources|). + + The Haskell mode plugins consist of three filetype plugins (haskell.vim, + haskell_doc.vim, haskell_hpaste.vim), which by Vim's |filetype| detection + mechanism will be auto-loaded whenever files with the extension '.hs' are + opened, and one compiler plugin (ghc.vim) which you will need to load from + your vimrc file (see |haskellmode-settings|). + + + *haskellmode-requirements* +1.1 Runtime Requirements ~ + + The plugins require a recent installation of GHC/GHCi. The functionality + derived from Haddock-generated library indices also requires a local + installation of the Haddock documentation for GHC's libraries (if there is + no documentation package for your system, you can download a tar-ball from + haskell.org), as well as an HTML browser (see |haddock_browser|). If you + want to use the experimental hpaste interface, you will also need Wget. + + * GHC/GHCi ~ + Provides core functionality. http://www.haskell.org/ghc + + * HTML library documentation files and indices generated by Haddock ~ + These usually come with your GHC installation, possibly as a separate + package. If you cannot get them this way, you can download a tar-ball + matching your GHC version from http://www.haskell.org/ghc/docs/ + + * HTML browser with basic CSS support ~ + For browsing Haddock docs. + + * Wget ~ + For interfacing with http://hpaste.org. + + Wget is widely available for modern Unix-like operating systems. Several + ports also exist for Windows, including: + + - Official GNU Wget (natively compiled for Win32) + http://www.gnu.org/software/wget/#downloading + + - UnxUtils Wget (natively compiled for Win32, bundled with other ported + Unix utilities) + http://sourceforge.net/projects/unxutils/ + + - Cygwin Wget (emulated POSIX in Win32, must be run under Cygwin) + http://cygwin.com/packages/wget/ + + *haskellmode-quickref* +1.2 Quick Reference ~ + +|:make| load into GHCi, show errors (|quickfix| |:copen|) +|_ct| create |tags| file +|_si| show info for id under cursor +|_t| show type for id under cursor +|_T| insert type declaration for id under cursor +|balloon| show type for id under mouse pointer +|_?| browse Haddock entry for id under cursor +|_?1| search Hoogle for id under cursor +|_?2| search Hayoo! for id under cursor +|:IDoc| {identifier} browse Haddock entry for unqualified {identifier} +|:MDoc| {module} browse Haddock entry for {module} +|:FlagReference| {s} browse Users Guide Flag Reference for section {s} +|_.| qualify unqualified id under cursor +|_i| add 'import ()' for id under cursor +|_im| add 'import ' for id under cursor +|_iq| add 'import qualified ()' for id under cursor +|_iqm| add 'import qualified ' for id under cursor +|_ie| make imports explit for import statement under cursor +|_opt| add OPTIONS_GHC pragma +|_lang| add LANGUAGE pragma +|i_CTRL-X_CTRL-O| insert-mode completion based on imported ids (|haskellmode-XO|) +|i_CTRL-X_CTRL-U| insert-mode completion based on documented ids (|haskellmode-XU|) +|i_CTRL-N| insert-mode completion based on imported sources +|:GHCi|{command/expr} run GHCi command/expr in current module + +|:GHCStaticOptions| edit static GHC options for this buffer +|:DocSettings| show current Haddock-files-related plugin settings +|:DocIndex| populate Haddock index +|:ExportDocIndex| cache current Haddock index to a file +|:HpasteIndex| Read index of most recent entries from hpaste.org +|:HpastePostNew| Submit current buffer as a new hpaste + + +============================================================================== + *haskellmode-settings* +2. Settings ~ + + The plugins try to find their dependencies in standard locations, so if + you're lucky, you will only need to set |compiler| to ghc, and configure + the location of your favourite web browser. You will also want to make + sure that |filetype| detection and |syntax| highlighting are on. Given the + variety of things to guess, however, some dependencies might not be found + correctly, or the defaults might not be to your liking, in which case you + can do some more fine tuning. All of this configuration should happen in + your |vimrc|. +> + " enable syntax highlighting + syntax on + + " enable filetype detection and plugin loading + filetype plugin on +< + + *haskellmode-settings-main* +2.1 GHC and web browser ~ + + *compiler-ghc* *ghc-compiler* + To use the features provided by the GHC |compiler| plugin, use the + following |autocommand| in your vimrc: +> + au BufEnter *.hs compiler ghc +< + *g:ghc* + If the compiler plugin can't locate your GHC binary, or if you have + several versions of GHC installed and have a preference as to which binary + is used, set |g:ghc|: +> + :let g:ghc="/usr/bin/ghc-6.6.1" +< + *g:haddock_browser* + The preferred HTML browser for viewing Haddock documentation can be set as + follows: +> + :let g:haddock_browser="/usr/bin/firefox" +< + + *haskellmode-settings-fine* +2.2 Fine tuning - more configuration options ~ + + Most of the fine tuning is likely to happen for the haskellmode_doc.vim + plugin, so you can check the current settings for this plugin via the + command |:DocSettings|. If all the settings reported there are to your + liking, you probably won't need to do any fine tuning. + + *g:haddock_browser_callformat* + By default, the web browser|g:haddock_browser| will be started + asynchronously (in the background) on Windows or when vim is running in a + GUI, and synchronously (in the foreground) otherwise. These settings seem + to work fine if you are using a console mode browser (eg, when editing in + a remote session), or if you are starting a GUI browser that will launch + itself in the background. But if these settings do not work for you, you + can change the default browser launching behavior. + + This is controlled by |g:haddock_browser_callformat|. It specifies a + format string which uses two '%s' parameters, the first representing the + path of the browser to launch, and the second is the documentation URL + (minus the protocol specifier, i.e. file://) passed to it by the Haddock + plugin. For instance, to launch a GUI browser on Unix-like systems and + force it to the background (see also |shellredir|): +> + :let g:haddock_browser_callformat = '%s file://%s '.printf(&shellredir,'/dev/null').' &' +< + *g:haddock_docdir* + Your system's installed Haddock documentation for GHC and its libraries + should be automatically detected. If the plugin can't locate them, you + must point |g:haddock_docdir| to the path containing the master index.html + file for the subdirectories 'libraries', 'Cabal', 'users_guide', etc.: +> + :let g:haddock_docdir="/usr/local/share/doc/ghc/html/" +< + *g:haddock_indexfiledir* + The information gathered from Haddock's index files will be stored in a + file called 'haddock_index.vim' in a directory derived from the Haddock + location, or in $HOME. To configure another directory for the index file, + use: +> + :let g:haddock_indexfiledir="~/.vim/" +< + *g:wget* + If you also want to try the experimental hpaste functionality, you might + you need to set |g:wget| before the |hpaste| plugin is loaded (unless wget + is in your PATH): +> + :let g:wget="C:\Program Files\wget\wget.exe" +< + + Finally, the mappings actually use||behind the scenes, so if + you have to, you can redefine|maplocalleader|to something other than '_'. + Just remember that the docs still refer to mappings starting with '_', to + avoid confusing the majority of users!-) + +============================================================================== + *haskellmode-compiler* *ghc* +3. GHC Compiler Integration ~ + + The GHC |compiler| plugin sets the basic |errorformat| and |makeprg| to + enable |quickfix| mode using GHCi, and provides functionality for show + info (|_si|), show type (|_t| or mouse |balloon|), add type declaration + (|_T|), create tag file (|_ct|), and insert-mode completion + (|i_CTRL-X_CTRL-O|) based on GHCi browsing of the current and imported + modules. + + To avoid frequent calls to GHCi, type information is cached in Vim. The + cache will be populated the first time a command depends on it, and will + be refreshed every time a |:make| goes through without generating errors + (if the |:make| does not succeed, the old types will remain available in + Vim). You can also unconditionally force reloading of type info using + |:GHCReload| (if GHCi cannot load your file, the type info will be empty). + + + In addition to the standard|quickfix| commands, the GHC compiler plugin + provides: + + *:GHCReload* +:GHCReload Reload modules and unconditionally refresh cache of + type info. Usually, |:make| is prefered, as that will + refresh the cache only if GHCi reports no errors, and + show the errors otherwise. + + *:GHCStaticOptions* +:GHCStaticOptions Edit the static GHC options for the current buffer. + Useful for adding hidden packages (-package ghc). + + *:GHCi* +:GHCi {command/expr} Run GHCi commands/expressions in the current module. + + *_ct* +_ct Create |tags| file for the current Haskell source + file. This uses GHCi's :ctags command, so it will work + recursively, but will only list tags for exported + entities. + + *_opt* +_opt Shows a menu of frequently used GHC compiler options + (selecting an entry adds the option as a pragma to the + start of the file). Uses popup menu (GUI) or :emenu + and command-line completion (CLI). + + *_lang* +_lang Shows a menu of the LANGUAGE options supported by GHC + (selecting an entry adds the language as a pragma to + the start of the file). Uses popup menu (GUI) or + :emenu and command-line completion (CLI). + + *_si* +_si Show extended information for the name under the + cursor. Uses GHCi's :info command. Output appears in + |preview-window| (when done, close with |:pclose|). + + *_t* +_t Show type for the name under the cursor. Uses cached + info from GHCi's :browse command. + + *_T* +_T Insert type declaration for the name under the cursor. + Uses cached info from GHCi's :browse command. + + *haskellmode-XO* *haskellmode-omni-completion* +CTRL-X CTRL-O Standard insert-mode omni-completion based on the + cached type info from GHCi browsing current and + imported modules. Only names from the current and from + imported modules are included (the completion menu + also show the type of each identifier). + +============================================================================== + *haskellmode-haddock* *haddock* +4. Haddock Integration ~ + + Haskell mode integrates with Haddock-generated HTML documentation, + providing features such as navigating to the Haddock entry for the + identifier under the cursor (|_?|), completion for the identifier under + the cursor (|i_CTRL-X_CTRL-U|), and adding import statements (|_i| |_im| + |_iq| |_iqm|) or module qualifier (|_.|) for the identifier under the + cursor. + + These commands operate on an internal Haddock index built from the + platform's installed Haddock documentation for GHC's libraries. Since + populating this index takes several seconds, it should be stored as a + file called 'haddock_index.vim' in the directory specified by + |g:haddock_indexfiledir|. + + Some commands present a different interface (popup menu or command-line + completion) according to whether the current Vim instance is graphical or + console-based (actually: whether or not the GUI is running). Such + differences are marked below with the annotations (GUI) and (CLI), + respectively. + + |:DocSettings| shows the settings for this plugin. If you are happy with + them, you can call |:ExportDocIndex| to populate and write out the + documentation index (should be called once for every new version of GHC). + + *:DocSettings* +:DocSettings Show current Haddock-files-related plugin settings. + + + *haskellmode-indexing* +4.1 Indexing ~ + + *:DocIndex* +:DocIndex Populate the Haddock index from the GHC library + documentation. + + *:ExportDocIndex* +:ExportDocIndex Cache the current Haddock index to a file (populate + index first, if empty). + + + *haskellmode-lookup* +4.2 Lookup ~ + + *_?* +_? Open the Haddock entry (in |haddock_browser|) for an + identifier under the cursor, selecting full + qualifications from a popup menu (GUI) or via + command-line completion (CLI), if the identifier is + not qualified. + + *_?1* +_?1 Search Hoogle (using |haddock_browser|) for an + identifier under the cursor. + + + *_?2* +_?2 Search Hayoo! (using |haddock_browser|) for an + identifier under the cursor. + + *:IDoc* +:IDoc {identifier} Open the Haddock entry for the unqualified + {identifier} in |haddock_browser|, suggesting possible + full qualifications. + + *:MDoc* +:MDoc {module} Open the Haddock entry for {module} in + |haddock_browser| (with command-line completion for + the fully qualified module name). + + *:FlagReference* +:FlagReference {s} Browse Users Guide Flag Reference for section {s} + (with command-line completion for section headers). + + + *haskellmode-editing* +4.3 Editing ~ + + *_.* +_. Fully qualify the unqualified name under the cursor + selecting full qualifications from a popup menu (GUI) + or via command-line completion (CLI). + + *_iq* *_i* +_i _iq Add 'import [qualified] ()' + statement for the identifier under the cursor, + selecting fully qualified modules from a popup menu + (GUI) or via command-line completion (CLI), if the + identifier is not qualified. This currently adds one + import statement per call instead of merging into + existing import statements. + + *_iqm* *_im* +_im Add 'import [qualified] ' statement for the + identifier under the cursor, selecting fully qualified + modules from a popup menu (GUI) or via command-line + completion (CLI), if the identifier is not qualified. + This currently adds one import statement per call + instead of merging into existing import statements. + + *_ie* +_ie On an 'import ' line, in a correctly loadable + module, temporarily comment out import and use :make + 'not in scope' errors to explicitly list imported + identifiers. + + *haskellmode-XU* *haskellmode-user-completion* +CTRL-X CTRL-U User-defined insert mode name completion based on all + names known to the Haddock index, including package + names. Completions are presented in a popup menu which + also displays the fully qualified module from which + each entry may be imported. + + CamelCode shortcuts are supported, meaning that + lower-case letters can be elided, using only + upper-case letters and module qualifier separators (.) + for disambiguation: + + pSL -> putStrLn + C.E.t -> Control.Exception.t + C.M.MP -> Control.Monad.MonadPlus + + To reduce unwanted matches, the first letter of such + shortcuts and the first letter after each '.' have to + match directly. + +============================================================================== + *haskellmode-hpaste* *hpaste* +5. Hpaste Integration ~ + + This experimental feature allows browsing and posting to + http://hpaste.org, a Web-based pastebin tailored for Haskell code. + + + *:HpasteIndex* +:HpasteIndex Read the most recent entries from hpaste.org. Show an + index of the entries in a new buffer, where ',r' will + open the current highlighted entry [and ',p' will + annotate it with the current buffer]. + + *:HpastePostNew* +:HpastePostNew Submit current buffer as a new hpaste entry. + [This, and ',p' above, are temporarily disabled, + needs update to new hpaste.org layout] + +============================================================================== + *haskellmode-resources* +6. Additional Resources ~ + + An quick screencast tour through of these plugins is available at: + + http://projects.haskell.org/haskellmode-vim/screencasts.html + + Other Haskell-related Vim plugins can be found here: + + http://www.haskell.org/haskellwiki/Libraries_and_tools/Program_development#Vim + + Make sure to read about Vim's other program-editing features in its online + |user-manual|. Also have a look at Vim tips and plugins at www.vim.org - + two other plugins I tend to use when editing Haskell are AlignPlugin.vim + (to line up regexps for definitions, keywords, comments, etc. in + consecutive lines) and surround.vim (to surround text with quotes, + brackets, parentheses, comments, etc.). + +============================================================================== + vim:tw=78:ts=8:ft=help: diff --git a/dot_vim/doc/imaps.txt b/dot_vim/doc/imaps.txt new file mode 100644 index 0000000..087b3db --- /dev/null +++ b/dot_vim/doc/imaps.txt @@ -0,0 +1,116 @@ + IMAP -- A fluid replacement for :imap + *imaps.txt* + Srinath Avadhanula + + + + Abstract + ======== +This plugin provides a function IMAP() which emulates vims |:imap| function. The +motivation for providing this plugin is that |:imap| suffers from problems +which get increasingly annoying with a large number of mappings. + +Consider an example. If you do > + imap lhs something + + +then a mapping is set up. However, there will be the following problems: +1. The 'ttimeout' option will generally limit how easily you can type the lhs. + if you type the left hand side too slowly, then the mapping will not be + activated. + +2. If you mistype one of the letters of the lhs, then the mapping is deactivated + as soon as you backspace to correct the mistake. + +3. The characters in lhs are shown on top of each other. This is fairly + distracting. This becomes a real annoyance when a lot of characters initiate + mappings. + +This script provides a function IMAP() which does not suffer from these +problems. + + + + *imaps.txt-toc* +|im_1| Using IMAP + +================================================================================ +Viewing this file + +This file can be viewed with all the sections and subsections folded to ease +navigation. By default, vim does not fold help documents. To create the folds, +press za now. The folds are created via a foldexpr which can be seen in the +last section of this file. + +See |usr_28.txt| for an introduction to folding and |fold-commands| for key +sequences and commands to work with folds. + +================================================================================ +Using IMAP *im_1* *imaps-usage* + + + +Each call to IMAP is made using the syntax: > + call IMAP (lhs, rhs, ft [, phs, phe]) + + +This is equivalent to having map to for all files of type . + +Some characters in the have special meaning which help in cursor placement +as described in |imaps-placeholders|. The optional arguments define these +special characters. + +Example One: > + call IMAP ("bit`", "\\begin{itemize}\\\item <++>\\\end{itemize}<++>", "tex") + + +This effectively sets up the map for "bit`" whenever you edit a latex file. When +you type in this sequence of letters, the following text is inserted: > + \begin{itemize} + \item * + \end{itemize}<++> + +where * shows the cursor position. The cursor position after inserting the text +is decided by the position of the first "place-holder". Place holders are +special characters which decide cursor placement and movement. In the example +above, the place holder characters are <+ and +>. After you have typed in the +item, press and you will be taken to the next set of <++>'s. Therefore by +placing the <++> characters appropriately, you can minimize the use of movement +keys. + +Set g:Imap_UsePlaceHolders to 0 to disable placeholders altogether. + +Set g:Imap_PlaceHolderStart and g:Imap_PlaceHolderEnd to something else if you +want different place holder characters. Also, b:Imap_PlaceHolderStart and +b:Imap_PlaceHolderEnd override the values of g:Imap_PlaceHolderStart and +g:Imap_PlaceHolderEnd respectively. This is useful for setting buffer specific +place holders. + +Example Two: You can use the command to insert dynamic elements such as +dates. > + call IMAP ('date`', "\=strftime('%b %d %Y')\", '') + + + +With this mapping, typing date` will insert the present date into the file. + +================================================================================ +About this file + +This file was created automatically from its XML variant using db2vim. db2vim is +a python script which understands a very limited subset of the Docbook XML 4.2 +DTD and outputs a plain text file in vim help format. + +db2vim can be obtained via anonymous CVS from sourceforge.net. Use + +cvs -d:pserver:anonymous@cvs.vim-latex.sf.net:/cvsroot/vim-latex co db2vim + +Or you can visit the web-interface to sourceforge CVS at: +http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/vim-latex/db2vim/ + +The following modelines should nicely fold up this help manual. + +vim:ft=help:fdm=expr:nowrap +vim:foldexpr=getline(v\:lnum-1)=~'-\\{80}'?'>2'\:getline(v\:lnum-1)=~'=\\{80}'?'>1'\:getline(v\:lnum)=~'=\\{80}'?'0'\:getline(v\:lnum)=~'-\\{80}'?'1'\:'=' +vim:foldtext=substitute(v\:folddashes.substitute(getline(v\:foldstart),'\\s*\\*.*',"",""),'^--','--\ \ \ \ ','') +================================================================================ diff --git a/dot_vim/doc/latex-suite-quickstart.txt b/dot_vim/doc/latex-suite-quickstart.txt new file mode 100644 index 0000000..8c18b72 --- /dev/null +++ b/dot_vim/doc/latex-suite-quickstart.txt @@ -0,0 +1,448 @@ + A (very) quick introduction to Latex-Suite + *latex-suite-quickstart.txt* + Srinath Avadhanula + + + + Abstract + ======== +Latex-Suite is a comprehensive set of scripts to aid in editing, compiling and +viewing LaTeX documents. A thorough explanation of the full capabilities of +Latex-Suite is described in the user manual. This guide on the other hand, +provides a quick 30-45 minute running start to some of the more commonly used +functionalities of Latex-Suite. + + *latex-suite-quickstart.txt-toc* +|lq_1| Using this tutorial +|lq_2| Inserting a template +|lq_3| Inserting a package +|lq_4| Inserting an Environment +|lq_5| A few keyboard shortcuts +|lq_6| Folding in Latex-Suite +|lq_7| Inserting a Reference +|lq_8| Compiling a document + |lq_8_1| Debugging LaTeX source files +|lq_9| Viewing DVI files + |lq_9_1| Performing forward searches + |lq_9_2| Performing inverse searches +|lq_10| Conclusions + +================================================================================ +Viewing this file + +This file can be viewed with all the sections and subsections folded to ease +navigation. By default, vim does not fold help documents. To create the folds, +press za now. The folds are created via a foldexpr which can be seen in the +last section of this file. + +See |usr_28.txt| for an introduction to folding and |fold-commands| for key +sequences and commands to work with folds. + +================================================================================ +Using this tutorial *lq_1* *lq_a_bc* + *lsq-using-tutorial* + + + +This tutorial assumes that you have vim version 6.1+ installed on your machine. +To check, open vim and type > + :ver +You will see the version in the first line of the output. Get the latest vim +version from http://vim.sf.net |lq_u_1|. + +Assuming you have Vim 6.1+ already up and running, follow the instructions here +|lq_u_2| to set up Latex-Suite. Remember to make sure your 'grepprg' setting of +Vim works. + +Good, now you are all set to start the tutorial. Since this tutorial aims to +explain the newbie-friendly version of Latex-Suite, it needs some GUI +functionality. Therefore, at least for this tutorial, open the gui version of +vim. (On MS windows, this is the default). Open up this help file in either the +same gvim session in a split window or in a different session and follow the +(friendly) instructions. + +================================================================================ +Inserting a template *lq_2* *lq_a_bd* + *lsq-inserting-template* + + + +Start up gvim and begin editing a new file. > + e newfile.tex +If the installation went well, you should see a new set of menus appear. Goto +Tex-Suite > Templates. You will see a number of templates to choose from. For +now, choose to insert a template for an article. You should get the following in +the main vim window (after possibly a hit-enter prompt). > + + 1 % File: sample.tex + 2 % Created: Sun Jun 22 04:00 PM 2003 P + 3 % Last Change: Sun Jun 22 04:00 PM 2003 P + 4 % + 5 \documentclass[a4paper]{article} + 6 \begin{document} + 7 + 8 \end{document} + 9 + 10 ~ + 11 ~ + 12 ~ + 13 ~ + -- INSERT -- 7,1 All + + + +The cursor is left on line 7 (just after the \begin{document} line) from where +you can start typing straight away. Trying to lessen movement is a recurring +theme in Latex-Suite. + +================================================================================ +Inserting a package *lq_3* *lq_a_be* + *lsq-lsq-inserting-package* + + + +Assume that we are writing a mathematical paper and we want to use the popular +amsmath package. We will use some functionality which Latex-Suite provides +specifically for including LaTeX packages, providing options etc. Navigate to +before the \begin{document} line (The portion of the document before the +\begin{document} is called the _preamble_ in LaTeX). On an empty line in the +preamble, type the single word amsmath and then press in normal mode. The +line will change to > + \usepackage[]{amsmath}<++> +with the cursor positioned conviniently between the []'s. For now, do not worry +about the trailing <++> at the end of this line. Assume we want to provide the +sumlimits options to amsmath. You can either type in this option manually, or +choose from a menu of package options which Latex-Suite automatically creates +when you insert a package using . With the cursor still placed between the +[], goto TeX-Suite > Packages > amsmath Options. Choose the sumlimits option. +The package line should get converted to: > + \usepackage[sumlimits,]{amsmath}<++> + + +with the cursor before ]. Press in insert mode. You will see the cursor +jump to the end of the package line and the trailing <++> will dissapear. What +just happened?! You had your first taste of _Placeholders_. Read more about them +(later) here |lq_u_3|. In short, pressing in insert mode takes you to the +next <++> in the text. + +================================================================================ +Inserting an Environment *lq_4* *lq_a_bf* + *lsq-insert-environment* + + + +Now let us type in a simple formula in LaTeX. Move back to the body of the +document (The portion of the document between \begin{document} and +\end{document} is called the body). Type in a few simple sentences and then on +an empty line, type the single word eqnarray. Escape to normal mode and press +. (Remember: is very useful!) This time, the line will change to: > + \begin{eqnarray} + \label{}<++> + \end{eqnarray}<++> +. This will take you outside the curly-braces. +Another time you used a Placeholder! + +================================================================================ +A few keyboard shortcuts *lq_5* *lq_a_bg* + *lsq-keyboard-shortcuts* + + + +Now to type in the famous Euler formula. Our aim is to type > + e^{j\pi} + 1 &=& 0 +Instead of typing this blindly, let us use a few shortcuts to reduce movement. +Start out by typing e^. Now instead of typing {, type another ^. You will see +the e^^ change instantly to e^{}<++> with the cursor between {}'s. (The ^^ +changed to ^{}<++>.) Continue with the following sequence of letters: j`p. This +will change instantly to j\pi. (The `p changed to \pi.) Having typed in all we +need to type between the {}'s, press . You will pop back out of the +curly-braces. Continue typing the rest of the formula. You can use == as a +shortcut for &=&. Latex-Suite provides a large number of such shortcuts which +should making typing much more fun and fast if you get acquainted with them. A +list is provided here |lq_u_4|. Definitely spend some time getting a feel for +them. Most of them are pretty intuitive like `/ for \frac{}{}, `8 for \infty +etc. + +In order to understand the next section better, it will be helpful to have one +more \label. Lets use the handy key to insert another equation. This time +something simple like the following will do: > + \begin{eqnarray} + \label{eqn:simple} + 1 + 1 = 2 + \end{eqnarray} + + +================================================================================ +Folding in Latex-Suite *lq_6* *lq_a_bh* *lsq-folding* + + + +Okay, we have typed enough. At this stage, hopefully, your file is looking +something like this: > + + 1 % File: sample.tex + 2 % Created: Sun Jun 22 04:00 PM 2003 P + 3 % Last Change: Mon Dec 15 07:00 PM 2003 + 4 % + 5 \documentclass[a4paper]{article} + 6 + 7 \usepackage[sumlimits,]{amsmath} + 8 + 9 \begin{document} + 10 \begin{eqnarray} + 11 \label{eqn:euler} + 12 e^{j\pi} + 1 &=& 0 + 13 \end{eqnarray} + 14 This is the famous euler equation. I + 15 will type another equation, just as + 16 true: + 17 \begin{eqnarray} + 18 \label{eqn:simple} + 19 1 + 1 &=& 2 + 20 \end{eqnarray} + 21 This is my contribution to mathematics. + 22 \end{document} + +In normal mode, press \rf. This will fold up the entire file and you should see +the file looking as below: > + + 1 % File: sample.tex + 2 % Created: Sun Jun 22 04:00 PM 2003 P + 3 % Last Change: Mon Dec 15 07:00 PM 2003 + 4 % + 5 +-- 4 lines: Preamble: \documentclass[a4paper]{article} ----- + 9 \begin{document} + 10 +-- 4 lines: eqnarray (eqn:euler) \label{eqn:euler} ----------- + 14 This is the famous euler equation. I + 15 will type another equation, just as + 16 true: + 10 +-- 4 lines: eqnarray (eqn:simple) \label{eqn:simple} --------- + 21 This is my contribution to mathematics. + 22 \end{document} + +What has happened is that Latex-Suite folded away blocks of LaTeX code into +folded regions. You can open and close folds by using the command za in normal +mode. + +================================================================================ +Inserting a Reference *lq_7* *lq_a_bi* + *lsq-inserting-reference* + + + +A necessary part of LaTeX editing is referencing equations, figures, +bibliographic entries etc. This is done with the \ref and the \cite commands. +Latex-Suite provides an easy way to do this. Somewhere in the body of the +document, type in the following sentence > + This is a reference to (\ref{}). +With the cursor between the {} press in insert mode. Your vim session will +sprout two new windows and it should look like below: > + + 9 \begin{document} + 10 +-- 4 lines: eqnarray (eqn:euler) : \label{eqn:euler}----------------------- + 14 This is the famous euler equation. I + 15 will type another equation, just as + 16 true: + 17 +-- 4 lines: eqnarray (eqn:simple) : \label{eqn:simple}--------------------- + 21 This is my contribution to mathematics. + 22 This is a reference to (\ref{}<++>)<++> + 23 \end{document} + ~ + ~ + ~ + test.tex [+] 22,29 Bot + test.tex|11| \label{eqn:euler} + test.tex|18| \label{eqn:simple} + ~ + ~ + ~ + [Error List] 1,1 All + 7 \usepackage[sumlimits,]{amsmath} + 8 + 9 \begin{document} + 10 \begin{eqnarray} + 11 \label{eqn:euler} + 12 e^{j\pi} + 1 &=& 0 + 13 \end{eqnarray} + 14 This is the famous euler equation. I + 15 will type another equation, just as + 16 true: + test.tex [Preview][+] 11,2-5 46% + + + +The cursor will relocate to the middle window which shows all \labels found in +all the .tex file in the current directory. You can scroll up and down in the +middle window till you reach the reference you want to insert. Notice how when +you scroll in the middle window, the bottom "Preview" window scrolls +automatically to show you the location of the current selection. This helps you +identify the reference with greater ease because often times, \labels are not +descriptive enough or there might be too many of them. To insert the reference, +just position the cursor on the relevant line in the middle window and press +. The line which you were editing will change to: > + This is a reference to (\ref{eqn:euler}) + key also works for inserting \cite commands to reference bibliographich +entries, inserting file names for the \inputgraphics command and just plain +searching for words. Click here |lq_u_5| for more information. + +================================================================================ +Compiling a document *lq_8* *lq_a_bj* + *lsq-compiling* + +|lq_8_1| Debugging LaTeX source files + + +Great! We have just created a small latex file. The next step is to make the +latex compiler create a .dvi file from it. Compiling via latex-suite is simple. +Goto normal mode and press \ll (replace \ with whatever mapleader setting you +have). This will call the latex compiler. If all goes well, then the focus +should return to the vim window. + +Nothing happend? Ouch! You might need to do some additional settings as +described here. |lq_u_6| + + +-------------------------------------------------------------------------------- +Debugging LaTeX source files *lq_8_1* *lq_a_bk* + *lsq-debugging* + +To illustrate the debugging procedure, let's create a few mistakes in the file. +Insert the following ``mistakes'' in the file: > + This is a $\mistake$. + And this is $\another$ +Now press \ll again. This time you will notice that after compilation finishes, +the cursor automatically lands on $\mistake$. In addition, 2 new windows will +appear as shown here: + +The middle window is an _Error List_ window showing you the errors which the +latex compiler found. Th bottom window is a _Log Preview_ window, which shows +you the context of the error made by displaying the relevant portion of the .log +file created during the latex compilation procedure. Jump to the _Error List_ +window and try scrolling around in it using either the j, k keys or the arrow +keys. You will notice that the _Log Preview_ window scrolls automatically to +retain the context of the error you are currently located on. If you press + on any line, you will see the cursor jump to the location of the error. +Latex-Suite tries to guess the column location as best as it can so you can +continue typing straight away. +Having got a taste for compiling, proceed by deleting the erroneous lines and +re-compiling. + +The Latex-Suite compiler is capable of much more including selectively filtering +out common errors which you might want to ignore for the moment, compiling parts +of a document, setting levels of verbosity in the compiler output etc. See here +|lq_u_7| for more. + +================================================================================ +Viewing DVI files *lq_9* *lq_a_bl* + *lsq-viewing-dvi* + +|lq_9_1| Performing forward searches +|lq_9_2| Performing inverse searches + + +Now that you have compiled your first latex source, its time to view it. Again, +this should be pretty simple. Press \lv in normal mode. Depending on your +platform, a DVI viewer program should open up and display the dvi file generated +in compilation step previously. + +Nothing happend? Ouch! You might need to do some additional settings as +described here. |lq_u_8| + + +-------------------------------------------------------------------------------- +Performing forward searches *lq_9_1* *lq_a_bm* + *lsq-quick-forward-searching* + +If you are using a modern DVI viewer, then it is possible to do what is called +forward and inverse searching. However, you will need to customize the standard +Latex-Suite distribution in order to utilize this functionality. Type in the +following on the command line: > + :let g:Tex_CompileRule_dvi = 'latex -src-specials -interaction=nonstopmode $*' + :TCTarget dvi + + +Now recompile the latex file by pressing \ll. This time, instead of pressing \lv +to view the file, press \ls from within the tex file. If the DVI viewer supports +forward searching (most of them do), then the viewer will actually display the +portion of the DVI file corresponding to the location where you were editing the +tex file. + +NOTE: The reason Latex-Suite does not have this setting by default is that on + some systems this causes unpredictable results in the DVI output. If you + find the DVI output satisfactory, then you can insert the first of the 2 + lines above into your $VIM/ftplugin/tex.vim file. $VIM is ~/vimfiles for + windows and ~/.vim for *nix machines. + + + +-------------------------------------------------------------------------------- +Performing inverse searches *lq_9_2* *lq_a_bn* + *lsq-quick-inverse-searching* + +Most DVI viewers also support inverse searching, whereby you can make the DVI +viewer ask vim to display the tex source corresponding to the DVI file being +shown. This is extremeley helpful while proofreading large documents. + +Simply double-click anywhere in the viewer window. If the viewer supports it, +then it will attempt to open an editor window at the location corresponding to +where you double-clicked. On *nix platforms, Latex-Suite attempts to start the +viewer program in such a way that it already knows to use vim to open the tex +source. Thus you should see a vim window open up showing the tex file. However, +if there is an error, or some other program is used, you will need to tell the +viewer program to use gvim as the editor. On windows platforms, if you use the +commonly available yap viewer (available as part of the miktex distribution), +then this option can be set from View > Options > Inverse Search. In the Command +line: window, write > + "C:\Program Files\vim\vim61\gvim" -c ":RemoteOpen +%l %f" +(Customize the path according to where you have installed gvim). If you double +click in the view pane now, you will see gvim start up and take you to the +relevant portion of the tex file. + +================================================================================ +Conclusions *lq_10* *lq_a_bo* + *lsq-conclusions* + + + +Thats all folks! By now, you should know enough of the basic functions of +latex-suite. Ofcourse, latex-suite is capable of much, much more such as +compiling files multiple times to resolve changed labels, compiling +dependencies, handling user packages and more. To get a feel for that, you will +need to take a look at the Latex-Suite user manual. |lq_u_9| + +================================================================================ +URLs used in this file + +*lq_u_1* : http://vim.sf.net +*lq_u_2* : http://vim-latex.sourceforge.net/index.php?subject=download&title=Download +*lq_u_3* : http://vim-latex.sourceforge.net/documentation/latex-suite/latex-macros.html +*lq_u_4* : http://vim-latex.sourceforge.net/documentation/latex-suite/auc-tex-mappings.html +*lq_u_5* : http://vim-latex.sourceforge.net/documentation/latex-suite/latex-completion.html +*lq_u_6* : http://vim-latex.sourceforge.net/index.php?subject=faq&title=FAQ#faq-2 +*lq_u_7* : http://vim-latex.sourceforge.net/documentation/latex-suite/latex-compiling.html +*lq_u_8* : http://vim-latex.sourceforge.net/index.php?subject=faq&title=FAQ#faq-3 +*lq_u_9* : http://vim-latex.sourceforge.net/index.php?subject=manual&title=Manual#user-manual + +================================================================================ +About this file + +This file was created automatically from its XML variant using db2vim. db2vim is +a python script which understands a very limited subset of the Docbook XML 4.2 +DTD and outputs a plain text file in vim help format. + +db2vim can be obtained via anonymous CVS from sourceforge.net. Use + +cvs -d:pserver:anonymous@cvs.vim-latex.sf.net:/cvsroot/vim-latex co db2vim + +Or you can visit the web-interface to sourceforge CVS at: +http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/vim-latex/db2vim/ + +The following modelines should nicely fold up this help manual. + +vim:ft=help:fdm=expr:nowrap +vim:foldexpr=getline(v\:lnum-1)=~'-\\{80}'?'>2'\:getline(v\:lnum-1)=~'=\\{80}'?'>1'\:getline(v\:lnum)=~'=\\{80}'?'0'\:getline(v\:lnum)=~'-\\{80}'?'1'\:'=' +vim:foldtext=substitute(v\:folddashes.substitute(getline(v\:foldstart),'\\s*\\*.*',"",""),'^--','\ \ \ \ \ \ ','') +================================================================================ diff --git a/dot_vim/doc/latex-suite.txt b/dot_vim/doc/latex-suite.txt new file mode 100644 index 0000000..a44cd9b --- /dev/null +++ b/dot_vim/doc/latex-suite.txt @@ -0,0 +1,3418 @@ + Latex-Suite Reference + *latex-suite.txt* + Srinath Avadhanula + Mikolaj Machowski + + + + Abstract + ======== +Latex-Suite attempts to provide a comprehensive set of tools to view, edit and +compile LaTeX documents in Vim. Together, they provide tools starting from +macros to speed up editing LaTeX documents to functions for forward searching +.dvi documents. Latex-Suite has been possible because of the contributions of +many people. Please see latex-suite-credits [|ls_a_dU|] for a list of people who +have helped. + +Latex-Suite is released under the Vim charityware license. For license and +conditions of use look at |copyright|. Replace all occurrences of ``Vim'' with +``Latex-Suite''. The current copyright holders of Latex-Suite are Srinath +Avadhanula and Mikolaj Machowski. + +Homepage: http://vim-latex.sourceforge.net |ls_u_1| + + + + *latex-suite.txt-toc* +|ls_1| Installation and recommended Settings +|ls_2| Inserting Templates +|ls_3| Latex-Suite Macros + |ls_3_1| Environment Mappings + |ls_3_2| Command Mappings + |ls_3_3| Font Mappings + |ls_3_4| Section Mappings + |ls_3_5| Greek Letter Mappings + |ls_3_6| Auc-Tex Key Bindings + |ls_3_7| Diacritics + |ls_3_8| BibTeX Shortcuts + |ls_3_9| Smart Key Mappings + |ls_3_10| Alt Key Macros + |ls_3_11| Custom Macros + |ls_3_12| Making your own Macros via IMAP() +|ls_4| Package Handling + |ls_4_1| Inserting package commands + |ls_4_2| Actions taken for supported packages + |ls_4_3| Automatic Package detection + |ls_4_4| Writing supporting for a package +|ls_5| Latex Completion + |ls_5_1| Latex-Suite completion example + |ls_5_2| Latex-Suite \ref completion + |ls_5_3| Latex-Suite \cite completion + |ls_5_4| Latex-Suite filename completion + |ls_5_5| Custom command completion +|ls_6| LaTeX Compiling + |ls_6_1| Setting Compilation rules + |ls_6_2| Handling dependencies in compilation + |ls_6_3| Compiling multiple times + |ls_6_4| Customizing the compiler output + |ls_6_5| Compiling parts of a file +|ls_7| Latex Viewing and Searching + |ls_7_1| Setting Viewing rules + |ls_7_2| Forward Searching DVI documents + |ls_7_3| Inverse Searching +|ls_8| Latex Folding + |ls_8_1| Default Folding Scheme in Latex-Suite + |ls_8_2| Customizing what to fold + |ls_8_3| Editing the folding.vim file directly +|ls_9| Multiple file LaTeX projects + |ls_9_1| Latex-Suite project settings + |ls_9_2| Specifying which file to compile +|ls_10| Latex-Suite Commands and Maps + |ls_10_1| Latex-Suite Maps + |ls_10_2| Latex Suite Commands +|ls_11| Customizing Latex-Suite + |ls_11_1| General Settings + |ls_11_2| Place-Holder Customization + |ls_11_3| Macro Customization + |ls_11_4| Smart Key Customization + |ls_11_5| Latex Completion Customization + |ls_11_6| Compiler Customization + |ls_11_7| Viewer Customization + |ls_11_8| Menu Customization + |ls_11_9| Folding Customization + |ls_11_10| Package Handling Customization +|ls_12| Credits + +================================================================================ +Viewing this file + +This file can be viewed with all the sections and subsections folded to ease +navigation. By default, vim does not fold help documents. To create the folds, +press za now. The folds are created via a foldexpr which can be seen in the +last section of this file. + +See |usr_28.txt| for an introduction to folding and |fold-commands| for key +sequences and commands to work with folds. + +================================================================================ +Installation and recommended Settings *ls_1* *ls_a_bc* + *recommended-settings* + + + +If you are reading this, it most probably means that you have already installed +Latex-Suite and the help files. If this is not the case, follow the detailed +instructions on Latex-Suite's download page |ls_u_2|. + +Make sure that you create a few necessary settings in your ~/.vimrc. > + + " REQUIRED. This makes vim invoke Latex-Suite when you open a tex file. + filetype plugin on + + " IMPORTANT: win32 users will need to have 'shellslash' set so that latex + " can be called correctly. + set shellslash + + " IMPORTANT: grep will sometimes skip displaying the file name if you + " search in a singe file. This will confuse Latex-Suite. Set your grep + " program to always generate a file-name. + set grepprg=grep\ -nH\ $* + + " OPTIONAL: This enables automatic indentation as you type. + filetype indent on + + + +In addition, the following settings could go in your ~/.vim/ftplugin/tex.vim +file: > + " this is mostly a matter of taste. but LaTeX looks good with just a bit + " of indentation. + set sw=2 + " TIP: if you write your \label's as \label{fig:something}, then if you + " type in \ref{fig: and press you will automatically cycle through + " all the figure labels. Very useful! + set iskeyword+=: + + + +================================================================================ +Inserting Templates *ls_2* *ls_a_bd* + *latex-suite-templates* + + + +This functionality is available via the TeX-Suite > Templates menu. This module +provides a way to insert custom templates at the beginning of the current file. + +When Latex-Suite first starts up, it scans the +$VIM/ftplugin/latex-suite/templates/ directory and creates menu items based on +the files found there. When you select a template from this menu, the file will +be read in above the first line of the current file. + +A template file can utilize placeholders for initializing the cursor position +when the template is read in and subsequent movement. In addition, template +files can contain dynamic elements such as the time of creation of a file etc, +by using vim expressions. + +You can place your own templates in the $VIM/ftplugin/latex-suite/templates/ +directory in order for them to be available via the menu. Unless Latex-Suite +releases a template with the same name, these files should not get over-written +when you install a new release over an existing one. + +NOTE: Templates are also accessible for non-gui users with the command + |:TTemplate|. The argument should be name of the corresponding template + file. If the command is called without arguments (preferred usage), then a + list of available templates is displayed and the user is asked to choose + one of them. + + + +================================================================================ +Latex-Suite Macros *ls_3* *ls_a_be* + *latex-macros* + +|ls_3_1| Environment Mappings +|ls_3_2| Command Mappings +|ls_3_3| Font Mappings +|ls_3_4| Section Mappings +|ls_3_5| Greek Letter Mappings +|ls_3_6| Auc-Tex Key Bindings +|ls_3_7| Diacritics +|ls_3_8| BibTeX Shortcuts +|ls_3_9| Smart Key Mappings +|ls_3_10| Alt Key Macros +|ls_3_11| Custom Macros +|ls_3_12| Making your own Macros via IMAP() + + +Latex-Suite ships with a very comprehensive set of insert mode and |visual-mode| +mappings and menu items to typeset most of the LaTeX elements. + +NOTE: These mappings are are not standard mappings in the sense that only the + last character is mapped. See plugin/imaps.vim for further documentation. + For example, in the case of the mapping EFI provided by Latex-Suite you + can press the characters 'E', 'F' and 'I' as slowly as you wish (unlike + the normal imap command where timeout issues are involved). The characters + are visible as you type them (unlike normal imaps) and you can use the + movement or backspace key to correct yourself unlike normal mappings. + + + *place-holder* *ls_a_dV* + *place-holders* *ls_a_eD* +NOTE: Place Holders + ------------- + Almost all macros provided in Latex-Suite implement Stephen Riem's + bracketing system and Gergely Kontra's JumpFunc() for handling + place-holders. This consists of using "place-holders" to mark off + locations where the next relevant editing has to be done. As an example, + when you type EFI in |insert-mode|, you will get the following: > + \begin{figure}[h] + \centerline{\psfig{figure=<+eps file+>}} + \caption{<+caption text+>} + \label{fig:<+label+>} + \end{figure}<++> +< The text <+eps file+> will be selected and you will be left in + |select-mode| so that you can continue typing straight away. After having + typed in the file name, you can press (while still in + insert-mode). This will take you directly to the next "place-holder". i.e, + <+caption text+> will be visually selected with Vim in select mode again + for typing in the caption. This saves on a lot of key presses. + + + *overriding-macros* *ls_a_eE* +NOTE: Over-riding Latex-Suite Macros + ------------------------------ + If you wish to change these macros from their default values, for example, + if you wish to change `w to expand to \omega instead of its default + expansion to \wedge, you should use the IMAP function as described in the + Using IMAP() [|ls_a_bG|] section. + + An important thing to note is that if you wish to over-ride macros created + by Latex-Suite rather than merely create new macros, you should place the + IMAP() calls in a script which gets sourced after the files in + Latex-Suite. A good place typically is as a file-type plugin file in the + ~/.vim/after/ftplugin/ directory. (Use ~/vimfiles if you are using + WINDOWS). For example to over-ride `w to \omega instead of \wedge, place + the following line in (say) ~/.vim/after/ftplugin/tex_macros.vim: > + call IMAP('`w', '\omega', 'tex') +< + + NOTE: It is important to use a file-name which will get sourced on a + FileType event. Therefore you must use a file-name which conforms to + the standards as described in |ftplugin-name|. + + + + *pausing-imaps* *ls_a_eF* +NOTE: Pausing Macro expansion + ----------------------- + If you wish to temporarily suspend the imaps functionality, then you can + set the Imap_FreezeImap to 1. If you set g:Imap_FreezeImap to 1, then it + will be a system-wide setting. Setting b:Imap_FreezeImap will affect only + the current buffer. + + +The following sections describe the various editing macros provided by +Latex-Suite. + + +-------------------------------------------------------------------------------- +Environment Mappings *ls_3_1* *ls_a_bf* + *environment-mappings* + +Latex-Suite provides a rich set of mappings to insert, enclose and modify LaTeX +environments, i.e, \begin{...} ... \end{...} pairs. + +Inserting Environments *ls_3_1_1* *ls_a_bg* + *inserting-environments* + +Latex-Suite provides the following ways to insert environments + + + +Method 1: Pressing *ls_3_1_1_1* *ls_a_bh* + *inserting-env-f5* + +If you press in the insert or normal mode while on an empty line, +Latex-Suite prompts you with a list of environments you might want to insert. +You can either choose one from the list or type in a new environment name. If +you press on a line which already has a word, then that word is used +instead of prompting. + +See Tex_Env_name [|ls_a_cZ|] for a description of how Latex-Suite uses the word +to form the expansion and how to modify Latex-Suite's behavior. + +The list of environments which Latex-Suite prompts you with (when is +pressed on an empty line) is formed from the Tex_PromptedEnvironments +[|ls_a_di|] setting. + +In addition to this setting, Latex-Suite also lists environments found in custom +packages as described in the section Package actions. [|ls_a_bL|] + + +Method 2: Using - *ls_3_1_1_2* *ls_a_bi* + *inserting-env-shift-f1* + +The shifted function keys, to can be mapped to insert very +commonly used environments. The environments mapped to each key can be +customized via the g:Tex_HotKeyMappings [|ls_a_dj|] setting. + + +Method 3: Using three letter sequences *ls_3_1_1_3* *ls_a_bj* + *inserting-env-threeletter* + +Environments can also be inserted by pressing a 3 capital letter sequence +starting with an E. The sequence of 3 letters generally tries to follow the +following rules: + + +1. All environment mappings begin with E + +2. If the environment can be broken up into 2 distinct words, such as flushright + (flush + right), then the next 2 letters are the first letters of the 2 + words. Example: > + flushleft (_f_lush + _l_eft) ---> EFL + flushright (_f_lush + _r_ight) ---> EFR + eqnarray (_e_qn + _a_rray) ---> EEA +< If on the other hand, the environment name cannot be broken up into 2 + distinct words, then the next 2 letters are the first 2 letters of the name + of the environment. Example: > + equation (_eq_uation) ---> EEQ +< +Unfortunately there are some environments that cannot be split in two words and +first two letters in name are identical. In this case shortcut is created from +E, first and last letter. Example: > + quote (_q_uot_e_) ---> EQE + quotation (_q_uotatio_n_) ---> EQN +Of course, not every last one of the environments can follow this rule because +of ambiguities. In case of doubt, pull down the Tex-Environments menu. The menu +item should give the hint for the map. + + +Enclosing in Environments *ls_3_1_2* *ls_a_bk* + *enclosing-environments* + +Latex-Suite provides visual-mode mappings which enclose visually selected +portions of text in environments. There are two ways provided to do this. + + + +Method 1: Pressing *ls_3_1_2_1* *ls_a_bl* + *enclosing-env-f5* + +You can also select a portion of text visually and press while still in +visual mode. This will prompt you with a list of environments. (This list can be +customized via the g:Tex_PromptedEnvironments [|ls_a_di|] setting). You can +either choose from this list or type in a new environment name. Once the +selection is done, Latex-Suite encloses the visually selected portion in the +chosen environment. + + +Method 2: Using three letter mappings *ls_3_1_2_2* *ls_a_bm* + *enclosing-env-threeletter* + +You can also select text visually and press a sequence of three characters +beginning with , (the single comma character) and the selected text will be +enclosed in the chosen environment. The three letter sequence follows directly +from the three letter sequence used to insert environments as described here +[|ls_a_bj|]. The following example describes the rule used: + +If ECE inserts a \begin{center}...\end{center} environment, then to enclose a +block of selected text in \begin{center}...\end{center}, simply select the text +and press ,ce. The rule simply says that the leading E is converted to , and the +next 2 letters are small case. +Some of the visual mode mappings are sensitive to whether you choose line-wise +or character-wise. For example, if you choose a word and press ,ce, then you get +\centerline{word}, whereas if you press ,ce on a line-wise selection, you get: > + \begin{center} + line + \end{center} + + + +Changing Environments *ls_3_1_3* *ls_a_bn* + *changing-environments* + +Pressing in normal mode detects which environment the cursor is presently +located in and prompts you to replace it with a new one. The innermost +environment is detected. For example, in the following source: > + \begin{eqnarray} + \begin{array}{ccc} + 2 & 3 & 4 + \end{array} + \end{eqnarray} +if you are located in the middle "2 & 3 & 4" line, then pressing will +prompt you to change the array environment, not the eqnarray environment. In +addition, Latex-Suite will also try to change lines within the environment to be +consistent with the new environment. For example, if the original environment +was an eqnarray environment with a \label command, then changing it to an +eqnarray* environment will delete the \label. + +Pressing in normal mode has the same effect as pressing in +insert-mode, namely you will be prompted to choose an environment to insert. + +-------------------------------------------------------------------------------- +Command Mappings *ls_3_2* *ls_a_bo* + *latex-command-maps* + +Latex-Suite provides a rich set of mappings to insert, enclose and modify LaTeX +commands. + +Inserting LaTeX commands *ls_3_2_1* *ls_a_bp* + *inserting-commands* + + *ls-imap-f7* *ls_a_dW* + *ls-imap-s-f7* *ls_a_dX* +Pressing in insert or normal mode while the cursor is touching a word will +insert a command formed from the word touching the cursor. + +For certain common commands, Latex-Suite will expand them to include additional +arguments as needed. For example, frac becomes \frac{<++>}{<++>}<++>. Otherwise, +it will simply change the word under the cursor as follows > + word --> \word{<++>}<++> +You can define custom expansions of commands using the Tex_Com_{name} setting as +described in here [|ls_a_da|]. + +If is pressed when the cursor is on white-space, then Latex-Suite will +prompt you to choose a command and insert that instead.The list of commands is +constructed from the g:Tex_PromptedCommands [|ls_a_dk|] setting and also from +commands which Latex-Suite finds while scanning custom packages which +Latex-Suite finds. See the Package actions [|ls_a_bL|] section for details on +which files are scanned etc. + + +Enclosing in a command *ls_3_2_2* *ls_a_bq* + *enclosing-commands* + +You can select a portion of text visually and press while still in visual +mode. This will prompt you with a list of commands. (This list can be customized +via the g:Tex_PromptedCommands [|ls_a_dk|] setting). You can either choose from +this list or type in a new command name. Once the selection is done, Latex-Suite +encloses the visually selected portion in the chosen command. + + +Changing commands *ls_3_2_3* *ls_a_br* + *changing-commands* + + *ls-vmap-f7* *ls_a_dY* +In both insert and normal mode will find out if you are presently within +an environment and then prompt you with a list of commands to change it to. + +-------------------------------------------------------------------------------- +Font Mappings *ls_3_3* *ls_a_bs* *font-maps* + +These mappings insert font descriptions such as: \textsf{<++>}<++> with the +cursor left in place of the first placeholder [|ls_a_eD|] (the <++> characters). + +Mnemonic: +1. first letter is always F (F for font) + +2. next 2 letters are the 2 letters describing the font. + +Example: Typing FEM in insert-mode expands to \emph{<++>}<++>. + +Just like environment mappings, you can visually select an area and press `sf to +have it enclosed in: \textsf{word} or > + {\sffamily + line + } +depending on character-wise or line-wise selection. + +-------------------------------------------------------------------------------- +Section Mappings *ls_3_4* *ls_a_bt* + *section-mappings* + +These maps insert LaTeX sections such as: > + \section{<++>}<++> +etc. Just as in the case of environments and fonts, can be enclosed with a +visual selection. The enclosing is not sensitive to character or line-wise +selection. + +Mnemonic: (make your own!) > + SPA for part + SCH for chapter + SSE for section + SSS for subsection + SS2 for subsubsection + SPG for paragraph + SSP for subparagraph + + +Example: SSE in insert mode inserts > + \section{<++>}<++> +If you select a word or line and press ,se, then you get > + \section{section name} +The menu item in Tex-Environments.Sections have a sub-menu called 'Advanced'. +Choosing an item from this sub-menu asks a couple of questions (whether you want +to include the section in the table of contents, whether there is a shorter name +for the table of contents) and then creates a more intelligent template. + +-------------------------------------------------------------------------------- +Greek Letter Mappings *ls_3_5* *ls_a_bu* + *greek-letter-mappings* + +Lower case + +`a through `z expand to \alpha through \zeta.Upper case: + + > + `D = \Delta + `F = \Phi + `G = \Gamma + `Q = \Theta + `L = \Lambda + `X = \Xi + `Y = \Psi + `S = \Sigma + `U = \Upsilon + `W = \Omega +NOTE: LaTeX does not support upper case for all greek alphabets. + + +Just like other Latex-Suite mappings, these mappings are not created using the +standard imap command. Thus you can type slowly, correct using etc. + +-------------------------------------------------------------------------------- +Auc-Tex Key Bindings *ls_3_6* *ls_a_bv* + *auc-tex-mappings* + +These are simple 2 key expansions for some very commonly used LaTeX elements: + + > + `^ Expands To \Hat{<++>}<++> + `_ expands to \bar{<++>}<++> + `6 expands to \partial + `8 expands to \infty + `/ expands to \frac{<++>}{<++>}<++> + `% expands to \frac{<++>}{<++>}<++> + `@ expands to \circ + `0 expands to ^\circ + `= expands to \equiv + `\ expands to \setminus + `. expands to \cdot + `* expands to \times + `& expands to \wedge + `- expands to \bigcap + `+ expands to \bigcup + `( expands to \subset + `) expands to \supset + `< expands to \le + `> expands to \ge + `, expands to \nonumber + `~ expands to \tilde{<++>}<++> + `; expands to \dot{<++>}<++> + `: expands to \ddot{<++>}<++> + `2 expands to \sqrt{<++>}<++> + `| expands to \Big| + `I expands to \int_{<++>}^{<++>}<++> +(again, notice the convenient place-holders) + +In addition the visual mode macros are provided: + + > + `( encloses selection in \left( and \right) + `[ encloses selection in \left[ and \right] + `{ encloses selection in \left\{ and \right\} + `$ encloses selection in $$ or \[ \] depending on characterwise or + linewise selection + + +-------------------------------------------------------------------------------- +Diacritics *ls_3_7* *ls_a_bw* + *diacritic-mappings* + +These mappings speed up typing European languages which contain diacritic +characters such as a-umlaut etc. > + + expands to \v{} + = expands to \'{} +where is an alphabet. + + > + +} expands to \"{a} + +: expands to \^{o} +Latex-Suite also ships with smart backspacing [|ls_a_dZ|] functionality which +provides another convenience while editing languages with diacritics. + +NOTE: Diacritics are disabled by default in Latex-Suite because they can + sometimes be a little too intrusive. Moreover, most European users can + nowadays use font encodings which display diacritic characters directly + instead of having to rely on Latex-Suite's method of displaying + diacritics. + + Set the g:Tex_Diacritics [|ls_a_df|] variable to enable diacritics. + + + +-------------------------------------------------------------------------------- +BibTeX Shortcuts *ls_3_8* *ls_a_bx* + *bibtex-bindings* + +Latex-Suite provides an easy way of entering bibliographic entries. Four +insert-mode mappings: BBB, BBL, BBH and BBX are provided, all of which +essentially act in the same manner. When you type any of these in insert-mode, +you will get a prompt asking you to choose a entry type for the bibliographic +entry. + +When you choose an entry type, a bibliographic entry template will be inserted. +For example, if you choose the option 'book' via the map BBB, then the following +template will be inserted: > + @BOOK{<+key+>, + author = {<++>}, + editor = {<++>}, + title = {<++>}, + publisher = {<++>}, + year = {<++>}, + otherinfo = {<++>} + }<++> + + +<+key+> will be highlighted in select-mode and you can type in the bib-key. +After that you can use to navigate to successive locations in the +template and enter new values. + +BBB inserts a template with only the fields mandatorily required for a given +entry type. BBL inserts a template with commonly used extra options. BBH inserts +a template with more options which are not as commonly used. BBX inserts a +template with all the fields which the entry type supports. + +NOTE: Mnemonic + -------- + B for Bibliographic entry, L for Large entry, H for Huge entry, and X + stands for all eXtras. + + + + +Customizing Bib-TeX fields *ls_3_8_1* *ls_a_by* + *adding-bib-options* + +If you wish the BBB command to insert a few additional fields in addition to the +fields it creates, then you will need to define global variables of the form > + g:Bib_{type}_options +in you $VIM/ftplugin/bib.vim file, where {type} is a string like 'article', +'book' etc. This variable should contain one of the letters defined in the +following table + +Character Field Type~ +w address +a author +b booktitle +c chapter +d edition +e editor +h howpublished +i institution +k isbn +j journal +m month +z note +n number +o organization +p pages +q publisher +r school +s series +t title +u type +v volume +y year + +For example, by default, choosing 'article' via BBB inserts the following +template by default > + @ARTICLE{<+key+>, + author = {<++>}, + title = {<++>}, + journal = {<++>}, + year = {<++>}, + otherinfo = {<++>} + }<++> +However, if g:Bib_article_options is defined as 'mnp', then 'article' will +insert the following template > + @ARTICLE{<+key+>, + author = {<++>}, + title = {<++>}, + journal = {<++>}, + year = {<++>}, + month = {<++>}, + number = {<++>}, + pages = {<++>}, + otherinfo = {<++>} + }<++> + + +If you have some other fields you wish to associate with an article which are +not listed above, then you will have to use the Bib_{type}_extrafields option. +This is a newline separated string of complete field names which will be +included in the template. For example, if you define > + let g:Bib_article_extrafields = "crossref\nabstract" +then the article template will include the lines > + crossref = {<++>}, + abstract = {<++>}, + + +NOTE: You will need to define Bib_* settings in your + $VIMRUNTIME/ftplugin/bib.vim file. + + + +-------------------------------------------------------------------------------- +Smart Key Mappings *ls_3_9* *ls_a_bz* + *smart-keys* + +Latex-Suite ships with the following smart keys: + +Smart Backspace +--------------- + *smart-backspace* *ls_a_dZ* +Pressing in insert mode checks to see whether we are just after something +like \'{a} and if so, deletes all of it. i.e, diacritics are treated as single +characters for backspacing. + +Smart Quotes +------------ +Pressing " (English double quote) will insert `` or '' by making an intelligent +guess about whether we intended to open or close a quote. + +Smart Space +----------- +Latex-Suite maps the key in such a way that $ characters are not broken +across lines. It does this by first setting tw=0 so that Vim will not +automatically break lines and then maps the key to insert newlines +keeping $$'s on the same line. + +Smart Dots +---------- +Pressing ... (3 dots) results in \ldots outside math mode and \cdots in math +mode. + +-------------------------------------------------------------------------------- +Alt Key Macros *ls_3_10* *ls_a_bA* + *altkey-mappings* + +Latex-Suite utilizes a set of macros originally created by Carl Mueller in +auctex.vim to make inserting all the \left ... \right stuff very easy and to +also make some use of the heavily under-utilized key. + +NOTE: By default, typing Alt- in Vim takes focus to the menu bar if a menu + with the hotkey exists. If in your case, there are conflicts due to + this behavior, you will need to set > + set winaltkeys=no +< in your $VIM/ftplugin/tex.vim in order to use these maps. + + +NOTE: Customizing the maps + -------------------- + If for some reason, you wish to not map the keys, (some European + users need to use the key to enter diacritics), you can change these + maps to other keys as described in the section Customizing Alt-key maps + [|ls_a_cx|]. + + + + + *ls_3_10_1* *ls_a_bB* *Alt-L* + +This is a polymorphic insert-mode mapping which expands to one of the following +depending on the character just before the cursor location. + +Character before cursor Expansion~ +( \left( <++> \right) +[ \left[ <++> \right] +| \left| <++> \right| +{ \left\{ <++> \right\} +< \langle <++> \rangle +q \lefteqn{<++>}<++> + +If the character before the cursor is none of the above, then it will simply +insert a \label{<++>}<++>. + + + *ls_3_10_2* *ls_a_bC* *Alt-B* + +This insert-mode mapping encloses the previous character in \mathbf{}. + + + *ls_3_10_3* *ls_a_bD* *Alt-C* + +In insert mode, this key is polymorphic as follows: + + +1. If the previous character is a letter or number, then capitalize it and + enclose it in \mathcal{}. + +2. otherwise insert \cite{}. +In visual mode, it will simply enclose the selection in \mathcal{} + + + *ls_3_10_4* *ls_a_bE* *Alt-I* + +This mapping inserts an \item command at the current cursor location depending +on which environment the cursor is enclosed in. The style of the \item command +is dependent on the enclosing environment. By default, has styles +defined forthe following environments: + +Environment Style~ +itemize \item +enumerate \item +theindex \item +thebibliography \item[<+biblabel+>]{<+bibkey+>} <++> +description \item[<+label+>] <++> + + is intelligent enough to account for nested environments. For example, > + \begin{itemize} + \item first item + \item second item + \begin{description} + \item[label1] first desc + \item[label2] second + % will insert "\item[<+label+>] <++>" if + % used here + \end{description} + \item third item + % will insert "\item " when if used here. + \end{itemize} + % will insert nothing ("") if used here +< + +The style used by can be customized using the +g:Tex_ItemStyle_environment [|ls_a_dl|] variable. + +-------------------------------------------------------------------------------- +Custom Macros *ls_3_11* *ls_a_bF* + *custom-macros-menu* + +This functionality available via the TeX-Suite.Macros menu, provides a way of +inserting customized macros into the current file via the menu. + +When Latex-Suite starts up, it scans the $VIM/ftplugin/latex-suite/macros/ +directory and creates a menu from the files found there. Each file is considered +as a single macro. You can place your own macros in this directory, using +placeholders [|ls_a_eD|] if wanted. + +When you choose a macro from the menu, the corresponding file is read into the +current buffer after the current cursor position. In non-gui mode, you can use +the |TMacro| command instead of choosing from the menu. This command takes the +macro file name as an argument. When called without arguments (preferred usage), +then a list of available macro files is displayed and the user is prompted to +choose one of them). + +There are some other tools provided in this menu, namely: + + +{New} Creates a new (unnamed) buffer in the latex-suite/macros/ directory. + Use the command :TexMacroNew in non-gui mode. +{Edit} Opens up the corresponding macro file for editing. Use |:TexMacroEdit| + in non-gui mode. When you try to edit {macro} not from local directory + Latex-Suite will copy it to your local directory with suffix "-local". + If local copy already exists Latex-Suite prompt for overwriting it. +{Delete} Deletes the corresponding macro. Use the prefixed numbers for fast + navigation of menus. Use |:TexMacroDelete| in non-gui mode. When you + choose to delete {macro} which is not in your local directory + Latex-Suite will refuse to delete it. +{Redraw} Rescans the macros/ directories and refreshes the macros list. + +-------------------------------------------------------------------------------- +Making your own Macros via IMAP() *ls_3_12* *ls_a_bG* + *ls-new-macros* + +If you find the need to create your own macros, then you can use the IMAP() +function provided with Latex-Suite. See [|ls_a_bH|] for a short explanation of +why you might prefer IMAP() over Vim's standard :imap command. An example best +explains the usage: > + :call IMAP('NOM', '\nomenclature{<++>}<++>', 'tex') +This will create a Latex-Suite-style mapping, where if you type NOM in insert +mode, you will get \nomenclature{<++>}<++> with the cursor left in place of the +first <++> characters. See [|ls_a_bI|] for a detailed explanation of the IMAP() +command. + +For maps which are triggered for a given filetype, the IMAP() command above +should be put in the filetype plugin script for that file. For example, for +tex-specific mappings, the IMAP() calls should go in $VIM/ftplugin/tex.vim. For +globally visible maps, you will need to use the following in either your +~/.vimrc or a file in your $VIM/plugin directory. > + augroup MyIMAPs + au! + au VimEnter * call IMAP('Foo', 'foo', '') + augroup END + + + + +Why use IMAP() *ls_3_12_1* *ls_a_bH* + *why-IMAP* + +Using IMAP instead of Vim's built-in :imap command has a couple of advantages: +1. The 'ttimeout' option will generally limit how easily you can type the left + hand side for a normal :imap. if you type the left hand side too slowly, then + the mapping will not be activated. + +2. If you mistype one of the letters of the lhs, then the mapping is deactivated + as soon as you backspace to correct the mistake. + +3. The characters in lhs are shown on top of each other. This is fairly + distracting. This becomes a real annoyance when a lot of characters initiate + mappings. + + +IMAP() syntax *ls_3_12_2* *ls_a_bI* + *ls-imaps-syntax* + +Formally, the syntax which is used for the IMAP function is: > + call IMAP (lhs, rhs, ft [, phs, phe]) + + +Argument Explanation~ +lhs This is the "left-hand-side" of the mapping. When you use IMAP, only + the last character of this word is actually mapped, although the + effect is that the whole word is mapped. + + If you have two mappings which end in a common lhs, then the mapping + with the longer lhs is used. For example, if you do > + call IMAP('BarFoo', 'something', 'tex') + call IMAP('Foo', 'something else', 'tex') +< Then typing BarFoo inserts "something", whereas Foo by itself inserts + "something else". + + Also, the nature of IMAP() makes creating certain combination of + mappings impossible. For example if you have > + call IMAP('foo', 'something', 'tex') + call IMAP('foobar', 'something else', 'tex') +< Then you will never be able to trigger "foobar" because typing "foo" + will immediately insert "something". This is the "cost" which you + incur over the normal :imap command for the convenience of no + 'timeout' problems, the ability to correct lhs etc. + + +rhs The "right-hand-side" of the mapping. This is the expansion you will + get when you type lhs. + + This string can also contain special characters such as etc. + To do this, you will need to specify the second argument in + double-quotes as follows: > + :call IMAP('EFE', "\\begin{figure}\<++>\\end{figure}<++>", 'tex') +< With this, typing EFE is equivalent to typing in the right-hand side + with all the special characters in insert-mode. This has the advantage + that if you have filetype indentation set up, then the right hand side + will also be indented just as if you had typed it in normally. + + *IMAP_PutTextWithMovement* *ls_a_ea* + You can also set up a Latex-Suite style mapping which calls a custom + function as follows: > + :call IMAP('FOO', "\=MyFoonction()\", 'tex') +< where MyFoonction is a custom function you have written. If + MyFoonction also has to return a string containing <++> characters, + then you will need to use the function IMAP_PutTextWithMovement(). An + example best explains the usage: + + > + call IMAP('FOO', "\=AskVimFunc()\", 'vim') + " Askvimfunc: Asks For Function Name And Sets Up Template + " Description: + function! AskVimFunc() + let name = input('Name of the function : ') + if name == '' + let name = "<+Function Name+>" + end + let islocal = input('Is this function scriptlocal ? [y]/n : ', 'y') + if islocal == 'y' + let sidstr = '' + else + let sidstr = '' + endif + return IMAP_PutTextWithMovement( + \ "\" ".name.": <+short description+> \" . + \ "Description: <+long description+>\" . + \ "\function! ".name."(<+arguments+>)<++>\" . + \ "<+function body+>\" . + \ "endfunction \" " + \ ) + endfunction +< + + +ft The file type for which this mapping is active. When this string is + left empty, the mapping applies for all file-types. A filetype + specific mapping will always take precedence. + + +phs, phe If you prefer to write the rhs with characters other than <+ and +> to + denote place-holders, you can use the last 2 arguments to specify + which characters in the rhs specify place-holders. By default, these + are <+ and +> respectively. + + Note that the phs and phe arguments do not control what characters + will be displayed for the placeholders when the mapping is actually + triggered. What characters are used to display place-holders when you + trigger an IMAP are controlled by the Imap_PlaceHolderStart + [|ls_a_cV|] and Imap_PlaceHolderEnd [|ls_a_er|] settings. + + + +================================================================================ +Package Handling *ls_4* *ls_a_bJ* + *latex-packages* + +|ls_4_1| Inserting package commands +|ls_4_2| Actions taken for supported packages +|ls_4_3| Automatic Package detection +|ls_4_4| Writing supporting for a package + + +Latex-Suite has a lot of functionality written to ease working with packages. +Packages here refers to files which you include into the LaTeX document using +the \usepackage command. + + +-------------------------------------------------------------------------------- +Inserting package commands *ls_4_1* *ls_a_bK* + *inserting-packages* + +When you first invoke Latex-Suite, it scans the +$VIM/ftplugin/latex-suite/packages directory for package script files and +creates a menu from all the files found there. This menu is created under +TeX-Suite > Packages > Supported. This menu contains a list of packages +"supported" by Latex-Suite. When you choose one of the packages from this menu +(for example the amsmath package), then a line of the form > + \usepackage[<++>]{amsmath}<++> +will be inserted into the current file. + +The \usepackage line can also be inserted in an easy manner in the current file +by pressing while in the preamble of the current document. This will set up +a prompt from the supported packages and ask you to choose from one of them. If +you do not find the package you want to insert in the list, you can type in a +package-name and it will use that. Pressing in the preamble on a line +containing a single word will construct a \usepackage line from that word. + +You can also use the TPackage [|ls_a_cD|] to insert the \usepackage line. + +Once you have inserted a \usepackage line, for supported packages, you can use +the Options and Commands menus described in the next section [|ls_a_bL|]. + +-------------------------------------------------------------------------------- +Actions taken for supported packages *ls_4_2* *ls_a_bL* + *package-actions* + +Latex-Suite takes the following actions for packages detected when a file is +loaded, or a new \usepackage line is inserted using one of the methods described +in the previous section [|ls_a_bK|]. + +If you are using the GUI and you have g:Tex_Menus [|ls_a_dI|] set to 1, +Latex-Suite will create the following sub-menus +TeX-Suite > Packages > Options + +TeX-Suite > Packages > Commands + +where is the package you just inserted (or was detected). You can use +these menus to insert commands, environments and options which Latex-Suite +recognizes as belonging to this package. + +NOTE: While inserting an option, you need to position yourself in the + appropriate place in the document, most commonly inside the square braces + in the \usepackage[]{packname} command. Latex-Suite will not navigate to + that location. + + +In addition to creating these sub-menus, Latex-Suite will also scan the +$VIM/ftplugin/latex-suite/dictionaries directory and if a dictionary file +corresponding to the package file is found, then it will add the file to the +'dict' setting in Vim so you can use the command to complete words +from that file. + +For example, the SIUnits package has a custom dictionary. + + *latex-package-scanning* *ls_a_eb* +If a package detected at startup is found by Latex-Suite in the current +directory or in a location specified by the g:Tex_TEXINPUTS [|ls_a_dT|] +variable, Latex-Suite will scan the package for \newenvironment and newcommand +lines and also append any commands and environments found to the list of +commands and environments which you are prompted with when you press +[|ls_a_bh|] or [|ls_a_dW|] in insert mode. +In addition, the TeX-Suite > Packages menu also contains the following submenus + +Update +------ +This command is to be invoked with the cursor placed on the package name. If the +corresponding package is found, then a sub-menu with the supported commands and +options is created. + +Update All +---------- +This function reads the preamble of the document for \usepackage lines and if +Latex-Suite supports the detected packages, then sub-menus containing the +package options and commands are created. + + +-------------------------------------------------------------------------------- +Automatic Package detection *ls_4_3* *ls_a_bM* + *automatic-package-detection* + +Whenever Latex-Suite begins editing a new LaTeX file, it scans it for +\usepackage{name} lines, and if a supported package is found, then it will +create sub-menus and add to the 'dict' setting as described above. + +If a master-file [|ls_a_ct|] has been specified, then it will scan that file +instead of the current file. See the section Custom Packages [|ls_a_bN|] to see +which files Latex-Suite will scan in more detail. + +For all the packages detected in this manner, Latex-Suite will take certain +actions as described in the section package support. [|ls_a_bL|]. + + + +Custom Packages *ls_4_3_1* *ls_a_bN* + *custom-packages* + +Often times, the preamble can become too long, and some people prefer to put +most of their personalization in a custom package and include that using a +\usepackage line. Latex-Suite tries to search such customs package for other +\usepackage lines, so that supported packages included in this indirect manner +can also be used to create sub-menus, extend the 'dict' setting etc. The most +obvious place to place such custom packages is in the same directory as the +edited file. In addition, LaTeX also supports placing custom packages in places +pointed to by the $TEXINPUTS environment variable. + +If you use the $TEXINPUTS variable in LaTeX, and you wish Latex-Suite to search +these custom packages for \usepackage lines, then you need to initialize the +g:Tex_TEXINPUTS [|ls_a_dT|] variable. + +The g:Tex_TEXINPUTS variable needs to be set in the same format which Vim uses +for the 'path' setting. This format is explained in detail if you do > + :help file-searching +from within Vim. + +Therefore the value of g:Tex_TEXINPUTS will most probably be different from +$TEXINPUTS which your native LaTeX distribution uses. + +Example: > + let g:Tex_TEXINPUTS = '~/texmf/mypackages/**,./**' +The ** indicates that all directories below the directory ~/texmf/mypackages and +./ are to be scanned for custom packages. + +NOTE: The present directory '.' is always searched. You need not include that in + g:Tex_TEXINPUTS. + + + +-------------------------------------------------------------------------------- +Writing supporting for a package *ls_4_4* *ls_a_bO* + *supporting-packages* + +Supporting a package is easy and consists of writing a vim script with the same +name as the package and placing it in the $VIM/ftplugin/latex-suite/packages +directory. A package script should define two variables as described in the next +two sections. In addition to these two variables, you can also define any +functions, environment definitions etc. in this file. + + + +g:Tex_package_option_ *ls_4_4_1* *ls_a_bP* + +This setting is a string containing a comma separated list of options supported +by this package. + +Example: > + g:Tex_package_option_mypack = 'opt1,opt2=,sbr:group1,opt3,opt4' +The = suffix means that the option takes a value. Use sbr:group name to separate +options into sub-menus. All successive options will be clubbed into the group1 +sub-menu till the next sbr: option is encountered. + + +g:Tex_package_ *ls_4_4_2* *ls_a_bQ* + + > + + g:TeX_package_ = "pre:Command,pre:Command1" + More detailed example is in latex-suite/packages/exmpl file (slightly + outdated). + Here is short summary of prefixes which can be used in package files: + (x - place with cursor, <++> - |placeholder|) + + {env:command} Environment: creates simple environment template + \begin{command} + x + \end{command}<++> + {eno:command} Environment with option: + \begin[x]{command} + <++> + \end{command}<++> + {ens:command[<