title: How to Autoindent Ruby source code in Vim
body: <p>suppose I have <code>set cindent</code> in <code>.vimrc</code>
  <br />
  <code>def func()</code> followed by <code>Enter</code>, and then type <code>end</code>, it is indented(not aligned to the <code>def</code>) 
  <br /><br />How to reindent the <code>end</code> keyword(align it to the <code>def</code>). 
  <br /> <br />Even using <code>endwise.vim plugin</code> doesn't fix the problem <br />
  <a href="https://github.com/tpope/vim-endwise.git">https://github.com/tpope/vim-endwise.git</a> <br />
  It adds <strong>automatically</strong> the <code>end</code> keyword but again <code>indented</code></p>