xonecas.io
2495
Xg

xonecas.github.com / commit 8474a9a

fgertg

xonecas2012-06-25 8474a9a7413416d487df0cd08181c31716212c9a parent e3b46bc

3 files changed

index.html+92−4
@@ -21,11 +21,70 @@
2121
2222
2323 <ul>
24- <li><a class="buttons github" href="https://github.com/xonecas">GitHub Profile</a></li>
24+ <li>
25+ <a id="config-link" class="buttons-i github" href="#config">
26+ .vimrc
27+ </a>
28+ </li>
29+ <li>
30+ <a id="colors-link" class="buttons-i github" href="#colors">
31+ vim colorschemes
32+ </a>
33+ </li>
34+ <li>
35+ <a class="buttons github" href="https://github.com/xonecas">
36+ GitHub Profile
37+ </a>
38+ </li>
2539 </ul>
2640
2741 </header>
28- <section>
42+
43+ <section id="config">
44+ <h3>Sean's vim configuration</h3>
45+
46+ <p>Simple config file :-)</p>
47+
48+<pre><code>call pathogen#infect()
49+set guioptions=
50+set directory^=~/.vswap
51+set number
52+set ruler
53+set colorcolumn=80
54+set cursorline
55+set visualbell t_vb=
56+set incsearch
57+set smartcase
58+set smartindent
59+set autoindent
60+set expandtab
61+set smarttab
62+set tabstop=4
63+set shiftwidth=4
64+set list
65+set listchars=tab:▸\ ,eol:¬,trail:⋅,extends:❯,precedes:❮
66+set showbreak=↪
67+syntax on
68+colorscheme bearded-adventure
69+set background=dark
70+filetype plugin on
71+function! ToggleBg()
72+ if &amp;background == "light"
73+ "let g:lucius_style = 'dark'
74+ set background=dark
75+ else
76+ "let g:lucius_style = 'light'
77+ set background=light
78+ endif
79+endfunction
80+command! ToggleBg :call ToggleBg()
81+map &lt;C-X&gt; :ToggleBg&lt;CR&gt;
82+map &lt;C-C&gt; :NERDTreeToggle&lt;CR&gt;
83+</code></pre>
84+
85+ </section>
86+
87+ <section id="colors">
2988 <h3>Sean's vim colorschemes</h3>
3089
3190 <p>
@@ -75,7 +134,36 @@ map &lt;C-X&gt; :ToggleBg&lt;CR&gt;
75134 <p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme, with a tiny twist</small></p>
76135 </footer>
77136 </div>
78- <!--[if !IE]><script>fixScale(document);</script><!--<![endif]-->
79-
137+ <!--[if !IE]>
138+ <script>fixScale(document);</script>
139+ <![endif]-->
140+
141+ <script>
142+
143+(function () {
144+ var config = document.querySelector('#config'),
145+ configLink = document.querySelector('#config-link'),
146+ colors = document.querySelector('#colors'),
147+ colorsLink = document.querySelector('#colors-link'),
148+
149+ handler = function (e) {
150+ config.style.display = 'none';
151+ colors.style.display = 'none';
152+
153+ [e.target.href.substring(1)].style.display = 'block';
154+
155+ if(e.preventDefault) { e.preventDefault(); }
156+ return false;
157+ };
158+
159+ colors.style.display = 'none';
160+
161+ configLink.addEventListener('click', handler, false);
162+ colorsLink.addEventListener('click', handler, false);
163+
164+}());
165+
166+ </script>
167+
80168 </body>
81169 </html>
t.md+35−0
@@ -0,0 +1,35 @@
1+ call pathogen#infect()
2+ set guioptions=
3+ set directory^=~/.vswap
4+ set number
5+ set ruler
6+ set colorcolumn=80
7+ set cursorline
8+ set visualbell t_vb=
9+ set incsearch
10+ set smartcase
11+ set smartindent
12+ set autoindent
13+ set expandtab
14+ set smarttab
15+ set tabstop=4
16+ set shiftwidth=4
17+ set list
18+ set listchars=tab:▸\ ,eol:¬,trail:⋅,extends:❯,precedes:❮
19+ set showbreak=↪
20+ syntax on
21+ colorscheme bearded-adventure
22+ set background=dark
23+ filetype plugin on
24+ function! ToggleBg()
25+ if &background == "light"
26+ "let g:lucius_style = 'dark'
27+ set background=dark
28+ else
29+ "let g:lucius_style = 'light'
30+ set background=light
31+ endif
32+ endfunction
33+ command! ToggleBg :call ToggleBg()
34+ map <C-X> :ToggleBg<CR>
35+ map <C-C> :NERDTreeToggle<CR>
t.md.after+36−0
@@ -0,0 +1,36 @@
1+<pre><code>call pathogen#infect()
2+set guioptions=
3+set directory^=~/.vswap
4+set number
5+set ruler
6+set colorcolumn=80
7+set cursorline
8+set visualbell t_vb=
9+set incsearch
10+set smartcase
11+set smartindent
12+set autoindent
13+set expandtab
14+set smarttab
15+set tabstop=4
16+set shiftwidth=4
17+set list
18+set listchars=tab:▸\ ,eol:¬,trail:⋅,extends:❯,precedes:❮
19+set showbreak=↪
20+syntax on
21+colorscheme bearded-adventure
22+set background=dark
23+filetype plugin on
24+function! ToggleBg()
25+ if &amp;background == "light"
26+ "let g:lucius_style = 'dark'
27+ set background=dark
28+ else
29+ "let g:lucius_style = 'light'
30+ set background=light
31+ endif
32+endfunction
33+command! ToggleBg :call ToggleBg()
34+map &lt;C-X&gt; :ToggleBg&lt;CR&gt;
35+map &lt;C-C&gt; :NERDTreeToggle&lt;CR&gt;
36+</code></pre>