@@ -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 &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 <C-X> :ToggleBg<CR>
82+map <C-C> :NERDTreeToggle<CR>
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 <C-X> :ToggleBg<CR>
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>