Remove indentation for vim code blocks

This commit is contained in:
Reed Esau
2013-12-29 23:46:37 -07:00
parent 0ecc96af6c
commit cc74ca6484

View File

@@ -49,27 +49,27 @@ manager.
A few of Vim's standard `colorschemes` are configured by default, but A few of Vim's standard `colorschemes` are configured by default, but
you'll want to override them with your own, like this: you'll want to override them with your own, like this:
```vim ```vim
let g:thematic#themes = { let g:thematic#themes = {
\ 'bubblegum' : { \ 'bubblegum' : {
\ }, \ },
\ 'jellybeans' : { 'laststatus': 0, \ 'jellybeans' : { 'laststatus': 0,
\ 'ruler': 1, \ 'ruler': 1,
\ }, \ },
\ 'matrix' : { 'colorscheme': 'base16-greenscreen', \ 'matrix' : { 'colorscheme': 'base16-greenscreen',
\ 'laststatus': 0, \ 'laststatus': 0,
\ }, \ },
\ 'solar_dark' : { 'colorscheme': 'solarized', \ 'solar_dark' : { 'colorscheme': 'solarized',
\ 'background': 'dark', \ 'background': 'dark',
\ 'diff-color-fix': 1, \ 'diff-color-fix': 1,
\ 'sign-column-color-fix': 1, \ 'sign-column-color-fix': 1,
\ }, \ },
\ 'solar_lite' : { 'colorscheme': 'solarized', \ 'solar_lite' : { 'colorscheme': 'solarized',
\ 'background': 'light', \ 'background': 'light',
\ 'sign-column-color-fix': 1, \ 'sign-column-color-fix': 1,
\ }, \ },
\ } \ }
``` ```
If you don't specify a `colorscheme`, thematic will attempt to load one If you don't specify a `colorscheme`, thematic will attempt to load one
given your theme name. given your theme name.
@@ -77,12 +77,12 @@ given your theme name.
You can also specify a dictionary of default values, to be shared by all You can also specify a dictionary of default values, to be shared by all
of your themes. of your themes.
```vim ```vim
let g:thematic#defaults = { let g:thematic#defaults = {
\ 'airline-theme': 'jellybeans', \ 'airline-theme': 'jellybeans',
\ 'laststatus': 2, \ 'laststatus': 2,
\ } \ }
``` ```
Note that an explicit setting in a theme will always override these defaults. Note that an explicit setting in a theme will always override these defaults.
@@ -96,22 +96,22 @@ thematic configuration.
Running `:ThematicFirst` invoke thematic and chooses the first theme, Running `:ThematicFirst` invoke thematic and chooses the first theme,
as your themes will be reordered alphabetically by name. as your themes will be reordered alphabetically by name.
```vim ```vim
:ThematicFirst " switch to the first theme, ordered by name :ThematicFirst " switch to the first theme, ordered by name
:ThematicNext " switch to the next theme, ordered by name :ThematicNext " switch to the next theme, ordered by name
:ThematicPrevious " switch to the previous theme, ordered by name :ThematicPrevious " switch to the previous theme, ordered by name
:ThematicRandom " switch to a random theme :ThematicRandom " switch to a random theme
:ThematicOriginal " revert to the original theme :ThematicOriginal " revert to the original theme
:Thematic {theme_name} " load a theme by name :Thematic {theme_name} " load a theme by name
``` ```
thematic does not map any keys by default, but you can easily do so in thematic does not map any keys by default, but you can easily do so in
your `.vimrc` file: your `.vimrc` file:
```vim ```vim
nnoremap <Leader>t <Plug>ThematicNext nnoremap <Leader>t <Plug>ThematicNext
nnoremap <Leader>T <Plug>ThematicPrevious nnoremap <Leader>T <Plug>ThematicPrevious
``` ```
## What theme properties can I set? ## What theme properties can I set?
@@ -166,41 +166,41 @@ It works best with GUI Vim's fullscreen. A few steps are involved:
(2) Edit your `.gvimrc` to disable the tool bar, etc. (2) Edit your `.gvimrc` to disable the tool bar, etc.
``` ```vim
set antialias set antialias
set guicursor+=a:blinkon0 " disable cursor blink set guicursor+=a:blinkon0 " disable cursor blink
set guioptions-=r "kill right scrollbar set guioptions-=r "kill right scrollbar
set guioptions-=l "kill left scrollbar set guioptions-=l "kill left scrollbar
set guioptions-=L "kill left scrollbar multiple buffers set guioptions-=L "kill left scrollbar multiple buffers
set guioptions-=T "kill toolbar set guioptions-=T "kill toolbar
``` ```
(3) Finally, create a theme configured to your tastes. Here's an example for (3) Finally, create a theme configured to your tastes. Here's an example for
MacVim: MacVim:
``` ```vim
let g:thematic#themes = { let g:thematic#themes = {
\ 'iawriter' :{ 'colorscheme': 'solarized', \ 'iawriter' :{ 'colorscheme': 'solarized',
\ 'background': 'light', \ 'background': 'light',
\ 'columns': 75, \ 'columns': 75,
\ 'font-size': 20, \ 'font-size': 20,
\ 'fullscreen': 1, \ 'fullscreen': 1,
\ 'laststatus': 0, \ 'laststatus': 0,
\ 'linespace': 8, \ 'linespace': 8,
\ 'typeface': 'Menlo', \ 'typeface': 'Menlo',
\ }, \ },
... ...
\ } \ }
``` ```
Without GUI-based Vim, console-based emulation is trickier, as there's no Without GUI-based Vim, console-based emulation is trickier, as there's no
easy way to create generous left and right margins. You can approximate it easy way to create generous left and right margins. You can approximate it
by switching from soft-wrap to hard line breaks with `vim-writer` and using by switching from soft-wrap to hard line breaks with `vim-writer` and using
with a narrow `textwidth`: with a narrow `textwidth`:
``` ```vim
autocmd FileType markdown set foldcolumn=12 textwidth=74 autocmd FileType markdown set foldcolumn=12 textwidth=74
``` ```
## Related projects ## Related projects