This commit is contained in:
Reed Esau
2013-12-25 15:20:28 -07:00
parent 87bbf6c6ae
commit b9897456a9

View File

@@ -1,5 +1,5 @@
" ============================================================================= " =============================================================================
" File: plugin/themata.vim " File: plugin/thematic.vim
" Description: Theme Manager for the Vim text editor " Description: Theme Manager for the Vim text editor
" Maintainer: Reed Esau <github.com/reedes> " Maintainer: Reed Esau <github.com/reedes>
" License: This program is free software. It comes without any warranty, " License: This program is free software. It comes without any warranty,
@@ -23,18 +23,18 @@
" endif " endif
"endfor "endfor
if exists('g:loaded_themata') || &cp | finish | endif if exists('g:loaded_thematic') || &cp | finish | endif
let g:loaded_themata = 1 let g:loaded_thematic = 1
" Save 'cpoptions' and set Vim default to enable line continuations. " Save 'cpoptions' and set Vim default to enable line continuations.
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim
let g:themata#theme_name = '' let g:thematic#theme_name = ''
" Preserve original settings {{{ " Preserve original settings {{{
let g:themata#original = { let g:thematic#original = {
\ 'laststatus': &laststatus, \ 'laststatus': &laststatus,
\ 'ruler': &ruler, \ 'ruler': &ruler,
\ } \ }
@@ -48,14 +48,14 @@ let g:themata#original = {
if has('fullscreen') if has('fullscreen')
let l_fuopts = split(&fuoptions, ',') let l_fuopts = split(&fuoptions, ',')
if index(l_fuopts, 'maxvert') != -1 if index(l_fuopts, 'maxvert') != -1
let g:themata#original.maxvert = 1 let g:thematic#original.maxvert = 1
" NOTE removing maxvert results in a screen redraw problem " NOTE removing maxvert results in a screen redraw problem
" if Ctrl+Command+F hit before switching themes, " if Ctrl+Command+F hit before switching themes,
" so we'll remove it here. " so we'll remove it here.
"set fuoptions-=maxvert "set fuoptions-=maxvert
endif endif
if index(l_fuopts, 'maxhorz') != -1 if index(l_fuopts, 'maxhorz') != -1
let g:themata#original.maxhorz = 1 let g:thematic#original.maxhorz = 1
set fuoptions-=maxhorz set fuoptions-=maxhorz
endif endif
unlet l_fuopts unlet l_fuopts
@@ -64,11 +64,11 @@ endif
" }}} " }}}
" Defaults {{{ " Defaults {{{
if !exists('g:themata#defaults') if !exists('g:thematic#defaults')
let g:themata#defaults = {} let g:thematic#defaults = {}
endif endif
if !exists('g:themata#themes') if !exists('g:thematic#themes')
let g:themata#themes = { let g:thematic#themes = {
\ 'blue' : { 'sign-column-color-fix': 1, \ 'blue' : { 'sign-column-color-fix': 1,
\ 'fold-column-color-mute': 1, \ 'fold-column-color-mute': 1,
\ }, \ },
@@ -85,14 +85,14 @@ endif
" Commands {{{ " Commands {{{
command -nargs=0 ThematicNarrow call themata#adjustColumns(-5) command -nargs=0 ThematicNarrow call thematic#adjustColumns(-5)
command -nargs=0 ThematicWiden call themata#adjustColumns(5) command -nargs=0 ThematicWiden call thematic#adjustColumns(5)
command -nargs=0 ThematicFirst call themata#load('#first') command -nargs=0 ThematicFirst call thematic#load('#first')
command -nargs=0 ThematicNext call themata#load('#next') command -nargs=0 ThematicNext call thematic#load('#next')
command -nargs=0 ThematicPrevious call themata#load('#previous') command -nargs=0 ThematicPrevious call thematic#load('#previous')
command -nargs=0 ThematicRandom call themata#load('#random') command -nargs=0 ThematicRandom call thematic#load('#random')
command -nargs=0 ThematicOriginal call themata#load('#original') command -nargs=0 ThematicOriginal call thematic#load('#original')
"command! -nargs=1 MyCommand call s:MyFunc(<f-args>) "command! -nargs=1 MyCommand call s:MyFunc(<f-args>)
" }}} " }}}