noremap <PageUp> :bp<CR>
noremap <Left> :bp<CR>
noremap <PageDown> :bn<CR>
noremap <Right> :bn<CR>

<% @buffers.each do |buffer| %>
b <%= buffer[:num] %>
<% if buffer[:code] %>
<%= buffer[:code][:start] %>,<%= buffer[:code][:end] %>SyntaxInclude <%= buffer[:code][:language] %>
<% end %>
<% buffer[:comments].each do |comment| %>
call matchadd("Comment", "<%= comment %>")
<% end %>
<% end %>
b 1

set nonumber
noremap <PageUp> :bp<CR>
noremap <Left> :bp<CR>
noremap <PageDown> :bn<CR>
noremap <Right> :bn<CR>

<% @buffers.each do |buffer| %>
b <%= buffer[:num] %>
<% if buffer[:code] %>
<%= buffer[:code][:start] %>,<%= buffer[:code][:end] %>SyntaxInclude <%= buffer[:code][:language] %>
<% end %>
<% buffer[:comments].each do |comment| %>
call matchadd("Comment", "<%= comment %>")
<% end %>
<% end %>
b 1

Disable Vim's line numbering when showing slides
Disable Vim's line numbering when showing slides
